From adf7cf9e6efd6cf46da9cdb31d1e7859f5b180bc Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Fri, 1 Oct 2021 15:08:05 -0700 Subject: [PATCH] Upgrade search-documents SDK to core-rest-pipeline (#17872) * Upgrade search-documents SDK to core-rest-pipeline * Updated recordings * Fix linting * Updated Recordings * Updated Recordings II * Additional Changes * Some More changes * Fix odataMetadata Policy * Minor change * Additional Changes * Additional Changes * Update Commit Ids * Update Changelog * Remove dependency of core-http completely * Minor Change --- .../perf-tests/search-documents/package.json | 2 +- sdk/search/search-documents/CHANGELOG.md | 15 + sdk/search/search-documents/package.json | 5 +- ...returns_the_correct_autocomplete_result.js | 8 +- ..._returns_zero_results_for_invalid_query.js | 8 +- ...ount_returns_the_correct_document_count.js | 8 +- ...ocuments_delete_a_document_by_documents.js | 24 +- ...uments_delete_a_document_by_keykeynames.js | 16 +- ...ent_returns_the_correct_document_result.js | 8 +- ...ows_error_for_invalid_getdocument_value.js | 8 +- ...dexdocuments_deletes_existing_documents.js | 16 +- ...exdocuments_merges_an_existing_document.js | 16 +- ...ng_indexdocuments_mergeupload_documents.js | 22 +- ...ng_indexdocuments_upload_a_new_document.js | 14 +- ...ents_modify__merge_an_existing_document.js | 24 +- ...eoruploaddocuments_merge_a_new_document.js | 16 +- ...ents_modify__merge_an_existing_document.js | 24 +- ...earch_returns_the_correct_search_result.js | 8 +- ..._returns_zero_results_for_invalid_query.js | 8 +- .../recording_search_with_semantic_ranking.js | 37 -- .../recording_search_with_speller.js | 37 -- ...suggest_returns_the_correct_suggestions.js | 8 +- ...urns_zero_suggestions_for_invalid_input.js | 8 +- ...loaddocuments_upload_a_set_of_documents.js | 14 +- ..._index_object_using_createorupdateindex.js | 34 +- ...recording_gets_the_correct_index_object.js | 12 +- .../recording_gets_the_list_of_indexes.js | 8 +- ...ecording_gets_the_list_of_indexes_names.js | 6 +- ...ing_modify_and_updates_the_index_object.js | 38 +- ...g_throws_error_for_invalid_index_object.js | 8 +- ...p_object_using_createorupdatesynonymmap.js | 32 +- ...ding_gets_the_correct_synonymmap_object.js | 14 +- .../recording_gets_the_list_of_synonymmaps.js | 10 +- ...ding_gets_the_list_of_synonymmaps_names.js | 6 +- ...odify_and_updates_the_synonymmap_object.js | 40 +- ...ows_error_for_invalid_synonymmap_object.js | 8 +- ...exer_object_using_createorupdateindexer.js | 91 ---- ...cording_gets_the_correct_indexer_object.js | 39 -- ...ecording_gets_the_list_of_indexer_names.js | 37 -- .../recording_gets_the_list_of_indexers.js | 37 -- ...ecording_gets_the_status_of_the_indexer.js | 37 -- ...g_modify_and_updates_the_indexer_object.js | 107 ---- ...throws_error_for_invalid_indexer_object.js | 35 -- ...set_object_using_createorupdateskillset.js | 91 ---- ...ording_gets_the_correct_skillset_object.js | 39 -- ...cording_gets_the_list_of_skillset_names.js | 37 -- .../recording_gets_the_list_of_skillsets.js | 37 -- ...modify_and_updates_the_skillsets_object.js | 107 ---- ...hrows_error_for_invalid_skillset_object.js | 35 -- .../review/search-documents.api.md | 153 ++++-- .../bufferedSenderAutoFlushSize.ts | 3 +- .../bufferedSenderAutoFlushTimer.ts | 3 +- .../samples-dev/bufferedSenderManualFlush.ts | 3 +- .../search-documents/samples-dev/setup.ts | 9 + sdk/search/search-documents/src/constants.ts | 2 +- .../src/generated/data/models/index.ts | 193 +++---- .../src/generated/data/models/mappers.ts | 36 +- .../src/generated/data/models/parameters.ts | 29 +- .../generated/data/operations/documents.ts | 102 ++-- .../src/generated/data/searchClientContext.ts | 35 +- .../src/generated/service/models/index.ts | 513 +++++++----------- .../src/generated/service/models/mappers.ts | 458 +++++++++++----- .../generated/service/models/parameters.ts | 29 +- .../service/operations/dataSources.ts | 64 +-- .../generated/service/operations/indexers.ts | 134 +++-- .../generated/service/operations/indexes.ts | 80 +-- .../generated/service/operations/skillsets.ts | 102 ++-- .../service/operations/synonymMaps.ts | 59 +- .../operationsInterfaces/dataSources.ts | 3 +- .../service/operationsInterfaces/indexers.ts | 20 +- .../service/operationsInterfaces/indexes.ts | 3 +- .../service/operationsInterfaces/skillsets.ts | 18 +- .../operationsInterfaces/synonymMaps.ts | 3 +- .../generated/service/searchServiceClient.ts | 13 +- .../service/searchServiceClientContext.ts | 35 +- sdk/search/search-documents/src/index.ts | 19 +- .../search-documents/src/indexModels.ts | 13 +- .../src/odataMetadataPolicy.ts | 43 +- .../src/searchApiKeyCredentialPolicy.ts | 51 +- .../search-documents/src/searchClient.ts | 95 ++-- .../search-documents/src/searchIndexClient.ts | 92 ++-- .../src/searchIndexerClient.ts | 167 +++--- .../src/searchIndexingBufferedSender.ts | 5 +- .../search-documents/src/serviceModels.ts | 25 +- .../search-documents/src/serviceUtils.ts | 28 +- sdk/search/search-documents/swagger/Data.md | 6 +- .../search-documents/swagger/Service.md | 6 +- .../test/public/node/searchClient.spec.ts | 2 +- .../public/node/searchIndexClient.spec.ts | 2 +- .../test/public/utils/recordedClient.ts | 7 +- .../test/public/utils/setup.ts | 2 +- 91 files changed, 1612 insertions(+), 2352 deletions(-) delete mode 100644 sdk/search/search-documents/recordings/node/searchclient/recording_search_with_semantic_ranking.js delete mode 100644 sdk/search/search-documents/recordings/node/searchclient/recording_search_with_speller.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_creates_the_indexer_object_using_createorupdateindexer.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_correct_indexer_object.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexer_names.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexers.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_status_of_the_indexer.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_modify_and_updates_the_indexer_object.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_throws_error_for_invalid_indexer_object.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_creates_the_skillset_object_using_createorupdateskillset.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_correct_skillset_object.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillset_names.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillsets.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_modify_and_updates_the_skillsets_object.js delete mode 100644 sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_throws_error_for_invalid_skillset_object.js diff --git a/sdk/search/perf-tests/search-documents/package.json b/sdk/search/perf-tests/search-documents/package.json index 3bb15d24e09c..a4e73b3c1f18 100644 --- a/sdk/search/perf-tests/search-documents/package.json +++ b/sdk/search/perf-tests/search-documents/package.json @@ -9,7 +9,7 @@ "license": "ISC", "dependencies": { "@azure/identity": "2.0.0-beta.5", - "@azure/search-documents": "11.3.0-beta.3", + "@azure/search-documents": "11.3.0-beta.4", "@azure/test-utils-perfstress": "^1.0.0", "dotenv": "^8.2.0" }, diff --git a/sdk/search/search-documents/CHANGELOG.md b/sdk/search/search-documents/CHANGELOG.md index 9efe51498cb6..7f40a660be4f 100644 --- a/sdk/search/search-documents/CHANGELOG.md +++ b/sdk/search/search-documents/CHANGELOG.md @@ -1,5 +1,20 @@ # Release History +## 11.3.0-beta.4 (2021-10-05) + +### Features Added + +- Added properties `currentState` & `statusDetail` to the `IndexerExecutionResult` object. +- Added operations `resetDocs` & `resetSkills` to the `SearchIndexerClient` class. + +### Breaking Changes + +- Changed property `ignoreResetRequirements` to `skipIndexerResetRequirementForCache` in `CreateorUpdateDataSourceConnectionOptions`, `CreateorUpdateIndexerOptions` & `CreateOrUpdateSkillsetOptions` objects. +- Changed the type of `answers` property from `Answers` to `QueryAnswerType`, in the `SearchRequest` object. +- Changed the type of `captions` property from `Captions` to `QueryCaptionType`, in the `SearchRequest` object. +- Changed the type of `speller` property from `Speller` to `QuerySpellerType`, in the `SearchRequest` object. +- Changed the underlying dependency of the SDK from `core-http` to `core-rest-pipeline` package. + ## 11.3.0-beta.3 (2021-09-07) ### Features Added diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 6256fc43d83f..1493e29b4e43 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -1,6 +1,6 @@ { "name": "@azure/search-documents", - "version": "11.3.0-beta.3", + "version": "11.3.0-beta.4", "description": "Azure client library to use Cognitive Search for node.js and browser.", "sdk-type": "client", "main": "dist/index.js", @@ -75,10 +75,11 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/search-documents/", "sideEffects": false, "dependencies": { + "@azure/core-client": "^1.3.0", "@azure/core-auth": "^1.3.0", - "@azure/core-http": "^2.0.0", "@azure/core-paging": "^1.1.1", "@azure/core-tracing": "1.0.0-preview.13", + "@azure/core-rest-pipeline": "^1.3.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0", "events": "^3.0.0" diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_the_correct_autocomplete_result.js b/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_the_correct_autocomplete_result.js index 602203636264..de26f785720c 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_the_correct_autocomplete_result.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_the_correct_autocomplete_result.js @@ -5,7 +5,7 @@ module.exports.hash = "43c428a01562e53c2476efe4f0658d78"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.autocomplete', {"search":"sec","suggesterName":"sg"}) + .post(`/indexes('hotel-live-test1')/docs/search.post.autocomplete`, {"search":"sec","suggesterName":"sg"}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffc519bbf6b3f7af451934febbcfd68f4d12f5ae7f5f5cb72ddbc09bef825dfff25ff0f9aa508c636000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '5a860e71-10ba-4f26-9c9a-7b2a8847de93', + '6dcd8d26-cccc-4209-8ada-2f0246ac85c7', 'elapsed-time', - '141', + '6', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:50:55 GMT', + 'Tue, 28 Sep 2021 05:51:25 GMT', 'Content-Length', '164' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_zero_results_for_invalid_query.js b/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_zero_results_for_invalid_query.js index e1302ea3fbc7..a82c3ea11065 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_zero_results_for_invalid_query.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_autocomplete_returns_zero_results_for_invalid_query.js @@ -5,7 +5,7 @@ module.exports.hash = "e6415b3db59c27c8d41f5b8e72174f7d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.autocomplete', {"search":"garbxyz","suggesterName":"sg"}) + .post(`/indexes('hotel-live-test1')/docs/search.post.autocomplete`, {"search":"garbxyz","suggesterName":"sg"}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '14b6920b-7e2b-4dbb-8e54-1b90758df64c', + '967111f7-2859-4a44-9a63-800a6b2b08c5', 'elapsed-time', - '18', + '13', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:51:13 GMT', + 'Tue, 28 Sep 2021 05:51:42 GMT', 'Content-Length', '133' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_count_returns_the_correct_document_count.js b/sdk/search/search-documents/recordings/node/searchclient/recording_count_returns_the_correct_document_count.js index 44c576eafdc4..544d7fa0477a 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_count_returns_the_correct_document_count.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_count_returns_the_correct_document_count.js @@ -5,7 +5,7 @@ module.exports.hash = "be65de34286967c841f401bc633e891e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71fdcddf97f00bbe0538805000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '504781eb-ca5b-414f-a604-017ec37442cf', + '229a71ec-a4be-49a0-9143-3466a5cb3106', 'elapsed-time', - '11', + '4', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:50:38 GMT', + 'Tue, 28 Sep 2021 05:51:07 GMT', 'Content-Length', '127' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_documents.js b/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_documents.js index 2ae6cdc32a82..61cd0a6b2120 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_documents.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_documents.js @@ -5,7 +5,7 @@ module.exports.hash = "3e8c3acc7dfe3bfb8b615e014d4b79bc"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%278%27)') + .get(`/indexes('hotel-live-test1')/docs('8')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3e3af868247fbdc816f9478f96ebb21c7d34cb9b695dacdaa25a52936f674dda548b3cadab6c962eaba2c9d36c394b8b265de6efdab4add2769ea797797d9daeaab298e669d36678799c3ec9da795d558b269dd3bb8baacecb745a51d36279d18ca96fafab6735757656a6d76996ced6e9a45e176d3acbd332a39ed76d9ee66d4a5db7f4c7659efebeeb9d9d7c279de2e7f97e8b1ff9436daedde32f41689c3ecf69105959d20ffa749215cb34bbcc8a7c892e9ab4ce2f1942d6e60bfa8c1b11b6055e009a53fae2a2aaaf0d85daeca2f9e8d1f7be3ffa6895d56f693067cb69b99ee5445269d02c2a7c7c5c96d595fbb4cc9af655beac2e19bfa704d47c53d327cb0bf357595187d4c2fc9dcd6675de508ff2275314ddff92ff07355dccd3cb010000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '60e5d4a7-33d8-4929-98f2-7eca71b54665', + 'f010dbc7-202c-450d-8b15-f2463a02adb7', 'elapsed-time', - '18', + '11', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:13 GMT', + 'Tue, 28 Sep 2021 05:53:42 GMT', 'Content-Length', '411' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"delete","hotelId":"8","hotelName":null,"description":"Has some road noise and is next to the very police station. Bathrooms had morel coverings.","descriptionFr":"Il y a du bruit de la route et se trouve à côté de la station de police. Les salles de bain avaient des revêtements de morilles.","category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"delete","hotelId":"8","hotelName":null,"description":"Has some road noise and is next to the very police station. Bathrooms had morel coverings.","descriptionFr":"Il y a du bruit de la route et se trouve à côté de la station de police. Les salles de bain avaient des revêtements de morilles.","category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f1d7c34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab85c97a5697152cde893bd9d9d5ff2fd5ff2ff0038a311724a000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'd62d5227-a114-4602-b1a7-dcb8c2cce8ca', + '4da6a9b0-adb2-494f-97fa-7364b55d1aea', 'elapsed-time', - '33', + '24', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,13 +63,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:13 GMT', + 'Tue, 28 Sep 2021 05:53:42 GMT', 'Content-Length', '184' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71f7cf8ff00fca50b5a04000000"], [ 'Cache-Control', @@ -85,9 +85,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '010efe5c-cfbd-4a46-9d81-6e4f268c1605', + '93067015-a863-4ff8-b0a9-acd47e792d88', 'elapsed-time', - '9', + '5', 'OData-Version', '4.0', 'Preference-Applied', @@ -95,7 +95,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:18 GMT', + 'Tue, 28 Sep 2021 05:53:46 GMT', 'Content-Length', '126' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_keykeynames.js b/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_keykeynames.js index af1c6704db81..eefd85c639c4 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_keykeynames.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_deletedocuments_delete_a_document_by_keykeynames.js @@ -5,7 +5,7 @@ module.exports.hash = "21eec44782711636ba84d7b56b88a00d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"delete","hotelId":"9"},{"@search.action":"delete","hotelId":"10"}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"delete","hotelId":"9"},{"@search.action":"delete","hotelId":"10"}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f3dfc68f451d366edbaf9e8515baff3d147795d57f51779d36417d470b92e4bd3e2a49ad1277b3b3bbf64645edfddf95aef7fff97fc3fafab5d608a000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '7b8b5cfe-a23e-4958-b669-7536bd2fe663', + '0b025caf-cbcc-4d02-af3e-09d4edd240dd', 'elapsed-time', - '31', + '27', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:35 GMT', + 'Tue, 28 Sep 2021 05:54:03 GMT', 'Content-Length', '191' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71f3cf87f006a950c2d04000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '8a3b1a56-5f31-46b5-bb2d-882687b50edc', + '51a30e44-12cf-4480-aea2-3f365958936f', 'elapsed-time', - '5', + '4', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:39 GMT', + 'Tue, 28 Sep 2021 05:54:07 GMT', 'Content-Length', '126' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_returns_the_correct_document_result.js b/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_returns_the_correct_document_result.js index 3b6e2c11279a..4569a754189c 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_returns_the_correct_document_result.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_returns_the_correct_document_result.js @@ -5,7 +5,7 @@ module.exports.hash = "726bda84c3bcee5ecce36d5859bfee11"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%278%27)') + .get(`/indexes('hotel-live-test1')/docs('8')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3e3af868247fbdc816f9478f96ebb21c7d34cb9b695dacdaa25a52936f674dda548b3cadab6c962eaba2c9d36c394b8b265de6efdab4add2769ea797797d9daeaab298e669d36678799c3ec9da795d558b269dd3bb8baacecb745a51d36279d18ca96fafab6735757656a6d76996ced6e9a45e176d3acbd332a39ed76d9ee66d4a5db7f4c7659efebeeb9d9d7c279de2e7f97e8b1ff9436daedde32f41689c3ecf69105959d20ffa749215cb34bbcc8a7c892e9ab4ce2f1942d6e60bfa8c1b11b6055e009a53fae2a2aaaf0d85daeca2f9e8d1f7be3ffa6895d56f693067cb69b99ee5445269d02c2a7c7c5c96d595fbb4cc9af655beac2e19bfa704d47c53d327cb0bf357595187d4c2fc9dcd6675de508ff2275314ddff92ff07355dccd3cb010000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '934baa75-3f65-4aa5-9143-78724e98bb9b', + 'a1c1249f-3d3f-468f-abd9-5aad5d200f37', 'elapsed-time', - '38', + '14', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:52:39 GMT', + 'Tue, 28 Sep 2021 05:53:07 GMT', 'Content-Length', '411' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_throws_error_for_invalid_getdocument_value.js b/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_throws_error_for_invalid_getdocument_value.js index 39b6e152a132..fdf48208dcbf 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_throws_error_for_invalid_getdocument_value.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_getdocument_throws_error_for_invalid_getdocument_value.js @@ -5,7 +5,7 @@ module.exports.hash = "3b953c0f7d0010ddeb3db30cf99affa3"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%27garbxyz%27)') + .get(`/indexes('hotel-live-test1')/docs('garbxyz')`) .query(true) .reply(404, "", [ 'Cache-Control', @@ -15,13 +15,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'request-id', - '3667d355-b8c9-41c5-b498-a22736b95fdf', + '977a8d29-9b94-4c73-ab83-264e80040c98', 'elapsed-time', - '14', + '5', 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:52:57 GMT', + 'Tue, 28 Sep 2021 05:53:25 GMT', 'Content-Length', '0' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_deletes_existing_documents.js b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_deletes_existing_documents.js index cd296f780de8..1db8cda95ad7 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_deletes_existing_documents.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_deletes_existing_documents.js @@ -5,7 +5,7 @@ module.exports.hash = "c2d925d2544c7beb2bc20c5eb3111539"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"delete","hotelId":"9"},{"@search.action":"delete","hotelId":"10"}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"delete","hotelId":"9"},{"@search.action":"delete","hotelId":"10"}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f3dfc68f451d366edbaf9e8515baff3d147795d57f51779d36417d470b92e4bd3e2a49ad1277b3b3bbf64645edfddf95aef7fff97fc3fafab5d608a000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '744c1e50-6108-442b-8dd3-8135d1f9bf79', + 'c0954e6f-6373-4ed5-a644-6f5a12c5bb86', 'elapsed-time', - '33', + '32', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:43 GMT', + 'Tue, 28 Sep 2021 05:56:11 GMT', 'Content-Length', '191' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71f3cf87f006a950c2d04000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'c13586f0-335c-439c-9271-e3a480ed46ec', + 'fe2b6207-6deb-48c8-8f78-ad54b2d8cec1', 'elapsed-time', - '6', + '5', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:47 GMT', + 'Tue, 28 Sep 2021 05:56:16 GMT', 'Content-Length', '126' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_merges_an_existing_document.js b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_merges_an_existing_document.js index 72e137ae2593..1c80354d43af 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_merges_an_existing_document.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_merges_an_existing_document.js @@ -5,7 +5,7 @@ module.exports.hash = "33f76e4597dea9384333f0c314edd56b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"merge","hotelId":"8","description":"Modified Description"}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"merge","hotelId":"8","description":"Modified Description"}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f1d7c34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab85c97a5697152cde893bd9d9d5ff2fd5ff2ff0038a311724a000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'f1341825-c2e2-4893-998e-09cf131b200f', + '0875fcea-25a4-4f6b-93df-93bca54ab183', 'elapsed-time', - '32', + '38', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:04 GMT', + 'Tue, 28 Sep 2021 05:56:32 GMT', 'Content-Length', '184' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%278%27)') + .get(`/indexes('hotel-live-test1')/docs('8')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3e3af868247fbdc816f9478f96ebb21c7d34cb9b695dacdaa25a52932faa59715ee4b3f4a9f771d0e8594dcdcecaf43acdd2d93a9dd4eba24d67795a66695daddb3ccddbb4c9d396feb8ccd3df77bdb393efa453fc3cdf6ff1237fa8cd9b360340fcb5aaca629a8fd3e77993365959d20ffa749215cb34bbcc8a7c892e9ab4ce2f1942d6e60bfa8c1b2daabac00b6342734a5f5c54f5b5195b9b5d341f3dfadef7471fadb2fa6db1bc385b4ecbf52c276248836651e1e3e3b2acaedca765d6b4aff26575c9f83d25a0e69b9a3e595e98bfca8a3aa416e6ef6c36abf3867a943febaa5ad01fdffbfe2ff97f0015ab79db85010000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'e020dfc5-7dc1-47cb-b58d-8d2720f5a7f5', + '2a90bde4-0a4c-4355-89e1-60f641e39f1f', 'elapsed-time', - '16', + '10', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:08 GMT', + 'Tue, 28 Sep 2021 05:56:37 GMT', 'Content-Length', '364' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_mergeupload_documents.js b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_mergeupload_documents.js index dc57734fab9a..02ab006025f4 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_mergeupload_documents.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_mergeupload_documents.js @@ -5,7 +5,7 @@ module.exports.hash = "77854219b43bd06c7e99d63f45cf2f71"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"mergeOrUpload","hotelId":"8","description":"Modified Description"},{"@search.action":"mergeOrUpload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"mergeOrUpload","hotelId":"8","description":"Modified Description"},{"@search.action":"mergeOrUpload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f1d7c34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab85c97a5697152cde893bd9d9d5f3232afefee7e8df7777fc9f77fc9ff03dc317a548a000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '9cce2347-4462-478d-b83c-acaa51b2aec8', + 'dbe95a2b-613b-4951-ae8e-096e6e303e22', 'elapsed-time', - '47', + '40', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:26 GMT', + 'Tue, 28 Sep 2021 05:56:54 GMT', 'Content-Length', '194' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%278%27)') + .get(`/indexes('hotel-live-test1')/docs('8')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3e3af868247fbdc816f9478f96ebb21c7d34cb9b695dacdaa25a52932faa59715ee4b3f4a9f771d0e8594dcdcecaf43acdd2d93a9dd4eba24d67795a66695daddb3ccddbb4c9d396feb8ccd3df77bdb393efa453fc3cdf6ff1237fa8cd9b360340fcb5aaca629a8fd3e77993365959d20ffa749215cb34bbcc8a7c892e9ab4ce2f1942d6e60bfa8c1b2daabac00b6342734a5f5c54f5b5195b9b5d341f3dfadef7471fadb2fa6db1bc385b4ecbf52c276248836651e1e3e3b2acaedca765d6b4aff26575c9f83d25a0e69b9a3e595e98bfca8a3aa416e6ef6c36abf3867a943febaa5ad01fdffbfe2ff97f0015ab79db85010000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '09f076d0-0c0e-4208-b503-1b140014688e', + '12f659e1-321e-460b-9750-4836f94b3e7d', 'elapsed-time', - '9', + '8', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,13 +63,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:29 GMT', + 'Tue, 28 Sep 2021 05:56:58 GMT', 'Content-Length', '364' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71fdcddfd7f002dd054ff05000000"], [ 'Cache-Control', @@ -85,7 +85,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '85091584-461f-4b10-97bf-46cc26a06c5c', + 'd181fcdc-9b93-4772-b7f8-c9eed3a3c2a8', 'elapsed-time', '4', 'OData-Version', @@ -95,7 +95,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:30 GMT', + 'Tue, 28 Sep 2021 05:56:58 GMT', 'Content-Length', '127' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_upload_a_new_document.js b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_upload_a_new_document.js index 0cdbf0465c15..79f55975f932 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_upload_a_new_document.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_indexdocuments_upload_a_new_document.js @@ -5,7 +5,7 @@ module.exports.hash = "a3afa85ce21eed540bb82e8d7f6865ed"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"upload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"upload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471fedee7e34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab95c97a5697152cde893bd9ddd5ff2fd5ff2ff00bc77d14f4b000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'eb2bcd7b-9b30-45b0-82ab-01098d3d81eb', + 'b2b0ed1f-d906-49af-b0f0-98791d688a52', 'elapsed-time', - '27', + '29', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:22 GMT', + 'Tue, 28 Sep 2021 05:55:50 GMT', 'Content-Length', '185' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71fdcddfd7f002dd054ff05000000"], [ 'Cache-Control', @@ -53,7 +53,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '77462054-f77b-46d3-81f7-781aaef23ef5', + '114f51e1-f295-4bbe-9b0e-9d0b6171c7ba', 'elapsed-time', '4', 'OData-Version', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:26 GMT', + 'Tue, 28 Sep 2021 05:55:54 GMT', 'Content-Length', '127' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_mergedocuments_modify__merge_an_existing_document.js b/sdk/search/search-documents/recordings/node/searchclient/recording_mergedocuments_modify__merge_an_existing_document.js index e312de05adcf..a109cccf8590 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_mergedocuments_modify__merge_an_existing_document.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_mergedocuments_modify__merge_an_existing_document.js @@ -5,7 +5,7 @@ module.exports.hash = "9d3d888e42e277fa917ecfc8d8d71e17"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%276%27)') + .get(`/indexes('hotel-live-test1')/docs('6')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3efaf4a391fcf5225be41f3d5aaecb72f4d12c6fa675b16a8b6a494d5eafeb555d34c5f2a2bc4ef377ab7cd91497f938fda29ae565daac8b366fd2797699a7d932ada679b6dcbe2cf2ab3141f6003dab0df469d6e617557d6dfe6eb38be6a347dffbfee8a35556bfa56ece96d3723dcb093d69d02c2a7c7c5c96d595fbb4cc9af655beac2e33807f4a40cd37357db2bc307f951575482dccdfd96c56e70df5287fd655b5a03fbef7fd5ff2ff00978a208417010000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '3d2f3c8f-411e-46d4-ad60-58a9e458c9fe', + 'c854aa23-493d-4cfc-a888-bd501784adf5', 'elapsed-time', - '13', + '18', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:38 GMT', + 'Tue, 28 Sep 2021 05:55:07 GMT', 'Content-Length', '301' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"merge","hotelId":"6","hotelName":null,"description":"Modified Description","descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"merge","hotelId":"6","hotelName":null,"description":"Modified Description","descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f7dfad1e8a3a6cdda75f3d1a3b65ee7a38ff2baaeea2ff2a6c92ea8e1725d96a6c54935a34ff676767ec9f77fc9ff037255c7d34a000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'cb17d5df-d927-44c8-95e1-11e21ae3d41c', + 'f7b221d1-0f42-4315-b4ac-72cca3106386', 'elapsed-time', - '27', + '24', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,13 +63,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:38 GMT', + 'Tue, 28 Sep 2021 05:55:07 GMT', 'Content-Length', '184' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%276%27)') + .get(`/indexes('hotel-live-test1')/docs('6')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3efaf4a391fcf5225be41f3d5aaecb72f4d12c6fa675b16a8b6a494dbea866c57991cfd2a7dec741a367b579739ab5f945555f9bbfdbeca2f9e8d1f7be3ffa6895d56f8be5c5d9725aae6739752d0d9a45858f8fcbb2ba729f9659d3beca97d56506f04f09a8f9a6a64f9617e6afb2a20ea985f93b9bcdeabca11ee5cfbaaa16f4c7f7beff4bfe1fcc8e7273f3000000"], [ 'Cache-Control', @@ -85,9 +85,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '8a0b79ad-78df-4d51-bfd0-5b6edaa721d2', + 'c1cdc7f4-8613-4b75-84c5-0352e5f59783', 'elapsed-time', - '13', + '7', 'OData-Version', '4.0', 'Preference-Applied', @@ -95,7 +95,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:43 GMT', + 'Tue, 28 Sep 2021 05:55:11 GMT', 'Content-Length', '264' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_merge_a_new_document.js b/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_merge_a_new_document.js index 6c5be9cdef21..080d54bc1c54 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_merge_a_new_document.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_merge_a_new_document.js @@ -5,7 +5,7 @@ module.exports.hash = "02182cd7bea82d990c8e33d059d82959"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"mergeOrUpload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"mergeOrUpload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471fedee7e34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab95c97a5697152cde893bd9ddd5ff2fd5ff2ff00bc77d14f4b000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '023c52e8-349c-4e2e-bf45-2e3bc7d5d7e2', + 'af594fca-63a7-4afe-8a5a-fb3cd979ce95', 'elapsed-time', - '24', + '28', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:18 GMT', + 'Tue, 28 Sep 2021 05:54:46 GMT', 'Content-Length', '185' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71fdcddfd7f002dd054ff05000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'abb1bc6b-cab3-4147-810f-66df0f7b05e6', + 'ad489feb-074e-4b77-ac28-f486b5283668', 'elapsed-time', - '5', + '6', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:22 GMT', + 'Tue, 28 Sep 2021 05:54:50 GMT', 'Content-Length', '127' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_modify__merge_an_existing_document.js b/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_modify__merge_an_existing_document.js index 5b7dc737d70c..ea88e9199f40 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_modify__merge_an_existing_document.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_mergeoruploaddocuments_modify__merge_an_existing_document.js @@ -5,7 +5,7 @@ module.exports.hash = "0518a75681e14778da303d0012a62fae"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%276%27)') + .get(`/indexes('hotel-live-test1')/docs('6')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3efaf4a391fcf5225be41f3d5aaecb72f4d12c6fa675b16a8b6a494d5eafeb555d34c5f2a2bc4ef377ab7cd91497f938fda29ae565daac8b366fd2797699a7d932ada679b6dcbe2cf2ab3141f6003dab0df469d6e617557d6dfe6eb38be6a347dffbfee8a35556bfa56ece96d3723dcb093d69d02c2a7c7c5c96d595fbb4cc9af655beac2e33807f4a40cd37357db2bc307f951575482dccdfd96c56e70df5287fd655b5a03fbef7fd5ff2ff00978a208417010000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '3d6b7e8c-2324-4e72-955a-715bd88a61db', + 'f7f9a8fd-27c6-47bf-8ba0-67c47405d3c5', 'elapsed-time', - '17', + '13', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:57 GMT', + 'Tue, 28 Sep 2021 05:54:25 GMT', 'Content-Length', '301' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"mergeOrUpload","hotelId":"6","hotelName":null,"description":"Modified Description","descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"mergeOrUpload","hotelId":"6","hotelName":null,"description":"Modified Description","descriptionFr":null,"category":null,"tags":[],"parkingIncluded":null,"smokingAllowed":null,"lastRenovationDate":null,"rating":null,"location":null,"address":null,"rooms":[]}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471f7dfad1e8a3a6cdda75f3d1a3b65ee7a38ff2baaeea2ff2a6c92ea8e1725d96a6c54935a34ff676767ec9f77fc9ff037255c7d34a000000"], [ 'Cache-Control', @@ -53,9 +53,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '84ba7741-3437-4c20-9509-f2e770c39f1e', + '992e731c-3e2a-4ce2-b47f-49bb41ed6a5d', 'elapsed-time', - '29', + '28', 'OData-Version', '4.0', 'Preference-Applied', @@ -63,13 +63,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:53:57 GMT', + 'Tue, 28 Sep 2021 05:54:25 GMT', 'Content-Length', '184' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs(%276%27)') + .get(`/indexes('hotel-live-test1')/docs('6')`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147f3aacdcbb3d9478f3efaf4a391fcf5225be41f3d5aaecb72f4d12c6fa675b16a8b6a494dbea866c57991cfd2a7dec741a367b579739ab5f945555f9bbfdbeca2f9e8d1f7be3ffa6895d56f8be5c5d9725aae6739752d0d9a45858f8fcbb2ba729f9659d3beca97d56506f04f09a8f9a6a64f9617e6afb2a20ea985f93b9bcdeabca11ee5cfbaaa16f4c7f7beff4bfe1fcc8e7273f3000000"], [ 'Cache-Control', @@ -85,9 +85,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '13810b54-1db5-47ba-8ccf-d0938e8ef3fe', + 'e08e800f-7a45-4ee2-a3cb-9c574c084228', 'elapsed-time', - '10', + '8', 'OData-Version', '4.0', 'Preference-Applied', @@ -95,7 +95,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:54:01 GMT', + 'Tue, 28 Sep 2021 05:54:29 GMT', 'Content-Length', '264' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_the_correct_search_result.js b/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_the_correct_search_result.js index 3fb8c05465e8..013e425b5eef 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_the_correct_search_result.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_the_correct_search_result.js @@ -5,7 +5,7 @@ module.exports.hash = "a2488f8eaa300d7bb408d3f5e102ba9e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.search', {"count":true,"search":"budget","skip":0,"top":5}) + .post(`/indexes('hotel-live-test1')/docs/search.post.search`, {"count":true,"search":"budget","skip":0,"top":5}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cadd6cbf6a3479f8e3ebaccca75fed1a3efd1574d9ed5d3f9b89956357db23bdebfb773ffde8307a38fe6559b9767b38f1e7d74ef23fdeb45b6a0361f9d4eab65f5bacdaee9f359de4ceb62d516d592bef9c9bcbe4e57d56a5d6675caafa4c5326dabab65d8f4594d8dbffdfbae7776cef7d1a8ccd355b96ef4d5a2ced37c995e166599d37bd3accd2faafa9a5e79b29e5de42d7dd666170de1ffd155715ed09f13f9fcfba38f5659fdb6585e9c2da7e57a9613f66dbdce471f358b0a1f1f976575854fcfb3b2a18fcbac695fe5cbea3203564fa923ea64f7e1c3fbdb3b0fb67776dfec3c78b4b343fffb29eaa3a636cb8b8f1eed8f77e8c58ab0a2573e7af48b3f6aaf5778ed6555107509ddaaaa67c5926001c3edddbdbdf1eebdddfb44d2fd4fc79f3e38b87fb04b784e6bfad6bebb046109f9ba5ae5755be0cd5f2c1f12b55fbefefcd1febdbd4f3ffa25bfe4978c3eca66b33a6fa8c1725d968455552de88fef7dff978c2293b97b40cf1e4d38cf054fe6ee0e75c47fea6c9e802beaeba698e5e9b7f1397def4d15b5789d5de6e97a45f398dedff9ddd3eafc3c6deb6c56e0ebac94796ec669faaccef3f4bbc5b362945ed479d6a6864ae992f04a67c4066085517a4ea8a76f8b763acfe9afabac99e775fa0bd3597d9dd7a3746fffee83b459af5655dd8ed249755512ddd38c98e19a5e2dda250d3f9de6cb965eca96b37441831d8748337f81bda60fc1ab8ba2c97f90fef4baf945eb8ff169bec30369d635715e93cef1193362e306b6a4bf684c180e8d266bd70521d3d6689a1f34e9a4200e6d8a76cd1f3c4c57f69bd99a91abf36d66e0513a5d174db1ccd369b55895d2aaa58f4ba2eabac969dc0d7ff890a8417f8f082d1e3ad3c18e9fc030d09466c9d0206f53969a7c89f9060988dc83a2b2b7bf3daf68c4e775b56c094cf3366df2fab29882f3a634a9347924ac65359940b089c9da6c5d67c4d3c4ae3db15201eaca9548db90583ddcdea1ff7d1a15ab7bef27560f0ec60ff777f60fee8deedd1f3fdcd9dffd94b0fc70a1fac51f3544e4bc3d361f7cf4e9c3dd9df459769db76dce139abe9a11d469d182ca4fd7f53c5bd0df44ac367f595797c59208fae8a31727f4212b5c9e8daf5e1fd3dfab8a9a9527d50c2df61e3cd8bdf711756e44f817fb1c4c0d5e13cb113beca6bf1711287d92cfd2ade345be24eecc9b3b04cd6bcdfc6edb3b2e25c62501298b36dd7a2d73cd6f2a81f805fa739235f92b42ffa3477be3fd7dfa3b9f7dc96009ab8f5cf7d4b229f37cd5b0c6a0c6f47774fa0dc729532db2b779fd112b280f65022d2c9abea2f103ed9f58e72453d4d10de33c218a4f4812304823dfbf88fa25109bc7ebf5471fba513f187ffa90fe0e476db1a1a6370d5b856160dc3cf28e6ade193ff8f4c1ce2efa65f5c9aaf92175c57fa9667e9d4f6bc2972520fd025f50038f1ad4e4cd3c17fd9b164d4a1a9cb4e435893049119191146f4bdf2f32126b523e8bbc9e16a4afb39a34e735a971fe168c0cb9c7ef73c2b1c5172ff2abf4f7a9eab7e3f4383da7df17c5724d8297665719356ed237c522ffb8495fffa2754613019af3eb45d356753135aa8a00e163f4304ab326bdca49edd3cf8a3ead497565343d6844c3cb49da5a6a4d460364b308d018180e310401cea8cf05c9509ab5a4a7a76d4176099d4f2b9a915545f39ed1489971a00d3d5231e33cffd869fa14fd1533fc9d3fccca9c18aef5f539db868cd43ac973b1a206201b7f77402373d464854c0d453510c7acca9ca839a5a6bbf7ef1110fada0c06d424462de9ff340e25295980b6aed6341282c234810569f3c58a143b9950ea8c50a33e95baf432605263ee92085b2c9b0270d3d9c7d99a5a362400f9fa1dfd4984253c6838a21088b8bf685da4e7a2ff2d5a69f9f19aa84cd41290f43efd9f2d8ba33323e3e84c7f1384f2e3e305437ec87881e6e03c6381aa758b8fe9532319abaa020f938747b09662684990e823fa735ae4f545fe8d599b073be4c16def1ebcd939205343fff3adcd7b3a710fee8d1f3eb8bfbf736fb40fc9ddb97ff0b3666e1e3c48efb7f3f4f812c0889741493353f4091990d0cefc3ef4e1463bb3bbb3b3b7b7c9ce786a113ad42abe74eb84ba875f081deabdc3c2743b2d0c3980c0e1074915f317a029cdbcaee943a7911f7ea84616ce306c7739adefce2e67a48b49137b0321b01e0640ddd8ba74eb0bc026d94a7fb2c8af80b2f7de4d04881ae01ec01b687030dee9d3c0e0472dbf1e09461ffd74365dffe00745daae2744102649cf38edddbf77efdec37b04958d0b5ba73d7a97ff52ebf4aacaa6f301b374429664050dcb2f9082a7d8e16a394ecf96e7a44e4867911aa72fa030bc1799ac6154b8207924671ff682e69ed9c741592fe97b6a083024c956ef3041e93333766e447fbf7794289f0ee89783bded9dfded3dd22f116f76f7fdf4cbae172412efff3083c4f864ef5347fc974ef6e9bb1500329736f49d376bf4ed4b7253c88bb8a8aa99cc78d882e7f5b8410c36219fc419616a46141a9cb71f05f74c6dccdbf77fc9ff03a337a51ac6110000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '9ad27a2d-241d-4c92-a445-015118602829', + '2da84bbb-5184-4d1c-9c9d-2328391e064f', 'elapsed-time', - '140', + '43', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:51:30 GMT', + 'Tue, 28 Sep 2021 05:51:59 GMT', 'Content-Length', '1958' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_zero_results_for_invalid_query.js b/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_zero_results_for_invalid_query.js index e76a0a916327..32bdbff73bbb 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_zero_results_for_invalid_query.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_search_returns_zero_results_for_invalid_query.js @@ -5,7 +5,7 @@ module.exports.hash = "545ca4d63064d240615e80556c4d4407"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.search', {"count":true,"search":"garbxyz","skip":0,"top":5}) + .post(`/indexes('hotel-live-test1')/docs/search.post.search`, {"count":true,"search":"garbxyz","skip":0,"top":5}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cadd6cbf6a3473ba38f2eb3729d7ff4e87bdfff25ff0f36f0f25c1d000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'de2cc414-3427-4e29-a3c6-9c535860cae6', + '6c36a44f-1803-47ec-aa3d-eb2c5b5ec276', 'elapsed-time', - '36', + '17', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:51:48 GMT', + 'Tue, 28 Sep 2021 05:52:16 GMT', 'Content-Length', '149' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_semantic_ranking.js b/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_semantic_ranking.js deleted file mode 100644 index 944cb5ea7615..000000000000 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_semantic_ranking.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "ebee6be9a05a9f7ccb5d41991d4746d7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.search', {"count":true,"queryType":"semantic","search":"luxury","queryLanguage":"en-us","skip":0,"top":5}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cadd6cbf6a347bba38f2eb3729d7ff4e87bf4559367f5743e6ea6554d9fec8eefddbfbfb3f77064bfa8f33a5bbecdebd7d260677c70b077f0e983bd87f70e1e1eecec7eba47e04cdb69b66a8b6ad930e4367f479d7df42c5b4eafd3d76d763d4e9fe44d9bceab362fd36299b6d5d5322dced3eb6a9d96c5db3c2dd7efd6f5b53468c6e99b794e7f6497799a2dd36c91fda0585ed07be7c5b268afd3555595a3344b9b55463f9633fab5ceb3b2a457f27275be2ed369b59c16797d9133a8b4aca619b04b8b265de5f5793e6dd3ededb42e2ee66d3a235c80cf289d965593136e29c14a5b7aafadd6754178676d5b67534020dcbe9ba7737a917aabf369b558e484403b27c88cfc789c7e91176599afeb74fefbae7776cef7e9d3345fa697f8346d8af4b25a3769562cf21fa4654eafd9564d3a235cd7ef08eb33faa35ab6e97a99a78bec62599c17bf689da7aba29916f4115ec977d219ff7c38a9ea594e78b4236a0faaa439de745448db9a5b1e34e9ba2d4a82fffce37cb12ab329bf96626e56597d9e152d81dedbd9bd078457654e5335a506753ea2cf09c04ebaaaab77c5a268f9cf87409888d4d23030148f4ef818b403da44b41718b3d08b260cdf9f57752bbd4f095b470422e07366868f461f319de9ff2db1d5725d96bfe4fbf419a87c3623f6da450bfcf5225b107b7aec465fccf2665a17cc93f4d5cf1bee0b47feaca6b1ff881d8970f818c404da44c5f76047a2284d5f7e5111473efac8b2669b5d10537eef237003fd7959e457f4e38a08433fec483f2286a591bc25063a5b4ecbf52c27c63dcfca261f7dd42c2a7c7e5c96d595f7719935edab7c595d32cf3ca5aea95ba2c1cef6cea7db7b0fdeec3c78b4b343fffb29eaa7a636cb8b8f1edd1fefd08bca661f3d22057cbdc26b2fab82b43ef0a1292996040b386fefeeed8d77efedde7ff060b4ff60fce98383fb07bb84e8b4a66fedbb4b0815615f57c4b36d81377fb17cf8e8a3d397af3f7fb47f6fefd38f7ec92ff925a38fb2d9acce1b6a001925acaa6a417f7ceffbbfe4fbbfe4ff01223678c081060000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=none', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'd5c8cba4-053f-40b4-bdd4-5bbb80b6a77b', - 'elapsed-time', - '100', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Tue, 13 Apr 2021 06:09:38 GMT', - 'Content-Length', - '881' -]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_speller.js b/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_speller.js deleted file mode 100644 index f68aa298eec3..000000000000 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_search_with_speller.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "91ff5c8ed06e5fd96db3abf11fe0b8d0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.search', {"count":true,"search":"budjet","queryLanguage":"en-us","speller":"lexicon","skip":0,"top":5}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cadd6cbf6a3479f8e3ebaccca75fed1a3efd1574d9ed5d3f9b89956357db23bdebfb773ffde8307a38fe6559b9767b38f1e7d74ef23fdeb45b6a0361f9d4eab65f5bacdaee9f359de4ceb62d516d592bef9c9bcbe4e57d56a5d6675caafa4c5326dabab65d8f4594d8dbffdfbae7776cef7d1a8ccd355b96ef4d5a2ced37c995e166599d37bd3accd2faafa9a5e79b29e5de42d7dd666170de1ffd155715ed09f13f9fcfba38f5659fdb6585e9c2da7e57a9613f66dbdce471f358b0a1f1f976575854fcfb3b2a18fcbac695fe5cbea3203564fa923ea64f7e1c3fbdb3b0fb67776dfec3c78b4b343fffb29eaa3a636cb8b8f1eed8f77e8c58ab0a2573e7af48b3f6aaf5778ed6555107509ddaaaa67c5926001c3edddbdbdf1eebdddfb44d2fd4fc79f3e38b87fb04b784e6bfad6bebb046109f9ba5ae5755be0cd5f2c1f12b55fbefefcd1febdbd4f3ffa25bfe4978c3eca66b33a6fa8c1725d968455552de88fef7dff978c2293b97b40cf1e4d38cf054fe6ee0e75c47fea6c9e802beaeba698e5e9b7f1397def4d15b5789d5de6e97a45f398dedff9ddd3eafc3c6deb6c56e0ebac94796ec669faaccef3f4bbc5b362945ed479d6a6864ae992f04a67c4066085517a4ea8a76f8b763acfe9afabac99e775fa0bd3597d9dd7a3746fffee83b459af5655dd8ed249755512ddd38c98e19a5e2dda250d3f9de6cb965eca96b37441831d8748337f81bda60fc1ab8ba2c97f90fef4baf945eb8ff169bec30369d635715e93cef1193362e306b6a4bf684c180e8d266bd70521d3d6689a1f34e9a4200e6d8a76cd1f3c4c57f69bd99a91abf36d66e0513a5d174db1ccd369b55895d2aaa58f4ba2eabac969dc0d7ff890a8417f8f082d1e3ad3c18e9fc030d09466c9d0206f53969a7c89f9060988dc83a2b2b7bf3daf68c4e775b56c094cf3366df2fab29882f3a634a9347924ac65359940b089c9da6c5d67c4d3c4ae3db15201eaca9548db90583ddcdea1ff7d1a15ab7bef27560f0ec60ff777f60fee8deedd1f3fdcd9dffd94b0fc70a1fac51f3544e4bc3d361f7cf4e9c3dd9df459769db76dce139abe9a11d469d182ca4fd7f53c5bd0df44ac367f595797c59208fae8a31727f4212b5c9e8daf5e1fd3dfab8a9a9527d50c2df61e3cd8bdf711756e44f817fb1c4c0d5e13cb113beca6bf1711287d92cfd2ade345be24eecc9b3b04cd6bcdfc6edb3b2e25c62501298b36dd7a2d73cd6f2a81f805fa739235f92b42ffa3477be3fd7dfa3b9f7dc96009ab8f5cf7d4b229f37cd5b0c6a0c6f47774fa0dc729532db2b779fd112b280f65022d2c9abea2f103ed9f58e72453d4d10de33c218a4f4812304823dfbf88fa25109bc7ebf5471fba513f187ffa90fe0e476db1a1a6370d5b856160dc3cf28e6ade193ff8f4c1ce2efa65f5c9aaf92175c57fa9667e9d4f6bc2972520fd025f50038f1ad4e4cd3c17fd9b164d4a1a9cb4e435893049119191146f4bdf2f32126b523e8bbc9e16a4afb39a34e735a971fe168c0cb9c7ef73c2b1c5172ff2abf4f7a9eab7e3f4383da7df17c5724d8297665719356ed237c522ffb8495fffa2754613019af3eb45d356753135aa8a00e163f4304ab326bdca49edd3cf8a3ead497565343d6844c3cb49da5a6a4d460364b308d018180e310401cea8cf05c9509ab5a4a7a76d4176099d4f2b9a915545f39ed1489971a00d3d5231e33cffd869fa14fd1533fc9d3fccca9c18aef5f539db868cd43ac973b1a206201b7f77402373d464854c0d453510c7acca9ca839a5a6bbf7ef1110fada0c06d424462de9ff340e25295980b6aed6341282c234810569f3c58a143b9950ea8c50a33e95baf432605263ee92085b2c9b0270d3d9c7d99a5a362400f9fa1dfd4984253c6838a21088b8bf685da4e7a2ff2d5a69f9f19aa84cd41290f43efd9f2d8ba33323e3e84c7f1384f2e3e305437ec87881e6e03c6381aa758b8fe9532319abaa020f938747b09662684990e823fa735ae4f545fe8d599b073be4c16def1ebcd939205343fff3adcd7b3a710fee8d1f3eb8bfbf736fb40fc9ddb97ff0b3666e1e3c48efb7f3f4f812c0889741493353f4091990d0cefc3ef4e1463bb3bbb3b3b7b7c9ce786a113ad42abe74eb84ba875f081deabdc3c2743b2d0c3980c0e1074915f317a029cdbcaee943a7911f7ea84616ce306c7739adefce2e67a48b49137b0321b01e0640ddd8ba74eb0bc026d94a7fb2c8af80b2f7de4d04881ae01ec01b687030dee9d3c0e0472dbf1e09461ffd74365dffe00745daae2744102649cf38edddbf77efdec37b04958d0b5ba73d7a97ff52ebf4aacaa6f301b374429664050dcb2f9082a7d8e16a394ecf96e7a44e4867911aa72fa030bc1799ac6154b8207924671ff682e69ed9c741592fe97b6a083024c956ef3041e93333766e447fbf7794289f0ee89783bded9dfded3dd22f116f76f7fdf4cbae172412efff3083c4f864ef5347fc974ef6e9bb1500329736f49d376bf4ed4b7253c88bb8a8aa99cc78d882e7f5b8410c36219fc419616a46141a9cb71f05f74c6dccdbf77fc9ff03a337a51ac6110000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=none', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - '1b710d77-f468-4c94-b0aa-7c3fc914515f', - 'elapsed-time', - '55', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Tue, 13 Apr 2021 06:14:46 GMT', - 'Content-Length', - '1958' -]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_the_correct_suggestions.js b/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_the_correct_suggestions.js index 296842a5d7ba..441b68115af6 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_the_correct_suggestions.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_the_correct_suggestions.js @@ -5,7 +5,7 @@ module.exports.hash = "99a7bb70cfb77d20156efa8fd4c12727"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.suggest', {"search":"WiFi","suggesterName":"sg"}) + .post(`/indexes('hotel-live-test1')/docs/search.post.suggest`, {"search":"WiFi","suggesterName":"sg"}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1efd9e4593d9d8fdbfc5dfbd1a38f5e679779ba5ea56d95dedff9ddd3eafc3c6deb6c56b445b5ccca745eb579d98cd3f4599de7e9778b67c528bda8f3ac4dcb6a9aa151ba2478e9acba5ab6f4ff517abe2ecbf46dd14ee739fd759535f3bc4e7f613aabaff37a94eeeddf7d9036ebd5aaaadb513aa9aeca6279916665995fd3ab45bbcc9b269de6cb965eca96b37451d5f9f8a3d1478cc7d98c10deddf9e8977cff97fc3f4bd5b195d2000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '1e5177fb-9a99-49a3-bce4-f7d044e50bdb', + '9cc5c616-c3aa-4fdb-a97f-ad22452f7134', 'elapsed-time', - '186', + '33', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:52:05 GMT', + 'Tue, 28 Sep 2021 05:52:34 GMT', 'Content-Length', '295' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_zero_suggestions_for_invalid_input.js b/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_zero_suggestions_for_invalid_input.js index 6af460848319..1ba669ddd073 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_zero_suggestions_for_invalid_input.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_suggest_returns_zero_suggestions_for_invalid_input.js @@ -5,7 +5,7 @@ module.exports.hash = "00bf717a7dfa057d9110e7b3d351f583"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.post.suggest', {"search":"garbxyz","suggesterName":"sg"}) + .post(`/indexes('hotel-live-test1')/docs/search.post.suggest`, {"search":"garbxyz","suggesterName":"sg"}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bdefff92ff0742ea40440c000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '46c6a328-8fa8-42ca-aec9-aa5fa8198e0d', + '59399773-721e-46ef-bbba-67e1d35f1e67', 'elapsed-time', - '39', + '25', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:52:22 GMT', + 'Tue, 28 Sep 2021 05:52:51 GMT', 'Content-Length', '133' ]); diff --git a/sdk/search/search-documents/recordings/node/searchclient/recording_uploaddocuments_upload_a_set_of_documents.js b/sdk/search/search-documents/recordings/node/searchclient/recording_uploaddocuments_upload_a_set_of_documents.js index 8d1ce351cc42..f0db62ba96d6 100644 --- a/sdk/search/search-documents/recordings/node/searchclient/recording_uploaddocuments_upload_a_set_of_documents.js +++ b/sdk/search/search-documents/recordings/node/searchclient/recording_uploaddocuments_upload_a_set_of_documents.js @@ -5,7 +5,7 @@ module.exports.hash = "3c37478058c09df8e43da984e9ae009d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .post('/indexes(%27hotel-live-test1%27)/docs/search.index', {"value":[{"@search.action":"upload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null},{"@search.action":"upload","hotelId":"12","description":"New Hotel II Description","lastRenovationDate":null}]}) + .post(`/indexes('hotel-live-test1')/docs/search.index`, {"value":[{"@search.action":"upload","hotelId":"11","description":"New Hotel Description","lastRenovationDate":null},{"@search.action":"upload","hotelId":"12","description":"New Hotel II Description","lastRenovationDate":null}]}) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef1479759b9ce3f7af4bd5ffcd1dbfcfaa3471fedee7e34faa869b376dd7cf4a8add7f9e8a3bcaeabfa8bbc69b20b6ab95c97a5697152cde893bd9ddd5f32b2efef7dadf7bfff4bfe1fabe085b98b000000"], [ 'Cache-Control', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '72f620a2-cdd7-43ca-a8b8-df0ae46c2756', + '824b51f9-4bdf-45dc-b4f0-697507d1f8d9', 'elapsed-time', - '50', + '38', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,13 +31,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:01 GMT', + 'Tue, 28 Sep 2021 05:55:29 GMT', 'Content-Length', '191' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test1%27)/docs/$count') + .get(`/indexes('hotel-live-test1')/docs/$count`) .query(true) .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f22fec7bff71fdcddfb7f0097815d6605000000"], [ 'Cache-Control', @@ -53,7 +53,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '227fbaef-1a9d-4943-af4b-149a00445e9a', + 'de3d7ca8-d6ea-4944-a24d-ac379bd4028a', 'elapsed-time', '4', 'OData-Version', @@ -63,7 +63,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:55:05 GMT', + 'Tue, 28 Sep 2021 05:55:32 GMT', 'Content-Length', '127' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_creates_the_index_object_using_createorupdateindex.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_creates_the_index_object_using_createorupdateindex.js index 1cb88ce3ff0f..fc9c88e90560 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_creates_the_index_object_using_createorupdateindex.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_creates_the_index_object_using_createorupdateindex.js @@ -5,9 +5,9 @@ module.exports.hash = "a8cc1eba57ae3de04b2436a3084c86bf"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/indexes(%27hotel-live-test4%27)', {"name":"hotel-live-test4","fields":[{"name":"id","type":"Edm.String","key":true,"searchable":false,"filterable":false,"sortable":false,"facetable":false},{"name":"awesomenessLevel","type":"Edm.Double","searchable":false,"filterable":true,"sortable":true,"facetable":true},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"sortable":false,"facetable":false},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":false,"sortable":false,"facetable":false}]},{"name":"hiddenWeight","type":"Edm.Int32","retrievable":false,"searchable":false,"filterable":false,"sortable":false,"facetable":false}]}) + .put(`/indexes('hotel-live-test4')`, {"name":"hotel-live-test4","fields":[{"name":"id","type":"Edm.String","key":true,"searchable":false,"filterable":false,"sortable":false,"facetable":false},{"name":"awesomenessLevel","type":"Edm.Double","searchable":false,"filterable":true,"sortable":true,"facetable":true},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"sortable":false,"facetable":false},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":false,"sortable":false,"facetable":false}]},{"name":"hiddenWeight","type":"Edm.Int32","retrievable":false,"searchable":false,"filterable":false,"sortable":false,"facetable":false}]}) .query(true) - .reply(201, {"@odata.context":"https://endpoint/$metadata#indexes/$entity","@odata.etag":"\"0x8D96DD6A587B28B\"","name":"hotel-live-test4","defaultScoringProfile":null,"fields":[{"name":"id","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"awesomenessLevel","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"hiddenWeight","type":"Edm.Int32","searchable":false,"filterable":false,"retrievable":false,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}, [ + .reply(201, {"@odata.context":"https://endpoint/$metadata#indexes/$entity","@odata.etag":"\"0x8D9824504A73C32\"","name":"hotel-live-test4","defaultScoringProfile":null,"fields":[{"name":"id","type":"Edm.String","searchable":false,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":true,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"awesomenessLevel","type":"Edm.Double","searchable":false,"filterable":true,"retrievable":true,"sortable":true,"facetable":true,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","searchable":true,"filterable":false,"retrievable":true,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"hiddenWeight","type":"Edm.Int32","searchable":false,"filterable":false,"retrievable":false,"sortable":false,"facetable":false,"key":false,"indexAnalyzer":null,"searchAnalyzer":null,"analyzer":null,"normalizer":null,"synonymMaps":[]}],"scoringProfiles":[],"corsOptions":null,"suggesters":[],"analyzers":[],"normalizers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null}}, [ 'Cache-Control', 'no-cache', 'Pragma', @@ -17,13 +17,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6A587B28B"', + 'W/"0x8D9824504A73C32"', 'Location', "https://endpoint/indexes('hotel-live-test4')?api-version=2020-06-30-Preview", 'request-id', - 'a7cda2c2-8129-4815-bc48-b9b112efa71d', + '62f5b064-557a-4dc9-bc3a-65faa2e85c18', 'elapsed-time', - '626', + '601', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,15 +31,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:11 GMT', + 'Tue, 28 Sep 2021 05:58:38 GMT', 'Content-Length', '1698' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test4%27)') + .get(`/indexes('hotel-live-test4')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f7efaf4e9a7c7f70f1e3cd93b78f2fb7e44ad96d922a7afe7559b97db6571996fa3db7dfa66969f67ebb27d3dadea6279f1b2aece8b929a2ed76539fae8bcc8cb59f3d1a3effd6203a198d13bedf50abf9fce16e3d72d5ea3cf04ed6c8297cfb3b2c9f176d9e675f0519d53fbfc523e6beb357dd454752b7f6b9bf36c4aa3f13f799b5f9bd64c80e365565eff20af0d9ad277f7d3acf3f7b2aa175959789f34d7cb6a79bdf8225b618cdfff25233bccec2a6faa45becc9be6797e999734406fd04fab35d02300dc7180ab3f684179e398e56f6fc8f2018f5821fe90863ccb9b695dacdaa25ad2c8bcd146a758d0f407abd86e1cadb6f186ab9ffc9c8cb7cd8ab2a17179633da916ab327ff7069f109e3df62729f3de38a9ca329f82625b7859087587be176c65844283ffef51caa7d5bc98cdf2e577f3e262ded2f074f818f3d9b2bdb7471f49af01a6370d593ffb7fd598e9a34011f2c7a38fe8b3e64b160dfa405f5d5f5c900acd6bfa044d4c67faa7eb4b3f68abb7f9b2fbf73326917e42e4ab830ff2e5b4bee65e7f2f1040fb2d164599d550fe8fac55d109f9f12f8a695d35d5793b3efec1bacec7af992ee3275fecdd7fedde2382ee1a7013f9e597fc92ff07b040a33aa2060000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f1eeceddfdfd93f7e70efe4dedeeffb11b55a668b9cbe9e576d5e6e97c565be8d6ef7e99b597e9eadcbf6f5b4aa8be5c5cbba3a2f4a6aba5c97e5e8a3f3222f67cd478fbef78b0d846246efb4d72bfc7e3a5b8c5fb7788d3e13b4b3095e3ecfca26c7db659bd7c147754eedf34bf9acadd7f45153d5adfcad6dceb3298dc6ffe46d7e6d5a33018e975979fd83bc36684adfdd4fb3cedfcbaa5e6465e17dd25c2fabe5f5e28b6c85317eff978cec30b3abbca916f9326f9ae7f9655ed200bd413fadd6408f0070c701aefea005e58d6396bfbd21cb073c6285f8431af22c6fa675b16a8b6a4923f3461b9d6241d31fac62bb71b4dac61bae7ef27332de362bca86c6e58df5a45aaccafcdd1b7c4278f6d89fa4cc7be3a42acb7c0a8a6de16521d41dfa5eb095110a0dfebf47299f56f36236cb97dfcd8b8b794bc3d3e163cc67cbf6de1e7d24bd0698de3464fdecff5563a68f0245c81f8f3ea2cf9a2f5934e8037d757d71412a34afe91334319de99fae2ffda0addee6cbeedfcf9844fa0991af0e3ec897d3fa9a7bfdbd4000edb75814655643f93fb2564527e4c7bf28a675d554e7edf8f807eb3a1fbf66ba8c9f7cb177ffb57b8f08ba6bc04de4975ff24bfe1f99c05842a2060000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -51,13 +51,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6A587B28B"', + 'W/"0x8D9824504A73C32"', 'Vary', 'Accept-Encoding', 'request-id', - 'bbf76af5-9f12-4474-964d-f49a9ff25ebc', + '466e56f5-7730-491f-9838-cbc7573fa410', 'elapsed-time', - '16', + '35', 'OData-Version', '4.0', 'Preference-Applied', @@ -65,13 +65,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:11 GMT', + 'Tue, 28 Sep 2021 05:58:38 GMT', 'Content-Length', - '656' + '655' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/indexes(%27hotel-live-test4%27)') + .delete(`/indexes('hotel-live-test4')`) .query(true) .reply(204, "", [ 'Cache-Control', @@ -81,11 +81,11 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'request-id', - '06fa444f-9f80-4a5c-9f1a-5890886ea617', + '71d2f08b-4935-4c9b-ae98-a58ec4c2526a', 'elapsed-time', - '184', + '133', 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:11 GMT' + 'Tue, 28 Sep 2021 05:58:39 GMT' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_correct_index_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_correct_index_object.js index c5126e975f6a..0b8933a286a1 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_correct_index_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_correct_index_object.js @@ -5,9 +5,9 @@ module.exports.hash = "a01fab4c4678e48d6f5bd8c1d901514e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test3%27)') + .get(`/indexes('hotel-live-test3')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f7efaf4e9a70f1f9c1cec9cdc3bf97d3fa256cb6c91d3d7f3aacdcbedb2b8ccb7d1ed3dfa66969f67ebb27d3dadea6279f1b2aece8b929a2ed76539fae8bcc8cb59f3d1a3effd6203a198d13bedf50abf9fce16e3d72d5ea3cf04ed6c8297cfb3b2c9f176d9e675f0519d53fbfc523e6beb357dd454752b7f6b9bf36c4aa3f13f799b5f9bd64c80e365565eff20af0d9ad277f7d3acf3f7b2aa175959789f34d7cb6a79bdf8225b618cdfff25233bccec2a6faa45becc9be6797e999734406fd04fab35d02300dc7180ab3f684179e398e56f6fc8f2018f5821fe90863ccb9b695dacdaa25ad2c8bcd146a758d0f407abd86e1cadb6f186ab9ffc9c8cb7cd8ab2a17179633da916ab327ff7069f109e3df62729f3de38a9ca329f82625b7859087587be176c65844283ffef51caa7d5bc98cdf2e577f3e262ded2f074f818f3d9b2bdb7471f49af01a6370d593ffb7fd598e9a34011f2c7a38fe8b3e64b160dfa405f5d5f5c900acd6bfa044d4c67faa7eb4b3f68abb7f9b2fbf73326917e42e4ab830ff2e5b4bee65e7f2f1040fb2d164599d550fe8fac55d109f9f12f8a695d35d5793b3efec1bacec7af992ee3275fecdd7fedde2382ee1a7013f9e597fc92ff07c16992eda2060000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f1eecedef3f7b706fe7d3270feffdbe1f51ab65b6c8e9eb79d5e6e576595ce6dbe8f61e7d33cbcfb375d9be9e5675b1bc785957e745494d97ebb21c7d745ee4e5acf9e8d1f77eb18150cce89df67a85df4f678bf1eb16afd167827636c1cbe759d9e478bb6cf33af8a8cea97d7e299fb5f59a3e6aaaba95bfb5cd7936a5d1f89fbccdaf4d6b26c0f1322baf7f90d7064de9bbfb69d6f97b59d58bac2cbc4f9aeb65b5bc5e7c91ad30c6efff92911d66769537d5225fe64df33cbfcc4b1aa037e8a7d51ae81100ee38c0d51fb4a0bc71ccf2b73764f98047ac107f48439ee5cdb42e566d512d6964de68a3532c68fa83556c378e56db78c3d54f7e4ec6db6645d9d0b8bcb19e548b5599bf7b834f08cf1efb9394796f9c5465994f41b12dbc2c84ba43df0bb63242a1c1fff728e5d36a5ecc66f9f2bb7971316f69783a7c8cf96cd9dedba38fa4d700d39b86ac9ffdbf6accf451a008f9e3d147f459f3258b067da0afae2f2e4885e6357d8226a633fdd3f5a51fb4d5db7cd9fdfb1993483f21f2d5c107f9725a5f73afbf1708a0fd168ba2cc6a28ff47d6aae884fcf817c5b4ae9aeabc1d1fff605de7e3d74c97f1932ff6eebf76ef1141770db889fcf24b7ec9ff039ea52b10a2060000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -19,13 +19,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD697C80C3C"', + 'W/"0x8D98244F7306B93"', 'Vary', 'Accept-Encoding', 'request-id', - '0985ffa5-1019-462b-8eae-92f63cfbc6fd', + 'efd7b653-16cf-41aa-a18c-751c2dde8810', 'elapsed-time', - '21', + '23', 'OData-Version', '4.0', 'Preference-Applied', @@ -33,7 +33,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:52 GMT', + 'Tue, 28 Sep 2021 05:58:20 GMT', 'Content-Length', '656' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes.js index 0fc3be400471..405a131e94cc 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes.js @@ -7,7 +7,7 @@ module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) .get('/indexes') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97371f8d3ebaccca75fed1a3ef59c8d4e482c0febe1fedbc3b787a70b2bfb7ffe0fec3fb4f1e1cdcff7d3fa2f6cb6c41cd3f9a576d5e6e97c565bedd648b55996fa3ff7bd460969f67ebb27d3dadea6279f1b2aece8b92de58aecb72f4d1799197b386bbf3019dcde8c5f67a850f4e678bf1eb16efd26732886c0208e759d9e40051b6792d1fb5f59a3ea9736a9e5ffa1f3555ddfa7f9f67531a177fa060dee6d7e64b26c6f1322baf7f90d70653e9b9fb69d6f97b59d58bac2cbc4f9aeb65b5bc5e7c91ad30ccefff925138d217f8fde6b10a62dfe450f5f71fd258677933ad8b555b544b1ad9fb8f56b1dd385c6df3b330de8ff2e5b85c4ff325a6ea6b0efb594deffe7f6ee0e7f5d71bf8346bf38baabea6d7de7fccf2c9c621cbdfde88e5830f1eb0fcfd3e2325ed08b5a9a33ca9ca329f62beb7dc80efd0f7d2b18feb7b8e5847f5ff8621afb2fa2d0deb6c392dd7b3bca3aa9f545599679072e958705504df73ccf2f7ff1b86dc2c2a0cf9b82cababfce7c588cbac695fe5cbea3203373f2579a6017aa3c6276f8a45fee5f97993b7f49da020582baaff9f1d7c4d836645e50fb85a03297a8dbb130c15adffcf0eb4ac4853d3fcd2b0bca17e9e571775b69a5fbfac8ae5cfd2dc2a989f833167b3599d379ed2c6904f2a38adefdee013c2b3e796366d9de7ed71ec5551f2f499a02ac3d3f17e2091e4839f031a4d8bf6e781ed6e5a526214915c16cb29a6fdffe7c39d56eb65fbf3c1275b5534b3e54935fbffeda4faa3adab6ae1a9a48e0bea2936f8a17dcde6c528f4bd02c19bdf1cb594223f77e472c4f246fb352332f9e4ff2be3e5f1fdff7f98134a71bd22654ec3f286fa0dba6ce6adff378c359f7dc90cec093d46fbffcb896dca3c5f3527b05c34326fb467cbf6de1e7d245d0a968adaff8747fb430a33cd5bff2f18f2cf9bfc09fd471f0659707c6109b1a47e28654e633d5f2f9904c71717757e21f119f1c67a41df49925f7a30ed040c5b764e2707611d057079bdaa4af99bbe2ad0117da1149f15e42b89fb3ba9c86ffae8d1de788760132ef325621ded6c915d2c8b96f23de603fbe2a35ffc519d9fe7754e7f70c0f832ab090dea96c02fae0917039b46fed4beb5bbb333def9258407961700522844046a8c7a23c89988c297757151e093ef7df4ad8fa8d5227b777c919f2d5fe7b4f0017f8601107dd7171744c4bca68f88264adac669c52fe014520cc8d347f89c2dcf8b775f64ed744e7fa055b5aea7f933d012207c7f81be75297bc655a0e4dc19fde978403f68abb7f9b2fbf733e65bfd8458ba0e3e2022d6d7dcddef05c6c4b008a9625194598d988c48a2eb323a7f3ffe4531adaba63a6fc7c73f58d7f9f8358f73fce48bbdfbafdd7bc4e8bb06dc447ef925904205463241b3e016791e3ed9fff4e9b3e393e39d9b1779f6a9c18f1679025927c2fa23658eb979ac82d8373954fdfd8734d65056de7fb48aedc6e16a9b9f85f192e87dbdb50e6fd85f33a450b47fae06fea3451ef96478a4a41dffdfe9a458d4bff121ff6891e7e7c1887fb4c80345e50ff89bcb18c8dfff6f182879e034d4ae51fed1224fcf2dfdd1220fe1fdffb75152bcf9a3451e42fdff6f03fdd1220f277f384fe6293624cbfa9acd8b51e87b058237bf396a29457eeec8e588e58df66b4664f2c9ff57c6cbe3fbffff307fb4c8f3ffd389fdd1220f3ec780bfc930d3bcf5ff8221ffbcc99fd07ff4619005c71796104bea8752e63456b378f3a3459e1f2df2d0b00829b7584324d175199dbf9fa5459e93fddd873bf79eee3dbd7991e73e35f8d1224f20eb44587fa4cc31378f5510fb2687aabfff90c61acacafb8f56b1dd385c6df3b3305e12bdafb7d6e10dfb6b86148af6cfd5c07fb4c8239f0c8f94b4e3cf0f27c50df9478b3c3f0f46fca3451e282a7fc0df5cc640fefe7fc340c903a7a1768df28f16797a6ee9ffa716798402c334ba99463f5ae4a101fcff6db83f5ae421ecffff31567fb43f5ae4b9915c8e58de68bf6644269ffc7f65bc3cbeffff0ff3478b3cff3f9dd81f2df2e0730cf89b0c33cd5bff2f18f2cf9bfc09fd471f0659707c6109b1a47e28654e63358b373f5ae4f9d1220f0d8b90728b3544125d97d1f9fb5959e4b97fefd3dde3dddd7ba7f7766f5ee4f9941afc689127907522ac3f52e6989bc72a887d9343d5df7f48630d65e5fd47abd86e1caeb6f959182f89ded75bebf086fd35430a45fbe76ae03f5ae4914f86474adaf1e78793e286fca3459e9f0723fed1220f14953fe06f2e63207fffbf61a0e481d350bb46f9478b3c3db7f4478b3c84f7ffdf4649f1e68f167908f5ffbf0df4478b3cce05f5141bfcd0be66f36214fa5e81e0cd6f8e5a4a919f3b72396279a3fd9a11997cf2ff95f1f2f8de6398ff1f1de68f1679fe7fcabf3f5ae4c1e718f03719669ab7fe5f30e49f37f913fa8f3e0cb2e0f8c2126249fd50ca9cc66a166f7eb4c8f3a3451e1a1621e5166b8824ba2ea3f3f7b3b5c8f3e0e4e1bde3e383939b17791e50831f2df204b24e84f547ca1c73f35805b16f72a8fafb0f69aca1acbcff6815db8dc3d5363f0be325d1fb7a6b1ddeb0bf6648a168ff5c0dfc478b3cf2c9f048493bfefc7052dc907fb4c8f3f360c43f5ae481a2f207fccd650ce4efff370c943c701a6ad728ff6891a7e796fe689187f0feffdb2829defcd1220fa1feffb781fe6891c7b9a09e62831fdad76c5e8c42df2b10bcf9cd514b29f273472e472c6fb45f3322934ffebf325e1edfffff87f9a3459eff9f4eec8f1679f03906fc4d8699e6adff170cf9e74dfe84fea30f832c38beb08458523f9432a7b19ac59b6f7891872052375f7f91e7478b3c5eca9e7115283977467f3a1ed00f7851a7fb77b0a6432cfdffbe459e879f3e7dfae9c1c9c9cebd939d4f071679b0ba738fbe79cfd59da2a3d444c0e933991d114c9546824474093e7a4f09d74f58c4a5f5cfaa8413397598d955de540b4a9b37cdf3fc322f6980dea0bf41b744fef6862c1ff08815e20f69c8a1a078a38d4eb1a0e90f56b1dd385a6de30d573ff939196f9b15a567ba30562fd8a22ffaec4f52e6bdf1358d9d8ef3ffe594f269352f66b37cf9ddbcb898c3bee9f031e65b7a71fa513064fdecff5563a68f0245c81f9396f76d9abeea1b2a6a623ad33f5d5ffa019b8eeedf81e520f2fdbfcf941c3c3cd9393ed97b7affc19383930da6e4e03eb8e03d8d09c338fb9a16452426e028f9c83194fc3dc04ff2e5cf2a3b114dfd91b2df71f35805b16f72a8fafb0f69acffdf362424755f6fc5dc1bf6d74c4c29da3f57033fafbfdec069012abfa87e3ea4a549317eb8f5974f368e5847f5ff8621afb21a098db3e5b4a4d0b1a3aabfc98c86fcfdff8621ffb07238f2f7ff1b465c664dfb2a5f5697bc94fc94e49906e88d1a9fbc2916f997e7e74d0e07505010ac15d5ffcf0ebea641b3a2f207fcffc7008ff23834d4ae51fe3caf2eea6c35bfe6cc0f7d271d0bae8ae0870e59c1fc1c8c398badf7df14e4356d9de7ed71ec5551f2f499a02ac3d3f17e2091e4839f031a4d2526f8fff928296bd9e614915c16485efeff7eb8532cb8fc7cf0c9569496ceca136485ff7f3a567fb475552d3c95d471413dc5063fb4afd9bc1885be572078f39ba39652e4e78e5c8e58de68bf6644269ffc7f65bc3cbeffff0f739235f92b52e6342c6fa8dfa0cb66defa7fc35869e58c19d8137a8cf6ff9713db9479be6a4e60b96864de686f996416c4ff3f33da1f529869defa7fc1907fdee44fe83ffa30c882e30b4b8825f54349731aebf97ac92438beb8a8f30b89cf8837d60bfaaecddfb5a607d34ec0b065e7747210d6510097d7abaa94bfe9ab021dd1174271b7e24f797f2ce77ff4686fbc43b0099739963a4d678bec6259b494ef311fd81769c9a1cecff39a9626720e185f6635a141dd52778b6bc2c5c0a6913fb56fedeeec8c7768759f1840400a8588406e59e5177f9489287c591717053ef9de47dffa885a2db277c717f9d9f2753ead96f0671800d1d75f81b1a46d9c56fc024e21c5803c7d84cfd9f2bc78f745d64ee7f4075a55eb7a9a3f032d01c2f717e85b97b2675c054ace9dd19f8e07f4035ecfe9fe1d2ce7104bffbf707de7d9bdfd07a7a7f7efefde7f1a59df59e5f539afefd0173f5adc09649c08ea8f9439e5e6b10a62dfe450f5f71fd258431979ffd12ab61b87ab6d7e16c64b22f7f5d638bc617fcd5042d1feb91af88f1677e493e1919256fcf9e19cb821ff6871e7e7c1887fb4b80345e50ff89bcb14c8dfff6f182879de34d4ae51fed1e24ecf2dfdd1e20ee1fdffb751529cf9a3c51d42fdff6f03fdd1e28e73413dc5063fb4afd9bc1885be572078f39ba39652e4e78e5c8e58de68bf6644269ffc7f65bc3cbeffff0ff3478b3bff3f9dd81f2deee0730cf89b0c33cd5bff2f18f2cf9bfc09fd471f0659707c6109b1a47e24636e166d7eb4b8f3a3c51d1a1621e516698824ba1ea3f3f7b3b0b8f3f0d3a70f764f9e1cdc7f72babbd75bdc69b69b0c2ee5364b0b7df99e0b3cdf06909fc5051ef35654d0e557c6bc2bd1d273f75333c5e66f37c7e693ae9c1351fd9132b7dc3c5641cc1faa8ee33dc7aa9ff060f5f7af355a62c4f1c27016e1fa3ee37e9afb32f3f374e4bfffb9a7647f5607ff8d0e9e167cba83bfede04fc8fffed95cf3d17179532e2d3e7cd01f30e36ffebfeebe7cc8e0c9d0c35dfdd95f08326f7de3a397bfdf67cccfbfe17511fd68e3f0e56f6ff4fad2cfc1f029c8a619a761f943fee6c26cf9db1ba97cf07330d068aadf4ba6d1177ddf8604fe03570974901b89a46d3c2ae9271f4ca60f510627e266beff90e593f71cb1b4f8391df0eb1fc6ea810eeeff5d237f49b15cf6b39a5fd791fdbf6bd89c85fa79e1dff8a37eee7209deb0ffffbd44fceac39654bc3080be572078f396cca283dd482d6df3b340aef7671747386fe43fff02203004bdf2fe43964fde73c4d2e2c307fc01b3fde4e7d1aacb134a42325f7b7a01a3fdfff914bfdeb0fef2e93e7d249d0bbe8ae4ff5bc62d7fbfd7687ffeadbffc3c4c60f8c32f3ab32c23a6cfa45bc154d1f347ac1f0543d6cf368d593ff9e041cbdf370fd50db4fefff94869eda4bfb8461fd2676e3d495ffda6178934e0bfab21b0fd135a93e305f627efaa7fa07f40ee186de946b0a13fdd50f5035e35eafe1d2c1ad1ecfdbf7015e9fec1f183670f1e3efbf4c1b3537f15a9ce339a1d04cfdbeb0f5d4c2a693991da7ddde524fd28e06d514bb7656d69cdd8777958faee7e6a66dbfceda6db7cd2e56ca2af8e7692d3e883819215beb7471f495f017afe3805cb8dc394bfbd51ca073c4885f8c31a65d6ce7f1e0c335c59f6061b655e41d31fac62bb71b4dac61bae7ef2c1e32515f39e56373af2df9f14edff07073fcbbf91c1ffbc8b90fdc11778f9ff73832fda6f64f0e49dfc7f70f079f38d0c7e55d2cbff9f1bfcaafc4606bffcffdce069801f2dbffee09b5fc4af78f3fdff4b6b9e5d375f2ebfa005715ef4fdfff968e1bdaf6fa3c214adf71ca879ebff0d23e5508f4675d34805437fa08ae87b8e543ff9e0a17e8883b65c2f26d4eee7d7a01b5ebba7977e3e0d7abdfcffa61bf60143e6b1de3c6445cf1fb38cef3d872c2d3e78c4f2f7fb8c732a099b9bc629f8fdbf65981f32b1757e410e16bdf4f367c853c9309e205f79f3b8154b7fe0fad17b8e5c3ff9e0a1cbdfef33e055d5b4b71cad0cc31fac7cf29e6395161f3c54322fd97296d5b371b99ee64b0ce07dc65d56d30ce103bde68dfbf3bcbaa8b3d5fcfa6555f0fa9c6021882bb6ef4900f9db1bbf82f96002c8dfef33e6555d743d2ff2a5bfa14547f9db1ba77cf07330cc764eded6322b6e13172a66fe58f5a38d83d536de68f5939f8be162ddc38ef4e7c57aa31bfc2aaf68b1835efab0e12bfaef397efde4c309f061aaacaa2f325ace6275f6e19ca003f9ff26298c56ff794e06ea7f35afb3c64f8afe7ca443992d2fd6d9055e532ab8a1d367d2bb602c63faffcdc8db3a5b3625ad08cf7eff367f07adfaff39029055f85a435f15c5ef9f2fdba22d36b0ff498545f2776fe84bc8407f1dfcffab54fb40b6c1707fde8dba594f78c43fef065e9d9f37dd0c1d4504b7c9aeeb473f47e396bfdf67a865bebc68e734aeffff0fb599563538c11be9d36a0da4e82dee2dc0f0ff7b43f507bbc89ab7ff1f36725f477ebf4f1fd114d3e85ed6158d85cc1c7d3ca2dc55dd7cc96ba2f481bebabeb8c81b1a2c7de26c5be3c8f205523f8f14238278b63c2fde7d91b5d339fd8156bc5af3cc9847b790d198e4be66456daed04f282132657c05bea0417fba31ea076df536a71026fcfb194f937e423358071fe4cb697dcda3fdbd300b3ade625194590d941efde28f7ecf6a96b5d95899e2c7bf3031e6f8f807eb3a1fbf660a8c9f7cb177ffb57b8f6675d7809bc82fbf04fca6c088032e08d8effbd1cebb83a70fef1f1c3f383e7e76727aef60eff7fd88de550ab74474668826abb39fce16197d35cbcfb375d9bea66922daead4515bfaaaef7e1433fa58111fe466e53c824364093efa007696d68c7c976fa5efeea7666ecddf6e72cd27df3803f7c8fb7e1c1d7034519a3132c3c087f4a71b857ec02cd9fd3be0489a96dbb1a861b56f9445bfff4bfe1fe80d674a57000100"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97371f8d3ebaccca75fed1a3ef59c8d4e482c0febe1fedbc3b787a70b2bfb7ffe0fec3fb4f1e1cdcff7d3fa2f6cb6c41cd3f9a576d5e6e97c565bedd648b55996fa3ff7bd460969f67ebb27d3dadea6279f1b2aece8b92de58aecb72f4d1799197b386bbf3019dcde8c5f67a850f4e678bf1eb16efd26732886c0208e759d9e40051b6792d1fb5f59a3ea9736a9e5ffa1f3555ddfa7f9f67531a177fa060dee6d7e64b26c6f1322baf7f90d70653e9b9fb69d6f97b59d58bac2cbc4f9aeb65b5bc5e7c91ad30ccefff925138d217f8fde6b10a62dfe450f5f71fd258677933ad8b555b544b1ad9fb8f56b1dd385c6df3b330de8ff2e5b85c4ff325a6ea6b0efb594deffe7f6ee0e7f5d71bf8346bf38baabea6d7de7fccf2c9c621cbdfde88e5830f1eb0fcfd3e2325ed08b5a9a33ca9ca329f62beb7dc80efd0f7d2b18feb7b8e5847f5ff8621afb2fa2d0deb6c392dd7b3bca3aa9f545599679072e958705504df73ccf2f7ff1b86dc2c2a0cf9b82cababfce7c588cbac695fe5cbea3203373f2579a6017aa3c6276f8a45fee5f97993b7f49da020582baaff9f1d7c4d836645e50fb85a03297a8dbb130c15adffcf0eb4ac4853d3fcd2b0bca17e9e571775b69a5fbfac8ae5cfd2dc2a989f833167b3599d379ed2c6904f2a38adefdee013c2b3e796366d9de7ed71ec5551f2f499a02ac3d3f17e2091e4839f031a4d8bf6e781ed6e5a526214915c16cb29a6fdffe7c39d56eb65fbf3c1275b5534b3e54935fbffeda4faa3adab6ae1a9a48e0bea2936f8a17dcde6c528f4bd02c19bdf1cb594223f77e472c4f246fb352332f9e4ff2be3e5f1fdff7f98134a71bd22654ec3f286fa0dba6ce6adff378c359f7dc90cec093d46fbffcb896dca3c5f3527b05c34326fb467cbf6de1e7d245d0a968adaff8747fb430a33cd5bff2f18f2cf9bfc09fd471f0659707c6109b1a47e28654e633d5f2f9904c71717757e21f119f1c67a41df49925f7a30ed040c5b764e2707611d057079bdaa4af99bbe2ad0117da1149f15e42b89fb3ba9c86ffae8d1de788760132ef325621ded6c915d2c8b96f23de603fbe2a35ffc519d9fe7754e7f70c0f832ab090dea96c02fae0917039b46fed4beb5bbb333def9258407961700522844046a8c7a23c89988c297757151e093ef7df4ad8fa8d5227b777c919f2d5fe7b4f0017f8601107dd7171744c4bca68f88264adac669c52fe014520cc8d347f89c2dcf8b775f64ed744e7fa055b5aea7f933d012207c7f81be75297bc655a0e4dc19fde978403f68abb7f9b2fbf733e65bfd8458ba0e3e2022d6d7dcddef05c6c4b008a9625194598d988c48a2eb323a7f3ffe4531adaba63a6fc7c73f58d7f9f8358f73fce48bbdfbafdd7bc4e8bb06dc447ef925904205463241b3e016791e3ed9fff4e9b3e393e39d9b1779f6a9c18f1679025927c2fa23658eb979ac82d8373954fdfd8734d65056de7fb48aedc6e16a9b9f85f192e87dbdb50e6fd85f33a450b47fae06fea3451ef96478a4a41dffdfe9a458d4bff121ff6891e7e7c1887fb4c80345e50ff89bcb18c8dfff6f182879e034d4ae51fed1224fcf2dfdd1220fe1fdffb75152bcf9a3451e42fdff6f03fdd1220f277f384fe6293624cbfa9acd8b51e87b058237bf396a29457eeec8e588e58df66b4664f2c9ff57c6cbe3fbffff307fb4c8f3ffd389fdd1220f3ec780bfc930d3bcf5ff8221ffbcc99fd07ff4619005c71796104bea8752e63456b378f3a3459e1f2df2d0b00829b7584324d175199dbf9fa5459e93fddd873bf79eee3dbd7991e73e35f8d1224f20eb44587fa4cc31378f5510fb2687aabfff90c61acacafb8f56b1dd385c6df3b3305e12bdafb7d6e10dfb6b86148af6cfd5c07fb4c8239f0c8f94b4e3cf0f27c50df9478b3c3f0f46fca3451e282a7fc0df5cc640fefe7fc340c903a7a1768df28f16797a6ee9ffa716798402c334ba99463f5ae4a101fcff6db83f5ae421ecffff31567fb43f5ae4b9915c8e58de68bf6644269ffc7f65bc3cbeffff0ff3478b3cff3f9dd81f2df2e0730cf89b0c33cd5bff2f18f2cf9bfc09fd471f0659707c6109b1a47e28654e63358b373f5ae4f9d1220f0d8b90728b3544125d97d1f9fb5959e4b97fefd3dde3dddd7ba7f7766f5ee4f9941afc689127907522ac3f52e6989bc72a887d9343d5df7f48630d65e5fd47abd86e1caeb6f959182f89ded75bebf086fd35430a45fbe76ae03f5ae4914f86474adaf1e78793e286fca3459e9f0723fed1220f14953fe06f2e63207fffbf61a0e481d350bb46f9478b3c3db7f4478b3c84f7ffdf4649f1e68f167908f5ffbf0df4478b3cce05f5141bfcd0be66f36214fa5e81e0cd6f8e5a4a919f3b72396279a3fd9a11997cf2ff95f1f2f8de6398ff1f1de68f1679fe7fcabf3f5ae4c1e718f03719669ab7fe5f30e49f37f913fa8f3e0cb2e0f8c2126249fd50ca9cc66a166f7eb4c8f3a3451e1a1621e5166b8824ba2ea3f3f7b3b5c8f3e0e4e1bde3e383939b17791e50831f2df204b24e84f547ca1c73f35805b16f72a8fafb0f69aca1acbcff6815db8dc3d5363f0be325d1fb7a6b1ddeb0bf6648a168ff5c0dfc478b3cf2c9f048493bfefc7052dc907fb4c8f3f360c43f5ae481a2f207fccd650ce4efff370c943c701a6ad728ff6891a7e796fe689187f0feffdb2829defcd1220fa1feffb781fe6891c7b9a09e62831fdad76c5e8c42df2b10bcf9cd514b29f273472e472c6fb45f3322934ffebf325e1edfffff87f9a3459eff9f4eec8f1679f03906fc4d8699e6adff170cf9e74dfe84fea30f832c38beb08458523f9432a7b19ac59b6f7891872052375f7f91e7478b3c5eca9e7115283977467f3a1ed00f7851a7fb77b0a6432cfdffbe459e87077bfbfba727f7f68f9fdc7f32b0c883d59d7bf4cd7baeee141da526024e9fc9ec8860aa341224a24bf0d17b4ab87ec2222ead7f56259cc8a9c3ccaef2a65a50dabc699ee797794903f406fd0dba25f2b73764f98047ac107f48430e05c51b6d748a054d7fb08aedc6d16a1b6fb8fac9cfc978dbac283dd385b17ac1167dd1677f9232ef8daf69ec749cff2fa7944fab79319be5cbefe6c5c51cf64d878f31dfd28bd38f8221eb67ffaf1a337d142842fe98b4bc6fd3f455df505113d399fee9fad20fd87474ff0e2c0791efff7da6e4e0e1c9cef1c9ded3fb0f9e1c9c6c302507f7c105ef694c18c6d9d7b42822310147c9478ea1e4ef017e922f7f56d98968ea8f94fd8e9bc72a887d9343d5df7f4863fdffb62121a9fb7a2be6deb0bf66624ad1feb91af879fdf5064e0b50f945f5f3212d4d8af1c3adbf7cb271c43aaaff370c7995d548689c2da725858e1d55fd4d6634e4efff370cf98795c391bfffdf30e2326bda57f9b2bae4a5e4a724cf34406fd4f8e44db1c8bf3c3f6f723880828260ada8fe7f76f0350d9a15953fe0ff3f067894c7a1a1768df2e779755167abf935677ee83be9587055043f74c80ae6e760cc596cbdffa620af69eb3c6f8f63af8a92a7cf0455199e8ef70389241ffc1cd0682a31c1ffcf474959cb36a788e4b240f2f2fff7c39d62c1e5e7834fb6a2b474569e202bfcffd3b1faa3adab6ae1a9a48e0bea2936f8a17dcde6c528f4bd02c19bdf1cb594223f77e472c4f246fb352332f9e4ff2be3e5f1fdff7f9893acc95f9132a7617943fd065d36f3d6ff1bc64a2b67ccc09ed063b4ffbf9cd8a6ccf3557302cb4523f3467bcb24b320feff99d1fe90c24cf3d6ff0b86fcf3267f42ffd18741161c5f58422ca91f4a9ad358cfd74b26c1f1c5459d5f487c46bcb15ed0776dfeae353d987602862d3ba79383b08e02b8bc5e55a5fc4d5f15e888be108abb157fcafb6339ffa3477be31d824db8ccb1d4693a5b6417cba2a57c8ff9c0be484b0e757e9ed7b4349173c0f832ab090dea96ba5b5c132e06368dfca97d6b776767bc43abfbc400025228440472cb2abff8a34c44e1cbbab828f0c9f73efad647d46a91bd3bbec8cf96aff369b5843fc30088befe0a8c256de3b4e217700a2906e4e9237cce96e7c5bb2fb2763aa73fd0aa5ad7d3fc19680910bebf40dfba943de32a5072ee8cfe743ca01ff07a4ef7ef60398758faff85eb3bcfeeed3f383dbd7f7ff7fed3c8face2aafcf797d87bef8d1e24e20e344507fa4cc29378f5510fb2687aabfff90c61acac8fb8f56b1dd385c6df3b3305e12b9afb7c6e10dfb6b86128af6cfd5c07fb4b8239f0c8f94b4e2cf0fe7c40df9478b3b3f0f46fca3c51d282a7fc0df5ca640fefe7fc340c9f3a6a1768df28f16777a6ee98f167708efffbf8d92e2cc1f2dee10eaff7f1be88f16779c0bea2936f8a17dcde6c528f4bd02c19bdf1cb594223f77e472c4f246fb352332f9e4ff2be3e5f1fdff7f983f5adcf9ffe9c4fe6871079f63c0df649869defa7fc1907fdee44fe83ffa30c882e30b4b8825f5231973b368f3a3c59d1f2deed0b00829b7484324d1f5189dbf9f85c59d879f3e7db07bf2e4e0fe93d3ddbddee24eb3dd647029b7595ae8cbf75ce0f93680fc2c2ef098b7a2822ebf32e65d89969ebb9f9a29367fbb39369f74e59c88ea8f94b9e5e6b10a62fe50751cef3956fd8407abbf7fadd112238e1786b308d7f719f7d3dc97999fa723fffdcf3d25fbb33af86f74f0b4e0d31dfc6d077f42fef7cfe69a8f8ecb9b7269f1e183fe80197ff3ff75f7e543064f861eeeeacffe429079eb1b1fbdfcfd3e637efe0daf8be8471b872f7f7ba3d7977e0e864f4136cd380dcb1ff2371766cbdfde48e5839f83814653fd5e328dbee8fb3624f01fb84aa083dc48246de351493ff960327d8832381137f3fd872c9fbce788a5c5cfe9805fff30560f7470ffef1af94b8ae5b29fd5fcba8eecff5dc3e62cd4cf0bffc61ff573974bf086fdffef25e2571fb6a4e28501f4bd02c19bb764161dec466a699b9f0572bd3fbb38c27923fff917008121e895f71fb27cf29e2396161f3ee00f98ed273f8f565d9e501292f9dad30b18edffcfa7f8f586f5974ff7e923e95cf05524ffdf326ef9fbbd46fbf36ffde5e76102c31f7ed1996519317d26dd0aa68a9e3f62fd2818b27eb669ccfac9070f5afebe79a86ea0f5ffcf474a6b27fdc535fa903e73eb49faea37bd48a401ff5d0d81ed9fd09a1c2fb03f7957fd03fd0372c7684b37820dfde986aa1ff0aa51f7ef60d18866efff85ab48f70f8e1f3c7bf0f0d9a70f9e9dfaab48759ed1ec2078de5e7fe8625249cb89d4eeeb2e27e947016f8b5aba2d6b4b6bc6becbc3d277f75333dbe66f37dde6932e67137d75b4939c461f0c94acf0bd3dfa48fa0ad0f3c729586e1ca6fced8d523ee0412ac41fd628b376fef36098e1cab237d828f30a9afe6015db8da3d536de70f5930f1e2fa998f7b4bad191fffea468ff3f38f859fe8d0cfee75d84ec0fbec0cbff9f1b7cd17e238327efe4ff8383cf9b6f64f0ab925efeffdce057e53732f8e5ffe7064f03fc68f9f507dffc227ec59befff5f5af3ecbaf972f9052d88f3a2efffcf470bef7d7d1b15a668bde740cd5bff6f1829877a34aa9b462a18fa035544df73a4fac9070ff5431cb4e57a31a1763fbf06ddf0da3dbdf4f369d0ebe5ff37ddb00f18328ff5e6212b7afe98657cef396469f1c12396bfdf679c5349d8dc344ec1efff2dc3fc9089adf30b72b0e8a59f3f439e4a86f104f9ca9bc7ad58fa03d78fde73e4fac9070f5dfe7e9f01afaaa6bde5686518fe60e593f71cabb4f8e0a19279c996b3ac9e8dcbf5345f6200ef33eeb29a66081fe8356fdc9fe7d5459dade6d72fab82d7e7040b415cb17d4f02c8dfdef815cc071340fe7e9f31afeaa2eb79912ffd0d2d3acadfde38e5839f8361b673f2b69659719bb85031f3c7aa1f6d1cacb6f146ab9ffc5c0c17eb1e76a43f2fd61bdde05779458b1df4d2870d5fd17fcff1eb271f4e800f5365557d91d17216abb30fe7041dc8ff374961b4facf733250ffab799d357e52f4e7231dca6c79b1ce2ef09a52c10d9d3e93de056319d3ff6f46ded6d9b229694578f6fbb7f93b68d5ffcf1180acc2d71afaaa287eff7cd9166db181fd4f2a2c92bf7b435f4206faebe0ff5fa5da07b20d86fbf36ed4cd7ac223fe7937f0eafcbce966e82822b84d765d3ffa391ab7fcfd3e432df3e5453ba771fdff7fa8cdb4aac109de489f566b20456f716f0186ffdf1baa3fd845d6bcfdffb091fb3af2fb7dfa88a69846f7b2ae682c64e6e8e311e5aeeae64b5e13a50ff4d5f5c545ded060e91367db1a47962f90fa79a41811c4b3e579f1ee8bac9dcee90fb4e2d59a67c63cba858cc624f7352b6a73857e42099129e32bf0050dfad38d513f68abb7398530e1dfcf789af4139ac13af8205f4eeb6b1eedef8559d0f1168ba2cc6aa0f4e8177ff47b56b3accdc6ca143ffe858931c7c73f58d7f9f8355360fce48bbdfbafdd7b34abbb06dc447ef925e03705461c7041c07edf8f76de1d3c7d78ffe0f8c1f1f1b393d37b077bbfef47f4ae52b825a2334334599dfd74b6c8e8ab597e9eadcbf6354d13d156a78edad2577df7a398d1c78af820372be7111c224bf0d107b0b3b466e4bb7c2b7d773f35736bfe76936b3ef9c619b847def7e3e880a389d28c9119063ea43fdd28f40366c9eedf0147d2b4dc8e450dab7da32cfafd5ff2ff00ddd71a7d57000100"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '456b9b88-57e6-47f4-bc4a-bc34bef828f4', + 'f87bf089-3e37-42e6-99a9-900774728e50', 'elapsed-time', - '258', + '202', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:34 GMT', + 'Tue, 28 Sep 2021 05:58:02 GMT', 'Content-Length', '4922' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes_names.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes_names.js index 05ea2df26c0a..bebd00f5b1e9 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes_names.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_gets_the_list_of_indexes_names.js @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - 'bda6e387-b90a-49b8-86ca-fd4219dece61', + 'd6a66d21-1ce3-4c1f-9fdd-8566fbab792e', 'elapsed-time', - '26', + '24', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:43 GMT', + 'Tue, 28 Sep 2021 05:58:11 GMT', 'Content-Length', '295' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_modify_and_updates_the_index_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_modify_and_updates_the_index_object.js index 1c799bbf4bab..d47cba7f72cf 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_modify_and_updates_the_index_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_modify_and_updates_the_index_object.js @@ -5,9 +5,9 @@ module.exports.hash = "b245b95d080a6176fe78be0672431373"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test3%27)') + .get(`/indexes('hotel-live-test3')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f7efaf4e9a7c707c77bf7f73fddff7d3fa256cb6c91d3d7f3aacdcbedb2b8ccb7d1ed3dfa66969f67ebb27d3dadea6279f1b2aece8b929a2ed76539fae8bcc8cb59f3d1a3effd6203a198d13bedf50abf9fce16e3d72d5ea3cf04ed6c8297cfb3b2c9f176d9e675f0519d53fbfc523e6beb357dd454752b7f6b9bf36c4aa3f13f799b5f9bd64c80e365565eff20af0d9ad277f7d3acf3f7b2aa175959789f34d7cb6a79bdf8225b618cdfff25233bccec2a6faa45becc9be6797e999734406fd04fab35d02300dc7180ab3f684179e398e56f6fc8f2018f5821fe90863ccb9b695dacdaa25ad2c8bcd146a758d0f407abd86e1cadb6f186ab9ffc9c8cb7cd8ab2a17179633da916ab327ff7069f109e3df62729f3de38a9ca329f82625b7859087587be176c65844283ffef51caa7d5bc98cdf2e577f3e262ded2f074f818f3d9b2bdb7471f49af01a6370d593ffb7fd598e9a34011f2c7a38fe8b3e64b160dfa405f5d5f5c900acd6bfa044d4c67faa7eb4b3f68abb7f9b2fbf73326917e42e4ab830ff2e5b4bee65e7f2f1040fb2d164599d550fe8fac55d109f9f12f8a695d35d5793b3efec1bacec7af992ee3275fecdd7fedde2382ee1a7013f9e597fc92ff07a095ea19a2060000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f1eeceddfdf79f0e4e4f8e474eff7fd885a2db3454e5fcfab362fb7cbe232df46b7f7e89b597e9eadcbf6f5b4aa8be5c5cbba3a2f4a6aba5c97e5e8a3f3222f67cd478fbef78b0d846246efb4d72bfc7e3a5b8c5fb7788d3e13b4b3095e3ecfca26c7db659bd7c147754eedf34bf9acadd7f45153d5adfcad6dceb3298dc6ffe46d7e6d5a33018e975979fd83bc36684adfdd4fb3cedfcbaa5e6465e17dd25c2fabe5f5e28b6c85317eff978cec30b3abbca916f9326f9ae7f9655ed200bd413fadd6408f0070c701aefea005e58d6396bfbd21cb073c6285f8431af22c6fa675b16a8b6a4923f3461b9d6241d31fac62bb71b4dac61bae7ef27332de362bca86c6e58df5a45aaccafcdd1b7c4278f6d89fa4cc7be3a42acb7c0a8a6de16521d41dfa5eb095110a0dfebf47299f56f36236cb97dfcd8b8b794bc3d3e163cc67cbf6de1e7d24bd0698de3464fdecff5563a68f0245c81f8f3ea2cf9a2f5934e8037d757d71412a34afe91334319de99fae2ffda0addee6cbeedfcf9844fa0991af0e3ec897d3fa9a7bfdbd4000edb75814655643f93fb2564527e4c7bf28a675d554e7edf8f807eb3a1fbf66ba8c9f7cb177ffb57b8f08ba6bc04de4975ff24bfe1f4f09184ea2060000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -19,13 +19,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6A8A25464"', + 'W/"0x8D9824507BCACE2"', 'Vary', 'Accept-Encoding', 'request-id', - 'd5d0823e-0287-414a-9bef-575f249b609a', + '07cb87a1-546e-4b18-b360-5038e1dc4ffb', 'elapsed-time', - '16', + '20', 'OData-Version', '4.0', 'Preference-Applied', @@ -33,15 +33,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:20 GMT', + 'Tue, 28 Sep 2021 05:58:48 GMT', 'Content-Length', - '656' + '655' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/indexes(%27hotel-live-test3%27)', {"name":"hotel-live-test3","fields":[{"name":"id","type":"Edm.String","key":true,"retrievable":true,"searchable":false,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"awesomenessLevel","type":"Edm.Double","key":false,"retrievable":true,"searchable":false,"filterable":true,"sortable":true,"facetable":true,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","key":false,"retrievable":true,"searchable":true,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","key":false,"retrievable":true,"searchable":true,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"hiddenWeight","type":"Edm.Int32","key":false,"retrievable":false,"searchable":false,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastUpdatedOn","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"sortable":false,"facetable":false}],"scoringProfiles":[],"defaultScoringProfile":null,"corsOptions":null,"suggesters":[],"analyzers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"normalizers":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null},"@odata.etag":"\"0x8D96DD6A8A25464\""}) + .put(`/indexes('hotel-live-test3')`, {"name":"hotel-live-test3","fields":[{"name":"id","type":"Edm.String","key":true,"retrievable":true,"searchable":false,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"awesomenessLevel","type":"Edm.Double","key":false,"retrievable":true,"searchable":false,"filterable":true,"sortable":true,"facetable":true,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"description","type":"Edm.String","key":false,"retrievable":true,"searchable":true,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"details","type":"Edm.ComplexType","fields":[{"name":"tags","type":"Collection(Edm.String)","key":false,"retrievable":true,"searchable":true,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]}]},{"name":"hiddenWeight","type":"Edm.Int32","key":false,"retrievable":false,"searchable":false,"filterable":false,"sortable":false,"facetable":false,"analyzer":null,"searchAnalyzer":null,"indexAnalyzer":null,"normalizer":null,"synonymMaps":[]},{"name":"lastUpdatedOn","type":"Edm.DateTimeOffset","searchable":false,"filterable":true,"sortable":false,"facetable":false}],"scoringProfiles":[],"defaultScoringProfile":null,"corsOptions":null,"suggesters":[],"analyzers":[],"tokenizers":[],"tokenFilters":[],"charFilters":[],"normalizers":[],"encryptionKey":null,"similarity":{"@odata.type":"#Microsoft.Azure.Search.BM25Similarity","k1":null,"b":null},"@odata.etag":"\"0x8D9824507BCACE2\""}) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f7efaf4e9a7c74ff69eec3f3cddfd7d3fa256cb6c91d3d7f3aacdcbedb2b8ccb7d1ed3dfa66969f67ebb27d3dadea6279f1b2aece8b929a2ed76539fae8bcc8cb59f3d1a3effd6203a198d13bedf50abf9fce16e3d72d5ea3cf04ed6c8297cfb3b2c9f176d9e675f0519d53fbfc523e6beb357dd454752b7f6b9bf36c4aa3f13f799b5f9bd64c80e365565eff20af0d9ad277f7d3acf3f7b2aa175959789f34d7cb6a79bdf8225b618cdfff25233bccec2a6faa45becc9be6797e999734406fd04fab35d02300dc7180ab3f684179e398e56f6fc8f2018f5821fe90863ccb9b695dacdaa25ad2c8bcd146a758d0f407abd86e1cadb6f186ab9ffc9c8cb7cd8ab2a17179633da916ab327ff7069f109e3df62729f3de38a9ca329f82625b7859087587be176c65844283ffef51caa7d5bc98cdf2e577f3e262ded2f074f818f3d9b2bdb7471f49af01a6370d593ffb7fd398dd88cbac69bf5a916acd675f76e4e1297df8a658e45f9e9f3739c821bd0718fb6397a90d862e1ffdbf69e4dfa78f0213c01f8f3ea2cf9a2f5929d007faeafae2828c475ed32768623ad33f5d5ffa415bbdcd97ddbf9f3181f413225e1d7c902fa7f535f7fa7b8100da6fb128caac86d97b64eda9cecb8f7f514cebaaa9cedbf1f10fd6753e7ecd74193ff962effe6bf71e1174d7809bc82fbfe497fc3f58f2e46a9c070000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f1eeceddfdf39dedf39fdf464f7f7fd885a2db3454e5fcfab362fb7cbe232df46b7f7e89b597e9eadcbf6f5b4aa8be5c5cbba3a2f4a6aba5c97e5e8a3f3222f67cd478fbef78b0d846246efb4d72bfc7e3a5b8c5fb7788d3e13b4b3095e3ecfca26c7db659bd7c147754eedf34bf9acadd7f45153d5adfcad6dceb3298dc6ffe46d7e6d5a33018e975979fd83bc36684adfdd4fb3cedfcbaa5e6465e17dd25c2fabe5f5e28b6c85317eff978cec30b3abbca916f9326f9ae7f9655ed200bd413fadd6408f0070c701aefea005e58d6396bfbd21cb073c6285f8431af22c6fa675b16a8b6a4923f3461b9d6241d31fac62bb71b4dac61bae7ef27332de362bca86c6e58df5a45aaccafcdd1b7c4278f6d89fa4cc7be3a42acb7c0a8a6de16521d41dfa5eb095110a0dfebf47299f56f36236cb97dfcd8b8b794bc3d3e163cc67cbf6de1e7d24bd0698de3464fdecff4d6376232eb3a6fd6a45aa359f7dd99187a7f4e19b62917f797edee42087f41e60ec8f5da63618ba7cf4ffa6917f9f3e0a4c007f3cfa883e6bbe64a5401fe8abeb8b0b321e794d9fa089e94cff747de9076df5365f76ff7ec604d24f887875f041be9cd6d7dcebef050268bfc5a228b31a66ef91b5a73a2f3ffe4531adaba63a6fc7c73f58d7f9f835d365fce48bbdfbafdd7b44d05d036e22bffc925ff2ff008b18e0329c070000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -53,13 +53,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6AB2B49E1"', + 'W/"0x8D982450A40E6C1"', 'Vary', 'Accept-Encoding', 'request-id', - '73407442-8e38-45ff-a833-72e35f3cc282', + '39cda959-ae87-4b43-b6a1-1161f798f32f', 'elapsed-time', - '158', + '134', 'OData-Version', '4.0', 'Preference-Applied', @@ -67,15 +67,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:20 GMT', + 'Tue, 28 Sep 2021 05:58:48 GMT', 'Content-Length', '700' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27hotel-live-test3%27)') + .get(`/indexes('hotel-live-test3')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f7efaf4e9a7c74ff69eec3f3cddfd7d3fa256cb6c91d3d7f3aacdcbedb2b8ccb7d1ed3dfa66969f67ebb27d3dadea6279f1b2aece8b929a2ed76539fae8bcc8cb59f3d1a3effd6203a198d13bedf50abf9fce16e3d72d5ea3cf04ed6c8297cfb3b2c9f176d9e675f0519d53fbfc523e6beb357dd454752b7f6b9bf36c4aa3f13f799b5f9bd64c80e365565eff20af0d9ad277f7d3acf3f7b2aa175959789f34d7cb6a79bdf8225b618cdfff25233bccec2a6faa45becc9be6797e999734406fd04fab35d02300dc7180ab3f684179e398e56f6fc8f2018f5821fe90863ccb9b695dacdaa25ad2c8bcd146a758d0f407abd86e1cadb6f186ab9ffc9c8cb7cd8ab2a17179633da916ab327ff7069f109e3df62729f3de38a9ca329f82625b7859087587be176c65844283ffef51caa7d5bc98cdf2e577f3e262ded2f074f818f3d9b2bdb7471f49af01a6370d593ffb7fd398dd88cbac69bf5a916acd675f76e4e1297df8a658e45f9e9f3739c821bd0718fb6397a90d862e1ffdbf69e4dfa78f0213c01f8f3ea2cf9a2f5929d007faeafae2828c475ed32768623ad33f5d5ffa415bbdcd97ddbf9f3181f413225e1d7c902fa7f535f7fa7b8100da6fb128caac86d97b64eda9cecb8f7f514cebaaa9cedbf1f10fd6753e7ecd74193ff962effe6bf71e1174d7809bc82fbfe497fc3f58f2e46a9c070000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f9737777fb77cd916edf5472303971a5c10d0dff7a39d77074f1f1eeceddfdf39dedf39fdf464f7f7fd885a2db3454e5fcfab362fb7cbe232df46b7f7e89b597e9eadcbf6f5b4aa8be5c5cbba3a2f4a6aba5c97e5e8a3f3222f67cd478fbef78b0d846246efb4d72bfc7e3a5b8c5fb7788d3e13b4b3095e3ecfca26c7db659bd7c147754eedf34bf9acadd7f45153d5adfcad6dceb3298dc6ffe46d7e6d5a33018e975979fd83bc36684adfdd4fb3cedfcbaa5e6465e17dd25c2fabe5f5e28b6c85317eff978cec30b3abbca916f9326f9ae7f9655ed200bd413fadd6408f0070c701aefea005e58d6396bfbd21cb073c6285f8431af22c6fa675b16a8b6a4923f3461b9d6241d31fac62bb71b4dac61bae7ef27332de362bca86c6e58df5a45aaccafcdd1b7c4278f6d89fa4cc7be3a42acb7c0a8a6de16521d41dfa5eb095110a0dfebf47299f56f36236cb97dfcd8b8b794bc3d3e163cc67cbf6de1e7d24bd0698de3464fdecff4d6376232eb3a6fd6a45aa359f7dd99187a7f4e19b62917f797edee42087f41e60ec8f5da63618ba7cf4ffa6917f9f3e0a4c007f3cfa883e6bbe64a5401fe8abeb8b0b321e794d9fa089e94cff747de9076df5365f76ff7ec604d24f887875f041be9cd6d7dcebef050268bfc5a228b31a66ef91b5a73a2f3ffe4531adaba63a6fc7c73f58d7f9f835d365fce48bbdfbafdd7b44d05d036e22bffc925ff2ff008b18e0329c070000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -87,13 +87,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6AB2B49E1"', + 'W/"0x8D982450A40E6C1"', 'Vary', 'Accept-Encoding', 'request-id', - '21fea87f-ccac-44a2-bc27-de4f174875fc', + '2fc277ea-5ceb-4cdc-b04f-6168082c691c', 'elapsed-time', - '24', + '18', 'OData-Version', '4.0', 'Preference-Applied', @@ -101,7 +101,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:20 GMT', + 'Tue, 28 Sep 2021 05:58:48 GMT', 'Content-Length', '700' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_throws_error_for_invalid_index_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_throws_error_for_invalid_index_object.js index 79966ff4747b..e74fbf9995fa 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_throws_error_for_invalid_index_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_indexes/recording_throws_error_for_invalid_index_object.js @@ -5,7 +5,7 @@ module.exports.hash = "7277123b629a210f8b3110ebefec5e9d"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexes(%27garbxyz%27)') + .get(`/indexes('garbxyz')`) .query(true) .reply(404, {"error":{"code":"","message":"No index with the name 'garbxyz' was found in the service 'testsearchcases'."}}, [ 'Cache-Control', @@ -19,9 +19,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'request-id', - 'fa6ad51f-b816-497c-9a73-7311927018c6', + 'e01da2e0-443f-4891-b4a9-2394223714e0', 'elapsed-time', - '20', + '15', 'OData-Version', '4.0', 'Preference-Applied', @@ -29,7 +29,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:58:01 GMT', + 'Tue, 28 Sep 2021 05:58:29 GMT', 'Content-Length', '110' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_creates_the_synonymmap_object_using_createorupdatesynonymmap.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_creates_the_synonymmap_object_using_createorupdatesynonymmap.js index 322372c3a882..c31a58460710 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_creates_the_synonymmap_object_using_createorupdatesynonymmap.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_creates_the_synonymmap_object_using_createorupdatesynonymmap.js @@ -5,9 +5,9 @@ module.exports.hash = "2f40294de994b98bfecbb1b11fe55ad7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/synonymmaps(%27my-azure-synonymmap-3%27)', {"name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA"}) + .put(`/synonymmaps('my-azure-synonymmap-3')`, {"name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA"}) .query(true) - .reply(201, {"@odata.context":"https://endpoint/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D96DD6843131FE\"","name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA","encryptionKey":null}, [ + .reply(201, {"@odata.context":"https://endpoint/$metadata#synonymmaps/$entity","@odata.etag":"\"0x8D98244E39969E1\"","name":"my-azure-synonymmap-3","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA","encryptionKey":null}, [ 'Cache-Control', 'no-cache', 'Pragma', @@ -17,13 +17,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6843131FE"', + 'W/"0x8D98244E39969E1"', 'Location', "https://endpoint/synonymmaps('my-azure-synonymmap-3')?api-version=2020-06-30-Preview", 'request-id', - 'b7d64c3e-4dfe-4827-ac9f-a23db52ec3da', + '5c1a4efd-d583-4a11-ab43-689f2762ebd6', 'elapsed-time', - '23', + '22', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,15 +31,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:15 GMT', + 'Tue, 28 Sep 2021 05:57:43 GMT', 'Content-Length', '284' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/synonymmaps(%27my-azure-synonymmap-3%27)') + .get(`/synonymmaps('my-azure-synonymmap-3')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7df8e9d3a79f1eecdfdbbdb7fbecf4f7fd885a2db3454e5f2faeb7b31faceb7cdbc1dabe475f9f57f52203624d55d6f4b77eddd0275f2d8b369fa5afdb8c901da5c19f69759e1e2ff2ba9866e96747e957af8f7fdfe577b3665e2c2fda6a394af1fb18df7cf79880e6cb697dbd6a8b6af97be5d71f3d5aaecbf297fc3febf313361c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bf7f7aefe1c34f1f9eeefebe1f51ab65b6c8e9ebc5f576f683759d6f3b58dbf7e8ebf3aa5e6440aca9ca9afed6af1bfae4ab65d1e6b3f4759b11b2a334f833adced3e3455e17d32cfdec28fdeaf5f1efbbfc6ed6cc8be5455b2d47297e1fe39bef1e13d07c39adaf576d512d7faffcfaa347cb7559fe92ff07018c23871c010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -51,13 +51,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD6843131FE"', + 'W/"0x8D98244E39969E1"', 'Vary', 'Accept-Encoding', 'request-id', - 'fb63c61a-03d7-4a65-b413-2b370eafa46d', + 'f47470e2-64a4-4ddc-bb9c-22d3b212321f', 'elapsed-time', - '6', + '7', 'OData-Version', '4.0', 'Preference-Applied', @@ -65,13 +65,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:15 GMT', + 'Tue, 28 Sep 2021 05:57:43 GMT', 'Content-Length', '334' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/synonymmaps(%27my-azure-synonymmap-3%27)') + .delete(`/synonymmaps('my-azure-synonymmap-3')`) .query(true) .reply(204, "", [ 'Cache-Control', @@ -81,11 +81,11 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'request-id', - '5c9787a5-bddb-45c2-81bb-8944e4ebfc58', + '63016087-5280-473e-9716-3e85998dba74', 'elapsed-time', - '10', + '11', 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:15 GMT' + 'Tue, 28 Sep 2021 05:57:43 GMT' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_correct_synonymmap_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_correct_synonymmap_object.js index a3d113321ced..23acae39bc61 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_correct_synonymmap_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_correct_synonymmap_object.js @@ -5,9 +5,9 @@ module.exports.hash = "2f708f51c86beeac13bfb5af217c4ed0"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/synonymmaps(%27my-azure-synonymmap-1%27)') + .get(`/synonymmaps('my-azure-synonymmap-1')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7df8e9d3a79f3ef8f4e0d39ddd074f7fdf8fa8d5325be4f4f5e27a3bfbc1baceb71daced5dfafabcaa1719106baab2a6bff5eb863ef96a59b4f92c7ddd6684ec280dfe4cabf3f47891d7c5344b3f3b4abf7a7dfcfb2ebf9b35f36279d156cb518adfc7f8e6bbc704345f4eebeb555b54cbdf2bbffee8d1725d96bfe4ff01582f66661c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bffff4feb3074f764ef77edf8fa8d5325be4f4f5e27a3bfbc1baceb71daced5dfafabcaa1719106baab2a6bff5eb863ef96a59b4f92c7ddd6684ec280dfe4cabf3f47891d7c5344b3f3b4abf7a7dfcfb2ebf9b35f36279d156cb518adfc7f8e6bbc704345f4eebeb555b54cbdf2bbffee8d1725d96bfe4ff010ef82cc81c010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -19,13 +19,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD67686017D"', + 'W/"0x8D98244D5F7B0E2"', 'Vary', 'Accept-Encoding', 'request-id', - 'bee64da5-991d-4e74-baad-88f12fbffed6', + '9e5e00b9-8985-47c7-b739-296cd8ab4177', 'elapsed-time', - '8', + '7', 'OData-Version', '4.0', 'Preference-Applied', @@ -33,7 +33,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:57 GMT', + 'Tue, 28 Sep 2021 05:57:25 GMT', 'Content-Length', - '335' + '334' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps.js index 65c15a036bd9..10f27f004c37 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps.js @@ -7,7 +7,7 @@ module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) .get('/synonymmaps') .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd57c34fae8322bd7f9478fbe67a153b30b02fdfb7eb4f3eee0e9c34f9f3efdf4d327c70f0f4e9f1dfcbe1f51fb65b6a0e61f2daeb7b31faceb7cdb41dbdea5afcfab7a9101b5a62a6bfa5bbf6ee893af96459bcfd2d76d46e88ed2e0cfb43a4f8f17795d4cb3f4b3a3f4abd7c7bfeff2bb59332f96176db51ca5f87d8c6fbe7b4c40f3e5b4be5eb545b5fcbdf2eb8f1e2dd765f94b461b07f064f7f8d327a7370d608fbefe391bc0f77fc9ff036f1a0478e1010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd57c34fae8322bd7f9478fbe67a153b30b02fdfb7eb4f3eee0e9c383bdfdfd9327f7eeedeeeceffdbe1f51fb65b6a0e61f2daeb7b31faceb7cdb41dbdea5afcfab7a9101b5a62a6bfa5bbf6ee893af96459bcfd2d76d46e88ed2e0cfb43a4f8f17795d4cb3f4b3a3f4abd7c7bfeff2bb59332f96176db51ca5f87d8c6fbe7b4c40f3e5b4be5eb545b5fcbdf2eb8f1e2dd765f94b469b07f0f07877efd39b06b0475fff9c0de0fbbfe4ff01e931e4d9e1010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '0d688d69-354a-4548-9a01-2af819b4b72a', + '520c3ddb-1af4-4665-85ee-4d34fc394566', 'elapsed-time', - '27', + '15', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:39 GMT', + 'Tue, 28 Sep 2021 05:57:07 GMT', 'Content-Length', - '358' + '356' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps_names.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps_names.js index bdc56069d19c..e571c82b1ff2 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps_names.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_gets_the_list_of_synonymmaps_names.js @@ -21,9 +21,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Vary', 'Accept-Encoding', 'request-id', - '48965336-17c4-4a4f-af92-c7602db4cd73', + 'bff3edc7-0d6c-4484-ac82-f7169d25445a', 'elapsed-time', - '6', + '8', 'OData-Version', '4.0', 'Preference-Applied', @@ -31,7 +31,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:56:48 GMT', + 'Tue, 28 Sep 2021 05:57:16 GMT', 'Content-Length', '236' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_modify_and_updates_the_synonymmap_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_modify_and_updates_the_synonymmap_object.js index 342cf4402cc9..e25e0bda02e2 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_modify_and_updates_the_synonymmap_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_modify_and_updates_the_synonymmap_object.js @@ -5,9 +5,9 @@ module.exports.hash = "73942e858c58feac102dc8705bfc01ea"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/synonymmaps(%27my-azure-synonymmap-1%27)') + .get(`/synonymmaps('my-azure-synonymmap-1')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7df8e9d3a79f1e7cfaf4def1838383dff7236ab5cc16397dbdb8dece7eb0aef36d076b7b97be3eafea4506c49aaaace96ffdbaa14fbe5a166d3e4b5fb719213b4a833fd3ea3c3d5ee47531cdd2cf8ed2af5e1fffbecbef66cdbc585eb4d57294e2f731bef9ee3101cd97d3fa7ad516d5f2f7caaf3f7ab45c97e52ff97f00098273dc1c010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bf7ffae9bdbd4f1f3c7bfafb7e44ad96d922a7af17d7dbd90fd675beed606defd2d7e755bdc88058539535fdad5f37f4c957cba2cd67e9eb3623644769f0675a9da7c78bbc2ea659fad951fad5ebe3df77f9ddac9917cb8bb65a8e52fc3ec637df3d26a0f9725a5fafdaa25afe5ef9f5478f96ebb2fc25ff0ffe89e7da1c010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -19,13 +19,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD686D3A788"', + 'W/"0x8D98244E63267FD"', 'Vary', 'Accept-Encoding', 'request-id', - 'a0f8f489-feea-412e-ba2c-d134930b7f7a', + '2936cba3-e8b0-4368-85ce-031176b6a045', 'elapsed-time', - '7', + '6', 'OData-Version', '4.0', 'Preference-Applied', @@ -33,15 +33,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:24 GMT', + 'Tue, 28 Sep 2021 05:57:52 GMT', 'Content-Length', - '335' + '334' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/synonymmaps(%27my-azure-synonymmap-1%27)', {"name":"my-azure-synonymmap-1","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA\nCalifornia, Clif. => CA","encryptionKey":null,"@odata.etag":"\"0x8D96DD686D3A788\""}) + .put(`/synonymmaps('my-azure-synonymmap-1')`, {"name":"my-azure-synonymmap-1","format":"solr","synonyms":"United States, United States of America => USA\nWashington, Wash. => WA\nCalifornia, Clif. => CA","encryptionKey":null,"@odata.etag":"\"0x8D98244E63267FD\""}) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7df8e9d3a79f1e3c7cbafb70ffd383dff7236ab5cc16397dbdb8dece7eb0aef36d076b7b97be3eafea4506c49aaaace96ffdbaa14fbe5a166d3e4b5fb719213b4a833fd3ea3c3d5ee47531cdd2cf8ed2af5e1fffbecbef66cdbc585eb4d57294e2f731bef92e7d71929505f5b32cb2517a42bff21727c7d45bbe9cd6d7abb6a896bf577efdd1a3e5ba2c7fc9ff0393ae951735010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bf7ffa7077efe074efd9effb11b55a668b9cbe5e5c6f673f58d7f9b683b5bd4b5f9f57f52203624d55d6f4b77eddd0275f2d8b369fa5afdb8c901da5c19f69759e1e2ff2ba9866e96747e957af8f7fdfe577b3665e2c2fda6a394af1fb18df7c97be38c9ca82fa5916d9283da15ff98b9363ea2d5f4eebeb555b54cbdf2bbffee8d1725d96bfe4ff0178dde88235010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -53,13 +53,13 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD689D19468"', + 'W/"0x8D98244E9128E2F"', 'Vary', 'Accept-Encoding', 'request-id', - 'ff417f93-1df2-4e7b-9f74-acc65c14fe03', + '989cf602-a66b-4a30-bead-0e86d67a32f7', 'elapsed-time', - '22', + '17', 'OData-Version', '4.0', 'Preference-Applied', @@ -67,15 +67,15 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:25 GMT', + 'Tue, 28 Sep 2021 05:57:52 GMT', 'Content-Length', - '351' + '350' ]); nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/synonymmaps(%27my-azure-synonymmap-1%27)') + .get(`/synonymmaps('my-azure-synonymmap-1')`) .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7df8e9d3a79f1e3c7cbafb70ffd383dff7236ab5cc16397dbdb8dece7eb0aef36d076b7b97be3eafea4506c49aaaace96ffdbaa14fbe5a166d3e4b5fb719213b4a833fd3ea3c3d5ee47531cdd2cf8ed2af5e1fffbecbef66cdbc585eb4d57294e2f731bef92e7d71929505f5b32cb2517a42bff21727c7d45bbe9cd6d7abb6a896bf577efdd1a3e5ba2c7fc9ff0393ae951735010000"], [ + .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e67a592daf178b6cd5dcfdddf2655bb4d71f8d0c6c6a7441807fdf8f76de1d3c7d78b0b7bf7ffa7077efe074efd9effb11b55a668b9cbe5e5c6f673f58d7f9b683b5bd4b5f9f57f52203624d55d6f4b77eddd0275f2d8b369fa5afdb8c901da5c19f69759e1e2ff2ba9866e96747e957af8f7fdfe577b3665e2c2fda6a394af1fb18df7c97be38c9ca82fa5916d9283da15ff98b9363ea2d5f4eebeb555b54cbdf2bbffee8d1725d96bfe4ff0178dde88235010000"], [ 'Cache-Control', 'no-cache', 'Pragma', @@ -87,11 +87,11 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'ETag', - 'W/"0x8D96DD689D19468"', + 'W/"0x8D98244E9128E2F"', 'Vary', 'Accept-Encoding', 'request-id', - '63d5e562-4022-467c-bee8-4b2afbe4fb40', + 'fe842a4d-0d43-4042-afd1-b2d6aa403b79', 'elapsed-time', '6', 'OData-Version', @@ -101,7 +101,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:25 GMT', + 'Tue, 28 Sep 2021 05:57:52 GMT', 'Content-Length', - '351' + '350' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_throws_error_for_invalid_synonymmap_object.js b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_throws_error_for_invalid_synonymmap_object.js index 1531830c542b..cc88a72273ce 100644 --- a/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_throws_error_for_invalid_synonymmap_object.js +++ b/sdk/search/search-documents/recordings/node/searchindexclient_synonymmaps/recording_throws_error_for_invalid_synonymmap_object.js @@ -5,7 +5,7 @@ module.exports.hash = "1b42fc88e6bfa9105999939d2ce56df4"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/synonymmaps(%27garbxyz%27)') + .get(`/synonymmaps('garbxyz')`) .query(true) .reply(404, {"error":{"code":"","message":"No synonym map with the name 'garbxyz' was found in service 'testsearchcases'."}}, [ 'Cache-Control', @@ -19,9 +19,9 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Expires', '-1', 'request-id', - '2413622c-cf96-4fa1-b4e1-b7013df50980', + '469cc61e-639b-4ce3-acf5-3fba90afd370', 'elapsed-time', - '7', + '6', 'OData-Version', '4.0', 'Preference-Applied', @@ -29,7 +29,7 @@ nock('https://endpoint:443', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=15724800; includeSubDomains', 'Date', - 'Thu, 02 Sep 2021 05:57:06 GMT', + 'Tue, 28 Sep 2021 05:57:34 GMT', 'Content-Length', '112' ]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_creates_the_indexer_object_using_createorupdateindexer.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_creates_the_indexer_object_using_createorupdateindexer.js deleted file mode 100644 index 18c80ae5e0e3..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_creates_the_indexer_object_using_createorupdateindexer.js +++ /dev/null @@ -1,91 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "e56d335bb335b59ac351e5cbbfe70eb0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/indexers(%27my-azure-indexer-3%27)', {"name":"my-azure-indexer-3","description":"Description for Sample Indexer","dataSourceName":"my-data-source-1","targetIndexName":"hotel-live-test2","disabled":false}) - .query(true) - .reply(201, {"@odata.context":"https://endpoint/$metadata#indexers/$entity","@odata.etag":"\"0x8D8BE6AA7122B3E\"","name":"my-azure-indexer-3","description":"Description for Sample Indexer","dataSourceName":"my-data-source-1","skillsetName":null,"targetIndexName":"hotel-live-test2","disabled":false,"schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"encryptionKey":null}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AA7122B3E"', - 'Location', - "https://endpoint/indexers('my-azure-indexer-3')?api-version=2020-06-30", - 'request-id', - '4d319a00-1503-499f-a476-bfa9de1e629e', - 'elapsed-time', - '890', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:15 GMT', - 'Content-Length', - '412' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27my-azure-indexer-3%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cddddf2d5fb6457bfdd1c800a6161704f5f7fd68e7ddc1d38327a79f1e1f3fd8dddb7b72eff4f7fd885a2db3454e5f2faeb7b31faceb7c5b016ddfa3ef667933ad8b555b544b6af2d4fd959e5775fa3a5bacca3c3d9317d09cba7b5dadeb69fec202c567db0d7fb8bd4b6d9ab7455936792b2d96ebb21c7dd466f545de321cf9f8a379d5e6e576595ce6dba0c21ebd382b9a6c52e6b38f1e9d670480204de7f96c5d527381b2ca6a7ab9cdebc67c725ee4e5ec8b6cb52a9617f4e1f7be3ffaa85ab7ab75fbacff45be9cd6d73cb6df2bbf1600bfe4ff01125a3d199c010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AA7122B3E"', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'fb7fa401-6978-4e62-841a-151627a71dee', - 'elapsed-time', - '5', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:15 GMT', - 'Content-Length', - '397' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/indexers(%27my-azure-indexer-3%27)') - .query(true) - .reply(204, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'request-id', - '371b281d-447f-4733-95e6-a1d2ac1ce0e7', - 'elapsed-time', - '35', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:15 GMT' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_correct_indexer_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_correct_indexer_object.js deleted file mode 100644 index 5525aeec3870..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_correct_indexer_object.js +++ /dev/null @@ -1,39 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "27790d14968b361b3a8be39c5750546f"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27my-azure-indexer-1%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cddddf2d5fb6457bfdd1c800a6161704f5f7fd68e7ddc1d38327a79f1e3ffcf4e4c1a7cf4e9ffcbe1f51ab65b6c8e9ebc5f576f683759d6f2ba0ed5dfa6e9637d3ba58b545b5a4264fdd5fe97955a7afb3c5aaccd3337901cda9bbd7d5ba9ee62f2c507cb6ddf0870cb2795b946593b7d262b92ecbd1476d565fe42dc3918f3f9a576d5e6e97c565be0d2aecd18bb3a2c926653efbe8d179460008d2749ecfd625351728abaca697dbbc6ecc27e7455ecebec856ab6279411f7eeffba38faa75bb5ab7cffa5fe4cb697dcd63fbbdf26b01f04bfe1f917301579c010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6A96C76FEB"', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'ba402a56-0121-4586-a199-9dd76f76b3a6', - 'elapsed-time', - '9', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:13:48 GMT', - 'Content-Length', - '395' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexer_names.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexer_names.js deleted file mode 100644 index 71a21d7b0248..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexer_names.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0581b4ca498dbae3521e8e70a0fc1146"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cdd6325be4773e1a7d749995ebfca347dffbc51fe11302bbb8dece7eb0aef36d6dbabdfbd12f190d7fbbf7d12ff9fe2ff97f00a86bf33d9e000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - '0cee0c68-93b5-4f49-a339-38ab38b81749', - 'elapsed-time', - '8', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:13:35 GMT', - 'Content-Length', - '233' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexers.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexers.js deleted file mode 100644 index 94be7367b124..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_list_of_indexers.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "01e8c11583d0a837e9d7fd4bbe4307ad"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cd47a38f2eb3729d7ff4e87b1634b5b920b8bfef473bef0e9e1e3c39fdf4f8e0c1e9d393fb9fdefb7d3fa2f6cb6c41cd3f5a5c6f673f58d7f9b682dadea5ef667933ad8b555b544b6af2d4fd959e5775fa3a5bacca3c3d9317d09cba7b5dadeb69fec202c567db0d7fc8209bb7455936792b2d96ebb21c7dd466f545de321cf9f8a379d5e6e576595ce6dba0c31ebd382b9a6c52e6b38f1e9d670480204de7f96c5d527381b2ca6a7ab9cd890afac9799197b32fb2d5aa585ed087dffbfee8a36addaed6edb3fe17f9725a5ff3d87eaffc5a00fc92d1261a1e3c38797af0f474230d19efdc528d9afcbca3e1f77fc9ff03d859b385e4020000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - '003bdf82-062f-45cb-ab97-876ec5a1ef2d', - 'elapsed-time', - '18', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:13:23 GMT', - 'Content-Length', - '423' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_status_of_the_indexer.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_status_of_the_indexer.js deleted file mode 100644 index 5d20ae8301df..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_gets_the_status_of_the_indexer.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6591393158c9d7b4553b2557f52e590e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27my-azure-indexer-1%27)/search.status') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff12f8a695d35d5793b3efec1bacec7afa5f14feeedecedfcfe3b9ffefef776c667cb59fe2eaf4fdfe5d3755b54cbb3e579f5d1e8a365b6c8a9d7c5f5768637b7093c9a6defd2774d9bb5eb86beadd7cb65b1bca08fcaac695fe5cdba245497ebb21c7d44ad05e0b78ba6adeaeb8f1e7deffbd4ae58142dbdfa8b3f5a64ef5ead976f0aeee6e59b9dd704853e7b5a4dd78b7cd99ebe6beb6c8af75f173fa0263bc1b727200bfd98676894d7cd9b4a5fa096bfe497fc3f2e6e44303f010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'd717e07d-babe-4717-9c7a-30145faba076', - 'elapsed-time', - '27', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:40 GMT', - 'Content-Length', - '358' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_modify_and_updates_the_indexer_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_modify_and_updates_the_indexer_object.js deleted file mode 100644 index 287403148d9e..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_modify_and_updates_the_indexer_object.js +++ /dev/null @@ -1,107 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "0b07a3169231140ac7e2b96b5790014e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27my-azure-indexer-1%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cddddf2d5fb6457bfdd1c800a6161704f5f7fd68e7ddc1d38327a79f1e1f9feede3bdd7bf2f4f7fd885a2db3454e5f2faeb7b31faceb7c5b016defd277b3bc99d6c5aa2daa253579eafe4acfab3a7d9d2d56659e9ec90b684eddbdaed6f5347f6181e2b3ed863f6490cddba22c9bbc9516cb75598e3e6ab3fa226f198e7cfcd1bc6af372bb2c2ef36d50618f5e9c154d3629f3d9478fce33024090a6f37cb62ea9b940596535bddce675633e392ff272f645b65a15cb0bfaf07bdf1f7d54addbd5ba7dd6ff225f4eeb6b1edbef955f0b805ff2ff001c0ea9a99c010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AAE13E2BD"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '5570d2a6-3986-4732-a730-bb8b832933a9', - 'elapsed-time', - '5', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:27 GMT', - 'Content-Length', - '395' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/indexers(%27my-azure-indexer-1%27)', {"name":"my-azure-indexer-1","description":"Description for Sample Indexer","dataSourceName":"my-data-source-1","skillsetName":null,"targetIndexName":"hotel-live-test2","schedule":null,"parameters":null,"fieldMappings":[],"outputFieldMappings":[],"disabled":true,"@odata.etag":"\"0x8D8BE6AAE13E2BD\"","encryptionKey":null}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cddddf2d5fb6457bfdd1c800a6161704f5f7fd68e7ddc1d38327a79f1e1f9f9edc3f7d7af2ecf7fd885a2db3454e5f2faeb7b31faceb7c5b016defd277b3bc99d6c5aa2daa253579eafe4acfab3a7d9d2d56659e9ec90b684eddbdaed6f5347f6181e2b3ed863f6490cddba22c9bbc9516cb75598e3e6ab3fa226f198e7cfcd1bc6af372bb2c2ef36d50618f5e9c154d3629f3d9478fda7a9d13a0e93c9fad4b6a2d4056594defb679dd984fce8bbc9c7d91ad56c5f2823efcdef7471f55eb76b56e9ff5bfc897d3fa9a87f67be5d702e097fc3f7320b9639b010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AAEC5EDCF"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '79e78103-b2e9-48b8-925d-951600f8d0ac', - 'elapsed-time', - '67', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:27 GMT', - 'Content-Length', - '394' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27my-azure-indexer-1%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195eff71fa307f97d7cddddf2d5fb6457bfdd1c800a6161704f5f7fd68e7ddc1d38327a79f1e1f9f9edc3f7d7af2ecf7fd885a2db3454e5f2faeb7b31faceb7c5b016defd277b3bc99d6c5aa2daa253579eafe4acfab3a7d9d2d56659e9ec90b684eddbdaed6f5347f6181e2b3ed863f6490cddba22c9bbc9516cb75598e3e6ab3fa226f198e7cfcd1bc6af372bb2c2ef36d50618f5e9c154d3629f3d9478fda7a9d13a0e93c9fad4b6a2d4056594defb679dd984fce8bbc9c7d91ad56c5f2823efcdef7471f55eb76b56e9ff5bfc897d3fa9a87f67be5d702e097fc3f7320b9639b010000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AAEC5EDCF"', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'c60ad66c-b8c3-4d0b-af7c-06759bb02a8c', - 'elapsed-time', - '6', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:27 GMT', - 'Content-Length', - '394' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_throws_error_for_invalid_indexer_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_throws_error_for_invalid_indexer_object.js deleted file mode 100644 index 312e6ad35526..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_indexers/recording_throws_error_for_invalid_indexer_object.js +++ /dev/null @@ -1,35 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "b546af201e9f4b3ed9f7fb66f796c57e"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/indexers(%27garbxyz%27)') - .query(true) - .reply(404, {"error":{"code":"","message":"Indexer 'garbxyz' was not found in service 'testsearchcases'."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Language', - 'en', - 'Expires', - '-1', - 'request-id', - '378c285a-3155-48a8-9fa7-683de5432fc1', - 'elapsed-time', - '5', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:14:01 GMT', - 'Content-Length', - '95' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_creates_the_skillset_object_using_createorupdateskillset.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_creates_the_skillset_object_using_createorupdateskillset.js deleted file mode 100644 index cd34d56353f5..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_creates_the_skillset_object_using_createorupdateskillset.js +++ /dev/null @@ -1,91 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "1838563fc0e9712c8a9969e1999c326d"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/skillsets(%27my-azureblob-skillset-3%27)', {"name":"my-azureblob-skillset-3","description":"Skillset description","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","inputs":[{"name":"text","source":"/document/merged_content"},{"name":"languageCode","source":"/document/language"}],"outputs":[{"name":"persons","targetName":"people"},{"name":"organizations","targetName":"organizations"},{"name":"locations","targetName":"locations"}]}]}) - .query(true) - .reply(201, {"@odata.context":"https://endpoint/$metadata#skillsets/$entity","@odata.etag":"\"0x8D8BE6B0876A55A\"","name":"my-azureblob-skillset-3","description":"Skillset description","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":null,"description":null,"context":null,"categories":[],"defaultLanguageCode":null,"minimumPrecision":null,"includeTypelessEntities":null,"inputs":[{"name":"text","source":"/document/merged_content","sourceContext":null,"inputs":[]},{"name":"languageCode","source":"/document/language","sourceContext":null,"inputs":[]}],"outputs":[{"name":"persons","targetName":"people"},{"name":"organizations","targetName":"organizations"},{"name":"locations","targetName":"locations"}]}],"cognitiveServices":null,"knowledgeStore":null,"encryptionKey":null}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6B0876A55A"', - 'Location', - "https://endpoint/skillsets('my-azureblob-skillset-3')?api-version=2020-06-30", - 'request-id', - '9eb8bfdd-4010-460b-979c-2c29e72f4d17', - 'elapsed-time', - '58', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:58 GMT', - 'Content-Length', - '822' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets(%27my-azureblob-skillset-3%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde36777fb77cd916edf5472303999a5c10d8dff7a39d77074f0f9e9c7efa64e7e0c1a7c7f7ef1fffbe1f51ab65b6c8e9ebc5f576f683759d4fca6ab26da06ddfa306b3bc99d6c5aa2daa25b57bad5fa5fec7a38fe48d8f1e7dcf0ea8bd5e01ee8f7f514cebaaa9cedbb1bc3a7e43c31c9f3292aff26975b12c0083bf24408ace8fefd2ef7e178f96ebb21c7de4c87477564dd70b1a2c359c666d7e51d5450e0c3e7a99d70dbd31fae827d6197743bf7e595f64cbe20719c31a7df4d5abe7f4efe9222bd0e7f38a00c8174f09d29b8250f83eba3fcfd665fb3c5b5eacb38bfca49a01b31ccd16c5b258ac172feb7c5a347853d12b96d3723dcbdfd0d8cbbc6978948c95f97ab56ee92fa2928e930743e4abd6f5147fdb51dd5de4f5453efbfd79c03c48697382bfe99d2ec4efff9291055afa189b17e97307dcb4b0df0e83254254eb56ffb45dac98c60dbddf668467fbc27c5cadcafc230f97ca237caf79f8a5f756a933d27bc37df14b1835e59fcbfc755e5f165347eab7cbeaaacc6717f9ebb6aae94df9345f4eeb6b66a8df2bbf960f7fc9ff03a724009983030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6B0876A55A"', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'ba367bb7-4f56-437c-bde2-fee8b01df288', - 'elapsed-time', - '28', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:58 GMT', - 'Content-Length', - '587' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .delete('/skillsets(%27my-azureblob-skillset-3%27)') - .query(true) - .reply(204, "", [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Expires', - '-1', - 'request-id', - 'd8e8346c-18fc-4e80-889f-c9ea45176aad', - 'elapsed-time', - '42', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:58 GMT' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_correct_skillset_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_correct_skillset_object.js deleted file mode 100644 index 16c80e9b7ed8..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_correct_skillset_object.js +++ /dev/null @@ -1,39 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "155d7852c3dc03f3149cb30e34227d23"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets(%27my-azureblob-skillset-1%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde36777fb77cd916edf5472303999a5c10d8dff7a39d77074f0f9e9c7e7afcecfeded3834ff7f77edf8fa8d5325be4f4f5e27a3bfbc1bace276535d936d0b677a9c12c6fa675b16a8b6a49ed5eeb57a9fff1e82379e3a347dfb3036aaf5780fbe35f14d3ba6aaaf3762caf8edfd030c7a78ce4ab7c5a5d2c0bc0e02f0990a2f3e3bd9e97ebb21c7de4c87477564dd70b1a2c359c666d7e51d5450e0c3e7a99d70dbd31fae827d6197743bf7e595f64cbe20719c31a7df4d5abe7f4efe9222bd0e7f38a00c8174f09d29b8250f83eba3fcfd665fb3c5b5eacb38bfca49a01b31ccd16c5b258ac172feb7c5a347853d12b96d3723dcbdfd0d8cbbc6978948c95f97ab56ee92fa2928e930743e4abd6f5147fdb51dd5de4f5453efbfd79c03c48697382bfe99d2ec4efff9291055afa189b17e97307dcb4b0df0e83254254eb56ffb45dac98c60dbddf668467fbc27c5cadcafc231f17a56dafa9fbe2977027ca0997f9ebbcbe2ca68e686f97d55599cf2ef2d76d55d39bf269be9cd6d7cc1abf577e2d1ffe92ff07a39146104d030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6AF52D8642"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '176d344c-2c15-4f5c-80e1-06948a5430a7', - 'elapsed-time', - '30', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:32 GMT', - 'Content-Length', - '573' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillset_names.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillset_names.js deleted file mode 100644 index 099e96006cf9..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillset_names.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "1e5a3872c11b19b4908941873fa832a0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde365bcb6c91dff968f4d16556aef38f1e7def177f844f08eee27a3bfbc1bace276535d936edb7773ffa25a31b9aec7df44bbeff4bfe1f2c9e0ca0a9000000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - 'c4ecc703-4ed3-494f-ae8e-9a9d495000af', - 'elapsed-time', - '24', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:20 GMT', - 'Content-Length', - '237' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillsets.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillsets.js deleted file mode 100644 index 34ec9a85a2c0..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_gets_the_list_of_skillsets.js +++ /dev/null @@ -1,37 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "68c8ed3f66fdf0e30a74bfedc8b60274"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde361f8d3ebaccca75fed1a3ef59d8d4e88200ffbe1fedbc3b787af0e4f4d3e3d3fb4f760fe8dfdff7236abfcc16d4fca3c5f576f683759d4fca6ab26de06def528359de4ceb62d516d592dabdd6af52ffe3d147f286df6d7bbd02dc1fffa298d655539db7637975fc86063a3e5db6457bfd2a9f5617cb0230f84b02a4e8fc78afe7e5ba2c471f3942dd9d55d3f5225fb6d4709ab5f94555173930f8e8655e37f4c6e8a39f5867dc0dfdfa657d912d8b1f640c6bf4d157af9ed3bfa78bac409fcf2b02205f3c25486f0a42e1fbe8fe3c5b97edf36c79b1ce2ef2936a06cc72345b14cb62b15ebcacf369d1e04d45af584ecbf52c7f43632ff3a6e1513256e6ebd59a260954d271f260887cd5ba9ee26f3baabb8bbcbec867bf3f0f9807296d4ef037bdd385f8fd5f32b2404b1f63f3227dee809b16f6db61b044886addea9fb68b15d318fcd6668467fbc27c5cadcafc231f17a56dafa9fbe2977027ca0997f9ebbcbe2ca68e686f97d55599cf2ef2d76d55d39bf269be9cd6d7cc1abf577e2d1fa25765be18cf9fec3ebcf7e9a737f3fc1e350838ef473cff239e07a8ff57f2fcf77fc9ff03d0bea16c45060000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'Vary', - 'Accept-Encoding', - 'request-id', - '7c064664-5805-49b5-afa7-9eeea37789d2', - 'elapsed-time', - '100', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:07 GMT', - 'Content-Length', - '604' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_modify_and_updates_the_skillsets_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_modify_and_updates_the_skillsets_object.js deleted file mode 100644 index 895c1c463a2a..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_modify_and_updates_the_skillsets_object.js +++ /dev/null @@ -1,107 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "26d74760f05f6a3e51a4d4090c5d2cc0"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets(%27my-azureblob-skillset-2%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde36777fb77cd916edf5472303999a5c10d8dff7a39d77074f0f9e9c7efa64e7c9c1dee9c9d307bfef47d46a992d72fa7a71bd9dfd605de793b29a6c1b68db7bd4609637d3ba58b545b5a476aff5abd4ff78f491bcf1d1a3efd901b5d72bc0fdf12f8a695d35d5793b9657c76f6898e35346f2553ead2e960560f0970448d1f9f15dfaddefe2d1725d96a38f1c99eeceaae97a4183a586d3accd2faabac881c1472ff3baa137461ffdc43ae36ee8d72feb8b6c59fc206358a38fbe7af59cfe3d5d6405fa7c5e1100f9e229417a53100adf47f7e7d9ba6c9f67cb8b7576919f54336096a3d9a258168bf5e2659d4f8b066f2a7ac5725aae67f91b1a7b99370d8f92b1325fafd62dfd4554d271f260887cd5ba9ee26f3baabb8bbcbec867bf3f0f9807296d4ef037bdd385f8fd5f32b2404b1f63f3227dee809b16f6db61b044886addea9fb68b15d3b8a1f7db8cf06c5f988fab55997fe4e3a2b4ed35755ffc12ee4439e1327f9dd797c5d411ededb2ba2af3d945febaad6a7a533ecd97d3fa9a59e3f7caafe5c35ff2ff003c9dcab04d030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6B0B82ECD7"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '1764ddb9-322f-4b0e-b459-d6810a28a856', - 'elapsed-time', - '28', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:17:10 GMT', - 'Content-Length', - '577' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .put('/skillsets(%27my-azureblob-skillset-2%27)', {"name":"my-azureblob-skillset-2","description":"Skillset description","skills":[{"@odata.type":"#Microsoft.Skills.Text.EntityRecognitionSkill","name":"#1","description":null,"context":"/document","inputs":[{"name":"text","source":"/document/merged_content","sourceContext":null,"inputs":[]},{"name":"languageCode","source":"/document/language","sourceContext":null,"inputs":[]}],"outputs":[{"name":"persons","targetName":"people"},{"name":"locations","targetName":"locations"},{"name":"organizations","targetName":"organizations"}]}],"cognitiveServices":null,"@odata.etag":"\"0x8D8BE6B0B82ECD7\"","encryptionKey":null}) - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde36777fb77cd916edf5472303999a5c10d8dff7a39d77074f0f9e9c7efa647767e7e0f8c9a70f7fdf8fa8d5325be4f4f5e27a3bfbc1bace276535d936d0b6f7a8c12c6fa675b16a8b6a49ed5eeb57a9fff1e82379e3a347dfb3036aaf5780fbe35f14d3ba6aaaf3762caf8edfd030c7a78ce4ab7c5a5d2c0bc0e02f0990a2f3e3bbf4bbdfc5a3e5ba2c471f3932dd9d55d3f582064b0da7599b5f5475910383efe3c5f36c5db6cfb3e5c53abbc84faa19c114008b62592cd68b97753e2d1a0f70b19c96eb59fe86b02ef3a661fc189ef97ab56ee92f1a9f62c868d0c0ab753dc5df169fbb8bbcbec867bf3fa3cae8499b13fc4def74217eff978c2cd0d2c7d8bc489f3be0a685fd76182c11a25ab7faa7ed6295d74db56ce8fd36233cdb17e6e36a55e61ff9b8544456a250afa9fbc26b5dd517d9b2f8817ed17923fcf297306a3af397f9ebbcbe2ca68ed46f97d55599cf2ef2d76d55d3dbf269be9cd6d7cc0abf577e2d1ffe92ff0726e1378f3d030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6B1008AB69"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '88419731-09de-4454-99df-c4c9bae42b13', - 'elapsed-time', - '63', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:17:10 GMT', - 'Content-Length', - '544' -]); - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets(%27my-azureblob-skillset-2%27)') - .query(true) - .reply(200, ["1f8b0800000000000400edbd07601c499625262f6dca7b7f4af54ad7e074a10880601324d8904010ecc188cde692ec1d69472329ab2a81ca6556655d661640cced9dbcf7de7befbdf7de7befbdf7ba3b9d4e27f7dfff3f5c6664016cf6ce4adac99e2180aac81f3f7e7c1f3f227ef147bf6735cbda6c3cad966dfeaefde8d147f3b65d358feede6df3a66df2ac9ecea759933763f97d7c552c67d555335ee6eddddf6d91b7195efff1e66d51964dde36777fb77cd916edf5472303999a5c10d8dff7a39d77074f0f9e9c7efa647767e7e0f8c9a70f7fdf8fa8d5325be4f4f5e27a3bfbc1bace276535d936d0b6f7a8c12c6fa675b16a8b6a49ed5eeb57a9fff1e82379e3a347dfb3036aaf5780fbe35f14d3ba6aaaf3762caf8edfd030c7a78ce4ab7c5a5d2c0bc0e02f0990a2f3e3bbf4bbdfc5a3e5ba2c471f3932dd9d55d3f582064b0da7599b5f54759103838f5ee675436f8c3efa8975c6ddd0af5fd617d9b2f841c6b0461f7df5ea39fd7bbac80af4f9bc2200f2c55382f4a62014be8feecfb375d93ecf9617ebec223fa966c02c47b345b12c16ebc5cb3a9f160dde54f48ae5b45ccff23734f6326f1a1e256365be5ead5bfa8ba8a4e3e4c110f9aa753dc5df76547717797d91cf7e7f1e300f52da9ce06f7aa70bf1fbbf646481963ec6e645fadc01372decb7c3608910d5bad53f6d172ba67143efb719e1d9be301f57ab32ffc8c74569db6beabef05a57de34f5de08bffc258c9af2cf65fe3aaf2f8ba923f5db657555e6b38bfc755bd5f4b67c9a2fa7f53533d4ef955fcb87bfe4ff01483ac29083030000"], [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Encoding', - 'gzip', - 'Expires', - '-1', - 'ETag', - 'W/"0x8D8BE6B1008AB69"', - 'Vary', - 'Accept-Encoding', - 'request-id', - '439c420d-7a91-4ff7-8a85-41b8891552fb', - 'elapsed-time', - '28', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:17:11 GMT', - 'Content-Length', - '586' -]); diff --git a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_throws_error_for_invalid_skillset_object.js b/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_throws_error_for_invalid_skillset_object.js deleted file mode 100644 index c3f00999b83e..000000000000 --- a/sdk/search/search-documents/recordings/node/searchindexerclient_skillsets/recording_throws_error_for_invalid_skillset_object.js +++ /dev/null @@ -1,35 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "2cbb4a8bd8e0507fca06bbaff714dac2"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://endpoint:443', {"encodedQueryParams":true}) - .get('/skillsets(%27garbxyz%27)') - .query(true) - .reply(404, {"error":{"code":"","message":"No skillset with the name 'garbxyz' was found in service 'Microsoft.WindowsAzure.Search.Core.Models.SearchService'."}}, [ - 'Cache-Control', - 'no-cache', - 'Pragma', - 'no-cache', - 'Content-Type', - 'application/json; odata.metadata=minimal', - 'Content-Language', - 'en', - 'Expires', - '-1', - 'request-id', - '27f69e01-6eb6-4592-8037-a0b8f27c9b52', - 'elapsed-time', - '22', - 'OData-Version', - '4.0', - 'Preference-Applied', - 'odata.include-annotations="*"', - 'Strict-Transport-Security', - 'max-age=15724800; includeSubDomains', - 'Date', - 'Fri, 22 Jan 2021 00:16:45 GMT', - 'Content-Length', - '149' -]); diff --git a/sdk/search/search-documents/review/search-documents.api.md b/sdk/search/search-documents/review/search-documents.api.md index 119f6994826e..4e074de9ad50 100644 --- a/sdk/search/search-documents/review/search-documents.api.md +++ b/sdk/search/search-documents/review/search-documents.api.md @@ -7,11 +7,11 @@ /// import { AzureKeyCredential } from '@azure/core-auth'; +import { CommonClientOptions } from '@azure/core-client'; import { KeyCredential } from '@azure/core-auth'; -import { OperationOptions } from '@azure/core-http'; +import { OperationOptions } from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PipelineOptions } from '@azure/core-http'; -import { RestError } from '@azure/core-http'; +import { RestError } from '@azure/core-rest-pipeline'; import { TokenCredential } from '@azure/core-auth'; // @public @@ -273,15 +273,15 @@ export type CreateIndexOptions = OperationOptions; // @public export interface CreateorUpdateDataSourceConnectionOptions extends OperationOptions { - ignoreResetRequirements?: boolean; onlyIfUnchanged?: boolean; + skipIndexerResetRequirementForCache?: boolean; } // @public export interface CreateorUpdateIndexerOptions extends OperationOptions { disableCacheReprocessingChangeDetection?: boolean; - ignoreResetRequirements?: boolean; onlyIfUnchanged?: boolean; + skipIndexerResetRequirementForCache?: boolean; } // @public @@ -293,8 +293,8 @@ export interface CreateOrUpdateIndexOptions extends OperationOptions { // @public export interface CreateOrUpdateSkillsetOptions extends OperationOptions { disableCacheReprocessingChangeDetection?: boolean; - ignoreResetRequirements?: boolean; onlyIfUnchanged?: boolean; + skipIndexerResetRequirementForCache?: boolean; } // @public @@ -441,7 +441,7 @@ export type DocumentExtractionSkill = BaseSearchIndexerSkill & { parsingMode?: string; dataToExtract?: string; configuration?: { - [propertyName: string]: any; + [propertyName: string]: Record; }; }; @@ -520,7 +520,7 @@ export interface FieldMapping { export interface FieldMappingFunction { name: string; parameters?: { - [propertyName: string]: any; + [propertyName: string]: Record; }; } @@ -629,11 +629,23 @@ export interface IndexDocumentsResult { readonly results: IndexingResult[]; } +// @public +export interface IndexerCurrentState { + readonly allDocsFinalChangeTrackingState?: string; + readonly allDocsInitialChangeTrackingState?: string; + readonly mode?: IndexingMode; + readonly resetDatasourceDocumentIds?: string[]; + readonly resetDocsFinalChangeTrackingState?: string; + readonly resetDocsInitialChangeTrackingState?: string; + readonly resetDocumentKeys?: string[]; +} + // @public export type IndexerExecutionEnvironment = string; // @public export interface IndexerExecutionResult { + readonly currentState?: IndexerCurrentState; readonly endTime?: Date; readonly errorMessage?: string; readonly errors: SearchIndexerError[]; @@ -643,15 +655,22 @@ export interface IndexerExecutionResult { readonly itemCount: number; readonly startTime?: Date; readonly status: IndexerExecutionStatus; + readonly statusDetail?: IndexerExecutionStatusDetail; readonly warnings: SearchIndexerWarning[]; } // @public export type IndexerExecutionStatus = "transientFailure" | "success" | "inProgress" | "reset"; +// @public +export type IndexerExecutionStatusDetail = string; + // @public export type IndexerStatus = "unknown" | "error" | "running"; +// @public +export type IndexingMode = string; + // @public export interface IndexingParameters { batchSize?: number; @@ -839,27 +858,27 @@ export enum KnownAnalyzerNames { } // @public -export const enum KnownAnswers { +export enum KnownAnswers { Extractive = "extractive", None = "none" } // @public -export const enum KnownBlobIndexerDataToExtract { +export enum KnownBlobIndexerDataToExtract { AllMetadata = "allMetadata", ContentAndMetadata = "contentAndMetadata", StorageMetadata = "storageMetadata" } // @public -export const enum KnownBlobIndexerImageAction { +export enum KnownBlobIndexerImageAction { GenerateNormalizedImagePerPage = "generateNormalizedImagePerPage", GenerateNormalizedImages = "generateNormalizedImages", None = "none" } // @public -export const enum KnownBlobIndexerParsingMode { +export enum KnownBlobIndexerParsingMode { Default = "default", DelimitedText = "delimitedText", Json = "json", @@ -869,13 +888,13 @@ export const enum KnownBlobIndexerParsingMode { } // @public -export const enum KnownBlobIndexerPDFTextRotationAlgorithm { +export enum KnownBlobIndexerPDFTextRotationAlgorithm { DetectAngles = "detectAngles", None = "none" } // @public -export const enum KnownCharFilterName { +export enum KnownCharFilterName { HtmlStrip = "html_strip" } @@ -885,7 +904,7 @@ export enum KnownCharFilterNames { } // @public -export const enum KnownCustomEntityLookupSkillLanguage { +export enum KnownCustomEntityLookupSkillLanguage { Da = "da", De = "de", En = "en", @@ -898,7 +917,7 @@ export const enum KnownCustomEntityLookupSkillLanguage { } // @public -export const enum KnownEntityCategory { +export enum KnownEntityCategory { Datetime = "datetime", Email = "email", Location = "location", @@ -909,7 +928,7 @@ export const enum KnownEntityCategory { } // @public -export const enum KnownEntityRecognitionSkillLanguage { +export enum KnownEntityRecognitionSkillLanguage { Ar = "ar", Cs = "cs", Da = "da", @@ -936,7 +955,7 @@ export const enum KnownEntityRecognitionSkillLanguage { } // @public -export const enum KnownImageAnalysisSkillLanguage { +export enum KnownImageAnalysisSkillLanguage { En = "en", Es = "es", Ja = "ja", @@ -945,13 +964,24 @@ export const enum KnownImageAnalysisSkillLanguage { } // @public -export const enum KnownImageDetail { +export enum KnownImageDetail { Celebrities = "celebrities", Landmarks = "landmarks" } // @public -export const enum KnownKeyPhraseExtractionSkillLanguage { +export enum KnownIndexerExecutionStatusDetail { + ResetDocs = "resetDocs" +} + +// @public +export enum KnownIndexingMode { + IndexingAllDocs = "indexingAllDocs", + IndexingResetDocs = "indexingResetDocs" +} + +// @public +export enum KnownKeyPhraseExtractionSkillLanguage { Da = "da", De = "de", En = "en", @@ -971,7 +1001,7 @@ export const enum KnownKeyPhraseExtractionSkillLanguage { } // @public -export const enum KnownLexicalAnalyzerName { +export enum KnownLexicalAnalyzerName { ArLucene = "ar.lucene", ArMicrosoft = "ar.microsoft", BgLucene = "bg.lucene", @@ -1068,7 +1098,7 @@ export const enum KnownLexicalAnalyzerName { } // @public -export const enum KnownLexicalNormalizerName { +export enum KnownLexicalNormalizerName { AsciiFolding = "asciifolding", Elision = "elision", Lowercase = "lowercase", @@ -1077,7 +1107,7 @@ export const enum KnownLexicalNormalizerName { } // @public -export const enum KnownLineEnding { +export enum KnownLineEnding { CarriageReturn = "carriageReturn", CarriageReturnLineFeed = "carriageReturnLineFeed", LineFeed = "lineFeed", @@ -1085,7 +1115,7 @@ export const enum KnownLineEnding { } // @public -export const enum KnownOcrSkillLanguage { +export enum KnownOcrSkillLanguage { Ar = "ar", Cs = "cs", Da = "da", @@ -1115,19 +1145,37 @@ export const enum KnownOcrSkillLanguage { } // @public -export const enum KnownPIIDetectionSkillMaskingMode { +export enum KnownPIIDetectionSkillMaskingMode { None = "none", Replace = "replace" } // @public -export const enum KnownQueryLanguage { +export enum KnownQueryAnswerType { + Extractive = "extractive", + None = "none" +} + +// @public +export enum KnownQueryCaptionType { + Extractive = "extractive", + None = "none" +} + +// @public +export enum KnownQueryLanguage { EnUs = "en-us", None = "none" } // @public -export const enum KnownRegexFlags { +export enum KnownQuerySpellerType { + Lexicon = "lexicon", + None = "none" +} + +// @public +export enum KnownRegexFlags { CanonEq = "CANON_EQ", CaseInsensitive = "CASE_INSENSITIVE", Comments = "COMMENTS", @@ -1139,7 +1187,7 @@ export const enum KnownRegexFlags { } // @public -export const enum KnownSearchIndexerDataSourceType { +export enum KnownSearchIndexerDataSourceType { AdlsGen2 = "adlsgen2", AzureBlob = "azureblob", AzureSql = "azuresql", @@ -1149,7 +1197,7 @@ export const enum KnownSearchIndexerDataSourceType { } // @public -export const enum KnownSentimentSkillLanguage { +export enum KnownSentimentSkillLanguage { Da = "da", De = "de", El = "el", @@ -1168,13 +1216,13 @@ export const enum KnownSentimentSkillLanguage { } // @public -export const enum KnownSpeller { +export enum KnownSpeller { Lexicon = "lexicon", None = "none" } // @public -export const enum KnownSplitSkillLanguage { +export enum KnownSplitSkillLanguage { Da = "da", De = "de", En = "en", @@ -1187,13 +1235,13 @@ export const enum KnownSplitSkillLanguage { } // @public -export const enum KnownTextSplitMode { +export enum KnownTextSplitMode { Pages = "pages", Sentences = "sentences" } // @public -export const enum KnownTextTranslationSkillLanguage { +export enum KnownTextTranslationSkillLanguage { Af = "af", Ar = "ar", Bg = "bg", @@ -1269,7 +1317,7 @@ export const enum KnownTextTranslationSkillLanguage { } // @public -export const enum KnownTokenFilterName { +export enum KnownTokenFilterName { Apostrophe = "apostrophe", ArabicNormalization = "arabic_normalization", AsciiFolding = "asciifolding", @@ -1362,7 +1410,7 @@ export enum KnownTokenizerNames { } // @public -export const enum KnownVisualFeature { +export enum KnownVisualFeature { Adult = "adult", Brands = "brands", Categories = "categories", @@ -1610,18 +1658,37 @@ export type PIIDetectionSkill = BaseSearchIndexerSkill & { // @public export type PIIDetectionSkillMaskingMode = string; +// @public +export type QueryAnswerType = string; + +// @public +export type QueryCaptionType = string; + // @public export type QueryLanguage = string; +// @public +export type QuerySpellerType = string; + // @public export type QueryType = "simple" | "full" | "semantic"; // @public export type RegexFlags = string; +// @public +export interface ResetDocsOptions extends OperationOptions { + datasourceDocumentIds?: string[]; + documentKeys?: string[]; + overwrite?: boolean; +} + // @public export type ResetIndexerOptions = OperationOptions; +// @public +export type ResetSkillsOptions = OperationOptions; + // @public export interface ResourceCounter { quota?: number; @@ -1659,7 +1726,7 @@ export class SearchClient implements IndexDocumentsClient { deleteDocuments(documents: T[], options?: DeleteDocumentsOptions): Promise; deleteDocuments(keyName: keyof T, keyValues: string[], options?: DeleteDocumentsOptions): Promise; readonly endpoint: string; - getDocument(key: string, options?: GetDocumentOptions): Promise; + getDocument>(key: string, options?: GetDocumentOptions): Promise; getDocumentsCount(options?: CountDocumentsOptions): Promise; indexDocuments(batch: IndexDocumentsBatch, options?: IndexDocumentsOptions): Promise; readonly indexName: string; @@ -1671,7 +1738,7 @@ export class SearchClient implements IndexDocumentsClient { } // @public -export interface SearchClientOptions extends PipelineOptions { +export interface SearchClientOptions extends CommonClientOptions { apiVersion?: string; } @@ -1744,7 +1811,7 @@ export class SearchIndexClient { } // @public -export interface SearchIndexClientOptions extends PipelineOptions { +export interface SearchIndexClientOptions extends CommonClientOptions { apiVersion?: string; } @@ -1795,12 +1862,14 @@ export class SearchIndexerClient { listIndexersNames(options?: ListIndexersOptions): Promise>; listSkillsets(options?: ListSkillsetsOptions): Promise>; listSkillsetsNames(options?: ListSkillsetsOptions): Promise>; + resetDocs(indexerName: string, options?: ResetDocsOptions): Promise; resetIndexer(indexerName: string, options?: ResetIndexerOptions): Promise; + resetSkills(skillsetName: string, skillNames: string[], options?: ResetSkillsOptions): Promise; runIndexer(indexerName: string, options?: RunIndexerOptions): Promise; } // @public -export interface SearchIndexerClientOptions extends PipelineOptions { +export interface SearchIndexerClientOptions extends CommonClientOptions { apiVersion?: string; } @@ -1994,8 +2063,8 @@ export type SearchOptions = OperationOptions & SearchRequestOptions string = (document: Hote return document.hotelId; }; +/** + * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds. + * @param timeInMs - The number of milliseconds to be delayed. + * @returns Promise that is resolved after timeInMs + */ +export function delay(timeInMs: number): Promise { + return new Promise((resolve) => setTimeout(() => resolve(), timeInMs)); +} + // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters export async function createIndex(client: SearchIndexClient, name: string): Promise { const hotelIndex: SearchIndex = { diff --git a/sdk/search/search-documents/src/constants.ts b/sdk/search/search-documents/src/constants.ts index 4ee901a6578c..3dd554f6f698 100644 --- a/sdk/search/search-documents/src/constants.ts +++ b/sdk/search/search-documents/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "11.3.0-beta.3"; +export const SDK_VERSION: string = "11.3.0-beta.4"; diff --git a/sdk/search/search-documents/src/generated/data/models/index.ts b/sdk/search/search-documents/src/generated/data/models/index.ts index 81957e20a13c..0a7445817939 100644 --- a/sdk/search/search-documents/src/generated/data/models/index.ts +++ b/sdk/search/search-documents/src/generated/data/models/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; /** Describes an error condition for the Azure Cognitive Search API. */ export interface SearchError { @@ -140,9 +140,9 @@ export interface SearchRequest { /** A value that specifies the language of the search query. */ queryLanguage?: QueryLanguage; /** A value that specified the type of the speller to use to spell-correct individual search query terms. */ - speller?: Speller; + speller?: QuerySpellerType; /** A value that specifies whether answers should be returned as part of the search response. */ - answers?: Answers; + answers?: QueryAnswerType; /** The comma-separated list of fields to retrieve. If unspecified, all fields marked as retrievable in the schema are included. */ select?: string; /** The number of search results to skip. This value cannot be greater than 100,000. If you need to scan documents in sequence, but cannot use skip due to this limitation, consider using orderby on a totally-ordered key and filter with a range query instead. */ @@ -150,7 +150,7 @@ export interface SearchRequest { /** The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. */ top?: number; /** A value that specifies whether captions should be returned as part of the search response. */ - captions?: Captions; + captions?: QueryCaptionType; /** The comma-separated list of field names used for semantic search. */ semanticFields?: string; } @@ -446,7 +446,7 @@ export interface AutocompleteOptions { } /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */ -export const enum KnownApiVersion20210430Preview { +export enum KnownApiVersion20210430Preview { /** Api Version '2021-04-30-Preview' */ TwoThousandTwentyOne0430Preview = "2021-04-30-Preview" } @@ -461,7 +461,7 @@ export const enum KnownApiVersion20210430Preview { export type ApiVersion20210430Preview = string; /** Known values of {@link QueryLanguage} that the service accepts. */ -export const enum KnownQueryLanguage { +export enum KnownQueryLanguage { /** Query language not specified. */ None = "none", /** English */ @@ -479,7 +479,7 @@ export const enum KnownQueryLanguage { export type QueryLanguage = string; /** Known values of {@link Speller} that the service accepts. */ -export const enum KnownSpeller { +export enum KnownSpeller { /** Speller not enabled. */ None = "none", /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ @@ -497,7 +497,7 @@ export const enum KnownSpeller { export type Speller = string; /** Known values of {@link Answers} that the service accepts. */ -export const enum KnownAnswers { +export enum KnownAnswers { /** Do not return answers for the query. */ None = "none", /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ @@ -515,7 +515,7 @@ export const enum KnownAnswers { export type Answers = string; /** Known values of {@link Captions} that the service accepts. */ -export const enum KnownCaptions { +export enum KnownCaptions { /** Do not return captions for the query. */ None = "none", /** Extracts captions from the matching documents that contain passages relevant to the search query. */ @@ -531,6 +531,60 @@ export const enum KnownCaptions { * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. */ export type Captions = string; + +/** Known values of {@link QuerySpellerType} that the service accepts. */ +export enum KnownQuerySpellerType { + /** Speller not enabled. */ + None = "none", + /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ + Lexicon = "lexicon" +} + +/** + * Defines values for QuerySpellerType. \ + * {@link KnownQuerySpellerType} can be used interchangeably with QuerySpellerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **none**: Speller not enabled. \ + * **lexicon**: Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. + */ +export type QuerySpellerType = string; + +/** Known values of {@link QueryAnswerType} that the service accepts. */ +export enum KnownQueryAnswerType { + /** Do not return answers for the query. */ + None = "none", + /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ + Extractive = "extractive" +} + +/** + * Defines values for QueryAnswerType. \ + * {@link KnownQueryAnswerType} can be used interchangeably with QueryAnswerType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **none**: Do not return answers for the query. \ + * **extractive**: Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. + */ +export type QueryAnswerType = string; + +/** Known values of {@link QueryCaptionType} that the service accepts. */ +export enum KnownQueryCaptionType { + /** Do not return captions for the query. */ + None = "none", + /** Extracts captions from the matching documents that contain passages relevant to the search query. */ + Extractive = "extractive" +} + +/** + * Defines values for QueryCaptionType. \ + * {@link KnownQueryCaptionType} can be used interchangeably with QueryCaptionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **none**: Do not return captions for the query. \ + * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. + */ +export type QueryCaptionType = string; /** Defines values for QueryType. */ export type QueryType = "simple" | "full" | "semantic"; /** Defines values for SearchMode. */ @@ -544,7 +598,7 @@ export type AutocompleteMode = "oneTerm" | "twoTerms" | "oneTermWithContext"; /** Optional parameters. */ export interface DocumentsCountOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } @@ -553,20 +607,11 @@ export interface DocumentsCountOptionalParams export type DocumentsCountResponse = { /** The parsed response body. */ body: number; - - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: number; - }; }; /** Optional parameters. */ export interface DocumentsSearchGetOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Parameter group */ @@ -576,38 +621,21 @@ export interface DocumentsSearchGetOptionalParams } /** Contains response data for the searchGet operation. */ -export type DocumentsSearchGetResponse = SearchDocumentsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchDocumentsResult; - }; -}; +export type DocumentsSearchGetResponse = SearchDocumentsResult; /** Optional parameters. */ export interface DocumentsSearchPostOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the searchPost operation. */ -export type DocumentsSearchPostResponse = SearchDocumentsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchDocumentsResult; - }; -}; +export type DocumentsSearchPostResponse = SearchDocumentsResult; /** Optional parameters. */ -export interface DocumentsGetOptionalParams extends coreHttp.OperationOptions { +export interface DocumentsGetOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** List of field names to retrieve for the document; Any field not retrieved will be missing from the returned document. */ @@ -615,23 +643,11 @@ export interface DocumentsGetOptionalParams extends coreHttp.OperationOptions { } /** Contains response data for the get operation. */ -export type DocumentsGetResponse = { - /** The parsed response body. */ - body: any; - - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: any; - }; -}; +export type DocumentsGetResponse = Record; /** Optional parameters. */ export interface DocumentsSuggestGetOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Parameter group */ @@ -639,58 +655,31 @@ export interface DocumentsSuggestGetOptionalParams } /** Contains response data for the suggestGet operation. */ -export type DocumentsSuggestGetResponse = SuggestDocumentsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SuggestDocumentsResult; - }; -}; +export type DocumentsSuggestGetResponse = SuggestDocumentsResult; /** Optional parameters. */ export interface DocumentsSuggestPostOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the suggestPost operation. */ -export type DocumentsSuggestPostResponse = SuggestDocumentsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SuggestDocumentsResult; - }; -}; +export type DocumentsSuggestPostResponse = SuggestDocumentsResult; /** Optional parameters. */ export interface DocumentsIndexOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the index operation. */ -export type DocumentsIndexResponse = IndexDocumentsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: IndexDocumentsResult; - }; -}; +export type DocumentsIndexResponse = IndexDocumentsResult; /** Optional parameters. */ export interface DocumentsAutocompleteGetOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Parameter group */ @@ -698,39 +687,21 @@ export interface DocumentsAutocompleteGetOptionalParams } /** Contains response data for the autocompleteGet operation. */ -export type DocumentsAutocompleteGetResponse = AutocompleteResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: AutocompleteResult; - }; -}; +export type DocumentsAutocompleteGetResponse = AutocompleteResult; /** Optional parameters. */ export interface DocumentsAutocompletePostOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the autocompletePost operation. */ -export type DocumentsAutocompletePostResponse = AutocompleteResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: AutocompleteResult; - }; -}; +export type DocumentsAutocompletePostResponse = AutocompleteResult; /** Optional parameters. */ export interface SearchClientOptionalParams - extends coreHttp.ServiceClientOptions { + extends coreClient.ServiceClientOptions { /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/search/search-documents/src/generated/data/models/mappers.ts b/sdk/search/search-documents/src/generated/data/models/mappers.ts index 35e2c933900f..a3c9692a1350 100644 --- a/sdk/search/search-documents/src/generated/data/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/data/models/mappers.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; -export const SearchError: coreHttp.CompositeMapper = { +export const SearchError: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchError", @@ -45,7 +45,7 @@ export const SearchError: coreHttp.CompositeMapper = { } }; -export const SearchDocumentsResult: coreHttp.CompositeMapper = { +export const SearchDocumentsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchDocumentsResult", @@ -123,7 +123,7 @@ export const SearchDocumentsResult: coreHttp.CompositeMapper = { } }; -export const FacetResult: coreHttp.CompositeMapper = { +export const FacetResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "FacetResult", @@ -140,7 +140,7 @@ export const FacetResult: coreHttp.CompositeMapper = { } }; -export const AnswerResult: coreHttp.CompositeMapper = { +export const AnswerResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "AnswerResult", @@ -182,7 +182,7 @@ export const AnswerResult: coreHttp.CompositeMapper = { } }; -export const SearchRequest: coreHttp.CompositeMapper = { +export const SearchRequest: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchRequest", @@ -348,7 +348,7 @@ export const SearchRequest: coreHttp.CompositeMapper = { } }; -export const SearchResult: coreHttp.CompositeMapper = { +export const SearchResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchResult", @@ -398,7 +398,7 @@ export const SearchResult: coreHttp.CompositeMapper = { } }; -export const CaptionResult: coreHttp.CompositeMapper = { +export const CaptionResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "CaptionResult", @@ -423,7 +423,7 @@ export const CaptionResult: coreHttp.CompositeMapper = { } }; -export const SuggestDocumentsResult: coreHttp.CompositeMapper = { +export const SuggestDocumentsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "SuggestDocumentsResult", @@ -453,7 +453,7 @@ export const SuggestDocumentsResult: coreHttp.CompositeMapper = { } }; -export const SuggestResult: coreHttp.CompositeMapper = { +export const SuggestResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "SuggestResult", @@ -471,7 +471,7 @@ export const SuggestResult: coreHttp.CompositeMapper = { } }; -export const SuggestRequest: coreHttp.CompositeMapper = { +export const SuggestRequest: coreClient.CompositeMapper = { type: { name: "Composite", className: "SuggestRequest", @@ -548,7 +548,7 @@ export const SuggestRequest: coreHttp.CompositeMapper = { } }; -export const IndexBatch: coreHttp.CompositeMapper = { +export const IndexBatch: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexBatch", @@ -570,7 +570,7 @@ export const IndexBatch: coreHttp.CompositeMapper = { } }; -export const IndexAction: coreHttp.CompositeMapper = { +export const IndexAction: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexAction", @@ -588,7 +588,7 @@ export const IndexAction: coreHttp.CompositeMapper = { } }; -export const IndexDocumentsResult: coreHttp.CompositeMapper = { +export const IndexDocumentsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexDocumentsResult", @@ -611,7 +611,7 @@ export const IndexDocumentsResult: coreHttp.CompositeMapper = { } }; -export const IndexingResult: coreHttp.CompositeMapper = { +export const IndexingResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexingResult", @@ -651,7 +651,7 @@ export const IndexingResult: coreHttp.CompositeMapper = { } }; -export const AutocompleteResult: coreHttp.CompositeMapper = { +export const AutocompleteResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "AutocompleteResult", @@ -681,7 +681,7 @@ export const AutocompleteResult: coreHttp.CompositeMapper = { } }; -export const AutocompleteItem: coreHttp.CompositeMapper = { +export const AutocompleteItem: coreClient.CompositeMapper = { type: { name: "Composite", className: "AutocompleteItem", @@ -706,7 +706,7 @@ export const AutocompleteItem: coreHttp.CompositeMapper = { } }; -export const AutocompleteRequest: coreHttp.CompositeMapper = { +export const AutocompleteRequest: coreClient.CompositeMapper = { type: { name: "Composite", className: "AutocompleteRequest", diff --git a/sdk/search/search-documents/src/generated/data/models/parameters.ts b/sdk/search/search-documents/src/generated/data/models/parameters.ts index 5d10a95774d3..440860473803 100644 --- a/sdk/search/search-documents/src/generated/data/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/data/models/parameters.ts @@ -9,9 +9,8 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter, - QueryCollectionFormat -} from "@azure/core-http"; + OperationQueryParameter +} from "@azure/core-client"; import { SearchRequest as SearchRequestMapper, SuggestRequest as SuggestRequestMapper, @@ -108,7 +107,7 @@ export const facets: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Multi + collectionFormat: "Multi" }; export const filter: OperationQueryParameter = { @@ -134,7 +133,7 @@ export const highlightFields: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const highlightPostTag: OperationQueryParameter = { @@ -180,7 +179,7 @@ export const orderBy: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const queryType: OperationQueryParameter = { @@ -207,7 +206,7 @@ export const scoringParameters: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Multi + collectionFormat: "Multi" }; export const scoringProfile: OperationQueryParameter = { @@ -233,7 +232,7 @@ export const searchFields: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const queryLanguage: OperationQueryParameter = { @@ -311,7 +310,7 @@ export const select: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const skip: OperationQueryParameter = { @@ -357,7 +356,7 @@ export const semanticFields: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const contentType: OperationParameter = { @@ -401,7 +400,7 @@ export const selectedFields: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const searchText1: OperationQueryParameter = { @@ -489,7 +488,7 @@ export const orderBy1: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const searchFields1: OperationQueryParameter = { @@ -505,7 +504,7 @@ export const searchFields1: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const select1: OperationQueryParameter = { @@ -521,7 +520,7 @@ export const select1: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const top1: OperationQueryParameter = { @@ -618,7 +617,7 @@ export const searchFields2: OperationQueryParameter = { } } }, - collectionFormat: QueryCollectionFormat.Csv + collectionFormat: "CSV" }; export const top2: OperationQueryParameter = { diff --git a/sdk/search/search-documents/src/generated/data/operations/documents.ts b/sdk/search/search-documents/src/generated/data/operations/documents.ts index 6604ff9d2e54..f05b7cbf97eb 100644 --- a/sdk/search/search-documents/src/generated/data/operations/documents.ts +++ b/sdk/search/search-documents/src/generated/data/operations/documents.ts @@ -7,7 +7,7 @@ */ import { Documents } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchClientContext } from "../searchClientContext"; @@ -36,7 +36,7 @@ import { DocumentsAutocompletePostResponse } from "../models"; -/** Class representing a Documents. */ +/** Class containing Documents operations. */ export class DocumentsImpl implements Documents { private readonly client: SearchClientContext; @@ -55,13 +55,7 @@ export class DocumentsImpl implements Documents { count( options?: DocumentsCountOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - countOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, countOperationSpec); } /** @@ -71,13 +65,10 @@ export class DocumentsImpl implements Documents { searchGet( options?: DocumentsSearchGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { options }, searchGetOperationSpec - ) as Promise; + ); } /** @@ -89,14 +80,10 @@ export class DocumentsImpl implements Documents { searchRequest: SearchRequest, options?: DocumentsSearchPostOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - searchRequest, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { searchRequest, options }, searchPostOperationSpec - ) as Promise; + ); } /** @@ -108,14 +95,7 @@ export class DocumentsImpl implements Documents { key: string, options?: DocumentsGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - key, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - getOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ key, options }, getOperationSpec); } /** @@ -131,15 +111,10 @@ export class DocumentsImpl implements Documents { suggesterName: string, options?: DocumentsSuggestGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - searchText, - suggesterName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { searchText, suggesterName, options }, suggestGetOperationSpec - ) as Promise; + ); } /** @@ -151,14 +126,10 @@ export class DocumentsImpl implements Documents { suggestRequest: SuggestRequest, options?: DocumentsSuggestPostOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - suggestRequest, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { suggestRequest, options }, suggestPostOperationSpec - ) as Promise; + ); } /** @@ -170,14 +141,10 @@ export class DocumentsImpl implements Documents { batch: IndexBatch, options?: DocumentsIndexOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - batch, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { batch, options }, indexOperationSpec - ) as Promise; + ); } /** @@ -192,15 +159,10 @@ export class DocumentsImpl implements Documents { suggesterName: string, options?: DocumentsAutocompleteGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - searchText, - suggesterName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { searchText, suggesterName, options }, autocompleteGetOperationSpec - ) as Promise; + ); } /** @@ -212,20 +174,16 @@ export class DocumentsImpl implements Documents { autocompleteRequest: AutocompleteRequest, options?: DocumentsAutocompletePostOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - autocompleteRequest, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { autocompleteRequest, options }, autocompletePostOperationSpec - ) as Promise; + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const countOperationSpec: coreHttp.OperationSpec = { +const countOperationSpec: coreClient.OperationSpec = { path: "/docs/$count", httpMethod: "GET", responses: { @@ -241,7 +199,7 @@ const countOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const searchGetOperationSpec: coreHttp.OperationSpec = { +const searchGetOperationSpec: coreClient.OperationSpec = { path: "/docs", httpMethod: "GET", responses: { @@ -283,7 +241,7 @@ const searchGetOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const searchPostOperationSpec: coreHttp.OperationSpec = { +const searchPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.search", httpMethod: "POST", responses: { @@ -305,12 +263,14 @@ const searchPostOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/docs('{key}')", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "any" } } + bodyMapper: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } }, default: { bodyMapper: Mappers.SearchError @@ -321,7 +281,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const suggestGetOperationSpec: coreHttp.OperationSpec = { +const suggestGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.suggest", httpMethod: "GET", responses: { @@ -350,7 +310,7 @@ const suggestGetOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const suggestPostOperationSpec: coreHttp.OperationSpec = { +const suggestPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.suggest", httpMethod: "POST", responses: { @@ -372,7 +332,7 @@ const suggestPostOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const indexOperationSpec: coreHttp.OperationSpec = { +const indexOperationSpec: coreClient.OperationSpec = { path: "/docs/search.index", httpMethod: "POST", responses: { @@ -397,7 +357,7 @@ const indexOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const autocompleteGetOperationSpec: coreHttp.OperationSpec = { +const autocompleteGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.autocomplete", httpMethod: "GET", responses: { @@ -425,7 +385,7 @@ const autocompleteGetOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const autocompletePostOperationSpec: coreHttp.OperationSpec = { +const autocompletePostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.autocomplete", httpMethod: "POST", responses: { diff --git a/sdk/search/search-documents/src/generated/data/searchClientContext.ts b/sdk/search/search-documents/src/generated/data/searchClientContext.ts index 43485b917628..7c9c0375f36f 100644 --- a/sdk/search/search-documents/src/generated/data/searchClientContext.ts +++ b/sdk/search/search-documents/src/generated/data/searchClientContext.ts @@ -6,17 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import { ApiVersion20210430Preview, SearchClientOptionalParams } from "./models"; -const packageName = "@azure/search-documents"; -const packageVersion = "11.3.0-beta.3"; - /** @internal */ -export class SearchClientContext extends coreHttp.ServiceClient { +export class SearchClientContext extends coreClient.ServiceClient { endpoint: string; indexName: string; apiVersion: ApiVersion20210430Preview; @@ -48,21 +45,25 @@ export class SearchClientContext extends coreHttp.ServiceClient { if (!options) { options = {}; } + const defaults: SearchClientOptionalParams = { + requestContentType: "application/json; charset=utf-8" + }; - const defaultUserAgent = `azsdk-js-${packageName.replace( - "@azure/", - "" - )}/${packageVersion} ${coreHttp.getDefaultUserAgentValue()}`; + const packageDetails = `azsdk-js-search-documents/11.3.0-beta.4`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; - super(undefined, { + const optionsWithDefaults = { + ...defaults, ...options, - userAgent: options.userAgent - ? `${options.userAgent} ${defaultUserAgent}` - : `${defaultUserAgent}` - }); - - this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{endpoint}/indexes('{indexName}')"; + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "{endpoint}/indexes('{indexName}')" + }; + super(optionsWithDefaults); // Parameter assignments this.endpoint = endpoint; this.indexName = indexName; diff --git a/sdk/search/search-documents/src/generated/service/models/index.ts b/sdk/search/search-documents/src/generated/service/models/index.ts index 5daf26ef2c3d..ee0fe7c983fd 100644 --- a/sdk/search/search-documents/src/generated/service/models/index.ts +++ b/sdk/search/search-documents/src/generated/service/models/index.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; export type SearchIndexerDataIdentityUnion = | SearchIndexerDataIdentity @@ -213,6 +213,13 @@ export interface ListDataSourcesResult { readonly dataSources: SearchIndexerDataSource[]; } +export interface DocumentKeysOrIds { + /** document keys to be reset */ + documentKeys?: string[]; + /** datasource document identifiers to be reset */ + datasourceDocumentIds?: string[]; +} + /** Represents an indexer. */ export interface SearchIndexer { /** The name of the indexer. */ @@ -316,7 +323,7 @@ export interface FieldMappingFunction { /** The name of the field mapping function. */ name: string; /** A dictionary of parameter name/value pairs to pass to the function. Each value must be of a primitive type. */ - parameters?: { [propertyName: string]: any }; + parameters?: { [propertyName: string]: Record }; } export interface SearchIndexerCache { @@ -366,6 +373,16 @@ export interface IndexerExecutionResult { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly status: IndexerExecutionStatus; + /** + * The outcome of this indexer execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusDetail?: IndexerExecutionStatusDetail; + /** + * All of the state that defines and dictates the indexer's current execution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly currentState?: IndexerCurrentState; /** * The error message indicating the top-level error, if any. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -413,6 +430,45 @@ export interface IndexerExecutionResult { readonly finalTrackingState?: string; } +/** Represents all of the state that defines and dictates the indexer's current execution. */ +export interface IndexerCurrentState { + /** + * The mode the indexer is running in. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly mode?: IndexingMode; + /** + * Change tracking state used when indexing starts on all documents in the datasource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allDocsInitialChangeTrackingState?: string; + /** + * Change tracking state value when indexing finishes on all documents in the datasource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly allDocsFinalChangeTrackingState?: string; + /** + * Change tracking state used when indexing starts on select, reset documents in the datasource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resetDocsInitialChangeTrackingState?: string; + /** + * Change tracking state value when indexing finishes on select, reset documents in the datasource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resetDocsFinalChangeTrackingState?: string; + /** + * The list of document keys that have been reset. The document key is the document's unique identifier for the data in the search index. The indexer will prioritize selectively re-ingesting these keys. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resetDocumentKeys?: string[]; + /** + * The list of datasource document ids that have been reset. The datasource document id is the unique identifier for the data in the datasource. The indexer will prioritize selectively re-ingesting these ids. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resetDatasourceDocumentIds?: string[]; +} + /** Represents an item- or document-level indexing error. */ export interface SearchIndexerError { /** @@ -617,6 +673,11 @@ export interface ListSkillsetsResult { readonly skillsets: SearchIndexerSkillset[]; } +export interface SkillNames { + /** the names of skills to be reset. */ + skillNames?: string[]; +} + /** Represents a synonym map definition. */ export interface SynonymMap { /** The name of the synonym map. */ @@ -1265,7 +1326,7 @@ export type DocumentExtractionSkill = SearchIndexerSkill & { /** The type of data to be extracted for the skill. Will be set to 'contentAndMetadata' if not defined. */ dataToExtract?: string; /** A dictionary of configurations for the skill. */ - configuration?: { [propertyName: string]: any }; + configuration?: { [propertyName: string]: Record }; }; /** A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code. */ @@ -1847,7 +1908,7 @@ export interface RequestOptions { } /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */ -export const enum KnownApiVersion20210430Preview { +export enum KnownApiVersion20210430Preview { /** Api Version '2021-04-30-Preview' */ TwoThousandTwentyOne0430Preview = "2021-04-30-Preview" } @@ -1862,7 +1923,7 @@ export const enum KnownApiVersion20210430Preview { export type ApiVersion20210430Preview = string; /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */ -export const enum KnownSearchIndexerDataSourceType { +export enum KnownSearchIndexerDataSourceType { /** Indicates an Azure SQL datasource. */ AzureSql = "azuresql", /** Indicates a CosmosDB datasource. */ @@ -1892,7 +1953,7 @@ export const enum KnownSearchIndexerDataSourceType { export type SearchIndexerDataSourceType = string; /** Known values of {@link BlobIndexerParsingMode} that the service accepts. */ -export const enum KnownBlobIndexerParsingMode { +export enum KnownBlobIndexerParsingMode { /** Set to default for normal file processing. */ Default = "default", /** Set to text to improve indexing performance on plain text files in blob storage. */ @@ -1922,7 +1983,7 @@ export const enum KnownBlobIndexerParsingMode { export type BlobIndexerParsingMode = string; /** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */ -export const enum KnownBlobIndexerDataToExtract { +export enum KnownBlobIndexerDataToExtract { /** Indexes just the standard blob properties and user-specified metadata. */ StorageMetadata = "storageMetadata", /** Extracts metadata provided by the Azure blob storage subsystem and the content-type specific metadata (for example, metadata unique to just .png files are indexed). */ @@ -1943,7 +2004,7 @@ export const enum KnownBlobIndexerDataToExtract { export type BlobIndexerDataToExtract = string; /** Known values of {@link BlobIndexerImageAction} that the service accepts. */ -export const enum KnownBlobIndexerImageAction { +export enum KnownBlobIndexerImageAction { /** Ignores embedded images or image files in the data set. This is the default. */ None = "none", /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option. */ @@ -1964,7 +2025,7 @@ export const enum KnownBlobIndexerImageAction { export type BlobIndexerImageAction = string; /** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */ -export const enum KnownBlobIndexerPDFTextRotationAlgorithm { +export enum KnownBlobIndexerPDFTextRotationAlgorithm { /** Leverages normal text extraction. This is the default. */ None = "none", /** May produce better and more readable text extraction from PDF files that have rotated text within them. Note that there may be a small performance speed impact when this parameter is used. This parameter only applies to PDF files, and only to PDFs with embedded text. If the rotated text appears within an embedded image in the PDF, this parameter does not apply. */ @@ -1982,7 +2043,7 @@ export const enum KnownBlobIndexerPDFTextRotationAlgorithm { export type BlobIndexerPDFTextRotationAlgorithm = string; /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */ -export const enum KnownIndexerExecutionEnvironment { +export enum KnownIndexerExecutionEnvironment { /** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */ Standard = "standard", /** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */ @@ -1999,8 +2060,41 @@ export const enum KnownIndexerExecutionEnvironment { */ export type IndexerExecutionEnvironment = string; +/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */ +export enum KnownIndexerExecutionStatusDetail { + /** Indicates that the reset that occurred was for a call to ResetDocs. */ + ResetDocs = "resetDocs" +} + +/** + * Defines values for IndexerExecutionStatusDetail. \ + * {@link KnownIndexerExecutionStatusDetail} can be used interchangeably with IndexerExecutionStatusDetail, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **resetDocs**: Indicates that the reset that occurred was for a call to ResetDocs. + */ +export type IndexerExecutionStatusDetail = string; + +/** Known values of {@link IndexingMode} that the service accepts. */ +export enum KnownIndexingMode { + /** The indexer is indexing all documents in the datasource. */ + IndexingAllDocs = "indexingAllDocs", + /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */ + IndexingResetDocs = "indexingResetDocs" +} + +/** + * Defines values for IndexingMode. \ + * {@link KnownIndexingMode} can be used interchangeably with IndexingMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **indexingAllDocs**: The indexer is indexing all documents in the datasource. \ + * **indexingResetDocs**: The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. + */ +export type IndexingMode = string; + /** Known values of {@link SearchFieldDataType} that the service accepts. */ -export const enum KnownSearchFieldDataType { +export enum KnownSearchFieldDataType { /** Indicates that a field contains a string. */ String = "Edm.String", /** Indicates that a field contains a 32-bit signed integer. */ @@ -2052,7 +2146,7 @@ export const enum KnownSearchFieldDataType { export type SearchFieldDataType = string; /** Known values of {@link LexicalAnalyzerName} that the service accepts. */ -export const enum KnownLexicalAnalyzerName { +export enum KnownLexicalAnalyzerName { /** Microsoft analyzer for Arabic. */ ArMicrosoft = "ar.microsoft", /** Lucene analyzer for Arabic. */ @@ -2343,7 +2437,7 @@ export const enum KnownLexicalAnalyzerName { export type LexicalAnalyzerName = string; /** Known values of {@link LexicalNormalizerName} that the service accepts. */ -export const enum KnownLexicalNormalizerName { +export enum KnownLexicalNormalizerName { /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */ AsciiFolding = "asciifolding", /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */ @@ -2370,7 +2464,7 @@ export const enum KnownLexicalNormalizerName { export type LexicalNormalizerName = string; /** Known values of {@link TokenFilterName} that the service accepts. */ -export const enum KnownTokenFilterName { +export enum KnownTokenFilterName { /** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */ ArabicNormalization = "arabic_normalization", /** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */ @@ -2484,7 +2578,7 @@ export const enum KnownTokenFilterName { export type TokenFilterName = string; /** Known values of {@link CharFilterName} that the service accepts. */ -export const enum KnownCharFilterName { +export enum KnownCharFilterName { /** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */ HtmlStrip = "html_strip" } @@ -2499,7 +2593,7 @@ export const enum KnownCharFilterName { export type CharFilterName = string; /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */ -export const enum KnownKeyPhraseExtractionSkillLanguage { +export enum KnownKeyPhraseExtractionSkillLanguage { /** Danish */ Da = "da", /** Dutch */ @@ -2559,7 +2653,7 @@ export const enum KnownKeyPhraseExtractionSkillLanguage { export type KeyPhraseExtractionSkillLanguage = string; /** Known values of {@link OcrSkillLanguage} that the service accepts. */ -export const enum KnownOcrSkillLanguage { +export enum KnownOcrSkillLanguage { /** Chinese-Simplified */ ZhHans = "zh-Hans", /** Chinese-Traditional */ @@ -2649,7 +2743,7 @@ export const enum KnownOcrSkillLanguage { export type OcrSkillLanguage = string; /** Known values of {@link LineEnding} that the service accepts. */ -export const enum KnownLineEnding { +export enum KnownLineEnding { /** Lines are separated by a single space character. */ Space = "space", /** Lines are separated by a carriage return ('\r') character. */ @@ -2673,7 +2767,7 @@ export const enum KnownLineEnding { export type LineEnding = string; /** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */ -export const enum KnownImageAnalysisSkillLanguage { +export enum KnownImageAnalysisSkillLanguage { /** English */ En = "en", /** Spanish */ @@ -2700,7 +2794,7 @@ export const enum KnownImageAnalysisSkillLanguage { export type ImageAnalysisSkillLanguage = string; /** Known values of {@link VisualFeature} that the service accepts. */ -export const enum KnownVisualFeature { +export enum KnownVisualFeature { /** Visual features recognized as adult persons. */ Adult = "adult", /** Visual features recognized as commercial brands. */ @@ -2733,7 +2827,7 @@ export const enum KnownVisualFeature { export type VisualFeature = string; /** Known values of {@link ImageDetail} that the service accepts. */ -export const enum KnownImageDetail { +export enum KnownImageDetail { /** Details recognized as celebrities. */ Celebrities = "celebrities", /** Details recognized as landmarks. */ @@ -2751,7 +2845,7 @@ export const enum KnownImageDetail { export type ImageDetail = string; /** Known values of {@link EntityCategory} that the service accepts. */ -export const enum KnownEntityCategory { +export enum KnownEntityCategory { /** Entities describing a physical location. */ Location = "location", /** Entities describing an organization. */ @@ -2784,7 +2878,7 @@ export const enum KnownEntityCategory { export type EntityCategory = string; /** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */ -export const enum KnownEntityRecognitionSkillLanguage { +export enum KnownEntityRecognitionSkillLanguage { /** Arabic */ Ar = "ar", /** Czech */ @@ -2865,7 +2959,7 @@ export const enum KnownEntityRecognitionSkillLanguage { export type EntityRecognitionSkillLanguage = string; /** Known values of {@link SentimentSkillLanguage} that the service accepts. */ -export const enum KnownSentimentSkillLanguage { +export enum KnownSentimentSkillLanguage { /** Danish */ Da = "da", /** Dutch */ @@ -2922,7 +3016,7 @@ export const enum KnownSentimentSkillLanguage { export type SentimentSkillLanguage = string; /** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */ -export const enum KnownPIIDetectionSkillMaskingMode { +export enum KnownPIIDetectionSkillMaskingMode { /** No masking occurs and the maskedText output will not be returned. */ None = "none", /** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */ @@ -2940,7 +3034,7 @@ export const enum KnownPIIDetectionSkillMaskingMode { export type PIIDetectionSkillMaskingMode = string; /** Known values of {@link SplitSkillLanguage} that the service accepts. */ -export const enum KnownSplitSkillLanguage { +export enum KnownSplitSkillLanguage { /** Danish */ Da = "da", /** German */ @@ -2979,7 +3073,7 @@ export const enum KnownSplitSkillLanguage { export type SplitSkillLanguage = string; /** Known values of {@link TextSplitMode} that the service accepts. */ -export const enum KnownTextSplitMode { +export enum KnownTextSplitMode { /** Split the text into individual pages. */ Pages = "pages", /** Split the text into individual sentences. */ @@ -2997,7 +3091,7 @@ export const enum KnownTextSplitMode { export type TextSplitMode = string; /** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */ -export const enum KnownCustomEntityLookupSkillLanguage { +export enum KnownCustomEntityLookupSkillLanguage { /** Danish */ Da = "da", /** German */ @@ -3036,7 +3130,7 @@ export const enum KnownCustomEntityLookupSkillLanguage { export type CustomEntityLookupSkillLanguage = string; /** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */ -export const enum KnownTextTranslationSkillLanguage { +export enum KnownTextTranslationSkillLanguage { /** Afrikaans */ Af = "af", /** Arabic */ @@ -3264,7 +3358,7 @@ export const enum KnownTextTranslationSkillLanguage { export type TextTranslationSkillLanguage = string; /** Known values of {@link LexicalTokenizerName} that the service accepts. */ -export const enum KnownLexicalTokenizerName { +export enum KnownLexicalTokenizerName { /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */ Classic = "classic", /** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */ @@ -3315,7 +3409,7 @@ export const enum KnownLexicalTokenizerName { export type LexicalTokenizerName = string; /** Known values of {@link RegexFlags} that the service accepts. */ -export const enum KnownRegexFlags { +export enum KnownRegexFlags { /** Enables canonical equivalence. */ CanonEq = "CANON_EQ", /** Enables case-insensitive matching. */ @@ -3605,7 +3699,7 @@ export type StopwordsList = /** Optional parameters. */ export interface DataSourcesCreateOrUpdateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3613,24 +3707,15 @@ export interface DataSourcesCreateOrUpdateOptionalParams /** Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. */ ifNoneMatch?: string; /** Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type DataSourcesCreateOrUpdateResponse = SearchIndexerDataSource & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerDataSource; - }; -}; +export type DataSourcesCreateOrUpdateResponse = SearchIndexerDataSource; /** Optional parameters. */ export interface DataSourcesDeleteOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3641,26 +3726,17 @@ export interface DataSourcesDeleteOptionalParams /** Optional parameters. */ export interface DataSourcesGetOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the get operation. */ -export type DataSourcesGetResponse = SearchIndexerDataSource & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerDataSource; - }; -}; +export type DataSourcesGetResponse = SearchIndexerDataSource; /** Optional parameters. */ export interface DataSourcesListOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Selects which top-level properties of the data sources to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties. */ @@ -3668,51 +3744,44 @@ export interface DataSourcesListOptionalParams } /** Contains response data for the list operation. */ -export type DataSourcesListResponse = ListDataSourcesResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ListDataSourcesResult; - }; -}; +export type DataSourcesListResponse = ListDataSourcesResult; /** Optional parameters. */ export interface DataSourcesCreateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the create operation. */ -export type DataSourcesCreateResponse = SearchIndexerDataSource & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerDataSource; - }; -}; +export type DataSourcesCreateResponse = SearchIndexerDataSource; /** Optional parameters. */ -export interface IndexersResetOptionalParams extends coreHttp.OperationOptions { +export interface IndexersResetOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Optional parameters. */ -export interface IndexersRunOptionalParams extends coreHttp.OperationOptions { +export interface IndexersResetDocsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + requestOptionsParam?: RequestOptions; + keysOrIds?: DocumentKeysOrIds; + /** If false, keys or ids will be appended to existing ones. If true, only the keys or ids in this payload will be queued to be re-ingested. */ + overwrite?: boolean; +} + +/** Optional parameters. */ +export interface IndexersRunOptionalParams extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Optional parameters. */ export interface IndexersCreateOrUpdateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3720,26 +3789,17 @@ export interface IndexersCreateOrUpdateOptionalParams /** Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. */ ifNoneMatch?: string; /** Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; /** Disables cache reprocessing change detection. */ disableCacheReprocessingChangeDetection?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type IndexersCreateOrUpdateResponse = SearchIndexer & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexer; - }; -}; +export type IndexersCreateOrUpdateResponse = SearchIndexer; /** Optional parameters. */ export interface IndexersDeleteOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3749,25 +3809,17 @@ export interface IndexersDeleteOptionalParams } /** Optional parameters. */ -export interface IndexersGetOptionalParams extends coreHttp.OperationOptions { +export interface IndexersGetOptionalParams extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the get operation. */ -export type IndexersGetResponse = SearchIndexer & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexer; - }; -}; +export type IndexersGetResponse = SearchIndexer; /** Optional parameters. */ -export interface IndexersListOptionalParams extends coreHttp.OperationOptions { +export interface IndexersListOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Selects which top-level properties of the indexers to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties. */ @@ -3775,58 +3827,31 @@ export interface IndexersListOptionalParams extends coreHttp.OperationOptions { } /** Contains response data for the list operation. */ -export type IndexersListResponse = ListIndexersResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ListIndexersResult; - }; -}; +export type IndexersListResponse = ListIndexersResult; /** Optional parameters. */ export interface IndexersCreateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the create operation. */ -export type IndexersCreateResponse = SearchIndexer & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexer; - }; -}; +export type IndexersCreateResponse = SearchIndexer; /** Optional parameters. */ export interface IndexersGetStatusOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the getStatus operation. */ -export type IndexersGetStatusResponse = SearchIndexerStatus & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerStatus; - }; -}; +export type IndexersGetStatusResponse = SearchIndexerStatus; /** Optional parameters. */ export interface SkillsetsCreateOrUpdateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3834,26 +3859,17 @@ export interface SkillsetsCreateOrUpdateOptionalParams /** Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. */ ifNoneMatch?: string; /** Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; /** Disables cache reprocessing change detection. */ disableCacheReprocessingChangeDetection?: boolean; } /** Contains response data for the createOrUpdate operation. */ -export type SkillsetsCreateOrUpdateResponse = SearchIndexerSkillset & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerSkillset; - }; -}; +export type SkillsetsCreateOrUpdateResponse = SearchIndexerSkillset; /** Optional parameters. */ export interface SkillsetsDeleteOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3863,25 +3879,18 @@ export interface SkillsetsDeleteOptionalParams } /** Optional parameters. */ -export interface SkillsetsGetOptionalParams extends coreHttp.OperationOptions { +export interface SkillsetsGetOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the get operation. */ -export type SkillsetsGetResponse = SearchIndexerSkillset & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerSkillset; - }; -}; +export type SkillsetsGetResponse = SearchIndexerSkillset; /** Optional parameters. */ -export interface SkillsetsListOptionalParams extends coreHttp.OperationOptions { +export interface SkillsetsListOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Selects which top-level properties of the skillsets to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties. */ @@ -3889,39 +3898,28 @@ export interface SkillsetsListOptionalParams extends coreHttp.OperationOptions { } /** Contains response data for the list operation. */ -export type SkillsetsListResponse = ListSkillsetsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ListSkillsetsResult; - }; -}; +export type SkillsetsListResponse = ListSkillsetsResult; /** Optional parameters. */ export interface SkillsetsCreateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the create operation. */ -export type SkillsetsCreateResponse = SearchIndexerSkillset & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndexerSkillset; - }; -}; +export type SkillsetsCreateResponse = SearchIndexerSkillset; + +/** Optional parameters. */ +export interface SkillsetsResetSkillsOptionalParams + extends coreClient.OperationOptions { + /** Parameter group */ + requestOptionsParam?: RequestOptions; +} /** Optional parameters. */ export interface SynonymMapsCreateOrUpdateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3931,20 +3929,11 @@ export interface SynonymMapsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type SynonymMapsCreateOrUpdateResponse = SynonymMap & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SynonymMap; - }; -}; +export type SynonymMapsCreateOrUpdateResponse = SynonymMap; /** Optional parameters. */ export interface SynonymMapsDeleteOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -3955,26 +3944,17 @@ export interface SynonymMapsDeleteOptionalParams /** Optional parameters. */ export interface SynonymMapsGetOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the get operation. */ -export type SynonymMapsGetResponse = SynonymMap & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SynonymMap; - }; -}; +export type SynonymMapsGetResponse = SynonymMap; /** Optional parameters. */ export interface SynonymMapsListOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Selects which top-level properties of the synonym maps to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties. */ @@ -3982,56 +3962,30 @@ export interface SynonymMapsListOptionalParams } /** Contains response data for the list operation. */ -export type SynonymMapsListResponse = ListSynonymMapsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ListSynonymMapsResult; - }; -}; +export type SynonymMapsListResponse = ListSynonymMapsResult; /** Optional parameters. */ export interface SynonymMapsCreateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the create operation. */ -export type SynonymMapsCreateResponse = SynonymMap & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SynonymMap; - }; -}; +export type SynonymMapsCreateResponse = SynonymMap; /** Optional parameters. */ -export interface IndexesCreateOptionalParams extends coreHttp.OperationOptions { +export interface IndexesCreateOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the create operation. */ -export type IndexesCreateResponse = SearchIndex & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndex; - }; -}; +export type IndexesCreateResponse = SearchIndex; /** Optional parameters. */ -export interface IndexesListOptionalParams extends coreHttp.OperationOptions { +export interface IndexesListOptionalParams extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Selects which top-level properties of the index definitions to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties. */ @@ -4039,20 +3993,11 @@ export interface IndexesListOptionalParams extends coreHttp.OperationOptions { } /** Contains response data for the list operation. */ -export type IndexesListResponse = ListIndexesResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ListIndexesResult; - }; -}; +export type IndexesListResponse = ListIndexesResult; /** Optional parameters. */ export interface IndexesCreateOrUpdateOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -4064,19 +4009,11 @@ export interface IndexesCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type IndexesCreateOrUpdateResponse = SearchIndex & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndex; - }; -}; +export type IndexesCreateOrUpdateResponse = SearchIndex; /** Optional parameters. */ -export interface IndexesDeleteOptionalParams extends coreHttp.OperationOptions { +export interface IndexesDeleteOptionalParams + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; /** Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. */ @@ -4086,83 +4023,47 @@ export interface IndexesDeleteOptionalParams extends coreHttp.OperationOptions { } /** Optional parameters. */ -export interface IndexesGetOptionalParams extends coreHttp.OperationOptions { +export interface IndexesGetOptionalParams extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the get operation. */ -export type IndexesGetResponse = SearchIndex & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: SearchIndex; - }; -}; +export type IndexesGetResponse = SearchIndex; /** Optional parameters. */ export interface IndexesGetStatisticsOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the getStatistics operation. */ -export type IndexesGetStatisticsResponse = GetIndexStatisticsResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: GetIndexStatisticsResult; - }; -}; +export type IndexesGetStatisticsResponse = GetIndexStatisticsResult; /** Optional parameters. */ export interface IndexesAnalyzeOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the analyze operation. */ -export type IndexesAnalyzeResponse = AnalyzeResult & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: AnalyzeResult; - }; -}; +export type IndexesAnalyzeResponse = AnalyzeResult; /** Optional parameters. */ export interface SearchServiceClientGetServiceStatisticsOptionalParams - extends coreHttp.OperationOptions { + extends coreClient.OperationOptions { /** Parameter group */ requestOptionsParam?: RequestOptions; } /** Contains response data for the getServiceStatistics operation. */ -export type SearchServiceClientGetServiceStatisticsResponse = ServiceStatistics & { - /** The underlying HTTP response. */ - _response: coreHttp.HttpResponse & { - /** The response body as text (string format) */ - bodyAsText: string; - - /** The response body as parsed JSON or XML */ - parsedBody: ServiceStatistics; - }; -}; +export type SearchServiceClientGetServiceStatisticsResponse = ServiceStatistics; /** Optional parameters. */ export interface SearchServiceClientOptionalParams - extends coreHttp.ServiceClientOptions { + extends coreClient.ServiceClientOptions { /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/search/search-documents/src/generated/service/models/mappers.ts b/sdk/search/search-documents/src/generated/service/models/mappers.ts index a75dbba40d0e..730b4ab9a257 100644 --- a/sdk/search/search-documents/src/generated/service/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/service/models/mappers.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; -export const SearchIndexerDataSource: coreHttp.CompositeMapper = { +export const SearchIndexerDataSource: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerDataSource", @@ -85,7 +85,7 @@ export const SearchIndexerDataSource: coreHttp.CompositeMapper = { } }; -export const DataSourceCredentials: coreHttp.CompositeMapper = { +export const DataSourceCredentials: coreClient.CompositeMapper = { type: { name: "Composite", className: "DataSourceCredentials", @@ -100,7 +100,7 @@ export const DataSourceCredentials: coreHttp.CompositeMapper = { } }; -export const SearchIndexerDataContainer: coreHttp.CompositeMapper = { +export const SearchIndexerDataContainer: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerDataContainer", @@ -122,7 +122,7 @@ export const SearchIndexerDataContainer: coreHttp.CompositeMapper = { } }; -export const SearchIndexerDataIdentity: coreHttp.CompositeMapper = { +export const SearchIndexerDataIdentity: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerDataIdentity", @@ -143,7 +143,7 @@ export const SearchIndexerDataIdentity: coreHttp.CompositeMapper = { } }; -export const DataChangeDetectionPolicy: coreHttp.CompositeMapper = { +export const DataChangeDetectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", className: "DataChangeDetectionPolicy", @@ -164,7 +164,7 @@ export const DataChangeDetectionPolicy: coreHttp.CompositeMapper = { } }; -export const DataDeletionDetectionPolicy: coreHttp.CompositeMapper = { +export const DataDeletionDetectionPolicy: coreClient.CompositeMapper = { type: { name: "Composite", className: "DataDeletionDetectionPolicy", @@ -185,7 +185,7 @@ export const DataDeletionDetectionPolicy: coreHttp.CompositeMapper = { } }; -export const SearchResourceEncryptionKey: coreHttp.CompositeMapper = { +export const SearchResourceEncryptionKey: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchResourceEncryptionKey", @@ -229,7 +229,7 @@ export const SearchResourceEncryptionKey: coreHttp.CompositeMapper = { } }; -export const AzureActiveDirectoryApplicationCredentials: coreHttp.CompositeMapper = { +export const AzureActiveDirectoryApplicationCredentials: coreClient.CompositeMapper = { type: { name: "Composite", className: "AzureActiveDirectoryApplicationCredentials", @@ -251,7 +251,7 @@ export const AzureActiveDirectoryApplicationCredentials: coreHttp.CompositeMappe } }; -export const SearchError: coreHttp.CompositeMapper = { +export const SearchError: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchError", @@ -288,7 +288,7 @@ export const SearchError: coreHttp.CompositeMapper = { } }; -export const ListDataSourcesResult: coreHttp.CompositeMapper = { +export const ListDataSourcesResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "ListDataSourcesResult", @@ -311,7 +311,38 @@ export const ListDataSourcesResult: coreHttp.CompositeMapper = { } }; -export const SearchIndexer: coreHttp.CompositeMapper = { +export const DocumentKeysOrIds: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DocumentKeysOrIds", + modelProperties: { + documentKeys: { + serializedName: "documentKeys", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + datasourceDocumentIds: { + serializedName: "datasourceDocumentIds", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SearchIndexer: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexer", @@ -388,6 +419,7 @@ export const SearchIndexer: coreHttp.CompositeMapper = { } }, isDisabled: { + defaultValue: false, serializedName: "disabled", nullable: true, type: { @@ -418,7 +450,7 @@ export const SearchIndexer: coreHttp.CompositeMapper = { } }; -export const IndexingSchedule: coreHttp.CompositeMapper = { +export const IndexingSchedule: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexingSchedule", @@ -440,7 +472,7 @@ export const IndexingSchedule: coreHttp.CompositeMapper = { } }; -export const IndexingParameters: coreHttp.CompositeMapper = { +export const IndexingParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexingParameters", @@ -453,6 +485,7 @@ export const IndexingParameters: coreHttp.CompositeMapper = { } }, maxFailedItems: { + defaultValue: 0, serializedName: "maxFailedItems", nullable: true, type: { @@ -460,6 +493,7 @@ export const IndexingParameters: coreHttp.CompositeMapper = { } }, maxFailedItemsPerBatch: { + defaultValue: 0, serializedName: "maxFailedItemsPerBatch", nullable: true, type: { @@ -477,7 +511,7 @@ export const IndexingParameters: coreHttp.CompositeMapper = { } }; -export const IndexingParametersConfiguration: coreHttp.CompositeMapper = { +export const IndexingParametersConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexingParametersConfiguration", @@ -491,30 +525,35 @@ export const IndexingParametersConfiguration: coreHttp.CompositeMapper = { } }, excludedFileNameExtensions: { + defaultValue: "", serializedName: "excludedFileNameExtensions", type: { name: "String" } }, indexedFileNameExtensions: { + defaultValue: "", serializedName: "indexedFileNameExtensions", type: { name: "String" } }, failOnUnsupportedContentType: { + defaultValue: false, serializedName: "failOnUnsupportedContentType", type: { name: "Boolean" } }, failOnUnprocessableDocument: { + defaultValue: false, serializedName: "failOnUnprocessableDocument", type: { name: "Boolean" } }, indexStorageMetadataOnlyForOversizedDocuments: { + defaultValue: false, serializedName: "indexStorageMetadataOnlyForOversizedDocuments", type: { name: "Boolean" @@ -560,6 +599,7 @@ export const IndexingParametersConfiguration: coreHttp.CompositeMapper = { } }, allowSkillsetToReadFileData: { + defaultValue: false, serializedName: "allowSkillsetToReadFileData", type: { name: "Boolean" @@ -590,7 +630,7 @@ export const IndexingParametersConfiguration: coreHttp.CompositeMapper = { } }; -export const FieldMapping: coreHttp.CompositeMapper = { +export const FieldMapping: coreClient.CompositeMapper = { type: { name: "Composite", className: "FieldMapping", @@ -619,7 +659,7 @@ export const FieldMapping: coreHttp.CompositeMapper = { } }; -export const FieldMappingFunction: coreHttp.CompositeMapper = { +export const FieldMappingFunction: coreClient.CompositeMapper = { type: { name: "Composite", className: "FieldMappingFunction", @@ -633,16 +673,19 @@ export const FieldMappingFunction: coreHttp.CompositeMapper = { }, parameters: { serializedName: "parameters", + nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const SearchIndexerCache: coreHttp.CompositeMapper = { +export const SearchIndexerCache: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerCache", @@ -664,7 +707,7 @@ export const SearchIndexerCache: coreHttp.CompositeMapper = { } }; -export const ListIndexersResult: coreHttp.CompositeMapper = { +export const ListIndexersResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "ListIndexersResult", @@ -687,7 +730,7 @@ export const ListIndexersResult: coreHttp.CompositeMapper = { } }; -export const SearchIndexerStatus: coreHttp.CompositeMapper = { +export const SearchIndexerStatus: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerStatus", @@ -733,7 +776,7 @@ export const SearchIndexerStatus: coreHttp.CompositeMapper = { } }; -export const IndexerExecutionResult: coreHttp.CompositeMapper = { +export const IndexerExecutionResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "IndexerExecutionResult", @@ -747,6 +790,20 @@ export const IndexerExecutionResult: coreHttp.CompositeMapper = { allowedValues: ["transientFailure", "success", "inProgress", "reset"] } }, + statusDetail: { + serializedName: "statusDetail", + readOnly: true, + type: { + name: "String" + } + }, + currentState: { + serializedName: "currentState", + type: { + name: "Composite", + className: "IndexerCurrentState" + } + }, errorMessage: { serializedName: "errorMessage", readOnly: true, @@ -831,7 +888,75 @@ export const IndexerExecutionResult: coreHttp.CompositeMapper = { } }; -export const SearchIndexerError: coreHttp.CompositeMapper = { +export const IndexerCurrentState: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IndexerCurrentState", + modelProperties: { + mode: { + serializedName: "mode", + readOnly: true, + type: { + name: "String" + } + }, + allDocsInitialChangeTrackingState: { + serializedName: "allDocsInitialChangeTrackingState", + readOnly: true, + type: { + name: "String" + } + }, + allDocsFinalChangeTrackingState: { + serializedName: "allDocsFinalChangeTrackingState", + readOnly: true, + type: { + name: "String" + } + }, + resetDocsInitialChangeTrackingState: { + serializedName: "resetDocsInitialChangeTrackingState", + readOnly: true, + type: { + name: "String" + } + }, + resetDocsFinalChangeTrackingState: { + serializedName: "resetDocsFinalChangeTrackingState", + readOnly: true, + type: { + name: "String" + } + }, + resetDocumentKeys: { + serializedName: "resetDocumentKeys", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + resetDatasourceDocumentIds: { + serializedName: "resetDatasourceDocumentIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SearchIndexerError: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerError", @@ -884,7 +1009,7 @@ export const SearchIndexerError: coreHttp.CompositeMapper = { } }; -export const SearchIndexerWarning: coreHttp.CompositeMapper = { +export const SearchIndexerWarning: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerWarning", @@ -929,7 +1054,7 @@ export const SearchIndexerWarning: coreHttp.CompositeMapper = { } }; -export const SearchIndexerLimits: coreHttp.CompositeMapper = { +export const SearchIndexerLimits: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerLimits", @@ -959,7 +1084,7 @@ export const SearchIndexerLimits: coreHttp.CompositeMapper = { } }; -export const SearchIndexerSkillset: coreHttp.CompositeMapper = { +export const SearchIndexerSkillset: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerSkillset", @@ -1021,7 +1146,7 @@ export const SearchIndexerSkillset: coreHttp.CompositeMapper = { } }; -export const SearchIndexerSkill: coreHttp.CompositeMapper = { +export const SearchIndexerSkill: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerSkill", @@ -1086,7 +1211,7 @@ export const SearchIndexerSkill: coreHttp.CompositeMapper = { } }; -export const InputFieldMappingEntry: coreHttp.CompositeMapper = { +export const InputFieldMappingEntry: coreClient.CompositeMapper = { type: { name: "Composite", className: "InputFieldMappingEntry", @@ -1126,7 +1251,7 @@ export const InputFieldMappingEntry: coreHttp.CompositeMapper = { } }; -export const OutputFieldMappingEntry: coreHttp.CompositeMapper = { +export const OutputFieldMappingEntry: coreClient.CompositeMapper = { type: { name: "Composite", className: "OutputFieldMappingEntry", @@ -1148,7 +1273,7 @@ export const OutputFieldMappingEntry: coreHttp.CompositeMapper = { } }; -export const CognitiveServicesAccount: coreHttp.CompositeMapper = { +export const CognitiveServicesAccount: coreClient.CompositeMapper = { type: { name: "Composite", className: "CognitiveServicesAccount", @@ -1175,7 +1300,7 @@ export const CognitiveServicesAccount: coreHttp.CompositeMapper = { } }; -export const SearchIndexerKnowledgeStore: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStore", @@ -1204,7 +1329,7 @@ export const SearchIndexerKnowledgeStore: coreHttp.CompositeMapper = { } }; -export const SearchIndexerKnowledgeStoreProjection: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreProjection: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreProjection", @@ -1249,7 +1374,7 @@ export const SearchIndexerKnowledgeStoreProjection: coreHttp.CompositeMapper = { } }; -export const SearchIndexerKnowledgeStoreProjectionSelector: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreProjectionSelector: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreProjectionSelector", @@ -1294,7 +1419,7 @@ export const SearchIndexerKnowledgeStoreProjectionSelector: coreHttp.CompositeMa } }; -export const ListSkillsetsResult: coreHttp.CompositeMapper = { +export const ListSkillsetsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "ListSkillsetsResult", @@ -1317,7 +1442,27 @@ export const ListSkillsetsResult: coreHttp.CompositeMapper = { } }; -export const SynonymMap: coreHttp.CompositeMapper = { +export const SkillNames: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SkillNames", + modelProperties: { + skillNames: { + serializedName: "skillNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const SynonymMap: coreClient.CompositeMapper = { type: { name: "Composite", className: "SynonymMap", @@ -1361,7 +1506,7 @@ export const SynonymMap: coreHttp.CompositeMapper = { } }; -export const ListSynonymMapsResult: coreHttp.CompositeMapper = { +export const ListSynonymMapsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "ListSynonymMapsResult", @@ -1384,7 +1529,7 @@ export const ListSynonymMapsResult: coreHttp.CompositeMapper = { } }; -export const SearchIndex: coreHttp.CompositeMapper = { +export const SearchIndex: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndex", @@ -1530,7 +1675,7 @@ export const SearchIndex: coreHttp.CompositeMapper = { } }; -export const SearchField: coreHttp.CompositeMapper = { +export const SearchField: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchField", @@ -1640,7 +1785,7 @@ export const SearchField: coreHttp.CompositeMapper = { } }; -export const ScoringProfile: coreHttp.CompositeMapper = { +export const ScoringProfile: coreClient.CompositeMapper = { type: { name: "Composite", className: "ScoringProfile", @@ -1688,7 +1833,7 @@ export const ScoringProfile: coreHttp.CompositeMapper = { } }; -export const TextWeights: coreHttp.CompositeMapper = { +export const TextWeights: coreClient.CompositeMapper = { type: { name: "Composite", className: "TextWeights", @@ -1705,7 +1850,7 @@ export const TextWeights: coreHttp.CompositeMapper = { } }; -export const ScoringFunction: coreHttp.CompositeMapper = { +export const ScoringFunction: coreClient.CompositeMapper = { type: { name: "Composite", className: "ScoringFunction", @@ -1747,7 +1892,7 @@ export const ScoringFunction: coreHttp.CompositeMapper = { } }; -export const CorsOptions: coreHttp.CompositeMapper = { +export const CorsOptions: coreClient.CompositeMapper = { type: { name: "Composite", className: "CorsOptions", @@ -1775,7 +1920,7 @@ export const CorsOptions: coreHttp.CompositeMapper = { } }; -export const Suggester: coreHttp.CompositeMapper = { +export const Suggester: coreClient.CompositeMapper = { type: { name: "Composite", className: "Suggester", @@ -1811,7 +1956,7 @@ export const Suggester: coreHttp.CompositeMapper = { } }; -export const LexicalAnalyzer: coreHttp.CompositeMapper = { +export const LexicalAnalyzer: coreClient.CompositeMapper = { type: { name: "Composite", className: "LexicalAnalyzer", @@ -1839,7 +1984,7 @@ export const LexicalAnalyzer: coreHttp.CompositeMapper = { } }; -export const LexicalTokenizer: coreHttp.CompositeMapper = { +export const LexicalTokenizer: coreClient.CompositeMapper = { type: { name: "Composite", className: "LexicalTokenizer", @@ -1867,7 +2012,7 @@ export const LexicalTokenizer: coreHttp.CompositeMapper = { } }; -export const TokenFilter: coreHttp.CompositeMapper = { +export const TokenFilter: coreClient.CompositeMapper = { type: { name: "Composite", className: "TokenFilter", @@ -1895,7 +2040,7 @@ export const TokenFilter: coreHttp.CompositeMapper = { } }; -export const CharFilter: coreHttp.CompositeMapper = { +export const CharFilter: coreClient.CompositeMapper = { type: { name: "Composite", className: "CharFilter", @@ -1923,7 +2068,7 @@ export const CharFilter: coreHttp.CompositeMapper = { } }; -export const LexicalNormalizer: coreHttp.CompositeMapper = { +export const LexicalNormalizer: coreClient.CompositeMapper = { type: { name: "Composite", className: "LexicalNormalizer", @@ -1951,7 +2096,7 @@ export const LexicalNormalizer: coreHttp.CompositeMapper = { } }; -export const Similarity: coreHttp.CompositeMapper = { +export const Similarity: coreClient.CompositeMapper = { type: { name: "Composite", className: "Similarity", @@ -1972,7 +2117,7 @@ export const Similarity: coreHttp.CompositeMapper = { } }; -export const ListIndexesResult: coreHttp.CompositeMapper = { +export const ListIndexesResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "ListIndexesResult", @@ -1995,7 +2140,7 @@ export const ListIndexesResult: coreHttp.CompositeMapper = { } }; -export const GetIndexStatisticsResult: coreHttp.CompositeMapper = { +export const GetIndexStatisticsResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "GetIndexStatisticsResult", @@ -2020,7 +2165,7 @@ export const GetIndexStatisticsResult: coreHttp.CompositeMapper = { } }; -export const AnalyzeRequest: coreHttp.CompositeMapper = { +export const AnalyzeRequest: coreClient.CompositeMapper = { type: { name: "Composite", className: "AnalyzeRequest", @@ -2076,7 +2221,7 @@ export const AnalyzeRequest: coreHttp.CompositeMapper = { } }; -export const AnalyzeResult: coreHttp.CompositeMapper = { +export const AnalyzeResult: coreClient.CompositeMapper = { type: { name: "Composite", className: "AnalyzeResult", @@ -2098,7 +2243,7 @@ export const AnalyzeResult: coreHttp.CompositeMapper = { } }; -export const AnalyzedTokenInfo: coreHttp.CompositeMapper = { +export const AnalyzedTokenInfo: coreClient.CompositeMapper = { type: { name: "Composite", className: "AnalyzedTokenInfo", @@ -2139,7 +2284,7 @@ export const AnalyzedTokenInfo: coreHttp.CompositeMapper = { } }; -export const ServiceStatistics: coreHttp.CompositeMapper = { +export const ServiceStatistics: coreClient.CompositeMapper = { type: { name: "Composite", className: "ServiceStatistics", @@ -2162,7 +2307,7 @@ export const ServiceStatistics: coreHttp.CompositeMapper = { } }; -export const ServiceCounters: coreHttp.CompositeMapper = { +export const ServiceCounters: coreClient.CompositeMapper = { type: { name: "Composite", className: "ServiceCounters", @@ -2220,7 +2365,7 @@ export const ServiceCounters: coreHttp.CompositeMapper = { } }; -export const ResourceCounter: coreHttp.CompositeMapper = { +export const ResourceCounter: coreClient.CompositeMapper = { type: { name: "Composite", className: "ResourceCounter", @@ -2243,7 +2388,7 @@ export const ResourceCounter: coreHttp.CompositeMapper = { } }; -export const ServiceLimits: coreHttp.CompositeMapper = { +export const ServiceLimits: coreClient.CompositeMapper = { type: { name: "Composite", className: "ServiceLimits", @@ -2280,7 +2425,7 @@ export const ServiceLimits: coreHttp.CompositeMapper = { } }; -export const DistanceScoringParameters: coreHttp.CompositeMapper = { +export const DistanceScoringParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "DistanceScoringParameters", @@ -2303,7 +2448,7 @@ export const DistanceScoringParameters: coreHttp.CompositeMapper = { } }; -export const FreshnessScoringParameters: coreHttp.CompositeMapper = { +export const FreshnessScoringParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "FreshnessScoringParameters", @@ -2319,7 +2464,7 @@ export const FreshnessScoringParameters: coreHttp.CompositeMapper = { } }; -export const MagnitudeScoringParameters: coreHttp.CompositeMapper = { +export const MagnitudeScoringParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "MagnitudeScoringParameters", @@ -2348,7 +2493,7 @@ export const MagnitudeScoringParameters: coreHttp.CompositeMapper = { } }; -export const TagScoringParameters: coreHttp.CompositeMapper = { +export const TagScoringParameters: coreClient.CompositeMapper = { type: { name: "Composite", className: "TagScoringParameters", @@ -2364,7 +2509,7 @@ export const TagScoringParameters: coreHttp.CompositeMapper = { } }; -export const CustomEntity: coreHttp.CompositeMapper = { +export const CustomEntity: coreClient.CompositeMapper = { type: { name: "Composite", className: "CustomEntity", @@ -2463,7 +2608,7 @@ export const CustomEntity: coreHttp.CompositeMapper = { } }; -export const CustomEntityAlias: coreHttp.CompositeMapper = { +export const CustomEntityAlias: coreClient.CompositeMapper = { type: { name: "Composite", className: "CustomEntityAlias", @@ -2500,7 +2645,7 @@ export const CustomEntityAlias: coreHttp.CompositeMapper = { } }; -export const SearchIndexerDataNoneIdentity: coreHttp.CompositeMapper = { +export const SearchIndexerDataNoneIdentity: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SearchIndexerDataNoneIdentity", type: { name: "Composite", @@ -2514,7 +2659,7 @@ export const SearchIndexerDataNoneIdentity: coreHttp.CompositeMapper = { } }; -export const SearchIndexerDataUserAssignedIdentity: coreHttp.CompositeMapper = { +export const SearchIndexerDataUserAssignedIdentity: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity", type: { @@ -2536,7 +2681,7 @@ export const SearchIndexerDataUserAssignedIdentity: coreHttp.CompositeMapper = { } }; -export const HighWaterMarkChangeDetectionPolicy: coreHttp.CompositeMapper = { +export const HighWaterMarkChangeDetectionPolicy: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy", type: { name: "Composite", @@ -2557,7 +2702,7 @@ export const HighWaterMarkChangeDetectionPolicy: coreHttp.CompositeMapper = { } }; -export const SqlIntegratedChangeTrackingPolicy: coreHttp.CompositeMapper = { +export const SqlIntegratedChangeTrackingPolicy: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy", type: { name: "Composite", @@ -2571,7 +2716,7 @@ export const SqlIntegratedChangeTrackingPolicy: coreHttp.CompositeMapper = { } }; -export const SoftDeleteColumnDeletionDetectionPolicy: coreHttp.CompositeMapper = { +export const SoftDeleteColumnDeletionDetectionPolicy: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", type: { @@ -2598,7 +2743,7 @@ export const SoftDeleteColumnDeletionDetectionPolicy: coreHttp.CompositeMapper = } }; -export const ConditionalSkill: coreHttp.CompositeMapper = { +export const ConditionalSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Util.ConditionalSkill", type: { name: "Composite", @@ -2611,7 +2756,7 @@ export const ConditionalSkill: coreHttp.CompositeMapper = { } }; -export const KeyPhraseExtractionSkill: coreHttp.CompositeMapper = { +export const KeyPhraseExtractionSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill", type: { name: "Composite", @@ -2644,7 +2789,7 @@ export const KeyPhraseExtractionSkill: coreHttp.CompositeMapper = { } }; -export const OcrSkill: coreHttp.CompositeMapper = { +export const OcrSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Vision.OcrSkill", type: { name: "Composite", @@ -2660,6 +2805,7 @@ export const OcrSkill: coreHttp.CompositeMapper = { } }, shouldDetectOrientation: { + defaultValue: false, serializedName: "detectOrientation", type: { name: "Boolean" @@ -2675,7 +2821,7 @@ export const OcrSkill: coreHttp.CompositeMapper = { } }; -export const ImageAnalysisSkill: coreHttp.CompositeMapper = { +export const ImageAnalysisSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Vision.ImageAnalysisSkill", type: { name: "Composite", @@ -2716,7 +2862,7 @@ export const ImageAnalysisSkill: coreHttp.CompositeMapper = { } }; -export const LanguageDetectionSkill: coreHttp.CompositeMapper = { +export const LanguageDetectionSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.LanguageDetectionSkill", type: { name: "Composite", @@ -2743,7 +2889,7 @@ export const LanguageDetectionSkill: coreHttp.CompositeMapper = { } }; -export const ShaperSkill: coreHttp.CompositeMapper = { +export const ShaperSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Util.ShaperSkill", type: { name: "Composite", @@ -2756,7 +2902,7 @@ export const ShaperSkill: coreHttp.CompositeMapper = { } }; -export const MergeSkill: coreHttp.CompositeMapper = { +export const MergeSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.MergeSkill", type: { name: "Composite", @@ -2783,7 +2929,7 @@ export const MergeSkill: coreHttp.CompositeMapper = { } }; -export const EntityRecognitionSkill: coreHttp.CompositeMapper = { +export const EntityRecognitionSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.EntityRecognitionSkill", type: { name: "Composite", @@ -2827,7 +2973,7 @@ export const EntityRecognitionSkill: coreHttp.CompositeMapper = { } }; -export const SentimentSkill: coreHttp.CompositeMapper = { +export const SentimentSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.SentimentSkill", type: { name: "Composite", @@ -2846,7 +2992,7 @@ export const SentimentSkill: coreHttp.CompositeMapper = { } }; -export const SentimentSkillV3: coreHttp.CompositeMapper = { +export const SentimentSkillV3: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.V3.SentimentSkill", type: { name: "Composite", @@ -2863,6 +3009,7 @@ export const SentimentSkillV3: coreHttp.CompositeMapper = { } }, includeOpinionMining: { + defaultValue: false, serializedName: "includeOpinionMining", type: { name: "Boolean" @@ -2879,7 +3026,7 @@ export const SentimentSkillV3: coreHttp.CompositeMapper = { } }; -export const EntityLinkingSkill: coreHttp.CompositeMapper = { +export const EntityLinkingSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.V3.EntityLinkingSkill", type: { name: "Composite", @@ -2917,7 +3064,7 @@ export const EntityLinkingSkill: coreHttp.CompositeMapper = { } }; -export const EntityRecognitionSkillV3: coreHttp.CompositeMapper = { +export const EntityRecognitionSkillV3: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill", type: { name: "Composite", @@ -2966,7 +3113,7 @@ export const EntityRecognitionSkillV3: coreHttp.CompositeMapper = { } }; -export const PIIDetectionSkill: coreHttp.CompositeMapper = { +export const PIIDetectionSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.PIIDetectionSkill", type: { name: "Composite", @@ -3038,7 +3185,7 @@ export const PIIDetectionSkill: coreHttp.CompositeMapper = { } }; -export const SplitSkill: coreHttp.CompositeMapper = { +export const SplitSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.SplitSkill", type: { name: "Composite", @@ -3070,7 +3217,7 @@ export const SplitSkill: coreHttp.CompositeMapper = { } }; -export const CustomEntityLookupSkill: coreHttp.CompositeMapper = { +export const CustomEntityLookupSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.CustomEntityLookupSkill", type: { name: "Composite", @@ -3131,7 +3278,7 @@ export const CustomEntityLookupSkill: coreHttp.CompositeMapper = { } }; -export const TextTranslationSkill: coreHttp.CompositeMapper = { +export const TextTranslationSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Text.TranslationSkill", type: { name: "Composite", @@ -3164,7 +3311,7 @@ export const TextTranslationSkill: coreHttp.CompositeMapper = { } }; -export const DocumentExtractionSkill: coreHttp.CompositeMapper = { +export const DocumentExtractionSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Util.DocumentExtractionSkill", type: { name: "Composite", @@ -3192,14 +3339,16 @@ export const DocumentExtractionSkill: coreHttp.CompositeMapper = { nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } + value: { + type: { name: "Dictionary", value: { type: { name: "any" } } } + } } } } } }; -export const WebApiSkill: coreHttp.CompositeMapper = { +export const WebApiSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Custom.WebApiSkill", type: { name: "Composite", @@ -3252,7 +3401,7 @@ export const WebApiSkill: coreHttp.CompositeMapper = { } }; -export const DefaultCognitiveServicesAccount: coreHttp.CompositeMapper = { +export const DefaultCognitiveServicesAccount: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices", type: { name: "Composite", @@ -3266,7 +3415,7 @@ export const DefaultCognitiveServicesAccount: coreHttp.CompositeMapper = { } }; -export const CognitiveServicesAccountKey: coreHttp.CompositeMapper = { +export const CognitiveServicesAccountKey: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.CognitiveServicesByKey", type: { name: "Composite", @@ -3287,7 +3436,7 @@ export const CognitiveServicesAccountKey: coreHttp.CompositeMapper = { } }; -export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreTableProjectionSelector", @@ -3304,7 +3453,7 @@ export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreHttp.Compos } }; -export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreBlobProjectionSelector", @@ -3321,7 +3470,7 @@ export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreHttp.Composi } }; -export const DistanceScoringFunction: coreHttp.CompositeMapper = { +export const DistanceScoringFunction: coreClient.CompositeMapper = { serializedName: "distance", type: { name: "Composite", @@ -3341,7 +3490,7 @@ export const DistanceScoringFunction: coreHttp.CompositeMapper = { } }; -export const FreshnessScoringFunction: coreHttp.CompositeMapper = { +export const FreshnessScoringFunction: coreClient.CompositeMapper = { serializedName: "freshness", type: { name: "Composite", @@ -3361,7 +3510,7 @@ export const FreshnessScoringFunction: coreHttp.CompositeMapper = { } }; -export const MagnitudeScoringFunction: coreHttp.CompositeMapper = { +export const MagnitudeScoringFunction: coreClient.CompositeMapper = { serializedName: "magnitude", type: { name: "Composite", @@ -3381,7 +3530,7 @@ export const MagnitudeScoringFunction: coreHttp.CompositeMapper = { } }; -export const TagScoringFunction: coreHttp.CompositeMapper = { +export const TagScoringFunction: coreClient.CompositeMapper = { serializedName: "tag", type: { name: "Composite", @@ -3401,7 +3550,7 @@ export const TagScoringFunction: coreHttp.CompositeMapper = { } }; -export const CustomAnalyzer: coreHttp.CompositeMapper = { +export const CustomAnalyzer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.CustomAnalyzer", type: { name: "Composite", @@ -3443,7 +3592,7 @@ export const CustomAnalyzer: coreHttp.CompositeMapper = { } }; -export const PatternAnalyzer: coreHttp.CompositeMapper = { +export const PatternAnalyzer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PatternAnalyzer", type: { name: "Composite", @@ -3487,7 +3636,7 @@ export const PatternAnalyzer: coreHttp.CompositeMapper = { } }; -export const LuceneStandardAnalyzer: coreHttp.CompositeMapper = { +export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StandardAnalyzer", type: { name: "Composite", @@ -3521,7 +3670,7 @@ export const LuceneStandardAnalyzer: coreHttp.CompositeMapper = { } }; -export const StopAnalyzer: coreHttp.CompositeMapper = { +export const StopAnalyzer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StopAnalyzer", type: { name: "Composite", @@ -3545,7 +3694,7 @@ export const StopAnalyzer: coreHttp.CompositeMapper = { } }; -export const ClassicTokenizer: coreHttp.CompositeMapper = { +export const ClassicTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.ClassicTokenizer", type: { name: "Composite", @@ -3568,7 +3717,7 @@ export const ClassicTokenizer: coreHttp.CompositeMapper = { } }; -export const EdgeNGramTokenizer: coreHttp.CompositeMapper = { +export const EdgeNGramTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.EdgeNGramTokenizer", type: { name: "Composite", @@ -3619,7 +3768,7 @@ export const EdgeNGramTokenizer: coreHttp.CompositeMapper = { } }; -export const KeywordTokenizer: coreHttp.CompositeMapper = { +export const KeywordTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.KeywordTokenizer", type: { name: "Composite", @@ -3639,7 +3788,7 @@ export const KeywordTokenizer: coreHttp.CompositeMapper = { } }; -export const KeywordTokenizerV2: coreHttp.CompositeMapper = { +export const KeywordTokenizerV2: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.KeywordTokenizerV2", type: { name: "Composite", @@ -3662,7 +3811,7 @@ export const KeywordTokenizerV2: coreHttp.CompositeMapper = { } }; -export const MicrosoftLanguageTokenizer: coreHttp.CompositeMapper = { +export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer", type: { name: "Composite", @@ -3682,6 +3831,7 @@ export const MicrosoftLanguageTokenizer: coreHttp.CompositeMapper = { } }, isSearchTokenizer: { + defaultValue: false, serializedName: "isSearchTokenizer", type: { name: "Boolean" @@ -3741,7 +3891,7 @@ export const MicrosoftLanguageTokenizer: coreHttp.CompositeMapper = { } }; -export const MicrosoftLanguageStemmingTokenizer: coreHttp.CompositeMapper = { +export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer", type: { name: "Composite", @@ -3761,6 +3911,7 @@ export const MicrosoftLanguageStemmingTokenizer: coreHttp.CompositeMapper = { } }, isSearchTokenizer: { + defaultValue: false, serializedName: "isSearchTokenizer", type: { name: "Boolean" @@ -3823,7 +3974,7 @@ export const MicrosoftLanguageStemmingTokenizer: coreHttp.CompositeMapper = { } }; -export const NGramTokenizer: coreHttp.CompositeMapper = { +export const NGramTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.NGramTokenizer", type: { name: "Composite", @@ -3874,7 +4025,7 @@ export const NGramTokenizer: coreHttp.CompositeMapper = { } }; -export const PathHierarchyTokenizerV2: coreHttp.CompositeMapper = { +export const PathHierarchyTokenizerV2: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2", type: { name: "Composite", @@ -3908,12 +4059,14 @@ export const PathHierarchyTokenizerV2: coreHttp.CompositeMapper = { } }, reverseTokenOrder: { + defaultValue: false, serializedName: "reverse", type: { name: "Boolean" } }, numberOfTokensToSkip: { + defaultValue: 0, serializedName: "skip", type: { name: "Number" @@ -3923,7 +4076,7 @@ export const PathHierarchyTokenizerV2: coreHttp.CompositeMapper = { } }; -export const PatternTokenizer: coreHttp.CompositeMapper = { +export const PatternTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PatternTokenizer", type: { name: "Composite", @@ -3956,7 +4109,7 @@ export const PatternTokenizer: coreHttp.CompositeMapper = { } }; -export const LuceneStandardTokenizer: coreHttp.CompositeMapper = { +export const LuceneStandardTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StandardTokenizer", type: { name: "Composite", @@ -3976,7 +4129,7 @@ export const LuceneStandardTokenizer: coreHttp.CompositeMapper = { } }; -export const LuceneStandardTokenizerV2: coreHttp.CompositeMapper = { +export const LuceneStandardTokenizerV2: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StandardTokenizerV2", type: { name: "Composite", @@ -3999,7 +4152,7 @@ export const LuceneStandardTokenizerV2: coreHttp.CompositeMapper = { } }; -export const UaxUrlEmailTokenizer: coreHttp.CompositeMapper = { +export const UaxUrlEmailTokenizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer", type: { name: "Composite", @@ -4022,7 +4175,7 @@ export const UaxUrlEmailTokenizer: coreHttp.CompositeMapper = { } }; -export const AsciiFoldingTokenFilter: coreHttp.CompositeMapper = { +export const AsciiFoldingTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.AsciiFoldingTokenFilter", type: { name: "Composite", @@ -4032,6 +4185,7 @@ export const AsciiFoldingTokenFilter: coreHttp.CompositeMapper = { modelProperties: { ...TokenFilter.type.modelProperties, preserveOriginal: { + defaultValue: false, serializedName: "preserveOriginal", type: { name: "Boolean" @@ -4041,7 +4195,7 @@ export const AsciiFoldingTokenFilter: coreHttp.CompositeMapper = { } }; -export const CjkBigramTokenFilter: coreHttp.CompositeMapper = { +export const CjkBigramTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.CjkBigramTokenFilter", type: { name: "Composite", @@ -4063,6 +4217,7 @@ export const CjkBigramTokenFilter: coreHttp.CompositeMapper = { } }, outputUnigrams: { + defaultValue: false, serializedName: "outputUnigrams", type: { name: "Boolean" @@ -4072,7 +4227,7 @@ export const CjkBigramTokenFilter: coreHttp.CompositeMapper = { } }; -export const CommonGramTokenFilter: coreHttp.CompositeMapper = { +export const CommonGramTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.CommonGramTokenFilter", type: { name: "Composite", @@ -4094,12 +4249,14 @@ export const CommonGramTokenFilter: coreHttp.CompositeMapper = { } }, ignoreCase: { + defaultValue: false, serializedName: "ignoreCase", type: { name: "Boolean" } }, useQueryMode: { + defaultValue: false, serializedName: "queryMode", type: { name: "Boolean" @@ -4109,7 +4266,7 @@ export const CommonGramTokenFilter: coreHttp.CompositeMapper = { } }; -export const DictionaryDecompounderTokenFilter: coreHttp.CompositeMapper = { +export const DictionaryDecompounderTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter", type: { name: "Composite", @@ -4161,6 +4318,7 @@ export const DictionaryDecompounderTokenFilter: coreHttp.CompositeMapper = { } }, onlyLongestMatch: { + defaultValue: false, serializedName: "onlyLongestMatch", type: { name: "Boolean" @@ -4170,7 +4328,7 @@ export const DictionaryDecompounderTokenFilter: coreHttp.CompositeMapper = { } }; -export const EdgeNGramTokenFilter: coreHttp.CompositeMapper = { +export const EdgeNGramTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.EdgeNGramTokenFilter", type: { name: "Composite", @@ -4204,7 +4362,7 @@ export const EdgeNGramTokenFilter: coreHttp.CompositeMapper = { } }; -export const EdgeNGramTokenFilterV2: coreHttp.CompositeMapper = { +export const EdgeNGramTokenFilterV2: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2", type: { name: "Composite", @@ -4244,7 +4402,7 @@ export const EdgeNGramTokenFilterV2: coreHttp.CompositeMapper = { } }; -export const ElisionTokenFilter: coreHttp.CompositeMapper = { +export const ElisionTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.ElisionTokenFilter", type: { name: "Composite", @@ -4268,7 +4426,7 @@ export const ElisionTokenFilter: coreHttp.CompositeMapper = { } }; -export const KeepTokenFilter: coreHttp.CompositeMapper = { +export const KeepTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.KeepTokenFilter", type: { name: "Composite", @@ -4290,6 +4448,7 @@ export const KeepTokenFilter: coreHttp.CompositeMapper = { } }, lowerCaseKeepWords: { + defaultValue: false, serializedName: "keepWordsCase", type: { name: "Boolean" @@ -4299,7 +4458,7 @@ export const KeepTokenFilter: coreHttp.CompositeMapper = { } }; -export const KeywordMarkerTokenFilter: coreHttp.CompositeMapper = { +export const KeywordMarkerTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter", type: { name: "Composite", @@ -4321,6 +4480,7 @@ export const KeywordMarkerTokenFilter: coreHttp.CompositeMapper = { } }, ignoreCase: { + defaultValue: false, serializedName: "ignoreCase", type: { name: "Boolean" @@ -4330,7 +4490,7 @@ export const KeywordMarkerTokenFilter: coreHttp.CompositeMapper = { } }; -export const LengthTokenFilter: coreHttp.CompositeMapper = { +export const LengthTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.LengthTokenFilter", type: { name: "Composite", @@ -4340,6 +4500,7 @@ export const LengthTokenFilter: coreHttp.CompositeMapper = { modelProperties: { ...TokenFilter.type.modelProperties, minLength: { + defaultValue: 0, constraints: { InclusiveMaximum: 300 }, @@ -4362,7 +4523,7 @@ export const LengthTokenFilter: coreHttp.CompositeMapper = { } }; -export const LimitTokenFilter: coreHttp.CompositeMapper = { +export const LimitTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.LimitTokenFilter", type: { name: "Composite", @@ -4379,6 +4540,7 @@ export const LimitTokenFilter: coreHttp.CompositeMapper = { } }, consumeAllTokens: { + defaultValue: false, serializedName: "consumeAllTokens", type: { name: "Boolean" @@ -4388,7 +4550,7 @@ export const LimitTokenFilter: coreHttp.CompositeMapper = { } }; -export const NGramTokenFilter: coreHttp.CompositeMapper = { +export const NGramTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.NGramTokenFilter", type: { name: "Composite", @@ -4415,7 +4577,7 @@ export const NGramTokenFilter: coreHttp.CompositeMapper = { } }; -export const NGramTokenFilterV2: coreHttp.CompositeMapper = { +export const NGramTokenFilterV2: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.NGramTokenFilterV2", type: { name: "Composite", @@ -4448,7 +4610,7 @@ export const NGramTokenFilterV2: coreHttp.CompositeMapper = { } }; -export const PatternCaptureTokenFilter: coreHttp.CompositeMapper = { +export const PatternCaptureTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PatternCaptureTokenFilter", type: { name: "Composite", @@ -4480,7 +4642,7 @@ export const PatternCaptureTokenFilter: coreHttp.CompositeMapper = { } }; -export const PatternReplaceTokenFilter: coreHttp.CompositeMapper = { +export const PatternReplaceTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PatternReplaceTokenFilter", type: { name: "Composite", @@ -4507,7 +4669,7 @@ export const PatternReplaceTokenFilter: coreHttp.CompositeMapper = { } }; -export const PhoneticTokenFilter: coreHttp.CompositeMapper = { +export const PhoneticTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PhoneticTokenFilter", type: { name: "Composite", @@ -4546,7 +4708,7 @@ export const PhoneticTokenFilter: coreHttp.CompositeMapper = { } }; -export const ShingleTokenFilter: coreHttp.CompositeMapper = { +export const ShingleTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.ShingleTokenFilter", type: { name: "Composite", @@ -4583,6 +4745,7 @@ export const ShingleTokenFilter: coreHttp.CompositeMapper = { } }, outputUnigramsIfNoShingles: { + defaultValue: false, serializedName: "outputUnigramsIfNoShingles", type: { name: "Boolean" @@ -4606,7 +4769,7 @@ export const ShingleTokenFilter: coreHttp.CompositeMapper = { } }; -export const SnowballTokenFilter: coreHttp.CompositeMapper = { +export const SnowballTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SnowballTokenFilter", type: { name: "Composite", @@ -4650,7 +4813,7 @@ export const SnowballTokenFilter: coreHttp.CompositeMapper = { } }; -export const StemmerTokenFilter: coreHttp.CompositeMapper = { +export const StemmerTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StemmerTokenFilter", type: { name: "Composite", @@ -4726,7 +4889,7 @@ export const StemmerTokenFilter: coreHttp.CompositeMapper = { } }; -export const StemmerOverrideTokenFilter: coreHttp.CompositeMapper = { +export const StemmerOverrideTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StemmerOverrideTokenFilter", type: { name: "Composite", @@ -4751,7 +4914,7 @@ export const StemmerOverrideTokenFilter: coreHttp.CompositeMapper = { } }; -export const StopwordsTokenFilter: coreHttp.CompositeMapper = { +export const StopwordsTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.StopwordsTokenFilter", type: { name: "Composite", @@ -4811,6 +4974,7 @@ export const StopwordsTokenFilter: coreHttp.CompositeMapper = { } }, ignoreCase: { + defaultValue: false, serializedName: "ignoreCase", type: { name: "Boolean" @@ -4827,7 +4991,7 @@ export const StopwordsTokenFilter: coreHttp.CompositeMapper = { } }; -export const SynonymTokenFilter: coreHttp.CompositeMapper = { +export const SynonymTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.SynonymTokenFilter", type: { name: "Composite", @@ -4849,6 +5013,7 @@ export const SynonymTokenFilter: coreHttp.CompositeMapper = { } }, ignoreCase: { + defaultValue: false, serializedName: "ignoreCase", type: { name: "Boolean" @@ -4865,7 +5030,7 @@ export const SynonymTokenFilter: coreHttp.CompositeMapper = { } }; -export const TruncateTokenFilter: coreHttp.CompositeMapper = { +export const TruncateTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.TruncateTokenFilter", type: { name: "Composite", @@ -4888,7 +5053,7 @@ export const TruncateTokenFilter: coreHttp.CompositeMapper = { } }; -export const UniqueTokenFilter: coreHttp.CompositeMapper = { +export const UniqueTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.UniqueTokenFilter", type: { name: "Composite", @@ -4898,6 +5063,7 @@ export const UniqueTokenFilter: coreHttp.CompositeMapper = { modelProperties: { ...TokenFilter.type.modelProperties, onlyOnSamePosition: { + defaultValue: false, serializedName: "onlyOnSamePosition", type: { name: "Boolean" @@ -4907,7 +5073,7 @@ export const UniqueTokenFilter: coreHttp.CompositeMapper = { } }; -export const WordDelimiterTokenFilter: coreHttp.CompositeMapper = { +export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.WordDelimiterTokenFilter", type: { name: "Composite", @@ -4931,18 +5097,21 @@ export const WordDelimiterTokenFilter: coreHttp.CompositeMapper = { } }, catenateWords: { + defaultValue: false, serializedName: "catenateWords", type: { name: "Boolean" } }, catenateNumbers: { + defaultValue: false, serializedName: "catenateNumbers", type: { name: "Boolean" } }, catenateAll: { + defaultValue: false, serializedName: "catenateAll", type: { name: "Boolean" @@ -4956,6 +5125,7 @@ export const WordDelimiterTokenFilter: coreHttp.CompositeMapper = { } }, preserveOriginal: { + defaultValue: false, serializedName: "preserveOriginal", type: { name: "Boolean" @@ -4990,7 +5160,7 @@ export const WordDelimiterTokenFilter: coreHttp.CompositeMapper = { } }; -export const MappingCharFilter: coreHttp.CompositeMapper = { +export const MappingCharFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.MappingCharFilter", type: { name: "Composite", @@ -5015,7 +5185,7 @@ export const MappingCharFilter: coreHttp.CompositeMapper = { } }; -export const PatternReplaceCharFilter: coreHttp.CompositeMapper = { +export const PatternReplaceCharFilter: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.PatternReplaceCharFilter", type: { name: "Composite", @@ -5042,7 +5212,7 @@ export const PatternReplaceCharFilter: coreHttp.CompositeMapper = { } }; -export const CustomNormalizer: coreHttp.CompositeMapper = { +export const CustomNormalizer: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.CustomNormalizer", type: { name: "Composite", @@ -5077,7 +5247,7 @@ export const CustomNormalizer: coreHttp.CompositeMapper = { } }; -export const ClassicSimilarity: coreHttp.CompositeMapper = { +export const ClassicSimilarity: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.ClassicSimilarity", type: { name: "Composite", @@ -5090,7 +5260,7 @@ export const ClassicSimilarity: coreHttp.CompositeMapper = { } }; -export const BM25Similarity: coreHttp.CompositeMapper = { +export const BM25Similarity: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.BM25Similarity", type: { name: "Composite", @@ -5117,7 +5287,7 @@ export const BM25Similarity: coreHttp.CompositeMapper = { } }; -export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreObjectProjectionSelector", @@ -5127,7 +5297,7 @@ export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreHttp.Compo } }; -export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreHttp.CompositeMapper = { +export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreClient.CompositeMapper = { type: { name: "Composite", className: "SearchIndexerKnowledgeStoreFileProjectionSelector", diff --git a/sdk/search/search-documents/src/generated/service/models/parameters.ts b/sdk/search/search-documents/src/generated/service/models/parameters.ts index a5cb5570dfe4..48dccbf93a59 100644 --- a/sdk/search/search-documents/src/generated/service/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/service/models/parameters.ts @@ -10,11 +10,13 @@ import { OperationParameter, OperationURLParameter, OperationQueryParameter -} from "@azure/core-http"; +} from "@azure/core-client"; import { SearchIndexerDataSource as SearchIndexerDataSourceMapper, + DocumentKeysOrIds as DocumentKeysOrIdsMapper, SearchIndexer as SearchIndexerMapper, SearchIndexerSkillset as SearchIndexerSkillsetMapper, + SkillNames as SkillNamesMapper, SynonymMap as SynonymMapMapper, SearchIndex as SearchIndexMapper, AnalyzeRequest as AnalyzeRequestMapper @@ -125,8 +127,8 @@ export const apiVersion: OperationQueryParameter = { } }; -export const ignoreResetRequirements: OperationQueryParameter = { - parameterPath: ["options", "ignoreResetRequirements"], +export const skipIndexerResetRequirementForCache: OperationQueryParameter = { + parameterPath: ["options", "skipIndexerResetRequirementForCache"], mapper: { serializedName: "ignoreResetRequirements", type: { @@ -156,6 +158,22 @@ export const indexerName: OperationURLParameter = { } }; +export const keysOrIds: OperationParameter = { + parameterPath: ["options", "keysOrIds"], + mapper: DocumentKeysOrIdsMapper +}; + +export const overwrite: OperationQueryParameter = { + parameterPath: ["options", "overwrite"], + mapper: { + defaultValue: false, + serializedName: "overwrite", + type: { + name: "Boolean" + } + } +}; + export const indexer: OperationParameter = { parameterPath: "indexer", mapper: SearchIndexerMapper @@ -187,6 +205,11 @@ export const skillsetName: OperationURLParameter = { } }; +export const skillNames: OperationParameter = { + parameterPath: "skillNames", + mapper: SkillNamesMapper +}; + export const synonymMap: OperationParameter = { parameterPath: "synonymMap", mapper: SynonymMapMapper diff --git a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts index aee39fc7e481..ee28283bd162 100644 --- a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts @@ -7,7 +7,7 @@ */ import { DataSources } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchServiceClientContext } from "../searchServiceClientContext"; @@ -24,7 +24,7 @@ import { DataSourcesCreateResponse } from "../models"; -/** Class representing a DataSources. */ +/** Class containing DataSources operations. */ export class DataSourcesImpl implements DataSources { private readonly client: SearchServiceClientContext; @@ -47,15 +47,10 @@ export class DataSourcesImpl implements DataSources { dataSource: SearchIndexerDataSource, options?: DataSourcesCreateOrUpdateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - dataSourceName, - dataSource, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { dataSourceName, dataSource, options }, createOrUpdateOperationSpec - ) as Promise; + ); } /** @@ -66,15 +61,11 @@ export class DataSourcesImpl implements DataSources { delete( dataSourceName: string, options?: DataSourcesDeleteOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - dataSourceName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { dataSourceName, options }, deleteOperationSpec - ) as Promise; + ); } /** @@ -86,14 +77,10 @@ export class DataSourcesImpl implements DataSources { dataSourceName: string, options?: DataSourcesGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - dataSourceName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { dataSourceName, options }, getOperationSpec - ) as Promise; + ); } /** @@ -103,13 +90,7 @@ export class DataSourcesImpl implements DataSources { list( options?: DataSourcesListOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - listOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** @@ -121,20 +102,16 @@ export class DataSourcesImpl implements DataSources { dataSource: SearchIndexerDataSource, options?: DataSourcesCreateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - dataSource, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { dataSource, options }, createOperationSpec - ) as Promise; + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreHttp.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", httpMethod: "PUT", responses: { @@ -149,7 +126,10 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { } }, requestBody: Parameters.dataSource, - queryParameters: [Parameters.apiVersion, Parameters.ignoreResetRequirements], + queryParameters: [ + Parameters.apiVersion, + Parameters.skipIndexerResetRequirementForCache + ], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [ Parameters.contentType, @@ -162,7 +142,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const deleteOperationSpec: coreHttp.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", httpMethod: "DELETE", responses: { @@ -182,7 +162,7 @@ const deleteOperationSpec: coreHttp.OperationSpec = { ], serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", httpMethod: "GET", responses: { @@ -198,7 +178,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const listOperationSpec: coreHttp.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "GET", responses: { @@ -214,7 +194,7 @@ const listOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOperationSpec: coreHttp.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "POST", responses: { diff --git a/sdk/search/search-documents/src/generated/service/operations/indexers.ts b/sdk/search/search-documents/src/generated/service/operations/indexers.ts index 9416abb0617f..e19ff372b520 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexers.ts @@ -7,12 +7,13 @@ */ import { Indexers } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchServiceClientContext } from "../searchServiceClientContext"; import { IndexersResetOptionalParams, + IndexersResetDocsOptionalParams, IndexersRunOptionalParams, SearchIndexer, IndexersCreateOrUpdateOptionalParams, @@ -28,7 +29,7 @@ import { IndexersGetStatusResponse } from "../models"; -/** Class representing a Indexers. */ +/** Class containing Indexers operations. */ export class IndexersImpl implements Indexers { private readonly client: SearchServiceClientContext; @@ -48,15 +49,26 @@ export class IndexersImpl implements Indexers { reset( indexerName: string, options?: IndexersResetOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { indexerName, options }, resetOperationSpec - ) as Promise; + ); + } + + /** + * Resets specific documents in the datasource to be selectively re-ingested by the indexer. + * @param indexerName The name of the indexer to reset documents for. + * @param options The options parameters. + */ + resetDocs( + indexerName: string, + options?: IndexersResetDocsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { indexerName, options }, + resetDocsOperationSpec + ); } /** @@ -64,18 +76,11 @@ export class IndexersImpl implements Indexers { * @param indexerName The name of the indexer to run. * @param options The options parameters. */ - run( - indexerName: string, - options?: IndexersRunOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + run(indexerName: string, options?: IndexersRunOptionalParams): Promise { return this.client.sendOperationRequest( - operationArguments, + { indexerName, options }, runOperationSpec - ) as Promise; + ); } /** @@ -89,15 +94,10 @@ export class IndexersImpl implements Indexers { indexer: SearchIndexer, options?: IndexersCreateOrUpdateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - indexer, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexerName, indexer, options }, createOrUpdateOperationSpec - ) as Promise; + ); } /** @@ -108,15 +108,11 @@ export class IndexersImpl implements Indexers { delete( indexerName: string, options?: IndexersDeleteOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { indexerName, options }, deleteOperationSpec - ) as Promise; + ); } /** @@ -128,14 +124,10 @@ export class IndexersImpl implements Indexers { indexerName: string, options?: IndexersGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexerName, options }, getOperationSpec - ) as Promise; + ); } /** @@ -143,13 +135,7 @@ export class IndexersImpl implements Indexers { * @param options The options parameters. */ list(options?: IndexersListOptionalParams): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - listOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** @@ -161,14 +147,10 @@ export class IndexersImpl implements Indexers { indexer: SearchIndexer, options?: IndexersCreateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexer, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexer, options }, createOperationSpec - ) as Promise; + ); } /** @@ -180,20 +162,16 @@ export class IndexersImpl implements Indexers { indexerName: string, options?: IndexersGetStatusOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexerName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexerName, options }, getStatusOperationSpec - ) as Promise; + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const resetOperationSpec: coreHttp.OperationSpec = { +const resetOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.reset", httpMethod: "POST", responses: { @@ -207,7 +185,27 @@ const resetOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const runOperationSpec: coreHttp.OperationSpec = { +const resetDocsOperationSpec: coreClient.OperationSpec = { + path: "/indexers('{indexerName}')/search.resetdocs", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.SearchError + } + }, + requestBody: Parameters.keysOrIds, + queryParameters: [Parameters.apiVersion, Parameters.overwrite], + urlParameters: [Parameters.endpoint, Parameters.indexerName], + headerParameters: [ + Parameters.contentType, + Parameters.accept, + Parameters.xMsClientRequestId + ], + mediaType: "json", + serializer +}; +const runOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.run", httpMethod: "POST", responses: { @@ -221,7 +219,7 @@ const runOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOrUpdateOperationSpec: coreHttp.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "PUT", responses: { @@ -238,7 +236,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { requestBody: Parameters.indexer, queryParameters: [ Parameters.apiVersion, - Parameters.ignoreResetRequirements, + Parameters.skipIndexerResetRequirementForCache, Parameters.disableCacheReprocessingChangeDetection ], urlParameters: [Parameters.endpoint, Parameters.indexerName], @@ -253,7 +251,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const deleteOperationSpec: coreHttp.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "DELETE", responses: { @@ -273,7 +271,7 @@ const deleteOperationSpec: coreHttp.OperationSpec = { ], serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "GET", responses: { @@ -289,7 +287,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const listOperationSpec: coreHttp.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "GET", responses: { @@ -305,7 +303,7 @@ const listOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOperationSpec: coreHttp.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "POST", responses: { @@ -327,7 +325,7 @@ const createOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const getStatusOperationSpec: coreHttp.OperationSpec = { +const getStatusOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.status", httpMethod: "GET", responses: { diff --git a/sdk/search/search-documents/src/generated/service/operations/indexes.ts b/sdk/search/search-documents/src/generated/service/operations/indexes.ts index 14089e714a56..38529949e88c 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexes.ts @@ -7,7 +7,7 @@ */ import { Indexes } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchServiceClientContext } from "../searchServiceClientContext"; @@ -29,7 +29,7 @@ import { IndexesAnalyzeResponse } from "../models"; -/** Class representing a Indexes. */ +/** Class containing Indexes operations. */ export class IndexesImpl implements Indexes { private readonly client: SearchServiceClientContext; @@ -50,14 +50,10 @@ export class IndexesImpl implements Indexes { index: SearchIndex, options?: IndexesCreateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - index, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { index, options }, createOperationSpec - ) as Promise; + ); } /** @@ -65,13 +61,7 @@ export class IndexesImpl implements Indexes { * @param options The options parameters. */ list(options?: IndexesListOptionalParams): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - listOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** @@ -85,15 +75,10 @@ export class IndexesImpl implements Indexes { index: SearchIndex, options?: IndexesCreateOrUpdateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexName, - index, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexName, index, options }, createOrUpdateOperationSpec - ) as Promise; + ); } /** @@ -106,15 +91,11 @@ export class IndexesImpl implements Indexes { delete( indexName: string, options?: IndexesDeleteOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { indexName, options }, deleteOperationSpec - ) as Promise; + ); } /** @@ -126,14 +107,10 @@ export class IndexesImpl implements Indexes { indexName: string, options?: IndexesGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexName, options }, getOperationSpec - ) as Promise; + ); } /** @@ -145,14 +122,10 @@ export class IndexesImpl implements Indexes { indexName: string, options?: IndexesGetStatisticsOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexName, options }, getStatisticsOperationSpec - ) as Promise; + ); } /** @@ -166,21 +139,16 @@ export class IndexesImpl implements Indexes { request: AnalyzeRequest, options?: IndexesAnalyzeOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - indexName, - request, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { indexName, request, options }, analyzeOperationSpec - ) as Promise; + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOperationSpec: coreHttp.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: "/indexes", httpMethod: "POST", responses: { @@ -202,7 +170,7 @@ const createOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const listOperationSpec: coreHttp.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: "/indexes", httpMethod: "GET", responses: { @@ -218,7 +186,7 @@ const listOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOrUpdateOperationSpec: coreHttp.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "PUT", responses: { @@ -246,7 +214,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const deleteOperationSpec: coreHttp.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "DELETE", responses: { @@ -266,7 +234,7 @@ const deleteOperationSpec: coreHttp.OperationSpec = { ], serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "GET", responses: { @@ -282,7 +250,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const getStatisticsOperationSpec: coreHttp.OperationSpec = { +const getStatisticsOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.stats", httpMethod: "GET", responses: { @@ -298,7 +266,7 @@ const getStatisticsOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const analyzeOperationSpec: coreHttp.OperationSpec = { +const analyzeOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.analyze", httpMethod: "POST", responses: { diff --git a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts index 8b6950cf4b26..858206dec3a8 100644 --- a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts @@ -7,7 +7,7 @@ */ import { Skillsets } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchServiceClientContext } from "../searchServiceClientContext"; @@ -21,10 +21,12 @@ import { SkillsetsListOptionalParams, SkillsetsListResponse, SkillsetsCreateOptionalParams, - SkillsetsCreateResponse + SkillsetsCreateResponse, + SkillNames, + SkillsetsResetSkillsOptionalParams } from "../models"; -/** Class representing a Skillsets. */ +/** Class containing Skillsets operations. */ export class SkillsetsImpl implements Skillsets { private readonly client: SearchServiceClientContext; @@ -47,15 +49,10 @@ export class SkillsetsImpl implements Skillsets { skillset: SearchIndexerSkillset, options?: SkillsetsCreateOrUpdateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - skillsetName, - skillset, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { skillsetName, skillset, options }, createOrUpdateOperationSpec - ) as Promise; + ); } /** @@ -66,15 +63,11 @@ export class SkillsetsImpl implements Skillsets { delete( skillsetName: string, options?: SkillsetsDeleteOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - skillsetName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { skillsetName, options }, deleteOperationSpec - ) as Promise; + ); } /** @@ -86,14 +79,10 @@ export class SkillsetsImpl implements Skillsets { skillsetName: string, options?: SkillsetsGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - skillsetName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { skillsetName, options }, getOperationSpec - ) as Promise; + ); } /** @@ -101,13 +90,7 @@ export class SkillsetsImpl implements Skillsets { * @param options The options parameters. */ list(options?: SkillsetsListOptionalParams): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - listOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** @@ -119,20 +102,33 @@ export class SkillsetsImpl implements Skillsets { skillset: SearchIndexerSkillset, options?: SkillsetsCreateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - skillset, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { skillset, options }, createOperationSpec - ) as Promise; + ); + } + + /** + * Reset an existing skillset in a search service. + * @param skillsetName The name of the skillset to reset. + * @param skillNames The names of skills to reset. + * @param options The options parameters. + */ + resetSkills( + skillsetName: string, + skillNames: SkillNames, + options?: SkillsetsResetSkillsOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { skillsetName, skillNames, options }, + resetSkillsOperationSpec + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreHttp.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", httpMethod: "PUT", responses: { @@ -149,7 +145,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { requestBody: Parameters.skillset, queryParameters: [ Parameters.apiVersion, - Parameters.ignoreResetRequirements, + Parameters.skipIndexerResetRequirementForCache, Parameters.disableCacheReprocessingChangeDetection ], urlParameters: [Parameters.endpoint, Parameters.skillsetName], @@ -164,7 +160,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const deleteOperationSpec: coreHttp.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", httpMethod: "DELETE", responses: { @@ -184,7 +180,7 @@ const deleteOperationSpec: coreHttp.OperationSpec = { ], serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", httpMethod: "GET", responses: { @@ -200,7 +196,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const listOperationSpec: coreHttp.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "GET", responses: { @@ -216,7 +212,7 @@ const listOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOperationSpec: coreHttp.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "POST", responses: { @@ -238,3 +234,23 @@ const createOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; +const resetSkillsOperationSpec: coreClient.OperationSpec = { + path: "/skillsets('{skillsetName}')/search.resetskills", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.SearchError + } + }, + requestBody: Parameters.skillNames, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.skillsetName], + headerParameters: [ + Parameters.contentType, + Parameters.accept, + Parameters.xMsClientRequestId + ], + mediaType: "json", + serializer +}; diff --git a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts index c4fdd545244f..89ab57f85d3a 100644 --- a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts @@ -7,7 +7,7 @@ */ import { SynonymMaps } from "../operationsInterfaces"; -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SearchServiceClientContext } from "../searchServiceClientContext"; @@ -24,7 +24,7 @@ import { SynonymMapsCreateResponse } from "../models"; -/** Class representing a SynonymMaps. */ +/** Class containing SynonymMaps operations. */ export class SynonymMapsImpl implements SynonymMaps { private readonly client: SearchServiceClientContext; @@ -47,15 +47,10 @@ export class SynonymMapsImpl implements SynonymMaps { synonymMap: SynonymMap, options?: SynonymMapsCreateOrUpdateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - synonymMapName, - synonymMap, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { synonymMapName, synonymMap, options }, createOrUpdateOperationSpec - ) as Promise; + ); } /** @@ -66,15 +61,11 @@ export class SynonymMapsImpl implements SynonymMaps { delete( synonymMapName: string, options?: SynonymMapsDeleteOptionalParams - ): Promise { - const operationArguments: coreHttp.OperationArguments = { - synonymMapName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; + ): Promise { return this.client.sendOperationRequest( - operationArguments, + { synonymMapName, options }, deleteOperationSpec - ) as Promise; + ); } /** @@ -86,14 +77,10 @@ export class SynonymMapsImpl implements SynonymMaps { synonymMapName: string, options?: SynonymMapsGetOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - synonymMapName, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { synonymMapName, options }, getOperationSpec - ) as Promise; + ); } /** @@ -103,13 +90,7 @@ export class SynonymMapsImpl implements SynonymMaps { list( options?: SynonymMapsListOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; - return this.client.sendOperationRequest( - operationArguments, - listOperationSpec - ) as Promise; + return this.client.sendOperationRequest({ options }, listOperationSpec); } /** @@ -121,20 +102,16 @@ export class SynonymMapsImpl implements SynonymMaps { synonymMap: SynonymMap, options?: SynonymMapsCreateOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - synonymMap, - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.client.sendOperationRequest( - operationArguments, + { synonymMap, options }, createOperationSpec - ) as Promise; + ); } } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const createOrUpdateOperationSpec: coreHttp.OperationSpec = { +const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", httpMethod: "PUT", responses: { @@ -162,7 +139,7 @@ const createOrUpdateOperationSpec: coreHttp.OperationSpec = { mediaType: "json", serializer }; -const deleteOperationSpec: coreHttp.OperationSpec = { +const deleteOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", httpMethod: "DELETE", responses: { @@ -182,7 +159,7 @@ const deleteOperationSpec: coreHttp.OperationSpec = { ], serializer }; -const getOperationSpec: coreHttp.OperationSpec = { +const getOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", httpMethod: "GET", responses: { @@ -198,7 +175,7 @@ const getOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const listOperationSpec: coreHttp.OperationSpec = { +const listOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "GET", responses: { @@ -214,7 +191,7 @@ const listOperationSpec: coreHttp.OperationSpec = { headerParameters: [Parameters.accept, Parameters.xMsClientRequestId], serializer }; -const createOperationSpec: coreHttp.OperationSpec = { +const createOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "POST", responses: { diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts index 2933e9d85608..89c09ec35f54 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; import { SearchIndexerDataSource, DataSourcesCreateOrUpdateOptionalParams, @@ -41,7 +40,7 @@ export interface DataSources { delete( dataSourceName: string, options?: DataSourcesDeleteOptionalParams - ): Promise; + ): Promise; /** * Retrieves a datasource definition. * @param dataSourceName The name of the datasource to retrieve. diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts index a90deec5b3e9..146e9f669225 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts @@ -6,9 +6,9 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; import { IndexersResetOptionalParams, + IndexersResetDocsOptionalParams, IndexersRunOptionalParams, SearchIndexer, IndexersCreateOrUpdateOptionalParams, @@ -34,16 +34,22 @@ export interface Indexers { reset( indexerName: string, options?: IndexersResetOptionalParams - ): Promise; + ): Promise; + /** + * Resets specific documents in the datasource to be selectively re-ingested by the indexer. + * @param indexerName The name of the indexer to reset documents for. + * @param options The options parameters. + */ + resetDocs( + indexerName: string, + options?: IndexersResetDocsOptionalParams + ): Promise; /** * Runs an indexer on-demand. * @param indexerName The name of the indexer to run. * @param options The options parameters. */ - run( - indexerName: string, - options?: IndexersRunOptionalParams - ): Promise; + run(indexerName: string, options?: IndexersRunOptionalParams): Promise; /** * Creates a new indexer or updates an indexer if it already exists. * @param indexerName The name of the indexer to create or update. @@ -63,7 +69,7 @@ export interface Indexers { delete( indexerName: string, options?: IndexersDeleteOptionalParams - ): Promise; + ): Promise; /** * Retrieves an indexer definition. * @param indexerName The name of the indexer to retrieve. diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts index 294c95abd4f2..3c1135daeb43 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; import { SearchIndex, IndexesCreateOptionalParams, @@ -62,7 +61,7 @@ export interface Indexes { delete( indexName: string, options?: IndexesDeleteOptionalParams - ): Promise; + ): Promise; /** * Retrieves an index definition. * @param indexName The name of the index to retrieve. diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts index 6001e30313dc..70f61999d669 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; import { SearchIndexerSkillset, SkillsetsCreateOrUpdateOptionalParams, @@ -17,7 +16,9 @@ import { SkillsetsListOptionalParams, SkillsetsListResponse, SkillsetsCreateOptionalParams, - SkillsetsCreateResponse + SkillsetsCreateResponse, + SkillNames, + SkillsetsResetSkillsOptionalParams } from "../models"; /** Interface representing a Skillsets. */ @@ -41,7 +42,7 @@ export interface Skillsets { delete( skillsetName: string, options?: SkillsetsDeleteOptionalParams - ): Promise; + ): Promise; /** * Retrieves a skillset in a search service. * @param skillsetName The name of the skillset to retrieve. @@ -65,4 +66,15 @@ export interface Skillsets { skillset: SearchIndexerSkillset, options?: SkillsetsCreateOptionalParams ): Promise; + /** + * Reset an existing skillset in a search service. + * @param skillsetName The name of the skillset to reset. + * @param skillNames The names of skills to reset. + * @param options The options parameters. + */ + resetSkills( + skillsetName: string, + skillNames: SkillNames, + options?: SkillsetsResetSkillsOptionalParams + ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts index 3e21a36de746..b9000aafb98b 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts @@ -6,7 +6,6 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; import { SynonymMap, SynonymMapsCreateOrUpdateOptionalParams, @@ -41,7 +40,7 @@ export interface SynonymMaps { delete( synonymMapName: string, options?: SynonymMapsDeleteOptionalParams - ): Promise; + ): Promise; /** * Retrieves a synonym map definition. * @param synonymMapName The name of the synonym map to retrieve. diff --git a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts index 8cfe1008db79..5ce44d36c0d2 100644 --- a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts +++ b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import { DataSourcesImpl, IndexersImpl, @@ -59,13 +59,10 @@ export class SearchServiceClient extends SearchServiceClientContext { getServiceStatistics( options?: SearchServiceClientGetServiceStatisticsOptionalParams ): Promise { - const operationArguments: coreHttp.OperationArguments = { - options: coreHttp.operationOptionsToRequestOptionsBase(options || {}) - }; return this.sendOperationRequest( - operationArguments, + { options }, getServiceStatisticsOperationSpec - ) as Promise; + ); } dataSources: DataSources; @@ -75,9 +72,9 @@ export class SearchServiceClient extends SearchServiceClientContext { indexes: Indexes; } // Operation Specifications -const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false); +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const getServiceStatisticsOperationSpec: coreHttp.OperationSpec = { +const getServiceStatisticsOperationSpec: coreClient.OperationSpec = { path: "/servicestats", httpMethod: "GET", responses: { diff --git a/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts b/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts index 3dbcf07a82ac..672c62ff4d29 100644 --- a/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts +++ b/sdk/search/search-documents/src/generated/service/searchServiceClientContext.ts @@ -6,17 +6,14 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as coreHttp from "@azure/core-http"; +import * as coreClient from "@azure/core-client"; import { ApiVersion20210430Preview, SearchServiceClientOptionalParams } from "./models"; -const packageName = "@azure/search-documents"; -const packageVersion = "11.3.0-beta.3"; - /** @internal */ -export class SearchServiceClientContext extends coreHttp.ServiceClient { +export class SearchServiceClientContext extends coreClient.ServiceClient { endpoint: string; apiVersion: ApiVersion20210430Preview; @@ -42,21 +39,25 @@ export class SearchServiceClientContext extends coreHttp.ServiceClient { if (!options) { options = {}; } + const defaults: SearchServiceClientOptionalParams = { + requestContentType: "application/json; charset=utf-8" + }; - const defaultUserAgent = `azsdk-js-${packageName.replace( - "@azure/", - "" - )}/${packageVersion} ${coreHttp.getDefaultUserAgentValue()}`; + const packageDetails = `azsdk-js-search-documents/11.3.0-beta.4`; + const userAgentPrefix = + options.userAgentOptions && options.userAgentOptions.userAgentPrefix + ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` + : `${packageDetails}`; - super(undefined, { + const optionsWithDefaults = { + ...defaults, ...options, - userAgent: options.userAgent - ? `${options.userAgent} ${defaultUserAgent}` - : `${defaultUserAgent}` - }); - - this.requestContentType = "application/json; charset=utf-8"; - this.baseUri = options.endpoint || "{endpoint}"; + userAgentOptions: { + userAgentPrefix + }, + baseUri: options.endpoint || "{endpoint}" + }; + super(optionsWithDefaults); // Parameter assignments this.endpoint = endpoint; this.apiVersion = apiVersion; diff --git a/sdk/search/search-documents/src/index.ts b/sdk/search/search-documents/src/index.ts index eec2ecb62090..4cbce96d442b 100644 --- a/sdk/search/search-documents/src/index.ts +++ b/sdk/search/search-documents/src/index.ts @@ -112,7 +112,9 @@ export { SearchServiceStatistics, SearchIndexer, LexicalNormalizer, - SearchIndexerDataIdentity + SearchIndexerDataIdentity, + ResetDocsOptions, + ResetSkillsOptions } from "./serviceModels"; export { default as GeographyPoint } from "./geographyPoint"; export { odata } from "./odata"; @@ -136,7 +138,13 @@ export { KnownSpeller, CaptionResult, AnswerResult, - Captions + Captions, + QueryAnswerType, + QueryCaptionType, + QuerySpellerType, + KnownQuerySpellerType, + KnownQueryAnswerType, + KnownQueryCaptionType } from "./generated/data/models"; export { RegexFlags, @@ -312,7 +320,12 @@ export { LineEnding, KnownLineEnding, SearchIndexerDataIdentity as BaseSearchIndexerDataIdentity, - SearchIndexerCache + SearchIndexerCache, + IndexerCurrentState, + IndexerExecutionStatusDetail, + KnownIndexerExecutionStatusDetail, + IndexingMode, + KnownIndexingMode } from "./generated/service/models"; export { AzureKeyCredential } from "@azure/core-auth"; export { createSynonymMapFromFile } from "./synonymMapHelper"; diff --git a/sdk/search/search-documents/src/indexModels.ts b/sdk/search/search-documents/src/indexModels.ts index 4754ec60490b..26fd0426d111 100644 --- a/sdk/search/search-documents/src/indexModels.ts +++ b/sdk/search/search-documents/src/indexModels.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { OperationOptions } from "@azure/core-http"; +import { OperationOptions } from "@azure/core-client"; import { QueryType, SearchMode, @@ -14,7 +14,10 @@ import { Answers, CaptionResult, AnswerResult, - Captions + Captions, + QuerySpellerType, + QueryAnswerType, + QueryCaptionType } from "./generated/data/models"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; @@ -267,11 +270,11 @@ export interface SearchRequest { * A value that specified the type of the speller to use to spell-correct individual search * query terms. */ - speller?: Speller; + speller?: QuerySpellerType; /** * A value that specifies whether answers should be returned as part of the search response. */ - answers?: Answers; + answers?: QueryAnswerType; /** * The comma-separated list of fields to retrieve. If unspecified, all fields marked as * retrievable in the schema are included. @@ -293,7 +296,7 @@ export interface SearchRequest { /** * A value that specifies whether captions should be returned as part of the search response. */ - captions?: Captions; + captions?: QueryCaptionType; /** * The comma-separated list of field names used for semantic search. */ diff --git a/sdk/search/search-documents/src/odataMetadataPolicy.ts b/sdk/search/search-documents/src/odataMetadataPolicy.ts index 091f00972422..9bad7ded9b5e 100644 --- a/sdk/search/search-documents/src/odataMetadataPolicy.ts +++ b/sdk/search/search-documents/src/odataMetadataPolicy.ts @@ -2,48 +2,27 @@ // Licensed under the MIT license. import { - RequestPolicy, - RequestPolicyOptions, - BaseRequestPolicy, - WebResourceLike, - HttpOperationResponse, - RequestPolicyFactory, - RequestPolicyOptionsLike -} from "@azure/core-http"; + PipelinePolicy, + PipelineRequest, + SendRequest, + PipelineResponse +} from "@azure/core-rest-pipeline"; const AcceptHeaderName = "Accept"; export type MetadataLevel = "none" | "minimal"; +const odataMetadataPolicy = "OdataMetadataPolicy"; /** * A policy factory for setting the Accept header to ignore odata metadata * @internal */ -export function odataMetadataPolicy(metadataLevel: MetadataLevel): RequestPolicyFactory { +export function createOdataMetadataPolicy(metadataLevel: MetadataLevel): PipelinePolicy { return { - create: (nextPolicy: RequestPolicy, options: RequestPolicyOptions) => { - return new OdataMetadataPolicy(nextPolicy, options, { metadataLevel }); + name: odataMetadataPolicy, + async sendRequest(request: PipelineRequest, next: SendRequest): Promise { + request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`); + return next(request); } }; } - -class OdataMetadataPolicy extends BaseRequestPolicy { - private metadataLevel: MetadataLevel; - - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptionsLike, - policyOptions: { metadataLevel: MetadataLevel } - ) { - super(nextPolicy, options); - this.metadataLevel = policyOptions.metadataLevel; - } - - public async sendRequest(webResource: WebResourceLike): Promise { - webResource.headers.set( - AcceptHeaderName, - `application/json;odata.metadata=${this.metadataLevel}` - ); - return this._nextPolicy.sendRequest(webResource); - } -} diff --git a/sdk/search/search-documents/src/searchApiKeyCredentialPolicy.ts b/sdk/search/search-documents/src/searchApiKeyCredentialPolicy.ts index 8cdde376f5e9..6e1ce419676b 100644 --- a/sdk/search/search-documents/src/searchApiKeyCredentialPolicy.ts +++ b/sdk/search/search-documents/src/searchApiKeyCredentialPolicy.ts @@ -3,52 +3,27 @@ import { KeyCredential } from "@azure/core-auth"; import { - RequestPolicyFactory, - RequestPolicy, - BaseRequestPolicy, - WebResourceLike, - HttpOperationResponse, - RequestPolicyOptionsLike -} from "@azure/core-http"; + PipelinePolicy, + PipelineRequest, + SendRequest, + PipelineResponse +} from "@azure/core-rest-pipeline"; const API_KEY_HEADER_NAME = "api-key"; +const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy"; /** * Create an HTTP pipeline policy to authenticate a request * using an `AzureKeyCredential` for Azure Cognitive Search */ -export function createSearchApiKeyCredentialPolicy( - credential: KeyCredential -): RequestPolicyFactory { +export function createSearchApiKeyCredentialPolicy(credential: KeyCredential): PipelinePolicy { return { - create: (nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike) => { - return new SearchApiKeyCredentialPolicy(nextPolicy, options, credential); + name: searchApiKeyCredentialPolicy, + async sendRequest(request: PipelineRequest, next: SendRequest): Promise { + if (!request.headers.has(API_KEY_HEADER_NAME)) { + request.headers.set(API_KEY_HEADER_NAME, credential.key); + } + return next(request); } }; } - -/** - * A concrete implementation of an AzureKeyCredential policy - * using the appropriate header for Azure Cognitive Search - */ -class SearchApiKeyCredentialPolicy extends BaseRequestPolicy { - private credential: KeyCredential; - - constructor( - nextPolicy: RequestPolicy, - options: RequestPolicyOptionsLike, - credential: KeyCredential - ) { - super(nextPolicy, options); - this.credential = credential; - } - - public async sendRequest(webResource: WebResourceLike): Promise { - if (!webResource) { - throw new Error("webResource cannot be null or undefined"); - } - - webResource.headers.set(API_KEY_HEADER_NAME, this.credential.key); - return this._nextPolicy.sendRequest(webResource); - } -} diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index b4dc290e1842..5772c77f5759 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -4,14 +4,11 @@ /// import { - PipelineOptions, - InternalPipelineOptions, - createPipelineFromOptions, - OperationOptions, - operationOptionsToRequestOptionsBase, - RequestPolicyFactory, - bearerTokenAuthenticationPolicy -} from "@azure/core-http"; + CommonClientOptions, + InternalClientPipelineOptions, + OperationOptions +} from "@azure/core-client"; +import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; import { SearchClient as GeneratedClient } from "./generated/data/searchClient"; import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; @@ -45,15 +42,16 @@ import { MergeOrUploadDocumentsOptions, SearchRequest } from "./indexModels"; -import { odataMetadataPolicy } from "./odataMetadataPolicy"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { IndexDocumentsBatch } from "./indexDocumentsBatch"; import { encode, decode } from "./base64"; import * as utils from "./serviceUtils"; import { IndexDocumentsClient } from "./searchIndexingBufferedSender"; + /** * Client options used to configure Cognitive Search API requests. */ -export interface SearchClientOptions extends PipelineOptions { +export interface SearchClientOptions extends CommonClientOptions { /** * The API version to use when communicating with the service. */ @@ -128,12 +126,12 @@ export class SearchClient implements IndexDocumentsClient { options.userAgentOptions.userAgentPrefix = libInfo; } - const internalPipelineOptions: InternalPipelineOptions = { + const internalClientPipelineOptions: InternalClientPipelineOptions = { ...options, ...{ loggingOptions: { logger: logger.info, - allowedHeaderNames: [ + additionalAllowedHeaderNames: [ "elapsed-time", "Location", "OData-MaxVersion", @@ -145,16 +143,6 @@ export class SearchClient implements IndexDocumentsClient { } }; - const requestPolicyFactory: RequestPolicyFactory = isTokenCredential(credential) - ? bearerTokenAuthenticationPolicy(credential, utils.DEFAULT_SEARCH_SCOPE) - : createSearchApiKeyCredentialPolicy(credential); - - const pipeline = createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory); - - if (Array.isArray(pipeline.requestPolicyFactories)) { - pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("none")); - } - let apiVersion = this.apiVersion; if (options.apiVersion) { @@ -164,7 +152,22 @@ export class SearchClient implements IndexDocumentsClient { apiVersion = options.apiVersion; } - this.client = new GeneratedClient(this.endpoint, this.indexName, apiVersion, pipeline); + this.client = new GeneratedClient( + this.endpoint, + this.indexName, + apiVersion, + internalClientPipelineOptions + ); + + if (isTokenCredential(credential)) { + this.client.pipeline.addPolicy( + bearerTokenAuthenticationPolicy({ credential, scopes: utils.DEFAULT_SEARCH_SCOPE }) + ); + } else { + this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); + } + + this.client.pipeline.addPolicy(createOdataMetadataPolicy("none")); } /** @@ -174,10 +177,15 @@ export class SearchClient implements IndexDocumentsClient { public async getDocumentsCount(options: CountDocumentsOptions = {}): Promise { const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options); try { - const result = await this.client.documents.count( - operationOptionsToRequestOptionsBase(updatedOptions) - ); - return Number(result._response.bodyAsText); + let documentsCount: number = 0; + await this.client.documents.count({ + ...updatedOptions, + onResponse: (response) => { + documentsCount = Number(response.bodyAsText); + } + }); + + return documentsCount; } catch (e) { span.setStatus({ code: SpanStatusCode.ERROR, @@ -221,10 +229,7 @@ export class SearchClient implements IndexDocumentsClient { const { span, updatedOptions } = createSpan("SearchClient-autocomplete", operationOptions); try { - const result = await this.client.documents.autocompletePost( - fullOptions, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.documents.autocompletePost(fullOptions, updatedOptions); return result; } catch (e) { span.setStatus({ @@ -262,7 +267,7 @@ export class SearchClient implements IndexDocumentsClient { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }, - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); const { results, count, coverage, facets, answers, nextLink } = result; @@ -421,10 +426,7 @@ export class SearchClient implements IndexDocumentsClient { const { span, updatedOptions } = createSpan("SearchClient-suggest", operationOptions); try { - const result = await this.client.documents.suggestPost( - fullOptions, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.documents.suggestPost(fullOptions, updatedOptions); const modifiedResult = utils.generatedSuggestDocumentsResultToPublicSuggestDocumentsResult( result @@ -447,17 +449,14 @@ export class SearchClient implements IndexDocumentsClient { * @param key - The primary key value of the document * @param options - Additional options */ - public async getDocument( + public async getDocument>( key: string, options: GetDocumentOptions = {} ): Promise { const { span, updatedOptions } = createSpan("SearchClient-getDocument", options); try { - const result = await this.client.documents.get( - key, - operationOptionsToRequestOptionsBase(updatedOptions) - ); - return deserialize(result.body); + const result = await this.client.documents.get(key, updatedOptions); + return deserialize(result); } catch (e) { span.setStatus({ code: SpanStatusCode.ERROR, @@ -486,11 +485,17 @@ export class SearchClient implements IndexDocumentsClient { ): Promise { const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options); try { + let status: number = 0; const result = await this.client.documents.index( { actions: serialize(batch.actions) }, - operationOptionsToRequestOptionsBase(updatedOptions) + { + ...updatedOptions, + onResponse: (response) => { + status = response.status; + } + } ); - if (options.throwOnAnyFailure && result._response.status === 207) { + if (options.throwOnAnyFailure && status === 207) { throw result; } return result; @@ -686,7 +691,7 @@ export class SearchClient implements IndexDocumentsClient { obj: T ): { operationOptions: OperationOptions; - restOptions: Pick>; + restOptions: any; } { const { abortSignal, requestOptions, tracingOptions, ...restOptions } = obj; diff --git a/sdk/search/search-documents/src/searchIndexClient.ts b/sdk/search/search-documents/src/searchIndexClient.ts index e447e769648e..a085f1eb9ed9 100644 --- a/sdk/search/search-documents/src/searchIndexClient.ts +++ b/sdk/search/search-documents/src/searchIndexClient.ts @@ -4,14 +4,8 @@ /// import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; -import { - createPipelineFromOptions, - InternalPipelineOptions, - operationOptionsToRequestOptionsBase, - PipelineOptions, - RequestPolicyFactory, - bearerTokenAuthenticationPolicy -} from "@azure/core-http"; +import { CommonClientOptions, InternalClientPipelineOptions } from "@azure/core-client"; +import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; import { SpanStatusCode } from "@azure/core-tracing"; import { SDK_VERSION } from "./constants"; import { AnalyzeResult } from "./generated/service/models"; @@ -41,13 +35,13 @@ import { } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { odataMetadataPolicy } from "./odataMetadataPolicy"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { SearchClient, SearchClientOptions as GetSearchClientOptions } from "./searchClient"; /** * Client options used to configure Cognitive Search API requests. */ -export interface SearchIndexClientOptions extends PipelineOptions { +export interface SearchIndexClientOptions extends CommonClientOptions { /** * The API version to use when communicating with the service. */ @@ -122,12 +116,12 @@ export class SearchIndexClient { options.userAgentOptions.userAgentPrefix = libInfo; } - const internalPipelineOptions: InternalPipelineOptions = { + const internalClientPipelineOptions: InternalClientPipelineOptions = { ...options, ...{ loggingOptions: { logger: logger.info, - allowedHeaderNames: [ + additionalAllowedHeaderNames: [ "elapsed-time", "Location", "OData-MaxVersion", @@ -139,16 +133,6 @@ export class SearchIndexClient { } }; - const requestPolicyFactory: RequestPolicyFactory = isTokenCredential(credential) - ? bearerTokenAuthenticationPolicy(credential, utils.DEFAULT_SEARCH_SCOPE) - : createSearchApiKeyCredentialPolicy(credential); - - const pipeline = createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory); - - if (Array.isArray(pipeline.requestPolicyFactories)) { - pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal")); - } - let apiVersion = this.apiVersion; if (options.apiVersion) { @@ -158,7 +142,17 @@ export class SearchIndexClient { apiVersion = options.apiVersion; } - this.client = new GeneratedClient(this.endpoint, apiVersion, pipeline); + this.client = new GeneratedClient(this.endpoint, apiVersion, internalClientPipelineOptions); + + if (isTokenCredential(credential)) { + this.client.pipeline.addPolicy( + bearerTokenAuthenticationPolicy({ credential, scopes: utils.DEFAULT_SEARCH_SCOPE }) + ); + } else { + this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); + } + + this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal")); } private async *listIndexesPage( @@ -166,9 +160,7 @@ export class SearchIndexClient { ): AsyncIterableIterator { const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options); try { - const result = await this.client.indexes.list( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexes.list(updatedOptions); const mapped = result.indexes.map(utils.generatedIndexToPublicIndex); yield mapped; } catch (e) { @@ -216,7 +208,7 @@ export class SearchIndexClient { const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options); try { const result = await this.client.indexes.list({ - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, select: "name" }); const mapped = result.indexes.map((idx) => idx.name); @@ -267,9 +259,7 @@ export class SearchIndexClient { public async listSynonymMaps(options: ListSynonymMapsOptions = {}): Promise> { const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMaps", options); try { - const result = await this.client.synonymMaps.list( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.synonymMaps.list(updatedOptions); return result.synonymMaps.map(utils.generatedSynonymMapToPublicSynonymMap); } catch (e) { span.setStatus({ @@ -290,7 +280,7 @@ export class SearchIndexClient { const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options); try { const result = await this.client.synonymMaps.list({ - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, select: "name" }); return result.synonymMaps.map((sm) => sm.name); @@ -313,10 +303,7 @@ export class SearchIndexClient { public async getIndex(indexName: string, options: GetIndexOptions = {}): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getIndex", options); try { - const result = await this.client.indexes.get( - indexName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexes.get(indexName, updatedOptions); return utils.generatedIndexToPublicIndex(result); } catch (e) { span.setStatus({ @@ -340,10 +327,7 @@ export class SearchIndexClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options); try { - const result = await this.client.synonymMaps.get( - synonymMapName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions); return utils.generatedSynonymMapToPublicSynonymMap(result); } catch (e) { span.setStatus({ @@ -369,7 +353,7 @@ export class SearchIndexClient { try { const result = await this.client.indexes.create( utils.publicIndexToGeneratedIndex(index), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return utils.generatedIndexToPublicIndex(result); } catch (e) { @@ -396,7 +380,7 @@ export class SearchIndexClient { try { const result = await this.client.synonymMaps.create( utils.publicSynonymMapToGeneratedSynonymMap(synonymMap), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return utils.generatedSynonymMapToPublicSynonymMap(result); } catch (e) { @@ -427,7 +411,7 @@ export class SearchIndexClient { index.name, utils.publicIndexToGeneratedIndex(index), { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag } ); @@ -463,7 +447,7 @@ export class SearchIndexClient { synonymMap.name, utils.publicSynonymMapToGeneratedSynonymMap(synonymMap), { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag } ); @@ -495,7 +479,7 @@ export class SearchIndexClient { typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined; await this.client.indexes.delete(indexName, { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag }); } catch (e) { @@ -529,7 +513,7 @@ export class SearchIndexClient { : undefined; await this.client.synonymMaps.delete(synonymMapName, { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag }); } catch (e) { @@ -555,10 +539,7 @@ export class SearchIndexClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getIndexStatistics", options); try { - const result = await this.client.indexes.getStatistics( - indexName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexes.getStatistics(indexName, updatedOptions); return result; } catch (e) { span.setStatus({ @@ -578,7 +559,12 @@ export class SearchIndexClient { * @param options - Additional arguments */ public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise { - const { operationOptions, restOptions } = utils.extractOperationOptions(options); + const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options; + const operationOptions = { + abortSignal, + requestOptions, + tracingOptions + }; const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions); try { @@ -590,7 +576,7 @@ export class SearchIndexClient { tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }, - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return result; } catch (e) { @@ -613,9 +599,7 @@ export class SearchIndexClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexClient-getServiceStatistics", options); try { - const result = await this.client.getServiceStatistics( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.getServiceStatistics(updatedOptions); return result; } catch (e) { span.setStatus({ diff --git a/sdk/search/search-documents/src/searchIndexerClient.ts b/sdk/search/search-documents/src/searchIndexerClient.ts index 743b66725cb8..138aa2d3ff52 100644 --- a/sdk/search/search-documents/src/searchIndexerClient.ts +++ b/sdk/search/search-documents/src/searchIndexerClient.ts @@ -2,14 +2,8 @@ // Licensed under the MIT license. import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; -import { - createPipelineFromOptions, - InternalPipelineOptions, - operationOptionsToRequestOptionsBase, - PipelineOptions, - RequestPolicyFactory, - bearerTokenAuthenticationPolicy -} from "@azure/core-http"; +import { CommonClientOptions, InternalClientPipelineOptions } from "@azure/core-client"; +import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; import { SpanStatusCode } from "@azure/core-tracing"; import { SDK_VERSION } from "./constants"; import { SearchIndexerStatus } from "./generated/service/models"; @@ -37,16 +31,18 @@ import { CreateDataSourceConnectionOptions, DeleteDataSourceConnectionOptions, GetDataSourceConnectionOptions, - CreateorUpdateDataSourceConnectionOptions + CreateorUpdateDataSourceConnectionOptions, + ResetDocsOptions, + ResetSkillsOptions } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { odataMetadataPolicy } from "./odataMetadataPolicy"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; /** * Client options used to configure Cognitive Search API requests. */ -export interface SearchIndexerClientOptions extends PipelineOptions { +export interface SearchIndexerClientOptions extends CommonClientOptions { /** * The API version to use when communicating with the service. */ @@ -109,12 +105,12 @@ export class SearchIndexerClient { options.userAgentOptions.userAgentPrefix = libInfo; } - const internalPipelineOptions: InternalPipelineOptions = { + const internalClientPipelineOptions: InternalClientPipelineOptions = { ...options, ...{ loggingOptions: { logger: logger.info, - allowedHeaderNames: [ + additionalAllowedHeaderNames: [ "elapsed-time", "Location", "OData-MaxVersion", @@ -126,16 +122,6 @@ export class SearchIndexerClient { } }; - const requestPolicyFactory: RequestPolicyFactory = isTokenCredential(credential) - ? bearerTokenAuthenticationPolicy(credential, utils.DEFAULT_SEARCH_SCOPE) - : createSearchApiKeyCredentialPolicy(credential); - - const pipeline = createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory); - - if (Array.isArray(pipeline.requestPolicyFactories)) { - pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal")); - } - let apiVersion = this.apiVersion; if (options.apiVersion) { @@ -145,7 +131,17 @@ export class SearchIndexerClient { apiVersion = options.apiVersion; } - this.client = new GeneratedClient(this.endpoint, apiVersion, pipeline); + this.client = new GeneratedClient(this.endpoint, apiVersion, internalClientPipelineOptions); + + if (isTokenCredential(credential)) { + this.client.pipeline.addPolicy( + bearerTokenAuthenticationPolicy({ credential, scopes: utils.DEFAULT_SEARCH_SCOPE }) + ); + } else { + this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential)); + } + + this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal")); } /** @@ -155,9 +151,7 @@ export class SearchIndexerClient { public async listIndexers(options: ListIndexersOptions = {}): Promise> { const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexers", options); try { - const result = await this.client.indexers.list( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexers.list(updatedOptions); return result.indexers.map(utils.generatedSearchIndexerToPublicSearchIndexer); } catch (e) { span.setStatus({ @@ -178,7 +172,7 @@ export class SearchIndexerClient { const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options); try { const result = await this.client.indexers.list({ - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, select: "name" }); return result.indexers.map((idx) => idx.name); @@ -205,9 +199,7 @@ export class SearchIndexerClient { options ); try { - const result = await this.client.dataSources.list( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.dataSources.list(updatedOptions); return result.dataSources.map(utils.generatedDataSourceToPublicDataSource); } catch (e) { span.setStatus({ @@ -233,7 +225,7 @@ export class SearchIndexerClient { ); try { const result = await this.client.dataSources.list({ - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, select: "name" }); return result.dataSources.map((ds) => ds.name); @@ -257,9 +249,7 @@ export class SearchIndexerClient { ): Promise> { const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsets", options); try { - const result = await this.client.skillsets.list( - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.skillsets.list(updatedOptions); return result.skillsets.map(utils.generatedSkillsetToPublicSkillset); } catch (e) { span.setStatus({ @@ -280,7 +270,7 @@ export class SearchIndexerClient { const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options); try { const result = await this.client.skillsets.list({ - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, select: "name" }); return result.skillsets.map((sks) => sks.name); @@ -306,10 +296,7 @@ export class SearchIndexerClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexer", options); try { - const result = await this.client.indexers.get( - indexerName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexers.get(indexerName, updatedOptions); return utils.generatedSearchIndexerToPublicSearchIndexer(result); } catch (e) { span.setStatus({ @@ -336,10 +323,7 @@ export class SearchIndexerClient { options ); try { - const result = await this.client.dataSources.get( - dataSourceConnectionName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions); return utils.generatedDataSourceToPublicDataSource(result); } catch (e) { span.setStatus({ @@ -363,10 +347,7 @@ export class SearchIndexerClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getSkillset", options); try { - const result = await this.client.skillsets.get( - skillsetName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.skillsets.get(skillsetName, updatedOptions); return utils.generatedSkillsetToPublicSkillset(result); } catch (e) { span.setStatus({ @@ -392,7 +373,7 @@ export class SearchIndexerClient { try { const result = await this.client.indexers.create( utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return utils.generatedSearchIndexerToPublicSearchIndexer(result); } catch (e) { @@ -422,7 +403,7 @@ export class SearchIndexerClient { try { const result = await this.client.dataSources.create( utils.publicDataSourceToGeneratedDataSource(dataSourceConnection), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return utils.generatedDataSourceToPublicDataSource(result); } catch (e) { @@ -449,7 +430,7 @@ export class SearchIndexerClient { try { const result = await this.client.skillsets.create( utils.publicSkillsetToGeneratedSkillset(skillset), - operationOptionsToRequestOptionsBase(updatedOptions) + updatedOptions ); return utils.generatedSkillsetToPublicSkillset(result); } catch (e) { @@ -483,9 +464,9 @@ export class SearchIndexerClient { indexer.name, utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag, - ignoreResetRequirements: options.ignoreResetRequirements, + skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection } ); @@ -521,9 +502,9 @@ export class SearchIndexerClient { dataSourceConnection.name, utils.publicDataSourceToGeneratedDataSource(dataSourceConnection), { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag, - ignoreResetRequirements: options.ignoreResetRequirements + skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache } ); return utils.generatedDataSourceToPublicDataSource(result); @@ -558,9 +539,9 @@ export class SearchIndexerClient { skillset.name, utils.publicSkillsetToGeneratedSkillset(skillset), { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag, - ignoreResetRequirements: options.ignoreResetRequirements, + skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection } ); @@ -597,7 +578,7 @@ export class SearchIndexerClient { : undefined; await this.client.indexers.delete(indexerName, { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag }); } catch (e) { @@ -635,7 +616,7 @@ export class SearchIndexerClient { : undefined; await this.client.dataSources.delete(dataSourceConnectionName, { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag }); } catch (e) { @@ -669,7 +650,7 @@ export class SearchIndexerClient { : undefined; await this.client.skillsets.delete(skillsetName, { - ...operationOptionsToRequestOptionsBase(updatedOptions), + ...updatedOptions, ifMatch: etag }); } catch (e) { @@ -694,10 +675,7 @@ export class SearchIndexerClient { ): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexerStatus", options); try { - const result = await this.client.indexers.getStatus( - indexerName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + const result = await this.client.indexers.getStatus(indexerName, updatedOptions); return result; } catch (e) { span.setStatus({ @@ -718,10 +696,7 @@ export class SearchIndexerClient { public async resetIndexer(indexerName: string, options: ResetIndexerOptions = {}): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-resetIndexer", options); try { - await this.client.indexers.reset( - indexerName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + await this.client.indexers.reset(indexerName, updatedOptions); } catch (e) { span.setStatus({ code: SpanStatusCode.ERROR, @@ -741,10 +716,58 @@ export class SearchIndexerClient { public async runIndexer(indexerName: string, options: RunIndexerOptions = {}): Promise { const { span, updatedOptions } = createSpan("SearchIndexerClient-runIndexer", options); try { - await this.client.indexers.run( - indexerName, - operationOptionsToRequestOptionsBase(updatedOptions) - ); + await this.client.indexers.run(indexerName, updatedOptions); + } catch (e) { + span.setStatus({ + code: SpanStatusCode.ERROR, + message: e.message + }); + throw e; + } finally { + span.end(); + } + } + + /** + * Resets specific documents in the datasource to be selectively re-ingested by the indexer. + * @param indexerName - The name of the indexer to reset documents for. + * @param options - Additional optional arguments. + */ + public async resetDocs(indexerName: string, options: ResetDocsOptions = {}): Promise { + const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options); + try { + await this.client.indexers.resetDocs(indexerName, { + ...updatedOptions, + keysOrIds: { + documentKeys: updatedOptions.documentKeys, + datasourceDocumentIds: updatedOptions.datasourceDocumentIds + } + }); + } catch (e) { + span.setStatus({ + code: SpanStatusCode.ERROR, + message: e.message + }); + throw e; + } finally { + span.end(); + } + } + + /** + * Reset an existing skillset in a search service. + * @param skillsetName - The name of the skillset to reset. + * @param skillNames - The names of skills to reset. + * @param options - The options parameters. + */ + public async resetSkills( + skillsetName: string, + skillNames: string[], + options: ResetSkillsOptions = {} + ): Promise { + const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options); + try { + await this.client.skillsets.resetSkills(skillsetName, { skillNames }, updatedOptions); } catch (e) { span.setStatus({ code: SpanStatusCode.ERROR, diff --git a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts index d592894ebde3..b6eb722b0e4e 100644 --- a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts +++ b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts @@ -13,12 +13,13 @@ import { IndexDocumentsOptions } from "./indexModels"; import { IndexDocumentsResult } from "./generated/data/models"; -import { RestError, OperationOptions } from "@azure/core-http"; +import { OperationOptions } from "@azure/core-client"; import EventEmitter from "events"; import { createSpan } from "./tracing"; import { SpanStatusCode } from "@azure/core-tracing"; -import { delay } from "@azure/core-http"; +import { delay } from "./serviceUtils"; import { getRandomIntegerInclusive } from "./serviceUtils"; +import { RestError } from "@azure/core-rest-pipeline"; /** * Index Documents Client diff --git a/sdk/search/search-documents/src/serviceModels.ts b/sdk/search/search-documents/src/serviceModels.ts index 81307ea97354..5be7e64c2da9 100644 --- a/sdk/search/search-documents/src/serviceModels.ts +++ b/sdk/search/search-documents/src/serviceModels.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { OperationOptions } from "@azure/core-http"; +import { OperationOptions } from "@azure/core-client"; import { LuceneStandardAnalyzer, StopAnalyzer, @@ -237,6 +237,23 @@ export interface CreateOrUpdateIndexOptions extends OperationOptions { onlyIfUnchanged?: boolean; } +/** + * Options for reset docs operation. + */ +export interface ResetDocsOptions extends OperationOptions { + /** document keys to be reset */ + documentKeys?: string[]; + /** datasource document identifiers to be reset */ + datasourceDocumentIds?: string[]; + /** If false, keys or ids will be appended to existing ones. If true, only the keys or ids in this payload will be queued to be re-ingested. */ + overwrite?: boolean; +} + +/** + * Options for reset skills operation. + */ +export type ResetSkillsOptions = OperationOptions; + /** * Options for create/update skillset operation. */ @@ -248,7 +265,7 @@ export interface CreateOrUpdateSkillsetOptions extends OperationOptions { /** * Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; /** * Disables cache reprocessing change detection. */ @@ -274,7 +291,7 @@ export interface CreateorUpdateIndexerOptions extends OperationOptions { */ onlyIfUnchanged?: boolean; /** Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; /** Disables cache reprocessing change detection. */ disableCacheReprocessingChangeDetection?: boolean; } @@ -290,7 +307,7 @@ export interface CreateorUpdateDataSourceConnectionOptions extends OperationOpti /** * Ignores cache reset requirements. */ - ignoreResetRequirements?: boolean; + skipIndexerResetRequirementForCache?: boolean; } /** diff --git a/sdk/search/search-documents/src/serviceUtils.ts b/sdk/search/search-documents/src/serviceUtils.ts index b5507bd36693..37a14e6eb9ff 100644 --- a/sdk/search/search-documents/src/serviceUtils.ts +++ b/sdk/search/search-documents/src/serviceUtils.ts @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { OperationOptions } from "@azure/core-http"; import { LexicalAnalyzerUnion, CognitiveServicesAccountKey, @@ -393,24 +392,6 @@ export function convertSimilarityToPublic( } } -export function extractOperationOptions( - obj: T -): { - operationOptions: OperationOptions; - restOptions: Pick>; -} { - const { abortSignal, requestOptions, tracingOptions, ...restOptions } = obj; - - return { - operationOptions: { - abortSignal, - requestOptions, - tracingOptions - }, - restOptions - }; -} - export function convertEncryptionKeyToPublic( encryptionKey?: GeneratedSearchResourceEncryptionKey ): SearchResourceEncryptionKey | undefined { @@ -713,3 +694,12 @@ export function getRandomIntegerInclusive(min: number, max: number): number { const offset = Math.floor(Math.random() * (max - min + 1)); return offset + min; } + +/** + * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds. + * @param timeInMs - The number of milliseconds to be delayed. + * @returns Promise that is resolved after timeInMs + */ +export function delay(timeInMs: number): Promise { + return new Promise((resolve) => setTimeout(() => resolve(), timeInMs)); +} diff --git a/sdk/search/search-documents/swagger/Data.md b/sdk/search/search-documents/swagger/Data.md index d696bec4099b..060882548bd8 100644 --- a/sdk/search/search-documents/swagger/Data.md +++ b/sdk/search/search-documents/swagger/Data.md @@ -10,16 +10,16 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/data -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c99fbb96d7993daec8135a40681d9d807e3f5751/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/4e3ae66b8b25c53be84bb0c35c3d6d43291f7a40/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchindex.json add-credentials: false title: SearchClient use-extension: - "@autorest/typescript": "6.0.0-beta.4" + "@autorest/typescript": "6.0.0-beta.13" disable-async-iterators: true api-version-parameter: choice v3: true hide-clients: true -use-core-v2: false +use-core-v2: true ``` ## Customizations for Track 2 Generator diff --git a/sdk/search/search-documents/swagger/Service.md b/sdk/search/search-documents/swagger/Service.md index 2ce61aa58589..b3e0fd3f8bbf 100644 --- a/sdk/search/search-documents/swagger/Service.md +++ b/sdk/search/search-documents/swagger/Service.md @@ -10,15 +10,15 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/service -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/c99fbb96d7993daec8135a40681d9d807e3f5751/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/4e3ae66b8b25c53be84bb0c35c3d6d43291f7a40/specification/search/data-plane/Azure.Search/preview/2021-04-30-Preview/searchservice.json add-credentials: false use-extension: - "@autorest/typescript": "6.0.0-beta.4" + "@autorest/typescript": "6.0.0-beta.13" disable-async-iterators: true api-version-parameter: choice v3: true hide-clients: true -use-core-v2: false +use-core-v2: true ``` ## Customizations for Track 2 Generator diff --git a/sdk/search/search-documents/test/public/node/searchClient.spec.ts b/sdk/search/search-documents/test/public/node/searchClient.spec.ts index b23fc356feb1..a67feec86efb 100644 --- a/sdk/search/search-documents/test/public/node/searchClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchClient.spec.ts @@ -18,7 +18,7 @@ import { } from "../../../src"; import { Hotel } from "../utils/interfaces"; import { createIndex, populateIndex, WAIT_TIME, createRandomIndexName } from "../utils/setup"; -import { delay } from "@azure/core-http"; +import { delay } from "../../../src/serviceUtils"; const TEST_INDEX_NAME = isLiveMode() ? createRandomIndexName() : "hotel-live-test1"; diff --git a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts index 4dbc1392eebe..41384e71c986 100644 --- a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts @@ -15,7 +15,7 @@ import { WAIT_TIME, createRandomIndexName } from "../utils/setup"; -import { delay } from "@azure/core-http"; +import { delay } from "../../../src/serviceUtils"; const TEST_INDEX_NAME = isLiveMode() ? createRandomIndexName() : "hotel-live-test3"; diff --git a/sdk/search/search-documents/test/public/utils/recordedClient.ts b/sdk/search/search-documents/test/public/utils/recordedClient.ts index 41ed1516944e..bf60851b416e 100644 --- a/sdk/search/search-documents/test/public/utils/recordedClient.ts +++ b/sdk/search/search-documents/test/public/utils/recordedClient.ts @@ -4,7 +4,6 @@ import * as dotenv from "dotenv"; import { env, RecorderEnvironmentSetup } from "@azure-tools/test-recorder"; -import { isNode } from "@azure/core-http"; import { AzureKeyCredential, @@ -13,6 +12,12 @@ import { SearchIndexClient } from "../../../src"; +const isNode = + typeof process !== "undefined" && + !!process.version && + !!process.versions && + !!process.versions.node; + if (isNode) { dotenv.config(); } diff --git a/sdk/search/search-documents/test/public/utils/setup.ts b/sdk/search/search-documents/test/public/utils/setup.ts index 2b4545b1114e..69721af1c574 100644 --- a/sdk/search/search-documents/test/public/utils/setup.ts +++ b/sdk/search/search-documents/test/public/utils/setup.ts @@ -10,7 +10,7 @@ import { KnownAnalyzerNames } from "../../../src"; import { Hotel } from "./interfaces"; -import { delay } from "@azure/core-http"; +import { delay } from "../../../src/serviceUtils"; import { assert } from "chai"; export const WAIT_TIME = 4000;