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@@ -474,16 +425,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) @@ -447,18 +407,9 @@ public Mono > indexDocumentsWithResponse(IndexDocu * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * 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 +628,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 +867,14 @@ public Mono@@ -1669,10 +1336,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 +911,8 @@ Mono@@ -675,6 +559,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 +941,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..b7f75431eb15 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@@ -474,16 +426,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) @@ -447,18 +408,9 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } * indexDocumentsWithResponse(IndexDocumentsB * String (Required): [ * (Required){ * count: Long (Optional) - * avg: Double (Optional) - * min: Double (Optional) - * max: Double (Optional) - * sum: Double (Optional) - * cardinality: Long (Optional) - * @search.facets (Optional): { - * String (Required): [ - * (recursive schema, see above) - * ] - * } * (Optional): { * String: Object (Required) * } @@ -501,19 +443,6 @@ public Response 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) * facets (Optional): [ @@ -542,8 +471,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 +482,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) @@ -567,18 +490,9 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -600,23 +514,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): { @@ -633,18 +530,6 @@ public Response indexDocumentsWithResponse(IndexDocumentsB * documentBoost: Double (Optional) * } * } - * innerHits (Optional): { - * String (Required): [ - * (Required){ - * ordinal: Long (Optional) - * vectors (Optional): [ - * (Optional){ - * String (Required): (recursive schema, see String above) - * } - * ] - * } - * ] - * } * } * (Optional): { * String: Object (Required) @@ -654,7 +539,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 +627,14 @@ Response@@ -1474,16 +1209,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 +863,14 @@ public Response@@ -1372,10 +1125,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 +907,8 @@ Response@@ -1175,16 +996,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 +936,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/SearchClientBuilder.java b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClientBuilder.java index 1aa31ec09aac..db9e1d8d38d4 100644 --- a/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClientBuilder.java +++ b/sdk/search/azure-search-documents/src/main/java/com/azure/search/documents/SearchClientBuilder.java @@ -36,22 +36,11 @@ import com.azure.core.util.builder.ClientBuilderUtil; import com.azure.core.util.logging.ClientLogger; import com.azure.core.util.serializer.JacksonAdapter; -import com.azure.core.util.serializer.JsonSerializer; -import com.azure.core.util.serializer.JsonSerializerProviders; -import com.azure.core.util.serializer.TypeReference; import com.azure.search.documents.implementation.SearchClientImpl; -import com.azure.search.documents.models.IndexAction; -import com.azure.search.documents.options.OnActionAddedOptions; -import com.azure.search.documents.options.OnActionErrorOptions; -import com.azure.search.documents.options.OnActionSentOptions; -import com.azure.search.documents.options.OnActionSucceededOptions; -import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Objects; -import java.util.function.Consumer; -import java.util.function.Function; /** * A builder for creating a new instance of the SearchClient type. @@ -61,18 +50,6 @@ public final class SearchClientBuilder implements HttpTrait ConfigurationTrait , TokenCredentialTrait , KeyCredentialTrait , EndpointTrait { - private static final boolean DEFAULT_AUTO_FLUSH = true; - - private static final int DEFAULT_INITIAL_BATCH_ACTION_COUNT = 512; - - private static final Duration DEFAULT_FLUSH_INTERVAL = Duration.ofSeconds(60); - - private static final int DEFAULT_MAX_RETRIES_PER_ACTION = 3; - - private static final Duration DEFAULT_THROTTLING_DELAY = Duration.ofMillis(800); - - private static final Duration DEFAULT_MAX_THROTTLING_DELAY = Duration.ofMinutes(1); - @Generated private static final String SDK_NAME = "name"; @@ -412,325 +389,6 @@ public SearchClient buildClient() { private static final ClientLogger LOGGER = new ClientLogger(SearchClientBuilder.class); - /** - * Create a new instance of {@link SearchIndexingBufferedSenderBuilder} used to configure {@link - * SearchIndexingBufferedSender SearchIndexingBufferedSenders} and {@link SearchIndexingBufferedAsyncSender - * SearchIndexingBufferedAsyncSenders}. - * - * @param documentType The {@link TypeReference} representing the document type associated with the sender. - * @param The type of the document that the buffered sender will use. - * @return A new instance of {@link SearchIndexingBufferedSenderBuilder}. - */ - public SearchIndexingBufferedSenderBuilder bufferedSender(TypeReference documentType) { - return new SearchIndexingBufferedSenderBuilder<>(); - } - - /** - * This class provides a fluent builder API to help aid the configuration and instantiation of {@link - * SearchIndexingBufferedSender SearchIndexingBufferedSenders} and {@link SearchIndexingBufferedAsyncSender - * SearchIndexingBufferedAsyncSenders}. Call {@link #buildSender()} and {@link #buildAsyncSender()} respectively to - * construct an instance of the desired sender. - * - * @param The type of the document that the buffered sender will use. - * @see SearchIndexingBufferedSender - * @see SearchIndexingBufferedAsyncSender - */ - @ServiceClientBuilder( - serviceClients = { SearchIndexingBufferedSender.class, SearchIndexingBufferedAsyncSender.class }) - public final class SearchIndexingBufferedSenderBuilder { - - private final ClientLogger logger = new ClientLogger(SearchIndexingBufferedSenderBuilder.class); - - private Function searchGetWithResponse(RequestOptions requestOptions) * String (Required): [ * (Required){ * count: Long (Optional) - * avg: Double (Optional) - * min: Double (Optional) - * max: Double (Optional) - * sum: Double (Optional) - * cardinality: Long (Optional) - * @search.facets (Optional): { - * String (Required): [ - * (recursive schema, see above) - * ] - * } * (Optional): { * String: Object (Required) * } @@ -1202,19 +1013,6 @@ public Response 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) * facets (Optional): [ @@ -1243,8 +1041,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 +1052,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) @@ -1268,18 +1060,9 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -1301,23 +1084,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): { @@ -1334,18 +1100,6 @@ public Response searchGetWithResponse(RequestOptions requestOptions) * documentBoost: Double (Optional) * } * } - * innerHits (Optional): { - * String (Required): [ - * (Required){ - * ordinal: Long (Optional) - * vectors (Optional): [ - * (Optional){ - * String (Required): (recursive schema, see String above) - * } - * ] - * } - * ] - * } * } * (Optional): { * String: Object (Required) @@ -1355,7 +1109,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 +1136,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 +1172,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 +1183,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) @@ -1447,18 +1191,9 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * } * > searchWithResponseAsync(BinaryData searchPostR * String (Required): [ * (Required){ * count: Long (Optional) - * avg: Double (Optional) - * min: Double (Optional) - * max: Double (Optional) - * sum: Double (Optional) - * cardinality: Long (Optional) - * @search.facets (Optional): { - * String (Required): [ - * (recursive schema, see above) - * ] - * } * (Optional): { * String: Object (Required) * } @@ -1501,19 +1226,6 @@ public Mono > 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) * facets (Optional): [ @@ -1542,8 +1254,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 +1265,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) @@ -1567,18 +1273,9 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * exhaustive: Boolean (Optional) * oversampling: Double (Optional) * weight: Float (Optional) - * threshold (Optional): { - * kind: String(vectorSimilarity/searchScore) (Required) - * } - * filterOverride: String (Optional) - * perDocumentVectorLimit: Integer (Optional) * } * ] * vectorFilterMode: String(postFilter/preFilter/strictPostFilter) (Optional) - * hybridSearch (Optional): { - * maxTextRecallSize: Integer (Optional) - * countAndFacetMode: String(countRetrievableResults/countAllResults) (Optional) - * } * } * value (Required): [ * (Required){ @@ -1600,23 +1297,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): { @@ -1633,18 +1313,6 @@ public Mono > searchWithResponseAsync(BinaryData searchPostR * documentBoost: Double (Optional) * } * } - * innerHits (Optional): { - * String (Required): [ - * (Required){ - * ordinal: Long (Optional) - * vectors (Optional): [ - * (Optional){ - * String (Required): (recursive schema, see String above) - * } - * ] - * } - * ] - * } * } * (Optional): { * String: Object (Required) @@ -1654,7 +1322,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 +1356,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 +1383,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 +1402,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 +1428,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 +1467,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 +1508,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 +1548,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 +1588,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 +1658,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 +1728,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 +1788,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 +1848,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 +1883,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 +1920,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 +1955,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 +1992,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 +2054,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 +2118,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..4770747d319a 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 @@ -55,12 +55,12 @@ public final class SearchIndexClientImpl { private final SearchIndexClientService service; /** - * Service host. + * The endpoint URL of the search service. */ private final String endpoint; /** - * Gets Service host. + * Gets The endpoint URL of the search service. * * @return the endpoint value. */ @@ -113,7 +113,7 @@ public SerializerAdapter getSerializerAdapter() { /** * Initializes an instance of SearchIndexClient client. * - * @param endpoint Service host. + * @param endpoint The endpoint URL of the search service. * @param serviceVersion Service version. */ public SearchIndexClientImpl(String endpoint, SearchServiceVersion serviceVersion) { @@ -125,7 +125,7 @@ public SearchIndexClientImpl(String endpoint, SearchServiceVersion serviceVersio * Initializes an instance of SearchIndexClient client. * * @param httpPipeline The HTTP pipeline to send requests through. - * @param endpoint Service host. + * @param endpoint The endpoint URL of the search service. * @param serviceVersion Service version. */ public SearchIndexClientImpl(HttpPipeline httpPipeline, String endpoint, SearchServiceVersion serviceVersion) { @@ -137,7 +137,7 @@ public SearchIndexClientImpl(HttpPipeline httpPipeline, String endpoint, SearchS * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. - * @param endpoint Service host. + * @param endpoint The endpoint URL of the search service. * @param serviceVersion Service version. */ public SearchIndexClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter, String endpoint, @@ -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 @@ -1390,8 +1403,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * filterable: Boolean (Optional) * sortable: Boolean (Optional) * facetable: Boolean (Optional) - * permissionFilter: String(userIds/groupIds/rbacScope) (Optional) - * sensitivityLabel: Boolean (Optional) * analyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * searchAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * indexAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) @@ -1504,7 +1515,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1542,8 +1552,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -1567,8 +1575,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * filterable: Boolean (Optional) * sortable: Boolean (Optional) * facetable: Boolean (Optional) - * permissionFilter: String(userIds/groupIds/rbacScope) (Optional) - * sensitivityLabel: Boolean (Optional) * analyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * searchAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * indexAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) @@ -1681,7 +1687,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1719,8 +1724,6 @@ public Response createSynonymMapWithResponse(BinaryData synonymMap, * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -1739,11 +1742,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 +1764,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 @@ -1786,8 +1790,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * filterable: Boolean (Optional) * sortable: Boolean (Optional) * facetable: Boolean (Optional) - * permissionFilter: String(userIds/groupIds/rbacScope) (Optional) - * sensitivityLabel: Boolean (Optional) * analyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * searchAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * indexAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) @@ -1900,7 +1902,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -1938,8 +1939,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -1963,8 +1962,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * filterable: Boolean (Optional) * sortable: Boolean (Optional) * facetable: Boolean (Optional) - * permissionFilter: String(userIds/groupIds/rbacScope) (Optional) - * sensitivityLabel: Boolean (Optional) * analyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * searchAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * indexAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) @@ -2077,7 +2074,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2115,8 +2111,6 @@ public Mono > createOrUpdateIndexWithResponseAsync(String na * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2135,11 +2129,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 +2143,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 +2161,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 +2173,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 +2191,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
* *@@ -2220,8 +2223,6 @@ public ResponsedeleteIndexWithResponse(String name, RequestOptions reques * filterable: Boolean (Optional) * sortable: Boolean (Optional) * facetable: Boolean (Optional) - * permissionFilter: String(userIds/groupIds/rbacScope) (Optional) - * sensitivityLabel: Boolean (Optional) * analyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * searchAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) * indexAnalyzer: String(ar.microsoft/ar.lucene/hy.lucene/bn.microsoft/eu.lucene/bg.microsoft/bg.lucene/ca.microsoft/ca.lucene/zh-Hans.microsoft/zh-Hans.lucene/zh-Hant.microsoft/zh-Hant.lucene/hr.microsoft/cs.microsoft/cs.lucene/da.microsoft/da.lucene/nl.microsoft/nl.lucene/en.microsoft/en.lucene/et.microsoft/fi.microsoft/fi.lucene/fr.microsoft/fr.lucene/gl.lucene/de.microsoft/de.lucene/el.microsoft/el.lucene/gu.microsoft/he.microsoft/hi.microsoft/hi.lucene/hu.microsoft/hu.lucene/is.microsoft/id.microsoft/id.lucene/ga.lucene/it.microsoft/it.lucene/ja.microsoft/ja.lucene/kn.microsoft/ko.microsoft/ko.lucene/lv.microsoft/lv.lucene/lt.microsoft/ml.microsoft/ms.microsoft/mr.microsoft/nb.microsoft/no.lucene/fa.lucene/pl.microsoft/pl.lucene/pt-BR.microsoft/pt-BR.lucene/pt-PT.microsoft/pt-PT.lucene/pa.microsoft/ro.microsoft/ro.lucene/ru.microsoft/ru.lucene/sr-cyrillic.microsoft/sr-latin.microsoft/sk.microsoft/sl.microsoft/es.microsoft/es.lucene/sv.microsoft/sv.lucene/ta.microsoft/te.microsoft/th.microsoft/th.lucene/tr.microsoft/tr.lucene/uk.microsoft/ur.microsoft/vi.microsoft/standard.lucene/standardasciifolding.lucene/keyword/pattern/simple/stop/whitespace) (Optional) @@ -2334,7 +2335,6 @@ public Response deleteIndexWithResponse(String name, RequestOptions reques * ] * } * rankingOrder: String(BoostedRerankerScore/RerankerScore) (Optional) - * flightingOptIn: Boolean (Optional) * } * ] * } @@ -2372,8 +2372,6 @@ public Response deleteIndexWithResponse(String name, RequestOptions reques * } * ] * } - * permissionFilterOption: String(enabled/disabled) (Optional) - * purviewEnabled: Boolean (Optional) * @odata.etag: String (Optional) * } * } @@ -2390,13 +2388,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
+ *+ *
Header Parameters + *