diff --git a/specification/cognitiveservices/ContentSafety/models.tsp b/specification/cognitiveservices/ContentSafety/models.tsp index 550e78073710..b5709cb1288f 100644 --- a/specification/cognitiveservices/ContentSafety/models.tsp +++ b/specification/cognitiveservices/ContentSafety/models.tsp @@ -401,7 +401,7 @@ model PreDefinedConcept { @doc("Label definition.") model LabelDefinition { label: int32; - scenarios: string[]; + enumerations: string[]; } @added(Versions.v2023_10_30_Preview) diff --git a/specification/cognitiveservices/ContentSafety/routes.tsp b/specification/cognitiveservices/ContentSafety/routes.tsp index b883e4bc177b..c31c07eef827 100644 --- a/specification/cognitiveservices/ContentSafety/routes.tsp +++ b/specification/cognitiveservices/ContentSafety/routes.tsp @@ -208,13 +208,18 @@ interface PromptTextOperations { >; } +interface CategoryOps + extends Azure.Core.ResourceOperations {} + @added(Versions.v2023_10_30_Preview) interface TextCategoryCustomization { - createOrReplaceTextCustomizedCategory is ResourceCreateOrReplace; + createOrReplaceTextCustomizedCategory is CategoryOps.ResourceCreateOrReplace; - getTextCustomizedCategory is ResourceRead; + getTextCustomizedCategory is CategoryOps.ResourceRead; - deleteTextCustomizedCategory is ResourceDelete; + deleteTextCustomizedCategory is CategoryOps.ResourceDelete; } @added(Versions.v2023_10_30_Preview) diff --git a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-30-preview/contentsafety.json b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-30-preview/contentsafety.json index 809882dc1400..0c70d56768a4 100644 --- a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-30-preview/contentsafety.json +++ b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-30-preview/contentsafety.json @@ -876,7 +876,7 @@ "/text/categories/{categoryName}": { "get": { "operationId": "TextCategoryCustomization_GetTextCustomizedCategory", - "description": "DEPRECATED: Use `ResourceRead` from a `ResourceOperations` interface instance.\nThis can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations;`.\nSee https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.\n\nOperation signature to retrieve a resource.", + "description": "Resource read operation template.", "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" @@ -914,7 +914,7 @@ }, "put": { "operationId": "TextCategoryCustomization_CreateOrReplaceTextCustomizedCategory", - "description": "DEPRECATED: Use `ResourceCreateOrReplace` from a `ResourceOperations` interface instance.\nThis can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations;`.\nSee https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.\n\nOperation signature to create or replace a resource.", + "description": "Create or replace operation template.", "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" @@ -967,7 +967,7 @@ }, "delete": { "operationId": "TextCategoryCustomization_DeleteTextCustomizedCategory", - "description": "DEPRECATED: Use `ResourceDelete` from a `ResourceOperations` interface instance.\nThis can be done by instantiating your own version with the traits you want `alias Operations = Azure.Core.ResourceOperations;`.\nSee https://azure.github.io/typespec-azure/docs/getstarted/azure-core/step05#defining-the-operation-interface for details on how to use.\n\nOperation signature to delete a resource.", + "description": "Resource delete operation template.", "parameters": [ { "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" @@ -2099,7 +2099,7 @@ "type": "integer", "format": "int32" }, - "scenarios": { + "enumerations": { "type": "array", "items": { "type": "string" @@ -2108,7 +2108,7 @@ }, "required": [ "label", - "scenarios" + "enumerations" ] }, "ListImageIncidentSampleResult": {