diff --git a/sdk/contentsafety/azure-ai-contentsafety/code-model.yaml b/sdk/contentsafety/azure-ai-contentsafety/code-model.yaml new file mode 100644 index 0000000000000..2057a2916e43d --- /dev/null +++ b/sdk/contentsafety/azure-ai-contentsafety/code-model.yaml @@ -0,0 +1,2676 @@ +language: + default: + name: ContentSafety + description: Analyze harmful content + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety +protocol: {} +info: + title: ContentSafety + description: Analyze harmful content +schemas: + strings: + - &ref_32 + language: + default: + name: endpoint + description: A sequence of textual characters. + protocol: {} + type: string + - &ref_0 + language: + default: + name: string + description: simple string + protocol: {} + type: string + - &ref_1 + language: + default: + name: string + description: A sequence of textual characters. + protocol: {} + type: string + - &ref_39 + language: + default: + name: x-ms-error-code + description: A sequence of textual characters. + protocol: {} + type: string + - &ref_48 + language: + default: + name: name + description: A sequence of textual characters. + protocol: {} + type: string + - &ref_64 + language: + default: + name: blocklistItemId + description: A sequence of textual characters. + protocol: {} + type: string + constants: + - &ref_33 + language: + default: + name: api-version + description: API Version + protocol: {} + type: constant + valueType: *ref_0 + value: + value: '' + - &ref_34 + language: + default: + name: analyzeImageContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_35 + language: + default: + name: analyzeImageContentType1 + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_43 + language: + default: + name: analyzeTextContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_44 + language: + default: + name: analyzeTextContentType1 + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_49 + language: + default: + name: addOrUpdateBlocklistItemsContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_50 + language: + default: + name: addOrUpdateBlocklistItemsContentType1 + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_56 + language: + default: + name: CreateOrUpdateTextBlocklistRequestContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/merge-patch+json + usage: + - input + - public + - &ref_57 + language: + default: + name: createOrUpdateTextBlocklistContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_60 + language: + default: + name: deleteTextBlocklistContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_62 + language: + default: + name: getTextBlocklistContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_65 + language: + default: + name: getTextBlocklistItemContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_71 + language: + default: + name: listTextBlocklistItemsContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_77 + language: + default: + name: listTextBlocklistsContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_79 + language: + default: + name: removeBlocklistItemsContentType + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + - &ref_80 + language: + default: + name: removeBlocklistItemsContentType1 + description: '' + protocol: {} + type: constant + valueType: *ref_1 + value: + value: application/json + usage: + - input + - public + objects: + - &ref_36 + language: + default: + name: AnalyzeImageOptions + description: The image analysis request. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AnalyzeImageOptions + properties: + - language: + default: + name: image + description: The image to be analyzed. + protocol: {} + schema: &ref_2 + language: + default: + name: ContentSafetyImageData + description: >- + The image can be either base64 encoded bytes or a blob URL. + You can choose only one of these options. If both are + provided, the request will be refused. The maximum image size + is 2048 x 2048 pixels and should not exceed 4 MB, while the + minimum image size is 50 x 50 pixels. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.ImageData + properties: + - language: + default: + name: content + description: The Base64 encoding of the image. + protocol: {} + schema: &ref_13 + language: + default: + name: bytes + description: Represent a byte array + protocol: {} + type: byte-array + format: byte + serializedName: content + required: false + nullable: false + readOnly: false + - language: + default: + name: blobUrl + description: The blob url of the image. + protocol: {} + schema: &ref_14 + language: + default: + name: url + description: >- + Represent a URL string as described by + https://url.spec.whatwg.org/ + protocol: {} + type: uri + serializedName: blobUrl + required: false + nullable: false + readOnly: false + usage: + - input + - public + serializedName: image + required: true + nullable: false + readOnly: false + - language: + default: + name: categories + description: >- + The categories will be analyzed. If they are not assigned, a + default set of analysis results for the categories will be + returned. + protocol: {} + schema: &ref_19 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_3 + language: + default: + name: ImageCategory + description: The harm category supported in Image content analysis. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: choice + choiceType: *ref_1 + choices: + - value: Hate + language: + default: + name: Hate + description: The harm category for Image - Hate. + - value: SelfHarm + language: + default: + name: SelfHarm + description: The harm category for Image - SelfHarm. + - value: Sexual + language: + default: + name: Sexual + description: The harm category for Image - Sexual. + - value: Violence + language: + default: + name: Violence + description: The harm category for Image - Violence. + crossLanguageDefinitionId: ContentSafety.ImageCategory + usage: + - input + - public + - output + nullableItems: false + serializedName: categories + required: false + nullable: false + readOnly: false + - language: + default: + name: outputType + description: >- + This refers to the type of image analysis output. If no value is + assigned, the default value will be "FourSeverityLevels". + protocol: {} + schema: &ref_17 + language: + default: + name: AnalyzeImageOutputType + description: The type of image analysis output. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: choice + choiceType: *ref_1 + choices: + - value: FourSeverityLevels + language: + default: + name: FourSeverityLevels + description: >- + Output severities in four levels, the value could be + 0,2,4,6. + crossLanguageDefinitionId: ContentSafety.AnalyzeImageOutputType + usage: + - input + - public + serializedName: outputType + required: false + nullable: false + readOnly: false + usage: + - input + - public + - *ref_2 + - &ref_38 + language: + default: + name: AnalyzeImageResult + description: The image analysis response. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AnalyzeImageResult + properties: + - language: + default: + name: categoriesAnalysis + description: Analysis result for categories. + protocol: {} + schema: &ref_20 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_4 + language: + default: + name: ImageCategoriesAnalysis + description: Image analysis result. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.ImageCategoriesAnalysis + properties: + - language: + default: + name: category + description: The image analysis category. + protocol: {} + schema: *ref_3 + serializedName: category + required: true + nullable: false + readOnly: false + - language: + default: + name: severity + description: >- + The value increases with the severity of the input + content. The value of this field is determined by the + output type specified in the request. The output type + could be ‘FourSeverityLevels’, and the output value can + be 0, 2, 4, 6. + protocol: {} + schema: &ref_8 + language: + default: + name: int32 + description: >- + A 32-bit integer. (`-2,147,483,648` to + `2,147,483,647`) + protocol: {} + type: integer + precision: 32 + serializedName: severity + required: false + nullable: false + readOnly: false + usage: + - output + - public + nullableItems: false + serializedName: categoriesAnalysis + required: true + nullable: false + readOnly: false + usage: + - output + - public + - *ref_4 + - &ref_40 + language: + default: + name: ErrorResponse + description: A response containing error details. + namespace: Azure.Core.Foundations + java: + namespace: azure.core.foundations + protocol: {} + type: object + crossLanguageDefinitionId: Azure.Core.Foundations.ErrorResponse + properties: + - language: + default: + name: error + description: The error object. + protocol: {} + schema: &ref_5 + language: + default: + name: Error + description: The error object. + namespace: Azure.Core.Foundations + java: + namespace: azure.core.foundations + protocol: {} + type: object + crossLanguageDefinitionId: Azure.Core.Foundations.Error + properties: + - language: + default: + name: code + description: One of a server-defined set of error codes. + protocol: {} + schema: *ref_1 + serializedName: code + required: true + nullable: false + readOnly: false + - language: + default: + name: message + description: A human-readable representation of the error. + protocol: {} + schema: *ref_1 + serializedName: message + required: true + nullable: false + readOnly: false + - language: + default: + name: target + description: The target of the error. + protocol: {} + schema: *ref_1 + serializedName: target + required: false + nullable: false + readOnly: false + - language: + default: + name: details + description: >- + An array of details about specific errors that led to this + reported error. + protocol: {} + schema: &ref_21 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_5 + nullableItems: false + serializedName: details + required: false + nullable: false + readOnly: false + - language: + default: + name: innererror + description: >- + An object containing more specific information than the + current object about the error. + protocol: {} + schema: &ref_6 + language: + default: + name: InnerError + description: >- + An object containing more specific information about the + error. As per Microsoft One API guidelines - + https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. + namespace: Azure.Core.Foundations + java: + namespace: azure.core.foundations + protocol: {} + type: object + crossLanguageDefinitionId: Azure.Core.Foundations.InnerError + properties: + - language: + default: + name: code + description: One of a server-defined set of error codes. + protocol: {} + schema: *ref_1 + serializedName: code + required: false + nullable: false + readOnly: false + - language: + default: + name: innererror + description: Inner error. + protocol: {} + schema: *ref_6 + serializedName: innererror + required: false + nullable: false + readOnly: false + usage: + - exception + serializedName: innererror + required: false + nullable: false + readOnly: false + usage: + - exception + serializedName: error + required: true + nullable: false + readOnly: false + usage: + - exception + - *ref_5 + - *ref_6 + - &ref_45 + language: + default: + name: AnalyzeTextOptions + description: The text analysis request. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AnalyzeTextOptions + properties: + - language: + default: + name: text + description: >- + The text to be analyzed. We support a maximum of 10k Unicode + characters (Unicode code points) in the text of one request. + protocol: {} + schema: *ref_1 + serializedName: text + required: true + nullable: false + readOnly: false + - language: + default: + name: categories + description: >- + The categories will be analyzed. If they are not assigned, a + default set of analysis results for the categories will be + returned. + protocol: {} + schema: &ref_22 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_7 + language: + default: + name: TextCategory + description: The harm category supported in Text content analysis. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: choice + choiceType: *ref_1 + choices: + - value: Hate + language: + default: + name: Hate + description: The harm category for Text - Hate. + - value: SelfHarm + language: + default: + name: SelfHarm + description: The harm category for Text - SelfHarm. + - value: Sexual + language: + default: + name: Sexual + description: The harm category for Text - Sexual. + - value: Violence + language: + default: + name: Violence + description: The harm category for Text - Violence. + crossLanguageDefinitionId: ContentSafety.TextCategory + usage: + - input + - public + - output + nullableItems: false + serializedName: categories + required: false + nullable: false + readOnly: false + - language: + default: + name: blocklistNames + description: The names of blocklists. + protocol: {} + schema: &ref_23 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_1 + nullableItems: false + serializedName: blocklistNames + required: false + nullable: false + readOnly: false + - language: + default: + name: haltOnBlocklistHit + description: >- + When set to true, further analyses of harmful content will not + be performed in cases where blocklists are hit. When set to + false, all analyses of harmful content will be performed, + whether or not blocklists are hit. + protocol: {} + schema: &ref_31 + language: + default: + name: boolean + description: Boolean with `true` and `false` values. + protocol: {} + type: boolean + serializedName: haltOnBlocklistHit + required: false + nullable: false + readOnly: false + - language: + default: + name: outputType + description: >- + This refers to the type of text analysis output. If no value is + assigned, the default value will be "FourSeverityLevels". + protocol: {} + schema: &ref_18 + language: + default: + name: AnalyzeTextOutputType + description: The type of text analysis output. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: choice + choiceType: *ref_1 + choices: + - value: FourSeverityLevels + language: + default: + name: FourSeverityLevels + description: >- + Output severities in four levels, the value could be + 0,2,4,6. + - value: EightSeverityLevels + language: + default: + name: EightSeverityLevels + description: >- + Output severities in eight levels, the value could be + 0,1,2,3,4,5,6,7. + crossLanguageDefinitionId: ContentSafety.AnalyzeTextOutputType + usage: + - input + - public + serializedName: outputType + required: false + nullable: false + readOnly: false + usage: + - input + - public + - &ref_47 + language: + default: + name: AnalyzeTextResult + description: The text analysis response. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AnalyzeTextResult + properties: + - language: + default: + name: blocklistsMatch + description: The blocklist match details. + protocol: {} + schema: &ref_24 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_9 + language: + default: + name: TextBlocklistMatch + description: The result of blocklist match. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.TextBlocklistMatch + properties: + - language: + default: + name: blocklistName + description: The name of the matched blocklist. + protocol: {} + schema: *ref_1 + serializedName: blocklistName + required: true + nullable: false + readOnly: false + - language: + default: + name: blocklistItemId + description: The ID of the matched item. + protocol: {} + schema: *ref_1 + serializedName: blocklistItemId + required: true + nullable: false + readOnly: false + - language: + default: + name: blocklistItemText + description: The content of the matched item. + protocol: {} + schema: *ref_1 + serializedName: blocklistItemText + required: true + nullable: false + readOnly: false + usage: + - output + - public + nullableItems: false + serializedName: blocklistsMatch + required: false + nullable: false + readOnly: false + - language: + default: + name: categoriesAnalysis + description: Analysis result for categories. + protocol: {} + schema: &ref_25 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_10 + language: + default: + name: TextCategoriesAnalysis + description: Text analysis result. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.TextCategoriesAnalysis + properties: + - language: + default: + name: category + description: The text analysis category. + protocol: {} + schema: *ref_7 + serializedName: category + required: true + nullable: false + readOnly: false + - language: + default: + name: severity + description: >- + The value increases with the severity of the input + content. The value of this field is determined by the + output type specified in the request. The output type + could be ‘FourSeverityLevels’ or ‘EightSeverity Levels’, + and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, + 5, 6, or 7. + protocol: {} + schema: *ref_8 + serializedName: severity + required: false + nullable: false + readOnly: false + usage: + - output + - public + nullableItems: false + serializedName: categoriesAnalysis + required: true + nullable: false + readOnly: false + usage: + - output + - public + - *ref_9 + - *ref_10 + - &ref_51 + language: + default: + name: AddOrUpdateTextBlocklistItemsOptions + description: The request to add blocklistItems to a text blocklist. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AddOrUpdateTextBlocklistItemsOptions + properties: + - language: + default: + name: blocklistItems + description: Array of blocklistItems to add. + protocol: {} + schema: &ref_26 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: &ref_11 + language: + default: + name: TextBlocklistItem + description: Item in a TextBlocklist. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.TextBlocklistItem + properties: + - language: + default: + name: blocklistItemId + description: >- + The service will generate a BlocklistItemId, which will + be a UUID. + protocol: {} + schema: *ref_1 + serializedName: blocklistItemId + required: true + nullable: false + readOnly: true + extensions: + x-ms-mutability: + - read + - language: + default: + name: description + description: BlocklistItem description. + protocol: {} + schema: *ref_1 + serializedName: description + required: false + nullable: false + readOnly: false + - language: + default: + name: text + description: >- + BlocklistItem content. The length is counted using + Unicode code point. + protocol: {} + schema: *ref_1 + serializedName: text + required: true + nullable: false + readOnly: false + usage: + - output + - public + - input + nullableItems: false + serializedName: blocklistItems + required: true + nullable: false + readOnly: false + usage: + - input + - public + - *ref_11 + - &ref_54 + language: + default: + name: AddOrUpdateTextBlocklistItemsResult + description: The response of adding blocklistItems to the text blocklist. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.AddOrUpdateTextBlocklistItemsResult + properties: + - language: + default: + name: blocklistItems + description: Array of blocklistItems have been added. + protocol: {} + schema: &ref_27 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_11 + nullableItems: false + serializedName: blocklistItems + required: true + nullable: false + readOnly: false + usage: + - output + - public + - &ref_12 + language: + default: + name: TextBlocklist + description: Text Blocklist. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.TextBlocklist + properties: + - language: + default: + name: name + description: Text blocklist name. + protocol: {} + schema: *ref_1 + serializedName: blocklistName + required: true + nullable: false + readOnly: true + extensions: + x-ms-mutability: + - create + - read + - language: + default: + name: description + description: Text blocklist description. + protocol: {} + schema: *ref_1 + serializedName: description + required: false + nullable: false + readOnly: false + usage: + - input + - public + - json-merge-patch + - output + - &ref_76 + language: + default: + name: PagedTextBlocklistItem + description: Paged collection of TextBlocklistItem items + namespace: Azure.Core.Foundations + java: + namespace: azure.core.foundations + protocol: {} + type: object + crossLanguageDefinitionId: Azure.Core.Foundations.CustomPage + properties: + - language: + default: + name: value + description: The TextBlocklistItem items on this page + protocol: {} + schema: &ref_28 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_11 + nullableItems: false + serializedName: value + required: true + nullable: false + readOnly: false + - language: + default: + name: nextLink + description: The link to the next page of items + protocol: {} + schema: &ref_15 + language: + default: + name: url + description: The location of an instance of TextBlocklistItem + protocol: {} + type: uri + serializedName: nextLink + required: false + nullable: false + readOnly: false + usage: + - output + - public + - paged + - &ref_78 + language: + default: + name: PagedTextBlocklist + description: Paged collection of TextBlocklist items + namespace: Azure.Core.Foundations + java: + namespace: azure.core.foundations + protocol: {} + type: object + crossLanguageDefinitionId: Azure.Core.Foundations.CustomPage + properties: + - language: + default: + name: value + description: The TextBlocklist items on this page + protocol: {} + schema: &ref_29 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_12 + nullableItems: false + serializedName: value + required: true + nullable: false + readOnly: false + - language: + default: + name: nextLink + description: The link to the next page of items + protocol: {} + schema: &ref_16 + language: + default: + name: url + description: The location of an instance of TextBlocklist + protocol: {} + type: uri + serializedName: nextLink + required: false + nullable: false + readOnly: false + usage: + - output + - public + - paged + - &ref_81 + language: + default: + name: RemoveTextBlocklistItemsOptions + description: The request to remove blocklistItems from a text blocklist. + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + type: object + crossLanguageDefinitionId: ContentSafety.RemoveTextBlocklistItemsOptions + properties: + - language: + default: + name: blocklistItemIds + description: Array of blocklistItemIds to remove. + protocol: {} + schema: &ref_30 + language: + default: + name: '' + description: '' + protocol: {} + type: array + elementType: *ref_1 + nullableItems: false + serializedName: blocklistItemIds + required: true + nullable: false + readOnly: false + usage: + - input + - public + byteArrays: + - *ref_13 + uris: + - *ref_14 + - *ref_15 + - *ref_16 + choices: + - *ref_3 + - *ref_17 + - *ref_7 + - *ref_18 + arrays: + - *ref_19 + - *ref_20 + - *ref_21 + - *ref_22 + - *ref_23 + - *ref_24 + - *ref_25 + - *ref_26 + - *ref_27 + - *ref_28 + - *ref_29 + - *ref_30 + numbers: + - *ref_8 + - &ref_68 + language: + default: + name: top + description: A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`) + protocol: {} + type: integer + precision: 32 + - &ref_69 + language: + default: + name: skip + description: A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`) + protocol: {} + type: integer + precision: 32 + - &ref_70 + language: + default: + name: maxpagesize + description: A 32-bit integer. (`-2,147,483,648` to `2,147,483,647`) + protocol: {} + type: integer + precision: 32 + booleans: + - *ref_31 +operationGroups: + - language: + default: + name: '' + description: '' + protocol: {} + $key: '' + operations: + - &ref_86 + language: + default: + name: analyzeImage + description: >- + A synchronous API for the analysis of potentially harmful image + content. Currently, it supports four categories: Hate, SelfHarm, + Sexual, and Violence. + protocol: {} + operationId: analyzeImage + summary: Analyze Image + extensions: + x-ms-examples: + Analyze Image: + title: Analyze Image + operationId: ImageOperations_AnalyzeImage + parameters: + api-version: '2023-10-01' + body: + image: + content: Y29udGVudDE= + responses: + '200': + body: + categoriesAnalysis: + - category: Hate + severity: 0 + - category: SelfHarm + severity: 0 + - category: Sexual + severity: 0 + - category: Violence + severity: 2 + x-ms-original-file: 2023-10-01/AnalyzeImage.json + crossLanguageDefinitionId: Customizations.ContentSafetyClient.analyzeImage + internalApi: false + convenienceApi: + language: + default: + name: analyzeImage + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /image:analyze + method: post + uri: '{endpoint}/contentsafety' + mediaTypes: + - application/json + parameters: + - &ref_41 + language: + default: + name: endpoint + description: >- + Supported Cognitive Services endpoints (protocol and hostname, + for example: + + https://.cognitiveservices.azure.com). + serializedName: endpoint + protocol: + http: + in: uri + schema: *ref_32 + implementation: Client + origin: modelerfour:synthesized/host + required: true + extensions: + x-ms-skip-url-encoding: false + - &ref_42 + language: + default: + name: api-version + description: Version parameter + serializedName: api-version + protocol: + http: + in: query + schema: *ref_33 + implementation: Client + origin: modelerfour:synthesized/api-version + required: true + - language: + default: + name: contentType + description: >- + Body parameter's content type. Known values are + application/json + serializedName: Content-Type + protocol: + http: + in: header + schema: *ref_34 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_35 + implementation: Method + required: true + nullable: false + - &ref_37 + language: + default: + name: options + description: The image analysis request. + protocol: + http: + in: body + schema: *ref_36 + implementation: Method + required: true + signatureParameters: + - *ref_37 + responses: + - language: + default: + name: analyzeImageResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_38 + exceptions: + - language: + default: + name: analyzeImageResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_87 + language: + default: + name: analyzeText + description: >- + A synchronous API for the analysis of potentially harmful text + content. Currently, it supports four categories: Hate, SelfHarm, + Sexual, and Violence. + protocol: {} + operationId: analyzeText + summary: Analyze Text + extensions: + x-ms-examples: + Analyze Text: + title: Analyze Text + operationId: TextOperations_AnalyzeText + parameters: + api-version: '2023-10-01' + body: + text: This is text example + responses: + '200': + body: + blocklistsMatch: [] + categoriesAnalysis: + - category: Hate + severity: 0 + - category: SelfHarm + severity: 0 + - category: Sexual + severity: 0 + - category: Violence + severity: 0 + x-ms-original-file: 2023-10-01/AnalyzeText.json + crossLanguageDefinitionId: Customizations.ContentSafetyClient.analyzeText + internalApi: false + convenienceApi: + language: + default: + name: analyzeText + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text:analyze + method: post + uri: '{endpoint}/contentsafety' + mediaTypes: + - application/json + parameters: + - *ref_41 + - *ref_42 + - language: + default: + name: contentType + description: >- + Body parameter's content type. Known values are + application/json + serializedName: Content-Type + protocol: + http: + in: header + schema: *ref_43 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_44 + implementation: Method + required: true + nullable: false + - &ref_46 + language: + default: + name: options + description: The text analysis request. + protocol: + http: + in: body + schema: *ref_45 + implementation: Method + required: true + signatureParameters: + - *ref_46 + responses: + - language: + default: + name: analyzeTextResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_47 + exceptions: + - language: + default: + name: analyzeTextResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_88 + language: + default: + name: addOrUpdateBlocklistItems + description: >- + Add or update blocklistItems to a text blocklist. You can add or + update at most 100 blocklistItems in one request. + protocol: {} + operationId: addOrUpdateBlocklistItems + summary: Add or update BlocklistItems To Text Blocklist + extensions: + x-ms-examples: + Add or Update BlocklistItems To Text Blocklist: + title: Add or Update BlocklistItems To Text Blocklist + operationId: TextBlocklists_AddOrUpdateBlocklistItems + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + body: + blocklistItems: + - description: Hate word + text: hate + responses: + '200': + body: + blocklistItems: + - blocklistItemId: 9511969e-f1e3-4604-9127-05ee16c509ec + description: Hate word + text: hate + x-ms-original-file: 2023-10-01/AddOrUpdateBlocklistItems.json + crossLanguageDefinitionId: Customizations.BlocklistClient.addOrUpdateBlocklistItems + internalApi: false + convenienceApi: + language: + default: + name: addOrUpdateBlocklistItems + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName}:addOrUpdateBlocklistItems + method: post + uri: '{endpoint}/contentsafety' + mediaTypes: + - application/json + parameters: + - &ref_55 + language: + default: + name: endpoint + description: >- + Supported Cognitive Services endpoints (protocol and hostname, + for example: + + https://.cognitiveservices.azure.com). + serializedName: endpoint + protocol: + http: + in: uri + schema: *ref_32 + implementation: Client + origin: modelerfour:synthesized/host + required: true + extensions: + x-ms-skip-url-encoding: false + - *ref_42 + - &ref_52 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - language: + default: + name: contentType + description: >- + Body parameter's content type. Known values are + application/json + serializedName: Content-Type + protocol: + http: + in: header + schema: *ref_49 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_50 + implementation: Method + required: true + nullable: false + - &ref_53 + language: + default: + name: options + description: Options for adding or updating blocklist items. + protocol: + http: + in: body + schema: *ref_51 + implementation: Method + required: true + signatureParameters: + - *ref_52 + - *ref_53 + responses: + - language: + default: + name: addOrUpdateBlocklistItemsResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_54 + exceptions: + - language: + default: + name: addOrUpdateBlocklistItemsResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_89 + language: + default: + name: createOrUpdateTextBlocklist + description: >- + Updates a text blocklist. If the blocklistName does not exist, a + new blocklist will be created. + protocol: {} + operationId: createOrUpdateTextBlocklist + summary: Create Or Update Text Blocklist + extensions: + x-ms-examples: + Create Or Update Text Blocklist: + title: Create Or Update Text Blocklist + operationId: TextBlocklists_CreateOrUpdateTextBlocklist + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + resource: + description: Test Blocklist + responses: + '200': + body: + blocklistName: TestBlocklist + description: Test Blocklist + '201': + body: + blocklistName: TestBlocklist + description: Test Blocklist + x-ms-original-file: 2023-10-01/CreateOrUpdateTextBlocklist.json + crossLanguageDefinitionId: Customizations.BlocklistClient.createOrUpdateTextBlocklist + internalApi: false + convenienceApi: + language: + default: + name: createOrUpdateTextBlocklist + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName} + method: patch + uri: '{endpoint}/contentsafety' + mediaTypes: + - application/merge-patch+json + parameters: + - *ref_55 + - *ref_42 + - &ref_58 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - language: + default: + name: contentType + description: This request has a JSON Merge Patch body. + serializedName: Content-Type + protocol: + http: + in: header + schema: *ref_56 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_57 + implementation: Method + required: true + nullable: false + - &ref_59 + language: + default: + name: options + description: The resource instance. + protocol: + http: + in: body + schema: *ref_12 + implementation: Method + required: true + signatureParameters: + - *ref_58 + - *ref_59 + responses: + - language: + default: + name: createOrUpdateTextBlocklistResponse + description: >- + The request has succeeded and a new resource has been created + as a result. + protocol: + http: + statusCodes: + - '201' + headers: [] + mediaTypes: + - application/json + schema: *ref_12 + - language: + default: + name: createOrUpdateTextBlocklistResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_12 + exceptions: + - language: + default: + name: createOrUpdateTextBlocklistResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_90 + language: + default: + name: deleteTextBlocklist + description: Deletes a text blocklist. + protocol: {} + operationId: deleteTextBlocklist + summary: Delete Text Blocklist By blocklistName + extensions: + x-ms-examples: + Delete Text Blocklist By blocklistName: + title: Delete Text Blocklist By blocklistName + operationId: TextBlocklists_DeleteTextBlocklist + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + responses: + '204': {} + x-ms-original-file: 2023-10-01/DeleteTextBlocklist.json + crossLanguageDefinitionId: Customizations.BlocklistClient.deleteTextBlocklist + internalApi: false + convenienceApi: + language: + default: + name: deleteTextBlocklist + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName} + method: delete + uri: '{endpoint}/contentsafety' + parameters: + - *ref_55 + - *ref_42 + - &ref_61 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_60 + implementation: Method + required: true + nullable: false + signatureParameters: + - *ref_61 + responses: + - language: + default: + name: deleteTextBlocklistResponse + description: >- + There is no content to send for this request, but the headers + may be useful. + protocol: + http: + statusCodes: + - '204' + headers: [] + exceptions: + - language: + default: + name: deleteTextBlocklistResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_91 + language: + default: + name: getTextBlocklist + description: Returns text blocklist details. + protocol: {} + operationId: getTextBlocklist + summary: Get Text Blocklist By blocklistName + extensions: + x-ms-examples: + Get Text Blocklist By blocklistName: + title: Get Text Blocklist By blocklistName + operationId: TextBlocklists_GetTextBlocklist + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + responses: + '200': + body: + blocklistName: TestBlocklist + description: Test Blocklist + x-ms-original-file: 2023-10-01/GetTextBlocklist.json + crossLanguageDefinitionId: Customizations.BlocklistClient.getTextBlocklist + internalApi: false + convenienceApi: + language: + default: + name: getTextBlocklist + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName} + method: get + uri: '{endpoint}/contentsafety' + parameters: + - *ref_55 + - *ref_42 + - &ref_63 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_62 + implementation: Method + required: true + nullable: false + signatureParameters: + - *ref_63 + responses: + - language: + default: + name: getTextBlocklistResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_12 + exceptions: + - language: + default: + name: getTextBlocklistResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_92 + language: + default: + name: getTextBlocklistItem + description: >- + Get blocklistItem by blocklistName and blocklistItemId from a text + blocklist. + protocol: {} + operationId: getTextBlocklistItem + summary: Get BlocklistItem By blocklistName And blocklistItemId + extensions: + x-ms-examples: + Get BlockItem By blocklistName And blocklistItemId: + title: Get BlockItem By blocklistName And blocklistItemId + operationId: TextBlocklists_GetTextBlocklistItem + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + blocklistItemId: 9511969e-f1e3-4604-9127-05ee16c509ec + responses: + '200': + body: + blocklistItemId: 9511969e-f1e3-4604-9127-05ee16c509ec + description: Hate word + text: hate + x-ms-original-file: 2023-10-01/GetTextBlocklistItem.json + crossLanguageDefinitionId: Customizations.BlocklistClient.getTextBlocklistItem + internalApi: false + convenienceApi: + language: + default: + name: getTextBlocklistItem + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: >- + /text/blocklists/{blocklistName}/blocklistItems/{blocklistItemId} + method: get + uri: '{endpoint}/contentsafety' + parameters: + - *ref_55 + - *ref_42 + - &ref_66 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - &ref_67 + language: + default: + name: blocklistItemId + description: >- + The service will generate a BlocklistItemId, which will be a + UUID. + serializedName: blocklistItemId + protocol: + http: + in: path + schema: *ref_64 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_65 + implementation: Method + required: true + nullable: false + signatureParameters: + - *ref_66 + - *ref_67 + responses: + - language: + default: + name: getTextBlocklistItemResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_11 + exceptions: + - language: + default: + name: getTextBlocklistItemResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_93 + language: + default: + name: listTextBlocklistItems + description: Get all blocklistItems in a text blocklist. + protocol: {} + operationId: listTextBlocklistItems + summary: Get All BlocklistItems By blocklistName + extensions: + x-ms-examples: + Get All BlockItems By blocklistName: + title: Get All BlockItems By blocklistName + operationId: TextBlocklists_ListTextBlocklistItems + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + responses: + '200': + body: + value: + - blocklistItemId: 9511969e-f1e3-4604-9127-05ee16c509ec + description: Hate word + text: hate + x-ms-original-file: 2023-10-01/ListTextBlocklistItems.json + x-ms-pageable: + itemName: value + nextLinkName: nextLink + crossLanguageDefinitionId: Customizations.BlocklistClient.listTextBlocklistItems + internalApi: false + convenienceApi: + language: + default: + name: listTextBlocklistItems + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName}/blocklistItems + method: get + uri: '{endpoint}/contentsafety' + parameters: + - *ref_55 + - *ref_42 + - &ref_72 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - &ref_73 + language: + default: + name: top + description: The number of result items to return. + serializedName: top + protocol: + http: + in: query + schema: *ref_68 + implementation: Method + required: false + nullable: false + - &ref_74 + language: + default: + name: skip + description: The number of result items to skip. + serializedName: skip + protocol: + http: + in: query + schema: *ref_69 + implementation: Method + required: false + nullable: false + - &ref_75 + language: + default: + name: maxpagesize + description: The maximum number of result items per page. + serializedName: maxpagesize + protocol: + http: + in: query + schema: *ref_70 + implementation: Method + required: false + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_71 + implementation: Method + required: true + nullable: false + signatureParameters: + - *ref_72 + - *ref_73 + - *ref_74 + - *ref_75 + responses: + - language: + default: + name: listTextBlocklistItemsResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_76 + exceptions: + - language: + default: + name: listTextBlocklistItemsResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_94 + language: + default: + name: listTextBlocklists + description: Get all text blocklists details. + protocol: {} + operationId: listTextBlocklists + summary: Get All Text Blocklists + extensions: + x-ms-examples: + Get All Text Blocklists: + title: Get All Text Blocklists + operationId: TextBlocklists_ListTextBlocklists + parameters: + api-version: '2023-10-01' + responses: + '200': + body: + value: + - blocklistName: TestBlocklist + description: Test Blocklist + x-ms-original-file: 2023-10-01/ListTextBlocklists.json + x-ms-pageable: + itemName: value + nextLinkName: nextLink + crossLanguageDefinitionId: Customizations.BlocklistClient.listTextBlocklists + internalApi: false + convenienceApi: + language: + default: + name: listTextBlocklists + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists + method: get + uri: '{endpoint}/contentsafety' + parameters: + - *ref_55 + - *ref_42 + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_77 + implementation: Method + required: true + nullable: false + signatureParameters: [] + responses: + - language: + default: + name: listTextBlocklistsResponse + description: The request has succeeded. + protocol: + http: + statusCodes: + - '200' + headers: [] + mediaTypes: + - application/json + schema: *ref_78 + exceptions: + - language: + default: + name: listTextBlocklistsResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 + - &ref_95 + language: + default: + name: removeBlocklistItems + description: >- + Remove blocklistItems from a text blocklist. You can remove at + most 100 BlocklistItems in one request. + protocol: {} + operationId: removeBlocklistItems + summary: Remove BlocklistItems From Text Blocklist + extensions: + x-ms-examples: + Remove BlockItems From Text Blocklist: + title: Remove BlockItems From Text Blocklist + operationId: TextBlocklists_RemoveBlocklistItems + parameters: + api-version: '2023-10-01' + blocklistName: TestBlocklist + body: + blocklistItemIds: + - 9511969e-f1e3-4604-9127-05ee16c509ec + responses: + '204': {} + x-ms-original-file: 2023-10-01/RemoveBlocklistItems.json + crossLanguageDefinitionId: Customizations.BlocklistClient.removeBlocklistItems + internalApi: false + convenienceApi: + language: + default: + name: removeBlocklistItems + description: '' + protocol: {} + generateProtocolApi: true + requests: + - language: + default: + name: '' + description: '' + protocol: + http: + path: /text/blocklists/{blocklistName}:removeBlocklistItems + method: post + uri: '{endpoint}/contentsafety' + mediaTypes: + - application/json + parameters: + - *ref_55 + - *ref_42 + - &ref_82 + language: + default: + name: name + description: Text blocklist name. + serializedName: blocklistName + protocol: + http: + in: path + schema: *ref_48 + implementation: Method + required: true + nullable: false + - language: + default: + name: contentType + description: >- + Body parameter's content type. Known values are + application/json + serializedName: Content-Type + protocol: + http: + in: header + schema: *ref_79 + implementation: Method + required: true + nullable: false + - language: + default: + name: accept + description: '' + serializedName: Accept + protocol: + http: + in: header + schema: *ref_80 + implementation: Method + required: true + nullable: false + - &ref_83 + language: + default: + name: options + description: Options for removing blocklist items. + protocol: + http: + in: body + schema: *ref_81 + implementation: Method + required: true + signatureParameters: + - *ref_82 + - *ref_83 + responses: + - language: + default: + name: removeBlocklistItemsResponse + description: >- + There is no content to send for this request, but the headers + may be useful. + protocol: + http: + statusCodes: + - '204' + headers: [] + exceptions: + - language: + default: + name: removeBlocklistItemsResponse + protocol: + http: + statusCodes: + - default + headers: + - header: x-ms-error-code + schema: *ref_39 + language: + default: + name: x-ms-error-code + description: String error code indicating what went wrong. + mediaTypes: + - application/json + schema: *ref_40 +security: + authenticationRequired: true + schemes: + - &ref_84 + type: Key + name: Ocp-Apim-Subscription-Key + - &ref_85 + type: OAuth2 + scopes: + - https://cognitiveservices.azure.com/.default +clients: + - language: + default: + name: ContentSafetyClient + description: '' + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + security: + authenticationRequired: true + schemes: + - *ref_84 + - *ref_85 + operationGroups: + - language: + default: + name: '' + description: '' + protocol: {} + $key: '' + operations: + - *ref_86 + - *ref_87 + crossLanguageDefinitionId: Customizations.ContentSafetyClient + apiVersions: + - version: '2023-10-01' + globalParameters: + - *ref_41 + - *ref_42 + serviceVersion: &ref_96 + language: + default: + name: ContentSafetyServiceVersion + description: ContentSafetyClient + protocol: {} + - language: + default: + name: BlocklistClient + description: '' + namespace: ContentSafety + java: + namespace: com.azure.ai.contentsafety + protocol: {} + security: + authenticationRequired: true + schemes: + - *ref_84 + - *ref_85 + operationGroups: + - language: + default: + name: '' + description: '' + protocol: {} + $key: '' + operations: + - *ref_88 + - *ref_89 + - *ref_90 + - *ref_91 + - *ref_92 + - *ref_93 + - *ref_94 + - *ref_95 + crossLanguageDefinitionId: Customizations.BlocklistClient + apiVersions: + - version: '2023-10-01' + globalParameters: + - *ref_55 + - *ref_42 + serviceVersion: *ref_96 +globalParameters: + - *ref_41 + - *ref_55 diff --git a/sdk/contentsafety/azure-ai-contentsafety/tsp-location.yaml b/sdk/contentsafety/azure-ai-contentsafety/tsp-location.yaml index 384b2c5d714fe..46944070fc12d 100644 --- a/sdk/contentsafety/azure-ai-contentsafety/tsp-location.yaml +++ b/sdk/contentsafety/azure-ai-contentsafety/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/cognitiveservices/ContentSafety -commit: a5b9c3a88dd231e855833fe4c3a6941b37e3c677 -additionalDirectories: [] +commit: 2194181c3afaff6de9996b273c1f0d749f85b7b0 repo: Azure/azure-rest-api-specs +additionalDirectories: