Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Text Analytics] Make project and deployment names required #17402

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ export interface CustomRecongizeEntitiesActionSuccessResult extends TextAnalytic
// @public
export interface CustomTextAnalyticsAction {
actionName?: string;
deploymentName?: string;
projectName?: string;
deploymentName: string;
projectName: string;
}

// @public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export interface CustomEntitiesTask {
}

export interface CustomEntitiesTaskParameters {
projectName?: string;
deploymentName?: string;
projectName: string;
deploymentName: string;
loggingOptOut?: boolean;
stringIndexType?: StringIndexType;
}
Expand All @@ -133,8 +133,8 @@ export interface CustomSingleClassificationTask {
}

export interface CustomSingleClassificationTaskParameters {
projectName?: string;
deploymentName?: string;
projectName: string;
deploymentName: string;
loggingOptOut?: boolean;
}

Expand All @@ -143,8 +143,8 @@ export interface CustomMultiClassificationTask {
}

export interface CustomMultiClassificationTaskParameters {
projectName?: string;
deploymentName?: string;
projectName: string;
deploymentName: string;
loggingOptOut?: boolean;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,12 +552,14 @@ export const CustomEntitiesTaskParameters: coreClient.CompositeMapper = {
modelProperties: {
projectName: {
serializedName: "projectName",
required: true,
type: {
name: "String"
}
},
deploymentName: {
serializedName: "deploymentName",
required: true,
type: {
name: "String"
}
Expand Down Expand Up @@ -602,12 +604,14 @@ export const CustomSingleClassificationTaskParameters: coreClient.CompositeMappe
modelProperties: {
projectName: {
serializedName: "projectName",
required: true,
type: {
name: "String"
}
},
deploymentName: {
serializedName: "deploymentName",
required: true,
type: {
name: "String"
}
Expand Down Expand Up @@ -646,12 +650,14 @@ export const CustomMultiClassificationTaskParameters: coreClient.CompositeMapper
modelProperties: {
projectName: {
serializedName: "projectName",
required: true,
type: {
name: "String"
}
},
deploymentName: {
serializedName: "deploymentName",
required: true,
type: {
name: "String"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ export interface CustomTextAnalyticsAction {
* The project name for the text analytics model used by this operation on this
* batch of input documents.
*/
projectName?: string;
projectName: string;
/**
* The deployment name for the text analytics model used by this operation on this
* batch of input documents.
*/
deploymentName?: string;
deploymentName: string;
/**
* The preferred name for this action.
*/
Expand Down
2 changes: 1 addition & 1 deletion sdk/textanalytics/ai-text-analytics/swagger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generate-metadata: false
license-header: MICROSOFT_MIT_NO_VERSION
output-folder: ../
source-code-folder-path: ./src/generated
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c46283d507bc79eddc6b5f89f6663ee907bd30de/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/5efb2eca2fc3d94f27015f5d3176786c7497f946/specification/cognitiveservices/data-plane/TextAnalytics/preview/v3.2-preview.2/TextAnalytics.json
add-credentials: false
package-version: 5.2.0-beta.2
v3: true
Expand Down