From 3c510c2e26faca1e9aedc3c6e238e6750abf9ef1 Mon Sep 17 00:00:00 2001 From: alzimmermsft <48699787+alzimmermsft@users.noreply.github.com> Date: Fri, 13 Mar 2026 15:24:40 -0400 Subject: [PATCH] [DO NOT MERGE] Example of optional generating many models --- .../search/documents/SearchAsyncClient.java | 181 +- .../azure/search/documents/SearchClient.java | 177 +- .../KnowledgeBaseRetrievalClientImpl.java | 28 +- .../implementation/SearchClientImpl.java | 258 ++- .../implementation/SearchIndexClientImpl.java | 1837 ++++++++++++++--- .../SearchIndexerClientImpl.java | 598 ++++-- .../models/CountRequestAccept1.java | 51 + .../models/CountRequestAccept4.java | 51 + .../models/CountRequestAccept6.java | 51 + .../models/CountRequestAccept7.java | 51 + .../models/CreateOrUpdateRequestAccept.java | 51 + .../models/CreateOrUpdateRequestAccept13.java | 51 + .../models/CreateOrUpdateRequestAccept18.java | 51 + .../models/CreateOrUpdateRequestAccept23.java | 51 + .../models/CreateOrUpdateRequestAccept3.java | 51 + .../models/CreateOrUpdateRequestAccept31.java | 51 + .../models/CreateOrUpdateRequestAccept34.java | 51 + .../models/CreateOrUpdateRequestAccept40.java | 51 + .../models/CreateOrUpdateRequestAccept43.java | 51 + .../models/CreateOrUpdateRequestAccept46.java | 51 + .../models/CreateOrUpdateRequestAccept49.java | 51 + .../models/CreateOrUpdateRequestAccept5.java | 51 + .../indexes/SearchIndexAsyncClient.java | 951 ++++++++- .../documents/indexes/SearchIndexClient.java | 901 +++++++- .../indexes/SearchIndexerAsyncClient.java | 676 ++++-- .../indexes/SearchIndexerClient.java | 654 +++++- .../models/AIFoundryModelCatalogName.java | 28 +- ...ChatCompletionExtraParametersBehavior.java | 2 +- .../indexes/models/EntityCategory.java | 87 + .../EntityRecognitionSkillLanguage.java | 183 ++ .../models/EntityRecognitionSkillV3.java | 48 +- .../indexes/models/SearchIndexResponse.java | 485 +++++ .../models/SentimentSkillLanguage.java | 135 ++ .../indexes/models/SentimentSkillV3.java | 35 +- .../KnowledgeBaseRetrievalAsyncClient.java | 68 +- .../KnowledgeBaseRetrievalClient.java | 66 +- .../documents/models/CountRequestAccept.java | 51 + .../documents/models/CountRequestAccept2.java | 51 + .../documents/models/CountRequestAccept3.java | 51 + .../documents/models/CountRequestAccept5.java | 51 + .../documents/models/CountRequestAccept8.java | 51 + .../models/CreateOrUpdateRequestAccept1.java | 51 + .../models/CreateOrUpdateRequestAccept10.java | 51 + .../models/CreateOrUpdateRequestAccept11.java | 51 + .../models/CreateOrUpdateRequestAccept12.java | 51 + .../models/CreateOrUpdateRequestAccept14.java | 51 + .../models/CreateOrUpdateRequestAccept15.java | 51 + .../models/CreateOrUpdateRequestAccept16.java | 51 + .../models/CreateOrUpdateRequestAccept17.java | 51 + .../models/CreateOrUpdateRequestAccept19.java | 51 + .../models/CreateOrUpdateRequestAccept2.java | 51 + .../models/CreateOrUpdateRequestAccept20.java | 51 + .../models/CreateOrUpdateRequestAccept21.java | 51 + .../models/CreateOrUpdateRequestAccept22.java | 51 + .../models/CreateOrUpdateRequestAccept24.java | 51 + .../models/CreateOrUpdateRequestAccept25.java | 51 + .../models/CreateOrUpdateRequestAccept26.java | 51 + .../models/CreateOrUpdateRequestAccept27.java | 51 + .../models/CreateOrUpdateRequestAccept28.java | 51 + .../models/CreateOrUpdateRequestAccept29.java | 51 + .../models/CreateOrUpdateRequestAccept30.java | 51 + .../models/CreateOrUpdateRequestAccept32.java | 51 + .../models/CreateOrUpdateRequestAccept33.java | 51 + .../models/CreateOrUpdateRequestAccept35.java | 51 + .../models/CreateOrUpdateRequestAccept36.java | 51 + .../models/CreateOrUpdateRequestAccept37.java | 51 + .../models/CreateOrUpdateRequestAccept38.java | 51 + .../models/CreateOrUpdateRequestAccept39.java | 51 + .../models/CreateOrUpdateRequestAccept4.java | 51 + .../models/CreateOrUpdateRequestAccept41.java | 51 + .../models/CreateOrUpdateRequestAccept42.java | 51 + .../models/CreateOrUpdateRequestAccept44.java | 51 + .../models/CreateOrUpdateRequestAccept45.java | 51 + .../models/CreateOrUpdateRequestAccept47.java | 51 + .../models/CreateOrUpdateRequestAccept48.java | 51 + .../models/CreateOrUpdateRequestAccept50.java | 51 + .../models/CreateOrUpdateRequestAccept51.java | 51 + .../models/CreateOrUpdateRequestAccept52.java | 51 + .../models/CreateOrUpdateRequestAccept6.java | 51 + .../models/CreateOrUpdateRequestAccept7.java | 51 + .../models/CreateOrUpdateRequestAccept8.java | 51 + .../models/CreateOrUpdateRequestAccept9.java | 51 + .../azure-search-documents_metadata.json | 2 +- .../azure-search-documents/tsp-location.yaml | 2 +- 84 files changed, 9355 insertions(+), 1209 deletions(-) create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CountRequestAccept1.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CountRequestAccept4.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CountRequestAccept6.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CountRequestAccept7.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept13.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept18.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept23.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept3.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept31.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept34.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept40.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept43.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept46.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept49.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/models/CreateOrUpdateRequestAccept5.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityCategory.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/EntityRecognitionSkillLanguage.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SearchIndexResponse.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/indexes/models/SentimentSkillLanguage.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CountRequestAccept.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CountRequestAccept2.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CountRequestAccept3.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CountRequestAccept5.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CountRequestAccept8.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept1.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept10.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept11.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept12.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept14.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept15.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept16.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept17.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept19.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept2.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept20.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept21.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept22.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept24.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept25.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept26.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept27.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept28.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept29.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept30.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept32.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept33.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept35.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept36.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept37.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept38.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept39.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept4.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept41.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept42.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept44.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept45.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept47.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept48.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept50.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept51.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept52.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept6.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept7.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept8.java create mode 100644 sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/models/CreateOrUpdateRequestAccept9.java diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java index 49c621fde869..69f88b4d4ec1 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchAsyncClient.java @@ -23,9 +23,12 @@ import com.azure.search.documents.implementation.SearchClientImpl; import com.azure.search.documents.implementation.SearchUtils; import com.azure.search.documents.implementation.models.AutocompletePostRequest; +import com.azure.search.documents.implementation.models.CountRequestAccept6; import com.azure.search.documents.implementation.models.SuggestPostRequest; import com.azure.search.documents.models.AutocompleteOptions; import com.azure.search.documents.models.AutocompleteResult; +import com.azure.search.documents.models.CountRequestAccept; +import com.azure.search.documents.models.CountRequestAccept3; import com.azure.search.documents.models.IndexBatchException; import com.azure.search.documents.models.IndexDocumentsBatch; import com.azure.search.documents.models.IndexDocumentsOptions; @@ -99,6 +102,14 @@ public SearchServiceVersion getServiceVersion() { /** * Sends a batch of document write actions to the index. + *
Header Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| Accept | String | No | The Accept header. Allowed values: + * "application/json;odata.metadata=none". |
Request Body Schema
* *@@ -164,7 +175,7 @@ public MonogetDocumentCount() { // Generated convenience method for hiddenGeneratedGetDocumentCountWithResponse RequestOptions requestOptions = new RequestOptions(); return hiddenGeneratedGetDocumentCountWithResponse(requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(Long.class)); + .map(protocolMethodData -> Long.parseLong(protocolMethodData.toString())); } /** @@ -237,49 +248,6 @@ public SearchPagedFlux search(SearchOptions options, RequestOptions requestOptio }); } - /** - * Retrieves a document from the index. - * - * @param key The key of the document to retrieve. - * @param querySourceAuthorization Token identifying the user for which the query is being executed. This token is - * used to enforce security restrictions on documents. - * @param enableElevatedRead A value that enables elevated read that bypass document level permission checks for the - * query operation. - * @param selectedFields List of field names to retrieve for the document; Any field not retrieved will be missing - * from the returned document. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a document retrieved via a document lookup operation on successful completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getDocument(String key, String querySourceAuthorization, Boolean enableElevatedRead, - List selectedFields) { - // Generated convenience method for hiddenGeneratedGetDocumentWithResponse - RequestOptions requestOptions = new RequestOptions(); - if (querySourceAuthorization != null) { - requestOptions.setHeader(HttpHeaderName.fromString("x-ms-query-source-authorization"), - querySourceAuthorization); - } - if (enableElevatedRead != null) { - requestOptions.setHeader(HttpHeaderName.fromString("x-ms-enable-elevated-read"), - String.valueOf(enableElevatedRead)); - } - if (selectedFields != null) { - requestOptions.addQueryParam("$select", - selectedFields.stream() - .map(paramItemValue -> Objects.toString(paramItemValue, "")) - .collect(Collectors.joining(",")), - false); - } - return hiddenGeneratedGetDocumentWithResponse(key, requestOptions).flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(LookupDocument.class)); - } - /** * Retrieves a document from the index. * @@ -384,6 +352,8 @@ public Mono > indexDocumentsWithResponse(IndexDocu * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -676,6 +646,14 @@ Mono > searchWithResponse(BinaryData searchPostRequest, Requ /** * Suggests documents in the index that match the given partial query text. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -737,6 +715,14 @@ Mono> suggestWithResponse(BinaryData suggestPostRequest, Re /** * Autocompletes incomplete query terms based on input text and matching terms in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -968,6 +954,14 @@ public Mono> getDocumentWithResponse(String key, Reques /** * Queries the number of documents in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -1004,6 +998,8 @@ Mono> hiddenGeneratedGetDocumentCountWithResponse(RequestOp * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1036,4 +1032,101 @@ Mono > hiddenGeneratedGetDocumentCountWithResponse(RequestOp Mono > hiddenGeneratedGetDocumentWithResponse(String key, RequestOptions requestOptions) { return this.serviceClient.getDocumentWithResponseAsync(key, requestOptions); } + + /** + * Queries the number of documents in the index. + * + * @param accept The Accept header. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a 64-bit integer on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getDocumentCount(CountRequestAccept accept) { + // Generated convenience method for hiddenGeneratedGetDocumentCountWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + return hiddenGeneratedGetDocumentCountWithResponse(requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> Long.parseLong(protocolMethodData.toString())); + } + + /** + * Retrieves a document from the index. + * + * @param key The key of the document to retrieve. + * @param accept The Accept header. + * @param querySourceAuthorization Token identifying the user for which the query is being executed. This token is + * used to enforce security restrictions on documents. + * @param enableElevatedRead A value that enables elevated read that bypass document level permission checks for the + * query operation. + * @param selectedFields List of field names to retrieve for the document; Any field not retrieved will be missing + * from the returned document. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a document retrieved via a document lookup operation on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getDocument(String key, CountRequestAccept3 accept, String querySourceAuthorization, + Boolean enableElevatedRead, List selectedFields) { + // Generated convenience method for hiddenGeneratedGetDocumentWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + if (querySourceAuthorization != null) { + requestOptions.setHeader(HttpHeaderName.fromString("x-ms-query-source-authorization"), + querySourceAuthorization); + } + if (enableElevatedRead != null) { + requestOptions.setHeader(HttpHeaderName.fromString("x-ms-enable-elevated-read"), + String.valueOf(enableElevatedRead)); + } + if (selectedFields != null) { + requestOptions.addQueryParam("$select", + selectedFields.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + return hiddenGeneratedGetDocumentWithResponse(key, requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(LookupDocument.class)); + } + + /** + * Sends a batch of document write actions to the index. + * + * @param batch The batch of index actions. + * @param accept The Accept header. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the status of operations for all documents in the indexing request on successful + * completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono index(IndexDocumentsBatch batch, CountRequestAccept6 accept) { + // Generated convenience method for indexWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + return indexWithResponse(BinaryData.fromObject(batch), requestOptions).flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(IndexDocumentsResult.class)); + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClient.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClient.java index d9577f9f6faa..5a8391a8d6eb 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClient.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClient.java @@ -23,9 +23,12 @@ import com.azure.search.documents.implementation.SearchClientImpl; import com.azure.search.documents.implementation.SearchUtils; import com.azure.search.documents.implementation.models.AutocompletePostRequest; +import com.azure.search.documents.implementation.models.CountRequestAccept6; import com.azure.search.documents.implementation.models.SuggestPostRequest; import com.azure.search.documents.models.AutocompleteOptions; import com.azure.search.documents.models.AutocompleteResult; +import com.azure.search.documents.models.CountRequestAccept; +import com.azure.search.documents.models.CountRequestAccept3; import com.azure.search.documents.models.IndexBatchException; import com.azure.search.documents.models.IndexDocumentsBatch; import com.azure.search.documents.models.IndexDocumentsOptions; @@ -99,6 +102,14 @@ public SearchServiceVersion getServiceVersion() { /** * Sends a batch of document write actions to the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -163,7 +174,7 @@ ResponseindexWithResponse(BinaryData batch, RequestOptions requestO public long getDocumentCount() { // Generated convenience method for hiddenGeneratedGetDocumentCountWithResponse RequestOptions requestOptions = new RequestOptions(); - return hiddenGeneratedGetDocumentCountWithResponse(requestOptions).getValue().toObject(Long.class); + return Long.parseLong(hiddenGeneratedGetDocumentCountWithResponse(requestOptions).getValue().toString()); } /** @@ -241,48 +252,6 @@ public SearchPagedIterable search(SearchOptions options, RequestOptions requestO }); } - /** - * Retrieves a document from the index. - * - * @param key The key of the document to retrieve. - * @param querySourceAuthorization Token identifying the user for which the query is being executed. This token is - * used to enforce security restrictions on documents. - * @param enableElevatedRead A value that enables elevated read that bypass document level permission checks for the - * query operation. - * @param selectedFields List of field names to retrieve for the document; Any field not retrieved will be missing - * from the returned document. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a document retrieved via a document lookup operation. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public LookupDocument getDocument(String key, String querySourceAuthorization, Boolean enableElevatedRead, - List selectedFields) { - // Generated convenience method for hiddenGeneratedGetDocumentWithResponse - RequestOptions requestOptions = new RequestOptions(); - if (querySourceAuthorization != null) { - requestOptions.setHeader(HttpHeaderName.fromString("x-ms-query-source-authorization"), - querySourceAuthorization); - } - if (enableElevatedRead != null) { - requestOptions.setHeader(HttpHeaderName.fromString("x-ms-enable-elevated-read"), - String.valueOf(enableElevatedRead)); - } - if (selectedFields != null) { - requestOptions.addQueryParam("$select", - selectedFields.stream() - .map(paramItemValue -> Objects.toString(paramItemValue, "")) - .collect(Collectors.joining(",")), - false); - } - return hiddenGeneratedGetDocumentWithResponse(key, requestOptions).getValue().toObject(LookupDocument.class); - } - /** * Retrieves a document from the index. * @@ -384,6 +353,8 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -675,6 +646,14 @@ Response searchWithResponse(BinaryData searchPostRequest, RequestOpt /** * Suggests documents in the index that match the given partial query text. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -735,6 +714,14 @@ ResponsesuggestWithResponse(BinaryData suggestPostRequest, RequestO /** * Autocompletes incomplete query terms based on input text and matching terms in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -963,6 +950,14 @@ public ResponsegetDocumentWithResponse(String key, RequestOptio /** * Queries the number of documents in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -999,6 +994,8 @@ ResponsehiddenGeneratedGetDocumentCountWithResponse(RequestOptions * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1030,4 +1027,98 @@ Response hiddenGeneratedGetDocumentCountWithResponse(RequestOptions Response hiddenGeneratedGetDocumentWithResponse(String key, RequestOptions requestOptions) { return this.serviceClient.getDocumentWithResponse(key, requestOptions); } + + /** + * Queries the number of documents in the index. + * + * @param accept The Accept header. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a 64-bit integer. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public long getDocumentCount(CountRequestAccept accept) { + // Generated convenience method for hiddenGeneratedGetDocumentCountWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + return Long.parseLong(hiddenGeneratedGetDocumentCountWithResponse(requestOptions).getValue().toString()); + } + + /** + * Retrieves a document from the index. + * + * @param key The key of the document to retrieve. + * @param accept The Accept header. + * @param querySourceAuthorization Token identifying the user for which the query is being executed. This token is + * used to enforce security restrictions on documents. + * @param enableElevatedRead A value that enables elevated read that bypass document level permission checks for the + * query operation. + * @param selectedFields List of field names to retrieve for the document; Any field not retrieved will be missing + * from the returned document. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a document retrieved via a document lookup operation. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public LookupDocument getDocument(String key, CountRequestAccept3 accept, String querySourceAuthorization, + Boolean enableElevatedRead, List selectedFields) { + // Generated convenience method for hiddenGeneratedGetDocumentWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + if (querySourceAuthorization != null) { + requestOptions.setHeader(HttpHeaderName.fromString("x-ms-query-source-authorization"), + querySourceAuthorization); + } + if (enableElevatedRead != null) { + requestOptions.setHeader(HttpHeaderName.fromString("x-ms-enable-elevated-read"), + String.valueOf(enableElevatedRead)); + } + if (selectedFields != null) { + requestOptions.addQueryParam("$select", + selectedFields.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + return hiddenGeneratedGetDocumentWithResponse(key, requestOptions).getValue().toObject(LookupDocument.class); + } + + /** + * Sends a batch of document write actions to the index. + * + * @param batch The batch of index actions. + * @param accept The Accept header. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return response containing the status of operations for all documents in the indexing request. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + IndexDocumentsResult index(IndexDocumentsBatch batch, CountRequestAccept6 accept) { + // Generated convenience method for indexWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + return indexWithResponse(BinaryData.fromObject(batch), requestOptions).getValue() + .toObject(IndexDocumentsResult.class); + } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/KnowledgeBaseRetrievalClientImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/KnowledgeBaseRetrievalClientImpl.java index d19ff13c588d..cf76552e7dfc 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/KnowledgeBaseRetrievalClientImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/KnowledgeBaseRetrievalClientImpl.java @@ -148,27 +148,27 @@ public KnowledgeBaseRetrievalClientImpl(HttpPipeline httpPipeline, SerializerAda @Host("{endpoint}") @ServiceInterface(name = "KnowledgeBaseRetrievalClient") public interface KnowledgeBaseRetrievalClientService { - @Post("/retrieve/{knowledgeBaseName}") + @Post("/knowledgebases('{knowledgeBaseName}')/retrieve") @ExpectedResponses({ 200, 206 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > retrieve(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String knowledgeBaseName, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData retrievalRequest, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String knowledgeBaseName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData retrievalRequest, + RequestOptions requestOptions, Context context); - @Post("/retrieve/{knowledgeBaseName}") + @Post("/knowledgebases('{knowledgeBaseName}')/retrieve") @ExpectedResponses({ 200, 206 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response retrieveSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String knowledgeBaseName, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData retrievalRequest, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String knowledgeBaseName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData retrievalRequest, + RequestOptions requestOptions, Context context); } /** @@ -177,6 +177,8 @@ Response retrieveSync(@HostParam("endpoint") String endpoint, * *
@@ -288,10 +290,9 @@ ResponseHeader Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. retrieveSync(@HostParam("endpoint") String endpoint, @ServiceMethod(returns = ReturnType.SINGLE) public Mono > retrieveWithResponseAsync(String knowledgeBaseName, BinaryData retrievalRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.retrieve(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, + .withContext(context -> service.retrieve(this.getEndpoint(), this.getServiceVersion().getVersion(), knowledgeBaseName, contentType, retrievalRequest, requestOptions, context)); } @@ -301,6 +302,8 @@ public Mono > retrieveWithResponseAsync(String knowledgeBase * *
@@ -411,9 +414,8 @@ public MonoHeader Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. > retrieveWithResponseAsync(String knowledgeBase @ServiceMethod(returns = ReturnType.SINGLE) public Response retrieveWithResponse(String knowledgeBaseName, BinaryData retrievalRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String contentType = "application/json"; - return service.retrieveSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - knowledgeBaseName, contentType, retrievalRequest, requestOptions, Context.NONE); + return service.retrieveSync(this.getEndpoint(), this.getServiceVersion().getVersion(), knowledgeBaseName, + contentType, retrievalRequest, requestOptions, Context.NONE); } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchClientImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchClientImpl.java index 6638ba3600e5..7200ea5be496 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchClientImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchClientImpl.java @@ -172,8 +172,8 @@ public interface SearchClientService { @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getDocumentCount(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs/$count") @ExpectedResponses({ 200 }) @@ -182,8 +182,8 @@ Mono > getDocumentCount(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getDocumentCountSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs") @ExpectedResponses({ 200, 206 }) @@ -192,8 +192,8 @@ Response getDocumentCountSync(@HostParam("endpoint") String endpoint @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > searchGet(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs") @ExpectedResponses({ 200, 206 }) @@ -202,8 +202,8 @@ Mono > searchGet(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response searchGetSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/docs/search.post.search") @ExpectedResponses({ 200, 206 }) @@ -212,8 +212,8 @@ Response searchGetSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > search(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData searchPostRequest, RequestOptions requestOptions, Context context); @@ -224,8 +224,8 @@ Mono > search(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response searchSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData searchPostRequest, RequestOptions requestOptions, Context context); @@ -236,9 +236,8 @@ Response searchSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getDocument(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("key") String key, @PathParam("indexName") String indexName, RequestOptions requestOptions, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("key") String key, + @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs('{key}')") @ExpectedResponses({ 200 }) @@ -247,9 +246,8 @@ Mono > getDocument(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getDocumentSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("key") String key, @PathParam("indexName") String indexName, RequestOptions requestOptions, - Context context); + @QueryParam("api-version") String apiVersion, @PathParam("key") String key, + @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs/search.suggest") @ExpectedResponses({ 200 }) @@ -258,9 +256,9 @@ Response getDocumentSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > suggestGet(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @QueryParam("search") String searchText, @QueryParam("suggesterName") String suggesterName, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @QueryParam("search") String searchText, + @QueryParam("suggesterName") String suggesterName, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs/search.suggest") @ExpectedResponses({ 200 }) @@ -269,9 +267,9 @@ Mono > suggestGet(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response suggestGetSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @QueryParam("search") String searchText, @QueryParam("suggesterName") String suggesterName, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @QueryParam("search") String searchText, + @QueryParam("suggesterName") String suggesterName, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/docs/search.post.suggest") @ExpectedResponses({ 200 }) @@ -280,8 +278,8 @@ Response suggestGetSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > suggest(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData suggestPostRequest, RequestOptions requestOptions, Context context); @@ -292,8 +290,8 @@ Mono > suggest(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response suggestSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData suggestPostRequest, RequestOptions requestOptions, Context context); @@ -304,9 +302,9 @@ Response suggestSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > index(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData batch, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData batch, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/docs/search.index") @ExpectedResponses({ 200, 207 }) @@ -315,9 +313,9 @@ Mono > index(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response indexSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData batch, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData batch, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs/search.autocomplete") @ExpectedResponses({ 200 }) @@ -326,9 +324,9 @@ Response indexSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > autocompleteGet(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @QueryParam("search") String searchText, @QueryParam("suggesterName") String suggesterName, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @QueryParam("search") String searchText, + @QueryParam("suggesterName") String suggesterName, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/docs/search.autocomplete") @ExpectedResponses({ 200 }) @@ -337,9 +335,9 @@ Mono > autocompleteGet(@HostParam("endpoint") String endpoin @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response autocompleteGetSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @QueryParam("search") String searchText, @QueryParam("suggesterName") String suggesterName, - @PathParam("indexName") String indexName, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @QueryParam("search") String searchText, + @QueryParam("suggesterName") String suggesterName, @PathParam("indexName") String indexName, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/docs/search.post.autocomplete") @ExpectedResponses({ 200 }) @@ -348,8 +346,8 @@ Response autocompleteGetSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > autocomplete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData autocompletePostRequest, RequestOptions requestOptions, Context context); @@ -360,14 +358,22 @@ Mono > autocomplete(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response autocompleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String indexName, @HeaderParam("Content-Type") String contentType, + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String indexName, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData autocompletePostRequest, RequestOptions requestOptions, Context context); } /** * Queries the number of documents in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -385,13 +391,20 @@ ResponseautocompleteSync(@HostParam("endpoint") String endpoint, */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > getDocumentCountWithResponseAsync(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; return FluxUtil.withContext(context -> service.getDocumentCount(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, this.getIndexName(), requestOptions, context)); + this.getServiceVersion().getVersion(), this.getIndexName(), requestOptions, context)); } /** * Queries the number of documents in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -409,8 +422,7 @@ public Mono> getDocumentCountWithResponseAsync(RequestOptio */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getDocumentCountWithResponse(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; - return service.getDocumentCountSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, + return service.getDocumentCountSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), requestOptions, Context.NONE); } @@ -530,6 +542,8 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -742,9 +756,8 @@ public Response getDocumentCountWithResponse(RequestOptions requestO */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > searchGetWithResponseAsync(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; return FluxUtil.withContext(context -> service.searchGet(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, this.getIndexName(), requestOptions, context)); + this.getServiceVersion().getVersion(), this.getIndexName(), requestOptions, context)); } /** @@ -863,6 +876,8 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1074,9 +1089,8 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ */ @ServiceMethod(returns = ReturnType.SINGLE) public Response searchGetWithResponse(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; - return service.searchGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - this.getIndexName(), requestOptions, Context.NONE); + return service.searchGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), + requestOptions, Context.NONE); } /** @@ -1085,6 +1099,8 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * *
* You can add these to a request with {@link RequestOptions#addQueryParam} + *Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. * x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1372,10 +1388,9 @@ public Response searchGetWithResponse(RequestOptions requestOptions) @ServiceMethod(returns = ReturnType.SINGLE) public Mono > searchWithResponseAsync(BinaryData searchPostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; return FluxUtil.withContext(context -> service.search(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, this.getIndexName(), contentType, searchPostRequest, requestOptions, context)); + this.getIndexName(), contentType, searchPostRequest, requestOptions, context)); } /** @@ -1384,6 +1399,8 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * *
* You can add these to a request with {@link RequestOptions#addQueryParam} + *Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. * x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1669,10 +1686,9 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR */ @ServiceMethod(returns = ReturnType.SINGLE) public Response searchWithResponse(BinaryData searchPostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; - return service.searchSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - this.getIndexName(), contentType, searchPostRequest, requestOptions, Context.NONE); + return service.searchSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), + contentType, searchPostRequest, requestOptions, Context.NONE); } /** @@ -1690,6 +1706,8 @@ public Response searchWithResponse(BinaryData searchPostRequest, Req * *
* You can add these to a request with {@link RequestOptions#addQueryParam} + *Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. * x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1719,9 +1737,8 @@ public Response searchWithResponse(BinaryData searchPostRequest, Req */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > getDocumentWithResponseAsync(String key, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; return FluxUtil.withContext(context -> service.getDocument(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, key, this.getIndexName(), requestOptions, context)); + this.getServiceVersion().getVersion(), key, this.getIndexName(), requestOptions, context)); } /** @@ -1739,6 +1756,8 @@ public Mono > getDocumentWithResponseAsync(String key, Reque * *
* You can add these to a request with {@link RequestOptions#addQueryParam} + *Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". * x-ms-query-source-authorization String No Token identifying the user for which * the query is being executed. This token is used to enforce security restrictions on documents. * x-ms-enable-elevated-read Boolean No A value that enables elevated read that @@ -1767,8 +1786,7 @@ public Mono > getDocumentWithResponseAsync(String key, Reque */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getDocumentWithResponse(String key, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; - return service.getDocumentSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, key, + return service.getDocumentSync(this.getEndpoint(), this.getServiceVersion().getVersion(), key, this.getIndexName(), requestOptions, Context.NONE); } @@ -1807,6 +1825,14 @@ public Response getDocumentWithResponse(String key, RequestOptions r * between 1 and 100. The default is 5. Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -1840,10 +1866,9 @@ public ResponsegetDocumentWithResponse(String key, RequestOptions r @ServiceMethod(returns = ReturnType.SINGLE) public Mono > suggestGetWithResponseAsync(String searchText, String suggesterName, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; return FluxUtil .withContext(context -> service.suggestGet(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, searchText, suggesterName, this.getIndexName(), requestOptions, context)); + searchText, suggesterName, this.getIndexName(), requestOptions, context)); } /** @@ -1881,6 +1906,14 @@ public Mono > suggestGetWithResponseAsync(String searchText, * between 1 and 100. The default is 5. Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -1913,13 +1946,20 @@ public Mono> suggestGetWithResponseAsync(String searchText, @ServiceMethod(returns = ReturnType.SINGLE) public Response suggestGetWithResponse(String searchText, String suggesterName, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; - return service.suggestGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, searchText, + return service.suggestGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), searchText, suggesterName, this.getIndexName(), requestOptions, Context.NONE); } /** * Suggests documents in the index that match the given partial query text. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -1976,15 +2016,22 @@ public ResponsesuggestGetWithResponse(String searchText, String sug @ServiceMethod(returns = ReturnType.SINGLE) public Mono > suggestWithResponseAsync(BinaryData suggestPostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.suggest(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, + .withContext(context -> service.suggest(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), contentType, suggestPostRequest, requestOptions, context)); } /** * Suggests documents in the index that match the given partial query text. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -2039,14 +2086,21 @@ public Mono> suggestWithResponseAsync(BinaryData suggestPos */ @ServiceMethod(returns = ReturnType.SINGLE) public Response suggestWithResponse(BinaryData suggestPostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; - return service.suggestSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - this.getIndexName(), contentType, suggestPostRequest, requestOptions, Context.NONE); + return service.suggestSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), + contentType, suggestPostRequest, requestOptions, Context.NONE); } /** * Sends a batch of document write actions to the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -2092,14 +2146,21 @@ public ResponsesuggestWithResponse(BinaryData suggestPostRequest, R */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > indexWithResponseAsync(BinaryData batch, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; return FluxUtil.withContext(context -> service.index(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, this.getIndexName(), contentType, batch, requestOptions, context)); + this.getIndexName(), contentType, batch, requestOptions, context)); } /** * Sends a batch of document write actions to the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -2145,9 +2206,8 @@ public Mono> indexWithResponseAsync(BinaryData batch, Reque */ @ServiceMethod(returns = ReturnType.SINGLE) public Response indexWithResponse(BinaryData batch, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; - return service.indexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, this.getIndexName(), + return service.indexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), contentType, batch, requestOptions, Context.NONE); } @@ -2181,6 +2241,14 @@ public Response indexWithResponse(BinaryData batch, RequestOptions r * value between 1 and 100. The default is 5. Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -2210,10 +2278,9 @@ public ResponseindexWithResponse(BinaryData batch, RequestOptions r @ServiceMethod(returns = ReturnType.SINGLE) public Mono > autocompleteGetWithResponseAsync(String searchText, String suggesterName, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; return FluxUtil .withContext(context -> service.autocompleteGet(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, searchText, suggesterName, this.getIndexName(), requestOptions, context)); + searchText, suggesterName, this.getIndexName(), requestOptions, context)); } /** @@ -2246,6 +2313,14 @@ public Mono > autocompleteGetWithResponseAsync(String search * value between 1 and 100. The default is 5. Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
* *@@ -2275,13 +2350,20 @@ public Mono> autocompleteGetWithResponseAsync(String search @ServiceMethod(returns = ReturnType.SINGLE) public Response autocompleteGetWithResponse(String searchText, String suggesterName, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; - return service.autocompleteGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - searchText, suggesterName, this.getIndexName(), requestOptions, Context.NONE); + return service.autocompleteGetSync(this.getEndpoint(), this.getServiceVersion().getVersion(), searchText, + suggesterName, this.getIndexName(), requestOptions, Context.NONE); } /** * Autocompletes incomplete query terms based on input text and matching terms in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -2330,15 +2412,22 @@ public ResponseautocompleteGetWithResponse(String searchText, Strin @ServiceMethod(returns = ReturnType.SINGLE) public Mono > autocompleteWithResponseAsync(BinaryData autocompletePostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; return FluxUtil .withContext(context -> service.autocomplete(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, this.getIndexName(), contentType, autocompletePostRequest, requestOptions, context)); + this.getIndexName(), contentType, autocompletePostRequest, requestOptions, context)); } /** * Autocompletes incomplete query terms based on input text and matching terms in the index. + * Header Parameters
+ *+ *
+ * You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters + *+ * Name Type Required Description + * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
* *@@ -2387,9 +2476,8 @@ public Mono> autocompleteWithResponseAsync(BinaryData autoc @ServiceMethod(returns = ReturnType.SINGLE) public Response autocompleteWithResponse(BinaryData autocompletePostRequest, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=none"; final String contentType = "application/json"; - return service.autocompleteSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - this.getIndexName(), contentType, autocompletePostRequest, requestOptions, Context.NONE); + return service.autocompleteSync(this.getEndpoint(), this.getServiceVersion().getVersion(), this.getIndexName(), + contentType, autocompletePostRequest, requestOptions, Context.NONE); } } diff --git a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchIndexClientImpl.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchIndexClientImpl.java index 349f769c51cd..d44539e466b4 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchIndexClientImpl.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/implementation/SearchIndexClientImpl.java @@ -163,10 +163,9 @@ public interface SearchIndexClientService { @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createOrUpdateSynonymMap(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("synonymMapName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData synonymMap, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("synonymMapName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData synonymMap, RequestOptions requestOptions, Context context); @Put("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200, 201 }) @@ -175,10 +174,9 @@ Mono > createOrUpdateSynonymMap(@HostParam("endpoint") Strin @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createOrUpdateSynonymMapSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("synonymMapName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData synonymMap, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("synonymMapName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData synonymMap, RequestOptions requestOptions, Context context); @Delete("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 204, 404 }) @@ -186,8 +184,8 @@ Response createOrUpdateSynonymMapSync(@HostParam("endpoint") String @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > deleteSynonymMap(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("synonymMapName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("synonymMapName") String name, + RequestOptions requestOptions, Context context); @Delete("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 204, 404 }) @@ -195,8 +193,8 @@ Mono > deleteSynonymMap(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteSynonymMapSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("synonymMapName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("synonymMapName") String name, + RequestOptions requestOptions, Context context); @Get("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200 }) @@ -205,8 +203,8 @@ Response deleteSynonymMapSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getSynonymMap(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("synonymMapName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("synonymMapName") String name, + RequestOptions requestOptions, Context context); @Get("/synonymmaps('{synonymMapName}')") @ExpectedResponses({ 200 }) @@ -215,8 +213,8 @@ Mono > getSynonymMap(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getSynonymMapSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("synonymMapName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("synonymMapName") String name, + RequestOptions requestOptions, Context context); @Get("/synonymmaps") @ExpectedResponses({ 200 }) @@ -225,8 +223,7 @@ Response getSynonymMapSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getSynonymMaps(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/synonymmaps") @ExpectedResponses({ 200 }) @@ -235,8 +232,7 @@ Mono > getSynonymMaps(@HostParam("endpoint") String endpoint @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getSynonymMapsSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Post("/synonymmaps") @ExpectedResponses({ 201 }) @@ -245,9 +241,8 @@ Response getSynonymMapsSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createSynonymMap(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData synonymMap, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData synonymMap, RequestOptions requestOptions, Context context); @Post("/synonymmaps") @ExpectedResponses({ 201 }) @@ -256,9 +251,8 @@ Mono > createSynonymMap(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createSynonymMapSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData synonymMap, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData synonymMap, RequestOptions requestOptions, Context context); @Put("/indexes('{indexName}')") @ExpectedResponses({ 200, 201 }) @@ -267,10 +261,9 @@ Response createSynonymMapSync(@HostParam("endpoint") String endpoint @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createOrUpdateIndex(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("indexName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData index, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("indexName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData index, RequestOptions requestOptions, Context context); @Put("/indexes('{indexName}')") @ExpectedResponses({ 200, 201 }) @@ -279,10 +272,9 @@ Mono > createOrUpdateIndex(@HostParam("endpoint") String end @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createOrUpdateIndexSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("indexName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData index, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("indexName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData index, RequestOptions requestOptions, Context context); @Delete("/indexes('{indexName}')") @ExpectedResponses({ 204, 404 }) @@ -290,8 +282,8 @@ Response createOrUpdateIndexSync(@HostParam("endpoint") String endpo @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > deleteIndex(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Delete("/indexes('{indexName}')") @ExpectedResponses({ 204, 404 }) @@ -299,8 +291,8 @@ Mono > deleteIndex(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteIndexSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')") @ExpectedResponses({ 200 }) @@ -309,8 +301,8 @@ Response deleteIndexSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getIndex(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')") @ExpectedResponses({ 200 }) @@ -319,8 +311,8 @@ Mono > getIndex(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getIndexSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Get("/indexes") @ExpectedResponses({ 200 }) @@ -329,8 +321,7 @@ Response getIndexSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > listIndexes(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/indexes") @ExpectedResponses({ 200 }) @@ -339,8 +330,25 @@ Mono > listIndexes(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listIndexesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + + @Get("/indexes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono > listIndexesWithSelectedProperties(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); + + @Get("/indexes") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response listIndexesWithSelectedPropertiesSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Post("/indexes") @ExpectedResponses({ 201 }) @@ -349,9 +357,8 @@ Response listIndexesSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createIndex(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData index, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData index, RequestOptions requestOptions, Context context); @Post("/indexes") @ExpectedResponses({ 201 }) @@ -360,9 +367,8 @@ Mono > createIndex(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createIndexSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData index, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData index, RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/search.stats") @ExpectedResponses({ 200 }) @@ -371,8 +377,8 @@ Response createIndexSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getIndexStatistics(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Get("/indexes('{indexName}')/search.stats") @ExpectedResponses({ 200 }) @@ -381,8 +387,8 @@ Mono > getIndexStatistics(@HostParam("endpoint") String endp @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getIndexStatisticsSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/search.analyze") @ExpectedResponses({ 200 }) @@ -391,9 +397,9 @@ Response getIndexStatisticsSync(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > analyzeText(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData request, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData request, + RequestOptions requestOptions, Context context); @Post("/indexes('{indexName}')/search.analyze") @ExpectedResponses({ 200 }) @@ -402,9 +408,9 @@ Mono > analyzeText(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response analyzeTextSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("indexName") String name, @HeaderParam("Content-Type") String contentType, - @BodyParam("application/json") BinaryData request, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("indexName") String name, + @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData request, + RequestOptions requestOptions, Context context); @Put("/aliases('{aliasName}')") @ExpectedResponses({ 200, 201 }) @@ -413,10 +419,9 @@ Response analyzeTextSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createOrUpdateAlias(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("aliasName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData alias, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("aliasName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData alias, RequestOptions requestOptions, Context context); @Put("/aliases('{aliasName}')") @ExpectedResponses({ 200, 201 }) @@ -425,10 +430,9 @@ Mono > createOrUpdateAlias(@HostParam("endpoint") String end @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createOrUpdateAliasSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("aliasName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData alias, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("aliasName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData alias, RequestOptions requestOptions, Context context); @Delete("/aliases('{aliasName}')") @ExpectedResponses({ 204, 404 }) @@ -436,8 +440,8 @@ Response createOrUpdateAliasSync(@HostParam("endpoint") String endpo @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > deleteAlias(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("aliasName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("aliasName") String name, + RequestOptions requestOptions, Context context); @Delete("/aliases('{aliasName}')") @ExpectedResponses({ 204, 404 }) @@ -445,8 +449,8 @@ Mono > deleteAlias(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteAliasSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("aliasName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("aliasName") String name, + RequestOptions requestOptions, Context context); @Get("/aliases('{aliasName}')") @ExpectedResponses({ 200 }) @@ -455,8 +459,8 @@ Response deleteAliasSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getAlias(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("aliasName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("aliasName") String name, + RequestOptions requestOptions, Context context); @Get("/aliases('{aliasName}')") @ExpectedResponses({ 200 }) @@ -465,8 +469,8 @@ Mono > getAlias(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getAliasSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("aliasName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("aliasName") String name, + RequestOptions requestOptions, Context context); @Get("/aliases") @ExpectedResponses({ 200 }) @@ -475,8 +479,7 @@ Response getAliasSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > listAliases(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/aliases") @ExpectedResponses({ 200 }) @@ -485,8 +488,7 @@ Mono > listAliases(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listAliasesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Post("/aliases") @ExpectedResponses({ 201 }) @@ -495,9 +497,8 @@ Response listAliasesSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createAlias(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData alias, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData alias, RequestOptions requestOptions, Context context); @Post("/aliases") @ExpectedResponses({ 201 }) @@ -506,9 +507,8 @@ Mono > createAlias(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createAliasSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData alias, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData alias, RequestOptions requestOptions, Context context); @Put("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 200, 201 }) @@ -517,10 +517,9 @@ Response createAliasSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createOrUpdateKnowledgeBase(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("knowledgeBaseName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeBase, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("knowledgeBaseName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeBase, RequestOptions requestOptions, Context context); @Put("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 200, 201 }) @@ -529,10 +528,9 @@ Mono > createOrUpdateKnowledgeBase(@HostParam("endpoint") St @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createOrUpdateKnowledgeBaseSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("knowledgeBaseName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeBase, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("knowledgeBaseName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeBase, RequestOptions requestOptions, Context context); @Delete("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 204, 404 }) @@ -540,8 +538,8 @@ Response createOrUpdateKnowledgeBaseSync(@HostParam("endpoint") Stri @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > deleteKnowledgeBase(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String name, + RequestOptions requestOptions, Context context); @Delete("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 204, 404 }) @@ -549,8 +547,8 @@ Mono > deleteKnowledgeBase(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteKnowledgeBaseSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 200 }) @@ -559,8 +557,8 @@ Response deleteKnowledgeBaseSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getKnowledgeBase(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgebases('{knowledgeBaseName}')") @ExpectedResponses({ 200 }) @@ -569,8 +567,8 @@ Mono > getKnowledgeBase(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getKnowledgeBaseSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("knowledgeBaseName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("knowledgeBaseName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgebases") @ExpectedResponses({ 200 }) @@ -579,8 +577,7 @@ Response getKnowledgeBaseSync(@HostParam("endpoint") String endpoint @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > listKnowledgeBases(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/knowledgebases") @ExpectedResponses({ 200 }) @@ -589,8 +586,7 @@ Mono > listKnowledgeBases(@HostParam("endpoint") String endp @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listKnowledgeBasesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Post("/knowledgebases") @ExpectedResponses({ 201 }) @@ -599,9 +595,8 @@ Response listKnowledgeBasesSync(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createKnowledgeBase(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeBase, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeBase, RequestOptions requestOptions, Context context); @Post("/knowledgebases") @ExpectedResponses({ 201 }) @@ -610,9 +605,8 @@ Mono > createKnowledgeBase(@HostParam("endpoint") String end @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createKnowledgeBaseSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeBase, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeBase, RequestOptions requestOptions, Context context); @Put("/knowledgesources('{sourceName}')") @ExpectedResponses({ 200, 201 }) @@ -621,10 +615,9 @@ Response createKnowledgeBaseSync(@HostParam("endpoint") String endpo @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createOrUpdateKnowledgeSource(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("sourceName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeSource, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("sourceName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeSource, RequestOptions requestOptions, Context context); @Put("/knowledgesources('{sourceName}')") @ExpectedResponses({ 200, 201 }) @@ -633,10 +626,9 @@ Mono > createOrUpdateKnowledgeSource(@HostParam("endpoint") @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createOrUpdateKnowledgeSourceSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Prefer") String prefer, @PathParam("sourceName") String name, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeSource, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Prefer") String prefer, + @PathParam("sourceName") String name, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeSource, RequestOptions requestOptions, Context context); @Delete("/knowledgesources('{sourceName}')") @ExpectedResponses({ 204, 404 }) @@ -644,8 +636,8 @@ Response createOrUpdateKnowledgeSourceSync(@HostParam("endpoint") St @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > deleteKnowledgeSource(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Delete("/knowledgesources('{sourceName}')") @ExpectedResponses({ 204, 404 }) @@ -653,8 +645,8 @@ Mono > deleteKnowledgeSource(@HostParam("endpoint") String endpoin @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response deleteKnowledgeSourceSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgesources('{sourceName}')") @ExpectedResponses({ 200 }) @@ -663,8 +655,8 @@ Response deleteKnowledgeSourceSync(@HostParam("endpoint") String endpoint, @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getKnowledgeSource(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgesources('{sourceName}')") @ExpectedResponses({ 200 }) @@ -673,8 +665,8 @@ Mono > getKnowledgeSource(@HostParam("endpoint") String endp @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getKnowledgeSourceSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgesources") @ExpectedResponses({ 200 }) @@ -683,8 +675,7 @@ Response getKnowledgeSourceSync(@HostParam("endpoint") String endpoi @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > listKnowledgeSources(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/knowledgesources") @ExpectedResponses({ 200 }) @@ -693,8 +684,7 @@ Mono > listKnowledgeSources(@HostParam("endpoint") String en @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listKnowledgeSourcesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Post("/knowledgesources") @ExpectedResponses({ 201 }) @@ -703,9 +693,8 @@ Response listKnowledgeSourcesSync(@HostParam("endpoint") String endp @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > createKnowledgeSource(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeSource, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeSource, RequestOptions requestOptions, Context context); @Post("/knowledgesources") @ExpectedResponses({ 201 }) @@ -714,9 +703,8 @@ Mono > createKnowledgeSource(@HostParam("endpoint") String e @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response createKnowledgeSourceSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @HeaderParam("Content-Type") String contentType, @BodyParam("application/json") BinaryData knowledgeSource, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") BinaryData knowledgeSource, RequestOptions requestOptions, Context context); @Get("/knowledgesources('{sourceName}')/status") @ExpectedResponses({ 200 }) @@ -725,8 +713,8 @@ Response createKnowledgeSourceSync(@HostParam("endpoint") String end @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getKnowledgeSourceStatus(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Get("/knowledgesources('{sourceName}')/status") @ExpectedResponses({ 200 }) @@ -735,8 +723,8 @@ Mono > getKnowledgeSourceStatus(@HostParam("endpoint") Strin @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getKnowledgeSourceStatusSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - @PathParam("sourceName") String name, RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, @PathParam("sourceName") String name, + RequestOptions requestOptions, Context context); @Get("/servicestats") @ExpectedResponses({ 200 }) @@ -745,8 +733,7 @@ Response getKnowledgeSourceStatusSync(@HostParam("endpoint") String @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > getServiceStatistics(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/servicestats") @ExpectedResponses({ 200 }) @@ -755,8 +742,7 @@ Mono > getServiceStatistics(@HostParam("endpoint") String en @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response getServiceStatisticsSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/indexstats") @ExpectedResponses({ 200 }) @@ -765,8 +751,7 @@ Response getServiceStatisticsSync(@HostParam("endpoint") String endp @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Mono > listIndexStatsSummary(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); @Get("/indexstats") @ExpectedResponses({ 200 }) @@ -775,8 +760,7 @@ Mono > listIndexStatsSummary(@HostParam("endpoint") String e @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) @UnexpectedResponseExceptionType(HttpResponseException.class) Response listIndexStatsSummarySync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, - RequestOptions requestOptions, Context context); + @QueryParam("api-version") String apiVersion, RequestOptions requestOptions, Context context); } /** @@ -785,6 +769,8 @@ Response listIndexStatsSummarySync(@HostParam("endpoint") String end * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". * If-Match String No Defines the If-Match condition. The operation will be * performed only if the ETag on the server matches this value. If-None-Match String No Defines the If-None-Match condition. The operation will @@ -857,12 +843,10 @@ Response listIndexStatsSummarySync(@HostParam("endpoint") String end @ServiceMethod(returns = ReturnType.SINGLE) public Mono > createOrUpdateSynonymMapWithResponseAsync(String name, BinaryData synonymMap, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String prefer = "return=representation"; final String contentType = "application/json"; - return FluxUtil.withContext( - context -> service.createOrUpdateSynonymMap(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, prefer, name, contentType, synonymMap, requestOptions, context)); + return FluxUtil.withContext(context -> service.createOrUpdateSynonymMap(this.getEndpoint(), + this.getServiceVersion().getVersion(), prefer, name, contentType, synonymMap, requestOptions, context)); } /** @@ -871,6 +855,8 @@ public Mono > createOrUpdateSynonymMapWithResponseAsync(Stri * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". * If-Match String No Defines the If-Match condition. The operation will be * performed only if the ETag on the server matches this value. If-None-Match String No Defines the If-None-Match condition. The operation will @@ -943,11 +929,10 @@ public Mono > createOrUpdateSynonymMapWithResponseAsync(Stri @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateSynonymMapWithResponse(String name, BinaryData synonymMap, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String prefer = "return=representation"; final String contentType = "application/json"; - return service.createOrUpdateSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - prefer, name, contentType, synonymMap, requestOptions, Context.NONE); + return service.createOrUpdateSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), prefer, + name, contentType, synonymMap, requestOptions, Context.NONE); } /** @@ -956,6 +941,8 @@ public Response createOrUpdateSynonymMapWithResponse(String name, Bi * *
Header Parameters *+ * Name Type Required Description * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". * If-Match String No Defines the If-Match condition. The operation will be * performed only if the ETag on the server matches this value. If-None-Match String No Defines the If-None-Match condition. The operation will @@ -972,9 +959,8 @@ public Response createOrUpdateSynonymMapWithResponse(String name, Bi */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > deleteSynonymMapWithResponseAsync(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil.withContext(context -> service.deleteSynonymMap(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, name, requestOptions, context)); + this.getServiceVersion().getVersion(), name, requestOptions, context)); } /** @@ -983,6 +969,8 @@ public Mono > deleteSynonymMapWithResponseAsync(String name, Reque *