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

scenarios to enumerations #19

Merged
merged 2 commits into from
Oct 27, 2023
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
2 changes: 1 addition & 1 deletion specification/cognitiveservices/ContentSafety/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ model PreDefinedConcept {
@doc("Label definition.")
model LabelDefinition {
label: int32;
scenarios: string[];
enumerations: string[];
}

@added(Versions.v2023_10_30_Preview)
Expand Down
11 changes: 8 additions & 3 deletions specification/cognitiveservices/ContentSafety/routes.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,18 @@ interface PromptTextOperations {
>;
}

interface CategoryOps
extends Azure.Core.ResourceOperations<NoRepeatableRequests &
NoConditionalRequests &
NoClientRequestId> {}

@added(Versions.v2023_10_30_Preview)
interface TextCategoryCustomization {
createOrReplaceTextCustomizedCategory is ResourceCreateOrReplace<TextCustomizedCategory>;
createOrReplaceTextCustomizedCategory is CategoryOps.ResourceCreateOrReplace<TextCustomizedCategory>;

getTextCustomizedCategory is ResourceRead<TextCustomizedCategory>;
getTextCustomizedCategory is CategoryOps.ResourceRead<TextCustomizedCategory>;

deleteTextCustomizedCategory is ResourceDelete<TextCustomizedCategory>;
deleteTextCustomizedCategory is CategoryOps.ResourceDelete<TextCustomizedCategory>;
}

@added(Versions.v2023_10_30_Preview)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<ServiceTraits>;`.\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"
Expand Down Expand Up @@ -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<ServiceTraits>;`.\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"
Expand Down Expand Up @@ -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<ServiceTraits>;`.\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"
Expand Down Expand Up @@ -2099,7 +2099,7 @@
"type": "integer",
"format": "int32"
},
"scenarios": {
"enumerations": {
"type": "array",
"items": {
"type": "string"
Expand All @@ -2108,7 +2108,7 @@
},
"required": [
"label",
"scenarios"
"enumerations"
]
},
"ListImageIncidentSampleResult": {
Expand Down