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..e466641958ae 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 Mono@@ -502,17 +458,6 @@ 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,10 +352,8 @@ public Mono > indexDocumentsWithResponse(IndexDocu * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
@@ -422,8 +388,6 @@ public Mono> indexDocumentsWithResponse(IndexDocu * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -435,10 +399,6 @@ public Mono > indexDocumentsWithResponse(IndexDocu * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -455,10 +415,6 @@ public Mono > indexDocumentsWithResponse(IndexDocu * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } *
Header Parameters
+ *| Name | Type | Required | Description |
|---|---|---|---|
| Accept | String | No | The Accept header. Allowed values: + * "application/json;odata.metadata=none". |
Request Body Schema
* *@@ -737,6 +662,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 +901,14 @@ public Mono@@ -1669,10 +1462,9 @@ 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,10 +945,8 @@ Mono@@ -675,6 +593,14 @@ Response> hiddenGeneratedGetDocumentCountWithResponse(RequestOp * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -1036,4 +975,88 @@ 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 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, List selectedFields) { + // Generated convenience method for hiddenGeneratedGetDocumentWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + 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..5ce375e19007 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 @@ Response@@ -502,17 +459,6 @@ public 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,10 +353,8 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
@@ -422,8 +389,6 @@ public ResponseindexDocumentsWithResponse(IndexDocumentsB * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -435,10 +400,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -455,10 +416,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } * indexDocumentsWithResponse(IndexDocumentsB * } * ] * @search.debug (Optional): { - * queryRewrites (Optional): { - * text (Optional): { - * inputQuery: String (Optional) - * rewrites (Optional): [ - * String (Optional) - * ] - * } - * vectors (Optional): [ - * (recursive schema, see above) - * ] - * } * } * @search.nextPageParameters (Optional): { * count: Boolean (Optional) @@ -542,8 +488,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -555,10 +499,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -575,10 +515,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -600,23 +536,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * } * ] * @search.documentDebugInfo (Optional): { - * semantic (Optional): { - * titleField (Optional): { - * name: String (Optional) - * state: String(used/unused/partial) (Optional) - * } - * contentFields (Optional): [ - * (recursive schema, see above) - * ] - * keywordFields (Optional): [ - * (recursive schema, see above) - * ] - * rerankerInput (Optional): { - * title: String (Optional) - * content: String (Optional) - * keywords: String (Optional) - * } - * } * vectors (Optional): { * subscores (Optional): { * text (Optional): { @@ -654,7 +573,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * @odata.nextLink: String (Optional) * @search.semanticPartialResponseReason: String(maxWaitExceeded/capacityOverloaded/transient) (Optional) * @search.semanticPartialResponseType: String(baseResults/rerankedResults) (Optional) - * @search.semanticQueryRewritesResultType: String(originalQueryOnly) (Optional) * } * } * 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 +661,14 @@ Response@@ -1502,17 +1334,6 @@ public MonosuggestWithResponse(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 +897,14 @@ public Response@@ -1372,10 +1217,9 @@ 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,10 +941,8 @@ Response@@ -1203,17 +1087,6 @@ public ResponsehiddenGeneratedGetDocumentCountWithResponse(RequestOptions * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -1030,4 +970,85 @@ ResponsehiddenGeneratedGetDocumentCountWithResponse(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 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, List selectedFields) { + // Generated convenience method for hiddenGeneratedGetDocumentWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (accept != null) { + requestOptions.setHeader(HttpHeaderName.ACCEPT, accept.toString()); + } + 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/SearchServiceVersion.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java index a01158060d8a..43c3a91565e7 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchServiceVersion.java @@ -27,9 +27,9 @@ public enum SearchServiceVersion implements ServiceVersion { */ V2025_09_01("2025-09-01"), /** - * Enum value 2025-11-01-preview. + * Enum value 2026-04-01. */ - V2025_11_01_PREVIEW("2025-11-01-preview"); + V2026_04_01("2026-04-01"); private final String version; @@ -51,6 +51,6 @@ public String getVersion() { * @return The latest {@link SearchServiceVersion}. */ public static SearchServiceVersion getLatest() { - return V2025_11_01_PREVIEW; + return V2026_04_01; } } 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..d292ed969226 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,8 +177,8 @@ Response retrieveSync(@HostParam("endpoint") String endpoint, * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description + * 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. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Request Body Schema
@@ -202,19 +202,14 @@ ResponseretrieveSync(@HostParam("endpoint") String endpoint, * } * ] * maxRuntimeInSeconds: Integer (Optional) - * maxOutputSize: Integer (Optional) - * retrievalReasoningEffort (Optional): { - * kind: String(minimal/low/medium) (Required) - * } + * maxOutputSizeInTokens: Integer (Optional) * includeActivity: Boolean (Optional) - * outputMode: String(extractiveData/answerSynthesis) (Optional) * knowledgeSourceParams (Optional): [ * (Optional){ - * kind: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required) + * kind: String(searchIndex/azureBlob/indexedOneLake/web) (Required) * knowledgeSourceName: String (Required) * includeReferences: Boolean (Optional) * includeReferenceSourceData: Boolean (Optional) - * alwaysQuerySource: Boolean (Optional) * rerankerThreshold: Float (Optional) * } * ] @@ -239,7 +234,7 @@ Response retrieveSync(@HostParam("endpoint") String endpoint, * ] * activity (Optional): [ * (Optional){ - * type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint/modelQueryPlanning/modelAnswerSynthesis/agenticReasoning) (Required) + * type: String(searchIndex/azureBlob/indexedOneLake/web/agenticReasoning) (Required) * id: int (Required) * elapsedMs: Integer (Optional) * error (Optional): { @@ -262,7 +257,7 @@ Response retrieveSync(@HostParam("endpoint") String endpoint, * ] * references (Optional): [ * (Optional){ - * type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required) + * type: String(searchIndex/azureBlob/indexedOneLake/web) (Required) * id: String (Required) * activitySource: int (Required) * sourceData (Optional): { @@ -288,10 +283,9 @@ Response 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,8 +295,8 @@ public Mono > retrieveWithResponseAsync(String knowledgeBase * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description + * 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. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Request Body Schema
@@ -326,19 +320,14 @@ public Mono> retrieveWithResponseAsync(String knowledgeBase * } * ] * maxRuntimeInSeconds: Integer (Optional) - * maxOutputSize: Integer (Optional) - * retrievalReasoningEffort (Optional): { - * kind: String(minimal/low/medium) (Required) - * } + * maxOutputSizeInTokens: Integer (Optional) * includeActivity: Boolean (Optional) - * outputMode: String(extractiveData/answerSynthesis) (Optional) * knowledgeSourceParams (Optional): [ * (Optional){ - * kind: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required) + * kind: String(searchIndex/azureBlob/indexedOneLake/web) (Required) * knowledgeSourceName: String (Required) * includeReferences: Boolean (Optional) * includeReferenceSourceData: Boolean (Optional) - * alwaysQuerySource: Boolean (Optional) * rerankerThreshold: Float (Optional) * } * ] @@ -363,7 +352,7 @@ public Mono > retrieveWithResponseAsync(String knowledgeBase * ] * activity (Optional): [ * (Optional){ - * type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint/modelQueryPlanning/modelAnswerSynthesis/agenticReasoning) (Required) + * type: String(searchIndex/azureBlob/indexedOneLake/web/agenticReasoning) (Required) * id: int (Required) * elapsedMs: Integer (Optional) * error (Optional): { @@ -386,7 +375,7 @@ public Mono > retrieveWithResponseAsync(String knowledgeBase * ] * references (Optional): [ * (Optional){ - * type: String(searchIndex/azureBlob/indexedSharePoint/indexedOneLake/web/remoteSharePoint) (Required) + * type: String(searchIndex/azureBlob/indexedOneLake/web) (Required) * id: String (Required) * activitySource: int (Required) * sourceData (Optional): { @@ -411,9 +400,8 @@ public Mono > 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..bbe94cb851d9 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 @@ Response@@ -1074,9 +971,8 @@ public MonoautocompleteSync(@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@@ -742,9 +697,8 @@ public Response> 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); } @@ -506,34 +518,16 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there * is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic * phase. - * * queryRewrites String No When QueryRewrites is set to `generative`, the query - * terms are sent to a generate model which will produce 10 (default) rewrites to help increase the recall of the - * request. The requested count can be configured by appending the pipe character `|` followed by the - * `count-<number of rewrites>` option, such as `generative|count-3`. Defaults to `None`. This parameter is - * only valid if the query type is `semantic`. Allowed values: "none", "generative". - * debug String No Enables a debugging tool that can be used to further explore your * search results. Allowed values: "disabled", "semantic", "vector", "queryRewrites", "innerHits", "all". - * queryLanguage String No The language of the query. Allowed values: "none", - * "en-us", "en-gb", "en-in", "en-ca", "en-au", "fr-fr", "fr-ca", "de-de", "es-es", "es-mx", "zh-cn", "zh-tw", - * "pt-br", "pt-pt", "it-it", "ja-jp", "ko-kr", "ru-ru", "cs-cz", "nl-be", "nl-nl", "hu-hu", "pl-pl", "sv-se", - * "tr-tr", "hi-in", "ar-sa", "ar-eg", "ar-ma", "ar-kw", "ar-jo", "da-dk", "no-no", "bg-bg", "hr-hr", "hr-ba", - * "ms-my", "ms-bn", "sl-sl", "ta-in", "vi-vn", "el-gr", "ro-ro", "is-is", "id-id", "th-th", "lt-lt", "uk-ua", - * "lv-lv", "et-ee", "ca-es", "fi-fi", "sr-ba", "sr-me", "sr-rs", "sk-sk", "nb-no", "hy-am", "bn-in", "eu-es", - * "gl-es", "gu-in", "he-il", "ga-ie", "kn-in", "ml-in", "mr-in", "fa-ae", "pa-in", "te-in", "ur-pk". - * speller String No Improve search recall by spell-correcting individual search - * query terms. Allowed values: "none", "lexicon". * * You can add these to a request with {@link RequestOptions#addQueryParam} * semanticFields List<String> No The list of field names used for semantic - * ranking. In the form of "," separated string. Header Parameters
**
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -575,17 +569,6 @@ public ResponsegetDocumentCountWithResponse(RequestOptions requestO * } * ] * @search.debug (Optional): { - * queryRewrites (Optional): { - * text (Optional): { - * inputQuery: String (Optional) - * rewrites (Optional): [ - * String (Optional) - * ] - * } - * vectors (Optional): [ - * (recursive schema, see above) - * ] - * } * } * @search.nextPageParameters (Optional): { * count: Boolean (Optional) @@ -615,8 +598,6 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -628,10 +609,6 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -648,10 +625,6 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -673,23 +646,6 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * } * ] * @search.documentDebugInfo (Optional): { - * semantic (Optional): { - * titleField (Optional): { - * name: String (Optional) - * state: String(used/unused/partial) (Optional) - * } - * contentFields (Optional): [ - * (recursive schema, see above) - * ] - * keywordFields (Optional): [ - * (recursive schema, see above) - * ] - * rerankerInput (Optional): { - * title: String (Optional) - * content: String (Optional) - * keywords: String (Optional) - * } - * } * vectors (Optional): { * subscores (Optional): { * text (Optional): { @@ -727,7 +683,6 @@ public Response getDocumentCountWithResponse(RequestOptions requestO * @odata.nextLink: String (Optional) * @search.semanticPartialResponseReason: String(maxWaitExceeded/capacityOverloaded/transient) (Optional) * @search.semanticPartialResponseType: String(baseResults/rerankedResults) (Optional) - * @search.semanticQueryRewritesResultType: String(originalQueryOnly) (Optional) * } * } * 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)); } /** @@ -839,34 +793,16 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there * is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic * phase. - * * queryRewrites String No When QueryRewrites is set to `generative`, the query - * terms are sent to a generate model which will produce 10 (default) rewrites to help increase the recall of the - * request. The requested count can be configured by appending the pipe character `|` followed by the - * `count-<number of rewrites>` option, such as `generative|count-3`. Defaults to `None`. This parameter is - * only valid if the query type is `semantic`. Allowed values: "none", "generative". - * debug String No Enables a debugging tool that can be used to further explore your * search results. Allowed values: "disabled", "semantic", "vector", "queryRewrites", "innerHits", "all". - * queryLanguage String No The language of the query. Allowed values: "none", - * "en-us", "en-gb", "en-in", "en-ca", "en-au", "fr-fr", "fr-ca", "de-de", "es-es", "es-mx", "zh-cn", "zh-tw", - * "pt-br", "pt-pt", "it-it", "ja-jp", "ko-kr", "ru-ru", "cs-cz", "nl-be", "nl-nl", "hu-hu", "pl-pl", "sv-se", - * "tr-tr", "hi-in", "ar-sa", "ar-eg", "ar-ma", "ar-kw", "ar-jo", "da-dk", "no-no", "bg-bg", "hr-hr", "hr-ba", - * "ms-my", "ms-bn", "sl-sl", "ta-in", "vi-vn", "el-gr", "ro-ro", "is-is", "id-id", "th-th", "lt-lt", "uk-ua", - * "lv-lv", "et-ee", "ca-es", "fi-fi", "sr-ba", "sr-me", "sr-rs", "sk-sk", "nb-no", "hy-am", "bn-in", "eu-es", - * "gl-es", "gu-in", "he-il", "ga-ie", "kn-in", "ml-in", "mr-in", "fa-ae", "pa-in", "te-in", "ur-pk". - * speller String No Improve search recall by spell-correcting individual search - * query terms. Allowed values: "none", "lexicon". * * You can add these to a request with {@link RequestOptions#addQueryParam} * semanticFields List<String> No The list of field names used for semantic - * ranking. In the form of "," separated string. Header Parameters
**
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -908,17 +844,6 @@ public Mono> searchGetWithResponseAsync(RequestOptions requ * } * ] * @search.debug (Optional): { - * queryRewrites (Optional): { - * text (Optional): { - * inputQuery: String (Optional) - * rewrites (Optional): [ - * String (Optional) - * ] - * } - * vectors (Optional): [ - * (recursive schema, see above) - * ] - * } * } * @search.nextPageParameters (Optional): { * count: Boolean (Optional) @@ -948,8 +873,6 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -961,10 +884,6 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -981,10 +900,6 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -1006,23 +921,6 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * } * ] * @search.documentDebugInfo (Optional): { - * semantic (Optional): { - * titleField (Optional): { - * name: String (Optional) - * state: String(used/unused/partial) (Optional) - * } - * contentFields (Optional): [ - * (recursive schema, see above) - * ] - * keywordFields (Optional): [ - * (recursive schema, see above) - * ] - * rerankerInput (Optional): { - * title: String (Optional) - * content: String (Optional) - * keywords: String (Optional) - * } - * } * vectors (Optional): { * subscores (Optional): { * text (Optional): { @@ -1060,7 +958,6 @@ public Mono > searchGetWithResponseAsync(RequestOptions requ * @odata.nextLink: String (Optional) * @search.semanticPartialResponseReason: String(maxWaitExceeded/capacityOverloaded/transient) (Optional) * @search.semanticPartialResponseType: String(baseResults/rerankedResults) (Optional) - * @search.semanticQueryRewritesResultType: String(originalQueryOnly) (Optional) * } * } * > 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,10 +981,8 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
@@ -1123,8 +1017,6 @@ public ResponsesearchGetWithResponse(RequestOptions requestOptions) * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -1136,10 +1028,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -1156,10 +1044,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } * searchGetWithResponse(RequestOptions requestOptions) * } * ] * @search.debug (Optional): { - * queryRewrites (Optional): { - * text (Optional): { - * inputQuery: String (Optional) - * rewrites (Optional): [ - * String (Optional) - * ] - * } - * vectors (Optional): [ - * (recursive schema, see above) - * ] - * } * } * @search.nextPageParameters (Optional): { * count: Boolean (Optional) @@ -1243,8 +1116,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -1256,10 +1127,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -1276,10 +1143,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -1301,23 +1164,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * } * ] * @search.documentDebugInfo (Optional): { - * semantic (Optional): { - * titleField (Optional): { - * name: String (Optional) - * state: String(used/unused/partial) (Optional) - * } - * contentFields (Optional): [ - * (recursive schema, see above) - * ] - * keywordFields (Optional): [ - * (recursive schema, see above) - * ] - * rerankerInput (Optional): { - * title: String (Optional) - * content: String (Optional) - * keywords: String (Optional) - * } - * } * vectors (Optional): { * subscores (Optional): { * text (Optional): { @@ -1355,7 +1201,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * @odata.nextLink: String (Optional) * @search.semanticPartialResponseReason: String(maxWaitExceeded/capacityOverloaded/transient) (Optional) * @search.semanticPartialResponseType: String(baseResults/rerankedResults) (Optional) - * @search.semanticQueryRewritesResultType: String(originalQueryOnly) (Optional) * } * } * 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,10 +1228,8 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Request Body Schema
@@ -1422,8 +1264,6 @@ public Mono> searchWithResponseAsync(BinaryData searchPostR * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -1435,10 +1275,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -1455,10 +1291,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } * > searchWithResponseAsync(BinaryData searchPostR * } * ] * @search.debug (Optional): { - * queryRewrites (Optional): { - * text (Optional): { - * inputQuery: String (Optional) - * rewrites (Optional): [ - * String (Optional) - * ] - * } - * vectors (Optional): [ - * (recursive schema, see above) - * ] - * } * } * @search.nextPageParameters (Optional): { * count: Boolean (Optional) @@ -1542,8 +1363,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * String (Optional) * ] * searchMode: String(any/all) (Optional) - * queryLanguage: String(none/en-us/en-gb/en-in/en-ca/en-au/fr-fr/fr-ca/de-de/es-es/es-mx/zh-cn/zh-tw/pt-br/pt-pt/it-it/ja-jp/ko-kr/ru-ru/cs-cz/nl-be/nl-nl/hu-hu/pl-pl/sv-se/tr-tr/hi-in/ar-sa/ar-eg/ar-ma/ar-kw/ar-jo/da-dk/no-no/bg-bg/hr-hr/hr-ba/ms-my/ms-bn/sl-sl/ta-in/vi-vn/el-gr/ro-ro/is-is/id-id/th-th/lt-lt/uk-ua/lv-lv/et-ee/ca-es/fi-fi/sr-ba/sr-me/sr-rs/sk-sk/nb-no/hy-am/bn-in/eu-es/gl-es/gu-in/he-il/ga-ie/kn-in/ml-in/mr-in/fa-ae/pa-in/te-in/ur-pk) (Optional) - * speller: String(none/lexicon) (Optional) * select (Optional): [ * String (Optional) * ] @@ -1555,10 +1374,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * semanticQuery: String (Optional) * answers: String(none/extractive) (Optional) * captions: String(none/extractive) (Optional) - * queryRewrites: String(none/generative) (Optional) - * semanticFields (Optional): [ - * String (Optional) - * ] * vectorQueries (Optional): [ * (Optional){ * kind: String(vector/text/imageUrl/imageBinary) (Required) @@ -1575,10 +1390,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -1600,23 +1411,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * } * ] * @search.documentDebugInfo (Optional): { - * semantic (Optional): { - * titleField (Optional): { - * name: String (Optional) - * state: String(used/unused/partial) (Optional) - * } - * contentFields (Optional): [ - * (recursive schema, see above) - * ] - * keywordFields (Optional): [ - * (recursive schema, see above) - * ] - * rerankerInput (Optional): { - * title: String (Optional) - * content: String (Optional) - * keywords: String (Optional) - * } - * } * vectors (Optional): { * subscores (Optional): { * text (Optional): { @@ -1654,7 +1448,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * @odata.nextLink: String (Optional) * @search.semanticPartialResponseReason: String(maxWaitExceeded/capacityOverloaded/transient) (Optional) * @search.semanticPartialResponseType: String(baseResults/rerankedResults) (Optional) - * @search.semanticQueryRewritesResultType: String(originalQueryOnly) (Optional) * } * } * > 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,10 +1482,8 @@ public Response searchWithResponse(BinaryData searchPostRequest, Req * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -1719,9 +1509,8 @@ public ResponsesearchWithResponse(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,10 +1528,8 @@ public Mono > getDocumentWithResponseAsync(String key, Reque * *
* You can add these to a request with {@link RequestOptions#addHeader} *Header Parameters *- * Name Type Required Description - * 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 - * bypass document level permission checks for the query operation. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=none". Response Body Schema
@@ -1767,8 +1554,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 +1593,14 @@ public Response getDocumentWithResponse(String key, RequestOptions r * between 1 and 100. The default is 5. * * You can add these to a request with {@link RequestOptions#addQueryParam} + * 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 +1634,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 +1674,14 @@ public Mono > suggestGetWithResponseAsync(String searchText, * between 1 and 100. The default is 5. * * You can add these to a request with {@link RequestOptions#addQueryParam} + * 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 +1714,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 +1784,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 +1854,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 +1914,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 +1974,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 +2009,14 @@ public Response indexWithResponse(BinaryData batch, RequestOptions r * value between 1 and 100. The default is 5. * * You can add these to a request with {@link RequestOptions#addQueryParam} + * 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 +2046,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 +2081,14 @@ public Mono > autocompleteGetWithResponseAsync(String search * value between 1 and 100. The default is 5. * * You can add these to a request with {@link RequestOptions#addQueryParam} + * 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 +2118,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 +2180,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 +2244,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..305388ee34a7 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,28 +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); - - @Get("/indexstats") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) - @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) - @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); - - @Get("/indexstats") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) - @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) - @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 +751,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 +825,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 +837,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 +911,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 +923,8 @@ public Response createOrUpdateSynonymMapWithResponse(String name, Bi * *
* 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=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 +941,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 +951,8 @@ public Mono > deleteSynonymMapWithResponseAsync(String name, 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=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 @@ -999,13 +969,20 @@ public Mono > deleteSynonymMapWithResponseAsync(String name, Reque */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteSynonymMapWithResponse(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; - return service.deleteSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, name, + return service.deleteSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), name, requestOptions, Context.NONE); } /** * Retrieves a synonym map definition. + * 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=minimal". Response Body Schema
* *@@ -1043,13 +1020,20 @@ public ResponsedeleteSynonymMapWithResponse(String name, RequestOptions r */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > getSynonymMapWithResponseAsync(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil.withContext(context -> service.getSynonymMap(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, name, requestOptions, context)); + this.getServiceVersion().getVersion(), name, requestOptions, context)); } /** * Retrieves a synonym map definition. + * 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=minimal". Response Body Schema
* *@@ -1087,8 +1071,7 @@ public Mono> getSynonymMapWithResponseAsync(String name, Re */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getSynonymMapWithResponse(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; - return service.getSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, name, + return service.getSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), name, requestOptions, Context.NONE); } @@ -1103,6 +1086,14 @@ public Response getSynonymMapWithResponse(String name, RequestOption * properties. In the form of "," separated string. 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=minimal". Response Body Schema
* *@@ -1144,9 +1135,8 @@ public ResponsegetSynonymMapWithResponse(String name, RequestOption */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > getSynonymMapsWithResponseAsync(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil.withContext(context -> service.getSynonymMaps(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, requestOptions, context)); + this.getServiceVersion().getVersion(), requestOptions, context)); } /** @@ -1160,6 +1150,14 @@ public Mono > getSynonymMapsWithResponseAsync(RequestOptions * properties. In the form of "," separated string. 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=minimal". Response Body Schema
* *@@ -1200,13 +1198,20 @@ public Mono> getSynonymMapsWithResponseAsync(RequestOptions */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getSynonymMapsWithResponse(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; - return service.getSynonymMapsSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - requestOptions, Context.NONE); + return service.getSynonymMapsSync(this.getEndpoint(), this.getServiceVersion().getVersion(), requestOptions, + Context.NONE); } /** * Creates a new synonym map. + * 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=minimal". Request Body Schema
* *@@ -1272,14 +1277,21 @@ public ResponsegetSynonymMapsWithResponse(RequestOptions requestOpt @ServiceMethod(returns = ReturnType.SINGLE) public Mono > createSynonymMapWithResponseAsync(BinaryData synonymMap, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String contentType = "application/json"; return FluxUtil.withContext(context -> service.createSynonymMap(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, contentType, synonymMap, requestOptions, context)); + this.getServiceVersion().getVersion(), contentType, synonymMap, requestOptions, context)); } /** * Creates a new synonym map. + * 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=minimal". Request Body Schema
* *@@ -1344,10 +1356,9 @@ public Mono> createSynonymMapWithResponseAsync(BinaryData s */ @ServiceMethod(returns = ReturnType.SINGLE) public Response createSynonymMapWithResponse(BinaryData synonymMap, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String contentType = "application/json"; - return service.createSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - contentType, synonymMap, requestOptions, Context.NONE); + return service.createSynonymMapSync(this.getEndpoint(), this.getServiceVersion().getVersion(), contentType, + synonymMap, requestOptions, Context.NONE); } /** @@ -1366,6 +1377,8 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * *
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 @@ -1504,7 +1517,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1542,8 +1554,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -1681,7 +1691,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1719,8 +1728,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -1739,11 +1746,10 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, @ServiceMethod(returns = ReturnType.SINGLE) public Mono > createOrUpdateIndexWithResponseAsync(String name, BinaryData index, 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.createOrUpdateIndex(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, prefer, name, contentType, index, requestOptions, context)); + this.getServiceVersion().getVersion(), prefer, name, contentType, index, requestOptions, context)); } /** @@ -1762,6 +1768,8 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * *
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 @@ -1900,7 +1908,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1938,8 +1945,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2077,7 +2082,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2115,8 +2119,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2135,11 +2137,10 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na @ServiceMethod(returns = ReturnType.SINGLE) public Response createOrUpdateIndexWithResponse(String name, BinaryData index, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; final String prefer = "return=representation"; final String contentType = "application/json"; - return service.createOrUpdateIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, - prefer, name, contentType, index, requestOptions, Context.NONE); + return service.createOrUpdateIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), prefer, name, + contentType, index, requestOptions, Context.NONE); } /** @@ -2150,6 +2151,8 @@ public Response createOrUpdateIndexWithResponse(String name, BinaryD * *
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 @@ -2166,9 +2169,8 @@ public Response createOrUpdateIndexWithResponse(String name, BinaryD */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > deleteIndexWithResponseAsync(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil.withContext(context -> service.deleteIndex(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, name, requestOptions, context)); + this.getServiceVersion().getVersion(), name, requestOptions, context)); } /** @@ -2179,6 +2181,8 @@ public Mono > deleteIndexWithResponseAsync(String name, RequestOpt * *
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 @@ -2195,13 +2199,20 @@ public Mono > deleteIndexWithResponseAsync(String name, RequestOpt */ @ServiceMethod(returns = ReturnType.SINGLE) public Response deleteIndexWithResponse(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; - return service.deleteIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, name, - requestOptions, Context.NONE); + return service.deleteIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), name, requestOptions, + Context.NONE); } /** * Retrieves an index definition. + * 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=minimal". Response Body Schema
* *@@ -2334,7 +2345,6 @@ public ResponsedeleteIndexWithResponse(String name, RequestOptions reques * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2372,8 +2382,6 @@ public Response deleteIndexWithResponse(String name, RequestOptions reques * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2390,13 +2398,20 @@ public Response deleteIndexWithResponse(String name, RequestOptions reques */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono > getIndexWithResponseAsync(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil.withContext(context -> service.getIndex(this.getEndpoint(), - this.getServiceVersion().getVersion(), accept, name, requestOptions, context)); + this.getServiceVersion().getVersion(), name, requestOptions, context)); } /** * Retrieves an index definition. + * 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=minimal". Response Body Schema
* *@@ -2529,7 +2544,6 @@ public Mono> getIndexWithResponseAsync(String name, Request * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2567,8 +2581,6 @@ public Mono > getIndexWithResponseAsync(String name, Request * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2585,22 +2597,20 @@ public Mono > getIndexWithResponseAsync(String name, Request */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getIndexWithResponse(String name, RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; - return service.getIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), accept, name, - requestOptions, Context.NONE); + return service.getIndexSync(this.getEndpoint(), this.getServiceVersion().getVersion(), name, requestOptions, + Context.NONE); } /** * Lists all indexes available for a search service. - * Query Parameters
+ *Header Parameters
*- *
- * You can add these to a request with {@link RequestOptions#addQueryParam} + * You can add these to a request with {@link RequestOptions#addHeader} *Query Parameters + *Header Parameters *- * Name Type Required Description + * $select List<String> No Selects which top-level properties to retrieve. - * Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all - * properties. In the form of "," separated string. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Response Body Schema
* *@@ -2733,7 +2743,6 @@ public ResponsegetIndexWithResponse(String name, RequestOptions req * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2771,8 +2780,6 @@ public Response getIndexWithResponse(String name, RequestOptions req * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2788,25 +2795,23 @@ public Response getIndexWithResponse(String name, RequestOptions req */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono > listIndexesSinglePageAsync(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; return FluxUtil .withContext(context -> service.listIndexes(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, requestOptions, context)) + requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), getValues(res.getValue(), "value"), null, null)); } /** * Lists all indexes available for a search service. - * Query Parameters
+ *Header Parameters
*- *
- * You can add these to a request with {@link RequestOptions#addQueryParam} + * You can add these to a request with {@link RequestOptions#addHeader} *Query Parameters + *Header Parameters *- * Name Type Required Description + * $select List<String> No Selects which top-level properties to retrieve. - * Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all - * properties. In the form of "," separated string. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Response Body Schema
* *@@ -2939,7 +2944,6 @@ private Mono> listIndexesSinglePageAsync(RequestOption * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2977,8 +2981,6 @@ private Mono > listIndexesSinglePageAsync(RequestOption * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2998,15 +3000,14 @@ public PagedFlux listIndexesAsync(RequestOptions requestOptions) { /** * Lists all indexes available for a search service. - * Query Parameters
+ *Header Parameters
*- *
- * You can add these to a request with {@link RequestOptions#addQueryParam} + * You can add these to a request with {@link RequestOptions#addHeader} *Query Parameters + *Header Parameters *- * Name Type Required Description + * $select List<String> No Selects which top-level properties to retrieve. - * Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all - * properties. In the form of "," separated string. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Response Body Schema
* *@@ -3139,7 +3140,6 @@ public PagedFluxlistIndexesAsync(RequestOptions requestOptions) { * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -3177,8 +3177,6 @@ public PagedFlux listIndexesAsync(RequestOptions requestOptions) { * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -3193,24 +3191,22 @@ public PagedFlux listIndexesAsync(RequestOptions requestOptions) { */ @ServiceMethod(returns = ReturnType.SINGLE) private PagedResponse listIndexesSinglePage(RequestOptions requestOptions) { - final String accept = "application/json;odata.metadata=minimal"; Response res = service.listIndexesSync(this.getEndpoint(), this.getServiceVersion().getVersion(), - accept, requestOptions, Context.NONE); + requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), getValues(res.getValue(), "value"), null, null); } /** * Lists all indexes available for a search service. - * Query Parameters
+ *Header Parameters
*- *
- * You can add these to a request with {@link RequestOptions#addQueryParam} + * You can add these to a request with {@link RequestOptions#addHeader} *Query Parameters + *Header Parameters *- * Name Type Required Description + * $select List<String> No Selects which top-level properties to retrieve. - * Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all - * properties. In the form of "," separated string. * Accept String No The Accept header. Allowed values: + * "application/json;odata.metadata=minimal". Response Body Schema
* *@@ -3343,7 +3339,6 @@ private PagedResponselistIndexesSinglePage(RequestOptions requestOp * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -3381,8 +3376,6 @@ private PagedResponse listIndexesSinglePage(RequestOptions requestOp * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -3401,16 +3394,33 @@ public PagedIterable listIndexes(RequestOptions requestOptions) { } /** - * Creates a new search index. - * Request Body Schema
+ * Lists all indexes available for a search service. + *Query Parameters
+ *+ *
Query Parameters + *