From f156bd99665ea27c0ed12657f891fa629288a25b Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Thu, 29 Mar 2018 10:36:08 -0700 Subject: [PATCH 1/7] Azure Search: Adding Service Statistics API --- .../SearchServiceGetServiceStatistics.json | 43 ++++++ .../2016-09-01-preview/searchservice.json | 134 ++++++++++++++++++ .../Microsoft.Azure.Search.Service/readme.md | 15 ++ 3 files changed, 192 insertions(+) create mode 100644 specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json new file mode 100644 index 000000000000..47f83e6d4c60 --- /dev/null +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json @@ -0,0 +1,43 @@ +{ + "parameters": { + "api-version": "2016-09-01-Preview" + }, + "responses": { + "200": { + "body": { + "counters": { + "documentCount": { + "usage": 7093, + "quota": 10000 + }, + "indexesCount": { + "usage": 3, + "quota": 3 + }, + "indexersCount": { + "usage": 3, + "quota": 3 + }, + "dataSourcesCount": { + "usage": 1, + "quota": 3 + }, + "storageSize": { + "usage": 914529, + "quota": 52428800 + }, + "synonymMaps": { + "usage": 2, + "quota": 3 + } + }, + "limits": { + "maxFieldsPerIndex": 1000, + "maxIndexerRunTime": "PT1M", + "maxFileExtractionSize": 16777216, + "maxFileContentCharactersToExtract": 32768 + } + } + } + } +} \ No newline at end of file diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json index 9738b0ba1bfc..675a48d6d4e5 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json @@ -1094,6 +1094,35 @@ } } } + }, + "/servicestats": { + "get": { + "tags": [ + "Service" + ], + "operationId": "GetServiceStatistics", + "x-ms-examples": { + "SearchServiceGetServiceStatistics": { "$ref": "./examples/SearchServiceGetServiceStatistics.json" } + }, + "description": "Gets service level statistics for an Azure Search service.", + "parameters": [ + { + "$ref": "#/parameters/ClientRequestIdParameter" + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "x-ms-request-id": "request-id", + "responses": { + "200": { + "description": "", + "schema": { + "$ref": "#/definitions/ServiceStatistics" + } + } + } + } } }, "definitions": { @@ -3957,6 +3986,111 @@ } }, "description": "Response from a List SynonymMaps request. If successful, it includes the full definitions of all synonym maps." + }, + "ServiceStatistics": { + "properties": { + "counters": { + "$ref": "#/definitions/ServiceCounters", + "description": "Service level resource counters." + }, + "limits": { + "$ref": "#/definitions/ServiceLimits", + "description": "Service level general limits." + } + }, + "description": "Response from a get service statistics request. If successful, it includes service level counters and limits." + }, + "ServiceCounters": { + "properties": { + "documentCount": { + "x-ms-client-name": "documentCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total number of documents across all indexes in the service." + }, + "indexesCount": { + "x-ms-client-name": "indexCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total number of indexes." + }, + "indexersCount": { + "x-ms-client-name": "indexerCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total number of indexers." + }, + "dataSourcesCount": { + "x-ms-client-name": "dataSourceCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total number of data sources." + }, + "storageSize": { + "x-ms-client-name": "storageSizeCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total size of used storage in bytes." + }, + "synonymMaps": { + "x-ms-client-name": "synonymMapCounter", + "$ref": "#/definitions/ResourceCounter", + "description": "Total number of synonym maps." + }, + }, + "description": "Represents a service level resource counters and quotas." + }, + "ServiceLimits": { + "properties": { + "maxFieldsPerIndex": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The maximum allowed fields per index." + }, + "maxIndexerRunTime": { + "type": "string", + "format": "duration", + "description": "The maximum time an indexer will run in a single execution. In the next run, indexing will resume at the point where it stopped." + }, + "maxFileExtractionSize": { + "type": "integer", + "format": "int64", + "x-nullable": true, + "description": "When using a blob indexer, if the size in bytes of a blob's content is larger than this size, it results in an error." + }, + "maxFileContentCharactersToExtract": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The maximum number of characters extracted from a blob when using a blob indexer. If a blob has more content, it is not indexed and a warning is added to the indexer execution result." + }, + "maxFieldNestingDepthPerIndex": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3." + }, + "maxComplexCollectionFieldsPerIndex": { + "type": "integer", + "format": "int32", + "x-nullable": true, + "description": "The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index." + } + }, + "description": "Represents various service level limits." + }, + "ResourceCounter": { + "properties": { + "usage": { + "type": "integer", + "format": "int64", + "x-nullable": true, + "description": "The resource usage amount." + }, + "quota": { + "type": "integer", + "format": "int64", + "x-nullable": true, + "description": "The resource amount quota." + } + }, + "description": "Represents a resource's usage and quota." } }, "parameters": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md index 1857949fe668..7fce73c10298 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md @@ -83,4 +83,19 @@ csharp: namespace: Microsoft.Azure.Search clear-output-folder: true output-folder: $(csharp-sdks-folder)/Search/DataPlane/Microsoft.Azure.Search.Service/Generated + +directive: + # fixes an incorrect generation in AutoRest with a parameterized host and both client and operation groups that use it. + - from: source-file-csharp + where: $ + transform: > + if ( $.includes("class DataSourcesOperations") || $.includes("class IndexersOperations") || + $.includes("class IndexesOperations") || $.includes("class SynonymMapsOperations") ) + + return $. + replace(/this.SearchServiceName/g,"Client.SearchServiceName"). + replace(/this.SearchDnsSuffix/g,"Client.SearchDnsSuffix"). + replace(/\"Client.SearchServiceName\"/g,"\"this.Client.SearchServiceName\""). + replace(/\"Client.SearchDnsSuffix\"/g,"\"this.Client.SearchDnsSuffix\""); + return $; ``` From c05ada659d42f8028bfc791632d88dcb518e26a2 Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Thu, 29 Mar 2018 14:40:09 -0700 Subject: [PATCH 2/7] Addressing PR comments --- .../examples/SearchServiceGetServiceStatistics.json | 2 +- .../preview/2016-09-01-preview/searchservice.json | 4 ++-- .../data-plane/Microsoft.Azure.Search.Service/readme.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json index 47f83e6d4c60..d0778fd20836 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json index 675a48d6d4e5..57b41c4dc7d9 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json @@ -4033,7 +4033,7 @@ "description": "Total number of synonym maps." }, }, - "description": "Represents a service level resource counters and quotas." + "description": "Represents service-level resource counters and quotas." }, "ServiceLimits": { "properties": { @@ -4161,4 +4161,4 @@ "x-ms-parameter-location": "client" } } -} \ No newline at end of file +} diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md index 7fce73c10298..e24479c07d15 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/readme.md @@ -85,7 +85,7 @@ csharp: output-folder: $(csharp-sdks-folder)/Search/DataPlane/Microsoft.Azure.Search.Service/Generated directive: - # fixes an incorrect generation in AutoRest with a parameterized host and both client and operation groups that use it. + # TODO: remove this workaround once AutoRest fixes the incorrect code generation when using a parameterized host and both client and operation groups paths. - from: source-file-csharp where: $ transform: > From 6ad0570e76a4704b6596475155d720d60ee9d5df Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Thu, 29 Mar 2018 15:01:38 -0700 Subject: [PATCH 3/7] Removing extra ',' char from spec file --- .../preview/2016-09-01-preview/searchservice.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json index 57b41c4dc7d9..2f61ea1a28d4 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json @@ -4031,7 +4031,7 @@ "x-ms-client-name": "synonymMapCounter", "$ref": "#/definitions/ResourceCounter", "description": "Total number of synonym maps." - }, + } }, "description": "Represents service-level resource counters and quotas." }, From d8d72d8d27618e2948167c4f1f4317cc2910d87f Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Thu, 29 Mar 2018 19:30:55 -0700 Subject: [PATCH 4/7] making maxIndexerRunTime nullable --- .../preview/2016-09-01-preview/searchservice.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json index 2f61ea1a28d4..2cc3e9a9e5ee 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json @@ -4046,6 +4046,7 @@ "maxIndexerRunTime": { "type": "string", "format": "duration", + "x-nullable": true, "description": "The maximum time an indexer will run in a single execution. In the next run, indexing will resume at the point where it stopped." }, "maxFileExtractionSize": { From 3111b3c1658a5000a7c7e73d669f160f4c458aaf Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Mon, 2 Apr 2018 09:27:17 -0700 Subject: [PATCH 5/7] Changing ResourceCounter.usage to not be nullable --- .../preview/2016-09-01-preview/searchservice.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json index 2cc3e9a9e5ee..f6e5dd60dbec 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/searchservice.json @@ -4081,7 +4081,7 @@ "usage": { "type": "integer", "format": "int64", - "x-nullable": true, + "x-nullable": false, "description": "The resource usage amount." }, "quota": { From 79c34b884debd3ce88e90038a27b46c0cc6cc4fc Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Wed, 4 Apr 2018 10:49:53 -0700 Subject: [PATCH 6/7] Adding searchServiceName as a parameter in the getServiceStatistics example file. Since this may fail some server validation, only adding it here for now and will add it to the rest of the examples if it works --- .../examples/SearchServiceGetServiceStatistics.json | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json index d0778fd20836..663ed4c8f849 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetServiceStatistics.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview" }, "responses": { From 8bb30f1b6faa48b4e3b54cba63c82adfbc827235 Mon Sep 17 00:00:00 2001 From: Nati Nimni Date: Wed, 4 Apr 2018 11:04:02 -0700 Subject: [PATCH 7/7] Adding a 'searchServiceName' parameter to all example files --- .../examples/SearchServiceCreateDataSource.json | 1 + .../2016-09-01-preview/examples/SearchServiceCreateIndex.json | 1 + .../2016-09-01-preview/examples/SearchServiceCreateIndexer.json | 1 + .../examples/SearchServiceCreateOrUpdateDataSource.json | 1 + .../examples/SearchServiceCreateOrUpdateIndex.json | 1 + .../examples/SearchServiceCreateOrUpdateIndexer.json | 1 + .../examples/SearchServiceCreateOrUpdateSynonymMap.json | 1 + .../examples/SearchServiceCreateSynonymMap.json | 1 + .../examples/SearchServiceDeleteDataSource.json | 1 + .../2016-09-01-preview/examples/SearchServiceDeleteIndex.json | 1 + .../2016-09-01-preview/examples/SearchServiceDeleteIndexer.json | 1 + .../examples/SearchServiceDeleteSynonymMap.json | 1 + .../2016-09-01-preview/examples/SearchServiceGetDataSource.json | 1 + .../2016-09-01-preview/examples/SearchServiceGetIndex.json | 1 + .../examples/SearchServiceGetIndexStatistics.json | 1 + .../2016-09-01-preview/examples/SearchServiceGetIndexer.json | 1 + .../examples/SearchServiceGetIndexerStatus.json | 1 + .../2016-09-01-preview/examples/SearchServiceGetSynonymMap.json | 1 + .../2016-09-01-preview/examples/SearchServiceIndexAnalyze.json | 1 + .../examples/SearchServiceListDataSources.json | 1 + .../2016-09-01-preview/examples/SearchServiceListIndexers.json | 1 + .../2016-09-01-preview/examples/SearchServiceListIndexes.json | 1 + .../examples/SearchServiceListSynonymMaps.json | 1 + .../2016-09-01-preview/examples/SearchServiceResetIndexer.json | 1 + .../2016-09-01-preview/examples/SearchServiceRunIndexer.json | 1 + 25 files changed, 25 insertions(+) diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateDataSource.json index 1f6c32eb119d..cffcb0af5167 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateDataSource.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview", "dataSource": { "name": "mydocdbdatasource", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndex.json index 3765524d5676..70ce4ee6f69c 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndex.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview", "index": { "name": "hotels", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndexer.json index f151c3e3e384..9094161a2245 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview", "indexer": { "name": "myindexer", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateDataSource.json index 078853f89e82..bfd5f0950738 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateDataSource.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "dataSourceName": "mydatasource", "api-version": "2016-09-01-Preview", "dataSource": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndex.json index 290b4b462bcb..e8d43a8b9d3d 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndex.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexName": "hotels", "allowIndexDowntime": false, "api-version": "2016-09-01-Preview", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndexer.json index 6b8268375d74..b1f1962eecb5 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview", "indexer": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json index 11c658a6694b..b15eacbe0928 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateOrUpdateSynonymMap.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "synonymMapName": "mysynonymmap", "api-version": "2016-09-01-Preview", "synonymMap": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateSynonymMap.json index bf86b614c508..942b5757cfa1 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceCreateSynonymMap.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview", "synonymMap": { "name" : "mysynonymmap", diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteDataSource.json index 74daaf6d1eb1..1b1aa4b896a9 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteDataSource.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "dataSourceName": "mydatasource", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndex.json index bcb83e863ceb..1e931317ffe6 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndex.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexName": "myindex", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndexer.json index 775455c002f8..abe36b48d425 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteSynonymMap.json index 8aec6481e1ad..684fedb02100 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceDeleteSynonymMap.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "synonymMapName": "mysynonymmap", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetDataSource.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetDataSource.json index d08b27e92781..4372a1d41fca 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetDataSource.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetDataSource.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "dataSourceName": "mydatasource", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndex.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndex.json index dd38a787121e..f757d2f58485 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndex.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndex.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexName": "hotels", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexStatistics.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexStatistics.json index 81eb211690c3..7920762e864b 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexStatistics.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexStatistics.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexName": "hotels", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexer.json index 180d183c55d7..1212606b333e 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexerStatus.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexerStatus.json index fb7d944edb3c..77eb045f7885 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexerStatus.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetIndexerStatus.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetSynonymMap.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetSynonymMap.json index a89edb3de6ac..8affcb2b3016 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetSynonymMap.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceGetSynonymMap.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "synonymMapName": "mysynonymmap", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceIndexAnalyze.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceIndexAnalyze.json index 8fbf5ccaff05..a9d2f785828b 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceIndexAnalyze.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceIndexAnalyze.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexName": "hotels", "api-version": "2016-09-01-Preview", "request": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListDataSources.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListDataSources.json index 69972b209817..dc06cd9c3fa1 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListDataSources.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListDataSources.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview" }, "responses": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexers.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexers.json index bc31ac723e8b..6344b985057f 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexers.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexers.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview" }, "responses": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexes.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexes.json index c1432312240d..1c8b3d1c4f34 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexes.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListIndexes.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "$select": "name", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListSynonymMaps.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListSynonymMaps.json index 72ee2adaf504..3dc7fb7d7642 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListSynonymMaps.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceListSynonymMaps.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "api-version": "2016-09-01-Preview" }, "responses": { diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceResetIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceResetIndexer.json index 26b67d16d949..e39cd45dd610 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceResetIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceResetIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview" }, diff --git a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceRunIndexer.json b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceRunIndexer.json index 67aa7af454fc..43fac39d904d 100644 --- a/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceRunIndexer.json +++ b/specification/search/data-plane/Microsoft.Azure.Search.Service/preview/2016-09-01-preview/examples/SearchServiceRunIndexer.json @@ -1,5 +1,6 @@ { "parameters": { + "searchServiceName": "myservice", "indexerName": "myindexer", "api-version": "2016-09-01-Preview" },