From d6933f8e1ec3d90449b1b0aa0c78f7f72242d335 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 25 Jan 2022 09:30:57 +0000 Subject: [PATCH] CodeGen from PR 17434 in Azure/azure-rest-api-specs Merge d1cf8d84428b34cdada209a0211275614c977aed into ef8fa4f2f1b85ca6ed05a23b25968b4fc97e3e90 --- .../Azure.AI.FormRecognizer/src/autorest.md | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md index 5cb87d89664c..0fe5ab5cacc5 100644 --- a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/autorest.md @@ -11,7 +11,7 @@ Run `dotnet build /t:GenerateCode` to generate code. Notice how there are two ma ``` yaml input-file: - - https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + - https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json modelerfour: seal-single-value-enum-by-default: true ``` @@ -20,7 +20,7 @@ modelerfour: ``` yaml directive: -- from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json +- from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $["x-ms-parameterized-host"] transform: > $.hostTemplate = "{endpoint}/formrecognizer/{apiVersion}"; @@ -39,7 +39,7 @@ directive: This is a temporary work-around ``` yaml directive: -- from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json +- from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.AnalyzeResult transform: $.required = ["version"]; ``` @@ -48,7 +48,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.AnalyzeResult transform: > $.properties.readResults["x-nullable"] = true; @@ -58,7 +58,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.ReadResult transform: > $.properties.selectionMarks["x-nullable"] = true; @@ -66,7 +66,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.AnalyzeOperationResult transform: > $.properties.analyzeResult["x-nullable"] = true; @@ -74,7 +74,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.KeyValueElement transform: > $.properties.boundingBox["x-nullable"] = true; @@ -83,7 +83,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.PageResult transform: > $.properties.clusterId["x-nullable"] = true; @@ -91,7 +91,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.DocumentResult transform: > $.properties.fields.additionalProperties["x-nullable"] = true; @@ -99,7 +99,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.FieldValue transform: > $.properties.valueObject.additionalProperties["x-nullable"] = true; @@ -108,7 +108,7 @@ directive: ## Rename duplicated types ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.AnalyzeResult transform: > $["x-ms-client-name"] = "V2AnalyzeResult" @@ -118,7 +118,7 @@ directive: ``` yaml directive: - from: https://github.com/Azure/azure-rest-api-specs/blob/7043b48f4be1fdd40757b9ef372b65f054daf48f/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json + from: https://github.com/Azure/azure-rest-api-specs/blob/62fc649026a0f8521f2f40cbfc3d7b1f142e7c55/specification/cognitiveservices/data-plane/FormRecognizer/stable/v2.1/FormRecognizer.json where: $.definitions.* transform: > $["x-accessibility"] = "internal"