From d5efa2283b81d54016978887fbc6d6568ff1186d Mon Sep 17 00:00:00 2001 From: Arvind Krishnaa Jagannathan Date: Thu, 23 Jul 2020 16:29:54 -0700 Subject: [PATCH 1/2] Add swagger spec for indexer execution environment --- .../2019-05-06-preview/searchservice.json | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json index de05a298e613..624a656b6249 100644 --- a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json +++ b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json @@ -5845,6 +5845,10 @@ "required": false, "$ref": "#/definitions/PdfTextRotationAlgorithm" }, + "executionEnvironment": { + "required": false, + "$ref": "#/definitions/ExecutionEnvironment" + }, "queryTimeout": { "type": "string", "required": false, @@ -6002,6 +6006,32 @@ "default": "none", "description": "Determines algorithm for text extraction from PDF files in Azure blob storage." }, + "ExecutionEnvironment": { + "type": "string", + "enum": [ + "standard", + "private" + ], + "x-ms-enum": { + "name": "IndexerExecutionEnvironment", + "modelAsString": true, + "values": [ + { + "value": "standard", + "name": "standard", + "description": "Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value." + }, + { + "value": "private", + "name": "private", + "description": "Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources." + } + ] + }, + "x-nullable": true, + "default": "none", + "description": "Specifies the environment in which the indexer should execute." + }, "FieldMappingFunction": { "properties": { "name": { From 18bee0a0a723833600981f37e69b4a7f01622555 Mon Sep 17 00:00:00 2001 From: Arvind Krishnaa Jagannathan Date: Fri, 24 Jul 2020 11:12:09 -0700 Subject: [PATCH 2/2] Change the default value to 'standard' --- .../Azure.Search/preview/2019-05-06-preview/searchservice.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json index 624a656b6249..9ef95d9358f2 100644 --- a/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json +++ b/specification/search/data-plane/Azure.Search/preview/2019-05-06-preview/searchservice.json @@ -6029,7 +6029,7 @@ ] }, "x-nullable": true, - "default": "none", + "default": "standard", "description": "Specifies the environment in which the indexer should execute." }, "FieldMappingFunction": {