From 1c4be5e4ce8b9047541064c156fc1bad67e6f4cd Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Tue, 6 Feb 2024 23:13:25 +0000 Subject: [PATCH] React to "Fix: Inline enums properties with default values" - Azure/typespec-azure#152 --- .../DocumentIntelligence.json | 42 ++- .../preview/2023-06-01-preview/generated.json | 94 +++-- .../preview/2023-07-01-preview/generated.json | 94 +++-- .../preview/2023-08-01-preview/generated.json | 94 +++-- .../preview/2023-09-01-preview/generated.json | 94 +++-- .../preview/2023-12-01-preview/generated.json | 226 ++++++------ .../2023-10-15-preview/contentsafety.json | 84 ++--- .../stable/2023-10-01/contentsafety.json | 84 ++--- .../2023-10-04-preview/iotoperationsmq.json | 324 ++++++++++++++++-- .../2023-04-01-preview/loadtestservice.json | 48 ++- .../stable/2022-11-01/loadtestservice.json | 48 ++- .../2023-10-01-preview/playwrighttesting.json | 90 +++-- .../2024-02-01-preview/playwrighttesting.json | 168 +++++++-- 13 files changed, 936 insertions(+), 554 deletions(-) diff --git a/specification/ai/data-plane/DocumentIntelligence/preview/2023-10-31-preview/DocumentIntelligence.json b/specification/ai/data-plane/DocumentIntelligence/preview/2023-10-31-preview/DocumentIntelligence.json index 01140fbdffaa..5c679e964d11 100644 --- a/specification/ai/data-plane/DocumentIntelligence/preview/2023-10-31-preview/DocumentIntelligence.json +++ b/specification/ai/data-plane/DocumentIntelligence/preview/2023-10-31-preview/DocumentIntelligence.json @@ -3136,9 +3136,47 @@ "description": "An object representing the location and content of a table cell.", "properties": { "kind": { - "$ref": "#/definitions/DocumentTableCellKind", + "type": "string", "description": "Table cell kind.", - "default": "content" + "default": "content", + "enum": [ + "content", + "rowHeader", + "columnHeader", + "stubHead", + "description" + ], + "x-ms-enum": { + "name": "DocumentTableCellKind", + "modelAsString": true, + "values": [ + { + "name": "content", + "value": "content", + "description": "Contains the main content/data." + }, + { + "name": "rowHeader", + "value": "rowHeader", + "description": "Describes the content of the row." + }, + { + "name": "columnHeader", + "value": "columnHeader", + "description": "Describes the content of the column." + }, + { + "name": "stubHead", + "value": "stubHead", + "description": "Describes the row headers, usually located at the top left corner of a table." + }, + { + "name": "description", + "value": "description", + "description": "Describes the content in (parts of) the table." + } + ] + } }, "rowIndex": { "type": "integer", diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json index 22f163ead36b..3f188ba6762a 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-06-01-preview/generated.json @@ -1279,14 +1279,54 @@ "default": 1 }, "size": { - "$ref": "#/definitions/ImageSize", + "type": "string", "description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.", - "default": "1024x1024" + "default": "1024x1024", + "enum": [ + "256x256", + "512x512" + ], + "x-ms-enum": { + "name": "ImageSize", + "modelAsString": true, + "values": [ + { + "name": "size256x256", + "value": "256x256", + "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size512x512", + "value": "512x512", + "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." + } + ] + } }, "response_format": { - "$ref": "#/definitions/ImageGenerationResponseFormat", + "type": "string", "description": "The format in which image generation response items should be presented.", "default": "url", + "enum": [ + "url", + "b64_json" + ], + "x-ms-enum": { + "name": "ImageGenerationResponseFormat", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Image generation response items should provide a URL from which the image may be retrieved." + }, + { + "name": "base64", + "value": "b64_json", + "description": "Image generation response items should provide image data as a base64-encoded string." + } + ] + }, "x-ms-client-name": "responseFormat" }, "user": { @@ -1298,30 +1338,6 @@ "prompt" ] }, - "ImageGenerationResponseFormat": { - "type": "string", - "description": "The format in which the generated images are returned.", - "enum": [ - "url", - "b64_json" - ], - "x-ms-enum": { - "name": "ImageGenerationResponseFormat", - "modelAsString": true, - "values": [ - { - "name": "url", - "value": "url", - "description": "Image generation response items should provide a URL from which the image may be retrieved." - }, - { - "name": "base64", - "value": "b64_json", - "description": "Image generation response items should provide image data as a base64-encoded string." - } - ] - } - }, "ImageGenerations": { "type": "object", "description": "The result of a successful image generation operation.", @@ -1344,30 +1360,6 @@ "created", "data" ] - }, - "ImageSize": { - "type": "string", - "description": "The desired size of generated images.", - "enum": [ - "256x256", - "512x512" - ], - "x-ms-enum": { - "name": "ImageSize", - "modelAsString": true, - "values": [ - { - "name": "size256x256", - "value": "256x256", - "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size512x512", - "value": "512x512", - "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." - } - ] - } } }, "parameters": { diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json index e27eaa74284b..683f2fd965dd 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-07-01-preview/generated.json @@ -1376,14 +1376,54 @@ "default": 1 }, "size": { - "$ref": "#/definitions/ImageSize", + "type": "string", "description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.", - "default": "1024x1024" + "default": "1024x1024", + "enum": [ + "256x256", + "512x512" + ], + "x-ms-enum": { + "name": "ImageSize", + "modelAsString": true, + "values": [ + { + "name": "size256x256", + "value": "256x256", + "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size512x512", + "value": "512x512", + "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." + } + ] + } }, "response_format": { - "$ref": "#/definitions/ImageGenerationResponseFormat", + "type": "string", "description": "The format in which image generation response items should be presented.", "default": "url", + "enum": [ + "url", + "b64_json" + ], + "x-ms-enum": { + "name": "ImageGenerationResponseFormat", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Image generation response items should provide a URL from which the image may be retrieved." + }, + { + "name": "base64", + "value": "b64_json", + "description": "Image generation response items should provide image data as a base64-encoded string." + } + ] + }, "x-ms-client-name": "responseFormat" }, "user": { @@ -1395,30 +1435,6 @@ "prompt" ] }, - "ImageGenerationResponseFormat": { - "type": "string", - "description": "The format in which the generated images are returned.", - "enum": [ - "url", - "b64_json" - ], - "x-ms-enum": { - "name": "ImageGenerationResponseFormat", - "modelAsString": true, - "values": [ - { - "name": "url", - "value": "url", - "description": "Image generation response items should provide a URL from which the image may be retrieved." - }, - { - "name": "base64", - "value": "b64_json", - "description": "Image generation response items should provide image data as a base64-encoded string." - } - ] - } - }, "ImageGenerations": { "type": "object", "description": "The result of a successful image generation operation.", @@ -1441,30 +1457,6 @@ "created", "data" ] - }, - "ImageSize": { - "type": "string", - "description": "The desired size of generated images.", - "enum": [ - "256x256", - "512x512" - ], - "x-ms-enum": { - "name": "ImageSize", - "modelAsString": true, - "values": [ - { - "name": "size256x256", - "value": "256x256", - "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size512x512", - "value": "512x512", - "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." - } - ] - } } }, "parameters": { diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json index c0f9d5fcecec..eb5f8ec271b7 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-08-01-preview/generated.json @@ -1660,14 +1660,54 @@ "default": 1 }, "size": { - "$ref": "#/definitions/ImageSize", + "type": "string", "description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.", - "default": "1024x1024" + "default": "1024x1024", + "enum": [ + "256x256", + "512x512" + ], + "x-ms-enum": { + "name": "ImageSize", + "modelAsString": true, + "values": [ + { + "name": "size256x256", + "value": "256x256", + "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size512x512", + "value": "512x512", + "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." + } + ] + } }, "response_format": { - "$ref": "#/definitions/ImageGenerationResponseFormat", + "type": "string", "description": "The format in which image generation response items should be presented.", "default": "url", + "enum": [ + "url", + "b64_json" + ], + "x-ms-enum": { + "name": "ImageGenerationResponseFormat", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Image generation response items should provide a URL from which the image may be retrieved." + }, + { + "name": "base64", + "value": "b64_json", + "description": "Image generation response items should provide image data as a base64-encoded string." + } + ] + }, "x-ms-client-name": "responseFormat" }, "user": { @@ -1679,30 +1719,6 @@ "prompt" ] }, - "ImageGenerationResponseFormat": { - "type": "string", - "description": "The format in which the generated images are returned.", - "enum": [ - "url", - "b64_json" - ], - "x-ms-enum": { - "name": "ImageGenerationResponseFormat", - "modelAsString": true, - "values": [ - { - "name": "url", - "value": "url", - "description": "Image generation response items should provide a URL from which the image may be retrieved." - }, - { - "name": "base64", - "value": "b64_json", - "description": "Image generation response items should provide image data as a base64-encoded string." - } - ] - } - }, "ImageGenerations": { "type": "object", "description": "The result of a successful image generation operation.", @@ -1726,30 +1742,6 @@ "data" ] }, - "ImageSize": { - "type": "string", - "description": "The desired size of generated images.", - "enum": [ - "256x256", - "512x512" - ], - "x-ms-enum": { - "name": "ImageSize", - "modelAsString": true, - "values": [ - { - "name": "size256x256", - "value": "256x256", - "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size512x512", - "value": "512x512", - "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." - } - ] - } - }, "OnYourDataAccessTokenAuthenticationOptions": { "type": "object", "description": "The authentication options for Azure OpenAI On Your Data when using access token.", diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/generated.json index 388e334b38ba..3ef96eced1cc 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-09-01-preview/generated.json @@ -2291,14 +2291,54 @@ "default": 1 }, "size": { - "$ref": "#/definitions/ImageSize", + "type": "string", "description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.", - "default": "1024x1024" + "default": "1024x1024", + "enum": [ + "256x256", + "512x512" + ], + "x-ms-enum": { + "name": "ImageSize", + "modelAsString": true, + "values": [ + { + "name": "size256x256", + "value": "256x256", + "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size512x512", + "value": "512x512", + "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." + } + ] + } }, "response_format": { - "$ref": "#/definitions/ImageGenerationResponseFormat", + "type": "string", "description": "The format in which image generation response items should be presented.", "default": "url", + "enum": [ + "url", + "b64_json" + ], + "x-ms-enum": { + "name": "ImageGenerationResponseFormat", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Image generation response items should provide a URL from which the image may be retrieved." + }, + { + "name": "base64", + "value": "b64_json", + "description": "Image generation response items should provide image data as a base64-encoded string." + } + ] + }, "x-ms-client-name": "responseFormat" }, "user": { @@ -2310,30 +2350,6 @@ "prompt" ] }, - "ImageGenerationResponseFormat": { - "type": "string", - "description": "The format in which the generated images are returned.", - "enum": [ - "url", - "b64_json" - ], - "x-ms-enum": { - "name": "ImageGenerationResponseFormat", - "modelAsString": true, - "values": [ - { - "name": "url", - "value": "url", - "description": "Image generation response items should provide a URL from which the image may be retrieved." - }, - { - "name": "base64", - "value": "b64_json", - "description": "Image generation response items should provide image data as a base64-encoded string." - } - ] - } - }, "ImageGenerations": { "type": "object", "description": "The result of a successful image generation operation.", @@ -2357,30 +2373,6 @@ "data" ] }, - "ImageSize": { - "type": "string", - "description": "The desired size of generated images.", - "enum": [ - "256x256", - "512x512" - ], - "x-ms-enum": { - "name": "ImageSize", - "modelAsString": true, - "values": [ - { - "name": "size256x256", - "value": "256x256", - "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size512x512", - "value": "512x512", - "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." - } - ] - } - }, "OnYourDataAccessTokenAuthenticationOptions": { "type": "object", "description": "The authentication options for Azure OpenAI On Your Data when using access token.", diff --git a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/generated.json b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/generated.json index e217f2baeaa7..74add800f99a 100644 --- a/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/generated.json +++ b/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/generated.json @@ -2944,25 +2944,123 @@ "default": 1 }, "size": { - "$ref": "#/definitions/ImageSize", + "type": "string", "description": "The desired dimensions for generated images.\nDall-e-2 models support 256x256, 512x512, or 1024x1024.\nDall-e-3 models support 1024x1024, 1792x1024, or 1024x1792.", - "default": "1024x1024" + "default": "1024x1024", + "enum": [ + "256x256", + "512x512", + "1024x1024", + "1792x1024", + "1024x1792" + ], + "x-ms-enum": { + "name": "ImageSize", + "modelAsString": true, + "values": [ + { + "name": "size256x256", + "value": "256x256", + "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size512x512", + "value": "512x512", + "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." + }, + { + "name": "size1024x1024", + "value": "1024x1024", + "description": "A standard, square image size of 1024x1024 pixels.\nSupported by both dall-e-2 and dall-e-3 models." + }, + { + "name": "size1792x1024", + "value": "1792x1024", + "description": "A wider image size of 1024x1792 pixels.\nOnly supported with dall-e-3 models." + }, + { + "name": "size1024x1792", + "value": "1024x1792", + "description": "A taller image size of 1792x1024 pixels.\nOnly supported with dall-e-3 models." + } + ] + } }, "response_format": { - "$ref": "#/definitions/ImageGenerationResponseFormat", + "type": "string", "description": "The format in which image generation response items should be presented.", "default": "url", + "enum": [ + "url", + "b64_json" + ], + "x-ms-enum": { + "name": "ImageGenerationResponseFormat", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Image generation response items should provide a URL from which the image may be retrieved." + }, + { + "name": "base64", + "value": "b64_json", + "description": "Image generation response items should provide image data as a base64-encoded string." + } + ] + }, "x-ms-client-name": "responseFormat" }, "quality": { - "$ref": "#/definitions/ImageGenerationQuality", + "type": "string", "description": "The desired image generation quality level to use.\nOnly configurable with dall-e-3 models.", - "default": "standard" + "default": "standard", + "enum": [ + "standard", + "hd" + ], + "x-ms-enum": { + "name": "ImageGenerationQuality", + "modelAsString": true, + "values": [ + { + "name": "standard", + "value": "standard", + "description": "Requests image generation with standard, balanced characteristics of quality, cost, and speed." + }, + { + "name": "hd", + "value": "hd", + "description": "Requests image generation with higher quality, higher cost and lower speed relative to standard." + } + ] + } }, "style": { - "$ref": "#/definitions/ImageGenerationStyle", + "type": "string", "description": "The desired image generation style to use.\nOnly configurable with dall-e-3 models.", - "default": "vivid" + "default": "vivid", + "enum": [ + "natural", + "vivid" + ], + "x-ms-enum": { + "name": "ImageGenerationStyle", + "modelAsString": true, + "values": [ + { + "name": "natural", + "value": "natural", + "description": "Requests image generation in a natural style with less preference for dramatic and hyper-realistic characteristics." + }, + { + "name": "vivid", + "value": "vivid", + "description": "Requests image generation in a vivid style with a higher preference for dramatic and hyper-realistic\ncharacteristics." + } + ] + } }, "user": { "type": "string", @@ -2973,78 +3071,6 @@ "prompt" ] }, - "ImageGenerationQuality": { - "type": "string", - "description": "An image generation configuration that specifies how the model should prioritize quality, cost, and speed.\nOnly configurable with dall-e-3 models.", - "enum": [ - "standard", - "hd" - ], - "x-ms-enum": { - "name": "ImageGenerationQuality", - "modelAsString": true, - "values": [ - { - "name": "standard", - "value": "standard", - "description": "Requests image generation with standard, balanced characteristics of quality, cost, and speed." - }, - { - "name": "hd", - "value": "hd", - "description": "Requests image generation with higher quality, higher cost and lower speed relative to standard." - } - ] - } - }, - "ImageGenerationResponseFormat": { - "type": "string", - "description": "The format in which the generated images are returned.", - "enum": [ - "url", - "b64_json" - ], - "x-ms-enum": { - "name": "ImageGenerationResponseFormat", - "modelAsString": true, - "values": [ - { - "name": "url", - "value": "url", - "description": "Image generation response items should provide a URL from which the image may be retrieved." - }, - { - "name": "base64", - "value": "b64_json", - "description": "Image generation response items should provide image data as a base64-encoded string." - } - ] - } - }, - "ImageGenerationStyle": { - "type": "string", - "description": "An image generation configuration that specifies how the model should incorporate realism and other visual characteristics.\nOnly configurable with dall-e-3 models.", - "enum": [ - "natural", - "vivid" - ], - "x-ms-enum": { - "name": "ImageGenerationStyle", - "modelAsString": true, - "values": [ - { - "name": "natural", - "value": "natural", - "description": "Requests image generation in a natural style with less preference for dramatic and hyper-realistic characteristics." - }, - { - "name": "vivid", - "value": "vivid", - "description": "Requests image generation in a vivid style with a higher preference for dramatic and hyper-realistic\ncharacteristics." - } - ] - } - }, "ImageGenerations": { "type": "object", "description": "The result of a successful image generation operation.", @@ -3068,48 +3094,6 @@ "data" ] }, - "ImageSize": { - "type": "string", - "description": "The desired size of generated images.", - "enum": [ - "256x256", - "512x512", - "1024x1024", - "1792x1024", - "1024x1792" - ], - "x-ms-enum": { - "name": "ImageSize", - "modelAsString": true, - "values": [ - { - "name": "size256x256", - "value": "256x256", - "description": "Very small image size of 256x256 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size512x512", - "value": "512x512", - "description": "A smaller image size of 512x512 pixels.\nOnly supported with dall-e-2 models." - }, - { - "name": "size1024x1024", - "value": "1024x1024", - "description": "A standard, square image size of 1024x1024 pixels.\nSupported by both dall-e-2 and dall-e-3 models." - }, - { - "name": "size1792x1024", - "value": "1792x1024", - "description": "A wider image size of 1024x1792 pixels.\nOnly supported with dall-e-3 models." - }, - { - "name": "size1024x1792", - "value": "1024x1792", - "description": "A taller image size of 1792x1024 pixels.\nOnly supported with dall-e-3 models." - } - ] - } - }, "MaxTokensFinishDetails": { "type": "object", "description": "A structured representation of a stop reason that signifies a token limit was reached before the model could naturally\ncomplete.", diff --git a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-15-preview/contentsafety.json b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-15-preview/contentsafety.json index eb8fdc2afe79..be08e80f52de 100644 --- a/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-15-preview/contentsafety.json +++ b/specification/cognitiveservices/data-plane/ContentSafety/preview/2023-10-15-preview/contentsafety.json @@ -703,33 +703,29 @@ } }, "outputType": { - "$ref": "#/definitions/AnalyzeImageOutputType", + "type": "string", "description": "This refers to the type of image analysis output. If no value is assigned, the default value will be \"FourSeverityLevels\".", - "default": "FourSeverityLevels" + "default": "FourSeverityLevels", + "enum": [ + "FourSeverityLevels" + ], + "x-ms-enum": { + "name": "AnalyzeImageOutputType", + "modelAsString": true, + "values": [ + { + "name": "FourSeverityLevels", + "value": "FourSeverityLevels", + "description": "Output severities in four levels, the value could be 0,2,4,6." + } + ] + } } }, "required": [ "image" ] }, - "AnalyzeImageOutputType": { - "type": "string", - "description": "The type of image analysis output.", - "enum": [ - "FourSeverityLevels" - ], - "x-ms-enum": { - "name": "AnalyzeImageOutputType", - "modelAsString": true, - "values": [ - { - "name": "FourSeverityLevels", - "value": "FourSeverityLevels", - "description": "Output severities in four levels, the value could be 0,2,4,6." - } - ] - } - }, "AnalyzeImageResult": { "type": "object", "description": "The image analysis response.", @@ -802,39 +798,35 @@ "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." }, "outputType": { - "$ref": "#/definitions/AnalyzeTextOutputType", + "type": "string", "description": "This refers to the type of text analysis output. If no value is assigned, the default value will be \"FourSeverityLevels\".", - "default": "FourSeverityLevels" + "default": "FourSeverityLevels", + "enum": [ + "FourSeverityLevels", + "EightSeverityLevels" + ], + "x-ms-enum": { + "name": "AnalyzeTextOutputType", + "modelAsString": true, + "values": [ + { + "name": "FourSeverityLevels", + "value": "FourSeverityLevels", + "description": "Output severities in four levels, the value could be 0,2,4,6." + }, + { + "name": "EightSeverityLevels", + "value": "EightSeverityLevels", + "description": "Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7." + } + ] + } } }, "required": [ "text" ] }, - "AnalyzeTextOutputType": { - "type": "string", - "description": "The type of text analysis output.", - "enum": [ - "FourSeverityLevels", - "EightSeverityLevels" - ], - "x-ms-enum": { - "name": "AnalyzeTextOutputType", - "modelAsString": true, - "values": [ - { - "name": "FourSeverityLevels", - "value": "FourSeverityLevels", - "description": "Output severities in four levels, the value could be 0,2,4,6." - }, - { - "name": "EightSeverityLevels", - "value": "EightSeverityLevels", - "description": "Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7." - } - ] - } - }, "AnalyzeTextProtectedMaterialOptions": { "type": "object", "description": "The protected material analysis request.", diff --git a/specification/cognitiveservices/data-plane/ContentSafety/stable/2023-10-01/contentsafety.json b/specification/cognitiveservices/data-plane/ContentSafety/stable/2023-10-01/contentsafety.json index cb948159aa62..27e23e2ac082 100644 --- a/specification/cognitiveservices/data-plane/ContentSafety/stable/2023-10-01/contentsafety.json +++ b/specification/cognitiveservices/data-plane/ContentSafety/stable/2023-10-01/contentsafety.json @@ -611,33 +611,29 @@ } }, "outputType": { - "$ref": "#/definitions/AnalyzeImageOutputType", + "type": "string", "description": "This refers to the type of image analysis output. If no value is assigned, the default value will be \"FourSeverityLevels\".", - "default": "FourSeverityLevels" + "default": "FourSeverityLevels", + "enum": [ + "FourSeverityLevels" + ], + "x-ms-enum": { + "name": "AnalyzeImageOutputType", + "modelAsString": true, + "values": [ + { + "name": "FourSeverityLevels", + "value": "FourSeverityLevels", + "description": "Output severities in four levels, the value could be 0,2,4,6." + } + ] + } } }, "required": [ "image" ] }, - "AnalyzeImageOutputType": { - "type": "string", - "description": "The type of image analysis output.", - "enum": [ - "FourSeverityLevels" - ], - "x-ms-enum": { - "name": "AnalyzeImageOutputType", - "modelAsString": true, - "values": [ - { - "name": "FourSeverityLevels", - "value": "FourSeverityLevels", - "description": "Output severities in four levels, the value could be 0,2,4,6." - } - ] - } - }, "AnalyzeImageResult": { "type": "object", "description": "The image analysis response.", @@ -683,39 +679,35 @@ "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." }, "outputType": { - "$ref": "#/definitions/AnalyzeTextOutputType", + "type": "string", "description": "This refers to the type of text analysis output. If no value is assigned, the default value will be \"FourSeverityLevels\".", - "default": "FourSeverityLevels" + "default": "FourSeverityLevels", + "enum": [ + "FourSeverityLevels", + "EightSeverityLevels" + ], + "x-ms-enum": { + "name": "AnalyzeTextOutputType", + "modelAsString": true, + "values": [ + { + "name": "FourSeverityLevels", + "value": "FourSeverityLevels", + "description": "Output severities in four levels, the value could be 0,2,4,6." + }, + { + "name": "EightSeverityLevels", + "value": "EightSeverityLevels", + "description": "Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7." + } + ] + } } }, "required": [ "text" ] }, - "AnalyzeTextOutputType": { - "type": "string", - "description": "The type of text analysis output.", - "enum": [ - "FourSeverityLevels", - "EightSeverityLevels" - ], - "x-ms-enum": { - "name": "AnalyzeTextOutputType", - "modelAsString": true, - "values": [ - { - "name": "FourSeverityLevels", - "value": "FourSeverityLevels", - "description": "Output severities in four levels, the value could be 0,2,4,6." - }, - { - "name": "EightSeverityLevels", - "value": "EightSeverityLevels", - "description": "Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7." - } - ] - } - }, "AnalyzeTextResult": { "type": "object", "description": "The text analysis response.", diff --git a/specification/iotoperationsmq/resource-manager/Microsoft.IoTOperationsMQ/preview/2023-10-04-preview/iotoperationsmq.json b/specification/iotoperationsmq/resource-manager/Microsoft.IoTOperationsMQ/preview/2023-10-04-preview/iotoperationsmq.json index d75cf3043614..f1161e4262b4 100644 --- a/specification/iotoperationsmq/resource-manager/Microsoft.IoTOperationsMQ/preview/2023-10-04-preview/iotoperationsmq.json +++ b/specification/iotoperationsmq/resource-manager/Microsoft.IoTOperationsMQ/preview/2023-10-04-preview/iotoperationsmq.json @@ -4891,9 +4891,35 @@ "default": "aio-mq-dmqtt-frontend" }, "serviceType": { - "$ref": "#/definitions/ServiceType", + "type": "string", "description": "The Kubernetes Service type to deploy for Listener.", - "default": "clusterIp" + "default": "clusterIp", + "enum": [ + "clusterIp", + "loadBalancer", + "nodePort" + ], + "x-ms-enum": { + "name": "ServiceType", + "modelAsString": true, + "values": [ + { + "name": "clusterIp", + "value": "clusterIp", + "description": "Cluster IP Service." + }, + { + "name": "loadBalancer", + "value": "loadBalancer", + "description": "Load Balancer Service." + }, + { + "name": "nodePort", + "value": "nodePort", + "description": "Node Port Service." + } + ] + } }, "tls": { "$ref": "#/definitions/TlsCertMethod", @@ -5017,9 +5043,35 @@ "default": "aio-mq-dmqtt-frontend" }, "serviceType": { - "$ref": "#/definitions/ServiceType", + "type": "string", "description": "The Kubernetes Service type to deploy for Listener.", - "default": "clusterIp" + "default": "clusterIp", + "enum": [ + "clusterIp", + "loadBalancer", + "nodePort" + ], + "x-ms-enum": { + "name": "ServiceType", + "modelAsString": true, + "values": [ + { + "name": "clusterIp", + "value": "clusterIp", + "description": "Cluster IP Service." + }, + { + "name": "loadBalancer", + "value": "loadBalancer", + "description": "Load Balancer Service." + }, + { + "name": "nodePort", + "value": "nodePort", + "description": "Node Port Service." + } + ] + } }, "tls": { "$ref": "#/definitions/TlsCertMethodUpdate", @@ -5109,9 +5161,41 @@ "description": "Details of the internal CA cert that will be used to secure communication between pods." }, "memoryProfile": { - "$ref": "#/definitions/BrokerMemoryProfile", + "type": "string", "description": "Memory profile of broker.", - "default": "medium" + "default": "medium", + "enum": [ + "tiny", + "low", + "medium", + "high" + ], + "x-ms-enum": { + "name": "BrokerMemoryProfile", + "modelAsString": true, + "values": [ + { + "name": "tiny", + "value": "tiny", + "description": "Tiny memory profile." + }, + { + "name": "low", + "value": "low", + "description": "Low memory profile." + }, + { + "name": "medium", + "value": "medium", + "description": "Medium memory profile." + }, + { + "name": "high", + "value": "high", + "description": "High memory profile." + } + ] + } }, "mode": { "$ref": "#/definitions/RunMode", @@ -5245,9 +5329,41 @@ "description": "Details of the internal CA cert that will be used to secure communication between pods." }, "memoryProfile": { - "$ref": "#/definitions/BrokerMemoryProfile", + "type": "string", "description": "Memory profile of broker.", - "default": "medium" + "default": "medium", + "enum": [ + "tiny", + "low", + "medium", + "high" + ], + "x-ms-enum": { + "name": "BrokerMemoryProfile", + "modelAsString": true, + "values": [ + { + "name": "tiny", + "value": "tiny", + "description": "Tiny memory profile." + }, + { + "name": "low", + "value": "low", + "description": "Low memory profile." + }, + { + "name": "medium", + "value": "medium", + "description": "Medium memory profile." + }, + { + "name": "high", + "value": "high", + "description": "High memory profile." + } + ] + } }, "mode": { "$ref": "#/definitions/RunMode", @@ -7224,9 +7340,41 @@ "description": "The batching settings for kafka messages." }, "compression": { - "$ref": "#/definitions/KafkaMessageCompressionType", + "type": "string", "description": "The compression to use for kafka messages.", - "default": "none" + "default": "none", + "enum": [ + "none", + "gzip", + "snappy", + "lz4" + ], + "x-ms-enum": { + "name": "KafkaMessageCompressionType", + "modelAsString": true, + "values": [ + { + "name": "none", + "value": "none", + "description": "No Kafka message compression." + }, + { + "name": "gzip", + "value": "gzip", + "description": "Gzip Kafka message compression." + }, + { + "name": "snappy", + "value": "snappy", + "description": "Snappy Kafka message compression." + }, + { + "name": "lz4", + "value": "lz4", + "description": "Lz4 Kafka message compression." + } + ] + } }, "copyMqttProperties": { "type": "string", @@ -7241,9 +7389,41 @@ "description": "The partition to use for Kafka." }, "partitionStrategy": { - "$ref": "#/definitions/KafkaPartitionStrategy", + "type": "string", "description": "The partition strategy to use for Kafka.", - "default": "default" + "default": "default", + "enum": [ + "default", + "static", + "topic", + "property" + ], + "x-ms-enum": { + "name": "KafkaPartitionStrategy", + "modelAsString": true, + "values": [ + { + "name": "default", + "value": "default", + "description": "Default partition strategy." + }, + { + "name": "static", + "value": "static", + "description": "Static partition strategy." + }, + { + "name": "topic", + "value": "topic", + "description": "Topic partition strategy." + }, + { + "name": "property", + "value": "property", + "description": "Property partition strategy." + } + ] + } }, "routes": { "type": "array", @@ -7342,9 +7522,41 @@ "description": "The batching settings for kafka messages." }, "compression": { - "$ref": "#/definitions/KafkaMessageCompressionType", + "type": "string", "description": "The compression to use for kafka messages.", - "default": "none" + "default": "none", + "enum": [ + "none", + "gzip", + "snappy", + "lz4" + ], + "x-ms-enum": { + "name": "KafkaMessageCompressionType", + "modelAsString": true, + "values": [ + { + "name": "none", + "value": "none", + "description": "No Kafka message compression." + }, + { + "name": "gzip", + "value": "gzip", + "description": "Gzip Kafka message compression." + }, + { + "name": "snappy", + "value": "snappy", + "description": "Snappy Kafka message compression." + }, + { + "name": "lz4", + "value": "lz4", + "description": "Lz4 Kafka message compression." + } + ] + } }, "copyMqttProperties": { "type": "string", @@ -7359,9 +7571,41 @@ "description": "The partition to use for Kafka." }, "partitionStrategy": { - "$ref": "#/definitions/KafkaPartitionStrategy", + "type": "string", "description": "The partition strategy to use for Kafka.", - "default": "default" + "default": "default", + "enum": [ + "default", + "static", + "topic", + "property" + ], + "x-ms-enum": { + "name": "KafkaPartitionStrategy", + "modelAsString": true, + "values": [ + { + "name": "default", + "value": "default", + "description": "Default partition strategy." + }, + { + "name": "static", + "value": "static", + "description": "Static partition strategy." + }, + { + "name": "topic", + "value": "topic", + "description": "Topic partition strategy." + }, + { + "name": "property", + "value": "property", + "description": "Property partition strategy." + } + ] + } }, "routes": { "type": "array", @@ -7986,9 +8230,29 @@ "description": "The endpoint of remote broker to connect to." }, "protocol": { - "$ref": "#/definitions/MqttBridgeRemoteBrokerProtocol", + "type": "string", "description": "Protocol for remote connection.", - "default": "mqtt" + "default": "mqtt", + "enum": [ + "mqtt", + "webSocket" + ], + "x-ms-enum": { + "name": "MqttBridgeRemoteBrokerProtocol", + "modelAsString": true, + "values": [ + { + "name": "mqtt", + "value": "mqtt", + "description": "MQTT protocol." + }, + { + "name": "webSocket", + "value": "webSocket", + "description": "MQTT over WebSocket protocol." + } + ] + } }, "tls": { "$ref": "#/definitions/MqttBridgeRemoteBrokerConnectionTls", @@ -8014,9 +8278,29 @@ "description": "The endpoint of remote broker to connect to." }, "protocol": { - "$ref": "#/definitions/MqttBridgeRemoteBrokerProtocol", + "type": "string", "description": "Protocol for remote connection.", - "default": "mqtt" + "default": "mqtt", + "enum": [ + "mqtt", + "webSocket" + ], + "x-ms-enum": { + "name": "MqttBridgeRemoteBrokerProtocol", + "modelAsString": true, + "values": [ + { + "name": "mqtt", + "value": "mqtt", + "description": "MQTT protocol." + }, + { + "name": "webSocket", + "value": "webSocket", + "description": "MQTT over WebSocket protocol." + } + ] + } }, "tls": { "$ref": "#/definitions/MqttBridgeRemoteBrokerConnectionTlsUpdate", diff --git a/specification/loadtestservice/data-plane/Microsoft.LoadTestService/preview/2023-04-01-preview/loadtestservice.json b/specification/loadtestservice/data-plane/Microsoft.LoadTestService/preview/2023-04-01-preview/loadtestservice.json index aeca65383679..66bc44bb985f 100644 --- a/specification/loadtestservice/data-plane/Microsoft.LoadTestService/preview/2023-04-01-preview/loadtestservice.json +++ b/specification/loadtestservice/data-plane/Microsoft.LoadTestService/preview/2023-04-01-preview/loadtestservice.json @@ -2308,30 +2308,6 @@ } } }, - "PFAction": { - "type": "string", - "description": "Action to take on failure of pass/fail criteria.", - "enum": [ - "continue", - "stop" - ], - "x-ms-enum": { - "name": "PFAction", - "modelAsString": true, - "values": [ - { - "name": "continue", - "value": "continue", - "description": "Test will continue to run even if pass fail metric criteria metric gets failed." - }, - { - "name": "stop", - "value": "stop", - "description": "Test run will stop if pass fail criteria metric is not passed." - } - ] - } - }, "PFAgFunc": { "type": "string", "description": "Aggregation functions for pass/fail criteria.", @@ -2605,9 +2581,29 @@ "description": "The value to compare with the client metric. Allowed values - ‘error : [0.0 ,\n100.0] unit- % ’, response_time_ms and latency : any integer value unit- ms." }, "action": { - "$ref": "#/definitions/PFAction", + "type": "string", "description": "Action taken after the threshold is met. Default is ‘continue’.", - "default": "continue" + "default": "continue", + "enum": [ + "continue", + "stop" + ], + "x-ms-enum": { + "name": "PFAction", + "modelAsString": true, + "values": [ + { + "name": "continue", + "value": "continue", + "description": "Test will continue to run even if pass fail metric criteria metric gets failed." + }, + { + "name": "stop", + "value": "stop", + "description": "Test run will stop if pass fail criteria metric is not passed." + } + ] + } }, "actualValue": { "type": "number", diff --git a/specification/loadtestservice/data-plane/Microsoft.LoadTestService/stable/2022-11-01/loadtestservice.json b/specification/loadtestservice/data-plane/Microsoft.LoadTestService/stable/2022-11-01/loadtestservice.json index d51356815ed8..a06c110812bb 100644 --- a/specification/loadtestservice/data-plane/Microsoft.LoadTestService/stable/2022-11-01/loadtestservice.json +++ b/specification/loadtestservice/data-plane/Microsoft.LoadTestService/stable/2022-11-01/loadtestservice.json @@ -2230,30 +2230,6 @@ } } }, - "PFAction": { - "type": "string", - "description": "Action to take on failure of pass/fail criteria.", - "enum": [ - "continue", - "stop" - ], - "x-ms-enum": { - "name": "PFAction", - "modelAsString": true, - "values": [ - { - "name": "continue", - "value": "continue", - "description": "Test will continue to run even if pass fail metric criteria metric gets failed." - }, - { - "name": "stop", - "value": "stop", - "description": "Test run will stop if pass fail criteria metric is not passed." - } - ] - } - }, "PFAgFunc": { "type": "string", "description": "Aggregation functions for pass/fail criteria.", @@ -2527,9 +2503,29 @@ "description": "The value to compare with the client metric. Allowed values - ‘error : [0.0 ,\n100.0] unit- % ’, response_time_ms and latency : any integer value unit- ms." }, "action": { - "$ref": "#/definitions/PFAction", + "type": "string", "description": "Action taken after the threshold is met. Default is ‘continue’.", - "default": "continue" + "default": "continue", + "enum": [ + "continue", + "stop" + ], + "x-ms-enum": { + "name": "PFAction", + "modelAsString": true, + "values": [ + { + "name": "continue", + "value": "continue", + "description": "Test will continue to run even if pass fail metric criteria metric gets failed." + }, + { + "name": "stop", + "value": "stop", + "description": "Test run will stop if pass fail criteria metric is not passed." + } + ] + } }, "actualValue": { "type": "number", diff --git a/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json b/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json index d967a0c68ef4..7389ac6f3622 100644 --- a/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json +++ b/specification/playwrighttesting/data-plane/Microsoft.PlaywrightTesting.AuthManager/preview/2023-10-01-preview/playwrighttesting.json @@ -468,21 +468,81 @@ "readOnly": true }, "regionalAffinity": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.", "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + }, "readOnly": true }, "scalableExecution": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.", "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + }, "readOnly": true }, "reporting": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.", "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + }, "readOnly": true } }, @@ -587,30 +647,6 @@ "format": "uuid", "description": "Universally Unique Identifier" }, - "EnablementStatus": { - "type": "string", - "description": "The enablement status of a feature.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnablementStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The feature is Enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The feature is Disabled." - } - ] - } - }, "PagedAccessToken": { "type": "object", "description": "Paged collection of AccessToken items", diff --git a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/preview/2024-02-01-preview/playwrighttesting.json b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/preview/2024-02-01-preview/playwrighttesting.json index 434308072e41..f99b5194d0ab 100644 --- a/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/preview/2024-02-01-preview/playwrighttesting.json +++ b/specification/playwrighttesting/resource-manager/Microsoft.AzurePlaywrightService/preview/2024-02-01-preview/playwrighttesting.json @@ -789,19 +789,79 @@ "readOnly": true }, "regionalAffinity": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.", - "default": "Enabled" + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } }, "scalableExecution": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.", - "default": "Enabled" + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } }, "reporting": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.", - "default": "Disabled" + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } }, "provisioningState": { "$ref": "#/definitions/ProvisioningState", @@ -888,44 +948,80 @@ "description": "The updatable properties of the Account.", "properties": { "regionalAffinity": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "This property sets the connection region for Playwright client workers to cloud-hosted browsers. If enabled, workers connect to browsers in the closest Azure region, ensuring lower latency. If disabled, workers connect to browsers in the Azure region in which the workspace was initially created.", - "default": "Enabled" + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } }, "scalableExecution": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, Playwright client workers can connect to cloud-hosted browsers. This can increase the number of parallel workers for a test run, significantly minimizing test completion durations.", - "default": "Enabled" + "default": "Enabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] + } }, "reporting": { - "$ref": "#/definitions/EnablementStatus", + "type": "string", "description": "When enabled, this feature allows the workspace to upload and display test results, including artifacts like traces and screenshots, in the Playwright portal. This enables faster and more efficient troubleshooting.", - "default": "Disabled" - } - } - }, - "EnablementStatus": { - "type": "string", - "description": "The enablement status of a feature.", - "enum": [ - "Enabled", - "Disabled" - ], - "x-ms-enum": { - "name": "EnablementStatus", - "modelAsString": true, - "values": [ - { - "name": "Enabled", - "value": "Enabled", - "description": "The feature is Enabled." - }, - { - "name": "Disabled", - "value": "Disabled", - "description": "The feature is Disabled." + "default": "Disabled", + "enum": [ + "Enabled", + "Disabled" + ], + "x-ms-enum": { + "name": "EnablementStatus", + "modelAsString": true, + "values": [ + { + "name": "Enabled", + "value": "Enabled", + "description": "The feature is Enabled." + }, + { + "name": "Disabled", + "value": "Disabled", + "description": "The feature is Disabled." + } + ] } - ] + } } }, "FreeTrialProperties": {