diff --git a/sdk/search/Azure.Search.Documents/CHANGELOG.md b/sdk/search/Azure.Search.Documents/CHANGELOG.md index 52454bc4021bb..79c91d8b0e29c 100644 --- a/sdk/search/Azure.Search.Documents/CHANGELOG.md +++ b/sdk/search/Azure.Search.Documents/CHANGELOG.md @@ -5,6 +5,7 @@ ### Breaking Changes - Removed constructor from `SynonymMap` with `IEnumerable` parameter. +- Combined `MatchConditions` and `SearchRequestOptions` into `SearchConditionalOptions`. ## 1.0.0-preview.2 (2020-04-06) diff --git a/sdk/search/Azure.Search.Documents/src/Options/SearchConditionalOptions.cs b/sdk/search/Azure.Search.Documents/src/Options/SearchConditionalOptions.cs new file mode 100644 index 0000000000000..f81a2dc799609 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Options/SearchConditionalOptions.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +namespace Azure.Search.Documents +{ + /// + /// Options to customize Search service operations conditioned on or ETags. + /// + public class SearchConditionalOptions : SearchRequestOptions + { + /// + /// Optionally limit requests to resources that have a matching ETag. + /// + public ETag? IfMatch { get; set; } + + /// + /// Optionally limit requests to resources that do not match the ETag. + /// + public ETag? IfNoneMatch { get; set; } + } +} diff --git a/sdk/search/Azure.Search.Documents/src/SearchServiceClient.cs b/sdk/search/Azure.Search.Documents/src/SearchServiceClient.cs index db3d1891a71d5..74bbbcbcadc4a 100644 --- a/sdk/search/Azure.Search.Documents/src/SearchServiceClient.cs +++ b/sdk/search/Azure.Search.Documents/src/SearchServiceClient.cs @@ -306,8 +306,7 @@ await DataSourcesClient.CreateAsync( /// Creates a new data source or updates an existing data source. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the data source should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -318,23 +317,21 @@ await DataSourcesClient.CreateAsync( [ForwardsClientCalls] public virtual Response CreateOrUpdateDataSource( DataSource dataSource, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => DataSourcesClient.CreateOrUpdate( dataSource?.Name, dataSource, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Creates a new data source or updates an existing data source. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the data source should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -345,15 +342,14 @@ public virtual Response CreateOrUpdateDataSource( [ForwardsClientCalls] public virtual async Task> CreateOrUpdateDataSourceAsync( DataSource dataSource, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await DataSourcesClient.CreateOrUpdateAsync( dataSource?.Name, dataSource, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -361,8 +357,7 @@ await DataSourcesClient.CreateOrUpdateAsync( /// Deletes a data source. /// /// The name of the data source to delete. - /// Optional match conditions used to determine whether the data source should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -370,22 +365,20 @@ await DataSourcesClient.CreateOrUpdateAsync( [ForwardsClientCalls] public virtual Response DeleteDataSource( string dataSourceName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => DataSourcesClient.Delete( dataSourceName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Deletes a data source. /// /// The name of the data source to delete. - /// Optional match conditions used to determine whether the data source should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -393,14 +386,13 @@ public virtual Response DeleteDataSource( [ForwardsClientCalls] public virtual async Task DeleteDataSourceAsync( string dataSourceName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await DataSourcesClient.DeleteAsync( dataSourceName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -601,8 +593,7 @@ await IndexesClient.CreateAsync( /// offline for a few seconds. The default is false. This temporarily causes indexing and queries to fail. /// Performance and write availability of the index can be impaired for several minutes after the index is updated, or longer for very large indexes. /// - /// Optional match conditions used to determine whether the index should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created or updated. @@ -614,16 +605,15 @@ await IndexesClient.CreateAsync( public virtual Response CreateOrUpdateIndex( SearchIndex index, bool allowIndexDowntime = false, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => IndexesClient.CreateOrUpdate( index?.Name, index, allowIndexDowntime, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// @@ -635,8 +625,7 @@ public virtual Response CreateOrUpdateIndex( /// offline for a few seconds. The default is false. This temporarily causes indexing and queries to fail. /// Performance and write availability of the index can be impaired for several minutes after the index is updated, or longer for very large indexes. /// - /// Optional match conditions used to determine whether the index should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created or updated. @@ -648,16 +637,15 @@ public virtual Response CreateOrUpdateIndex( public virtual async Task> CreateOrUpdateIndexAsync( SearchIndex index, bool allowIndexDowntime = false, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await IndexesClient.CreateOrUpdateAsync( index?.Name, index, allowIndexDowntime, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -665,8 +653,7 @@ await IndexesClient.CreateOrUpdateAsync( /// Deletes a search index and all the documents it contains. /// /// Required. The name of the index to delete. - /// Optional match conditions used to determine whether the index should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -674,22 +661,20 @@ await IndexesClient.CreateOrUpdateAsync( [ForwardsClientCalls] public virtual Response DeleteIndex( string indexName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => IndexesClient.Delete( indexName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Deletes a search index and all the documents it contains. /// /// Required. The name of the index to delete. - /// Optional match conditions used to determine whether the index should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -697,14 +682,13 @@ public virtual Response DeleteIndex( [ForwardsClientCalls] public virtual async Task DeleteIndexAsync( string indexName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await IndexesClient.DeleteAsync( indexName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -882,8 +866,7 @@ await IndexersClient.CreateAsync( /// Creates a new indexer or updates an existing indexer. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the indexer should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the created. @@ -894,23 +877,21 @@ await IndexersClient.CreateAsync( [ForwardsClientCalls] public virtual Response CreateOrUpdateIndexer( SearchIndexer indexer, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => IndexersClient.CreateOrUpdate( indexer?.Name, indexer, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Creates a new indexer or updates an existing indexer. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the indexer should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the created. @@ -921,15 +902,14 @@ public virtual Response CreateOrUpdateIndexer( [ForwardsClientCalls] public virtual async Task> CreateOrUpdateIndexerAsync( SearchIndexer indexer, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await IndexersClient.CreateOrUpdateAsync( indexer?.Name, indexer, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -937,8 +917,7 @@ await IndexersClient.CreateOrUpdateAsync( /// Deletes an indexer. /// /// The name of the indexer to delete. - /// Optional match conditions used to determine whether the indexer should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -946,22 +925,20 @@ await IndexersClient.CreateOrUpdateAsync( [ForwardsClientCalls] public virtual Response DeleteIndexer( string indexerName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => IndexersClient.Delete( indexerName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Deletes an indexer. /// /// The name of the indexer to delete. - /// Optional match conditions used to determine whether the indexer should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -969,14 +946,13 @@ public virtual Response DeleteIndexer( [ForwardsClientCalls] public virtual async Task DeleteIndexerAsync( string indexerName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await IndexersClient.DeleteAsync( indexerName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -1232,8 +1208,7 @@ await SkillsetsClient.CreateAsync( /// Creates a new skillset or updates an existing skillset. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the skillset should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -1244,23 +1219,21 @@ await SkillsetsClient.CreateAsync( [ForwardsClientCalls] public virtual Response CreateOrUpdateSkillset( Skillset skillset, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => SkillsetsClient.CreateOrUpdate( skillset?.Name, skillset, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Creates a new skillset or updates an existing skillset. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the skillset should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -1271,15 +1244,14 @@ public virtual Response CreateOrUpdateSkillset( [ForwardsClientCalls] public virtual async Task> CreateOrUpdateSkillsetAsync( Skillset skillset, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await SkillsetsClient.CreateOrUpdateAsync( skillset?.Name, skillset, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -1287,8 +1259,7 @@ await SkillsetsClient.CreateOrUpdateAsync( /// Deletes a skillset. /// /// The name of the skillset to delete. - /// Optional match conditions used to determine whether the skillset should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -1296,22 +1267,20 @@ await SkillsetsClient.CreateOrUpdateAsync( [ForwardsClientCalls] public virtual Response DeleteSkillset( string skillsetName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => SkillsetsClient.Delete( skillsetName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Deletes a skillset. /// /// The name of the skillset to delete. - /// Optional match conditions used to determine whether the skillset should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -1319,14 +1288,13 @@ public virtual Response DeleteSkillset( [ForwardsClientCalls] public virtual async Task DeleteSkillsetAsync( string skillsetName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await SkillsetsClient.DeleteAsync( skillsetName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -1465,8 +1433,7 @@ await SynonymMapsClient.CreateAsync( /// Creates a new synonym map or updates an existing synonym map. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the synonym map should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -1477,23 +1444,21 @@ await SynonymMapsClient.CreateAsync( [ForwardsClientCalls] public virtual Response CreateOrUpdateSynonymMap( SynonymMap synonymMap, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => SynonymMapsClient.CreateOrUpdate( synonymMap?.Name, synonymMap, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Creates a new synonym map or updates an existing synonym map. /// /// Required. The to create or update. - /// Optional match conditions used to determine whether the synonym map should be updated based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// /// The from the server containing the that was created. @@ -1504,15 +1469,14 @@ public virtual Response CreateOrUpdateSynonymMap( [ForwardsClientCalls] public virtual async Task> CreateOrUpdateSynonymMapAsync( SynonymMap synonymMap, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await SynonymMapsClient.CreateOrUpdateAsync( synonymMap?.Name, synonymMap, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); @@ -1520,8 +1484,7 @@ await SynonymMapsClient.CreateOrUpdateAsync( /// Deletes a synonym map. /// /// The name of the synonym map to delete. - /// Optional match conditions used to determine whether the synonym map should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -1529,22 +1492,20 @@ await SynonymMapsClient.CreateOrUpdateAsync( [ForwardsClientCalls] public virtual Response DeleteSynonymMap( string synonymMapName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => SynonymMapsClient.Delete( synonymMapName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken); /// /// Deletes a synonym map. /// /// The name of the synonym map to delete. - /// Optional match conditions used to determine whether the synonym map should be deleted based on whether it changed. - /// Optional to customize the operation's behavior. + /// Optional to customize the operation's behavior. /// Optional to propagate notifications that the operation should be canceled. /// The from the server. /// Thrown when is null. @@ -1552,14 +1513,13 @@ public virtual Response DeleteSynonymMap( [ForwardsClientCalls] public virtual async Task DeleteSynonymMapAsync( string synonymMapName, - MatchConditions accessConditions = null, - SearchRequestOptions options = null, + SearchConditionalOptions options = null, CancellationToken cancellationToken = default) => await SynonymMapsClient.DeleteAsync( synonymMapName, options?.ClientRequestId, - accessConditions?.IfMatch?.ToString(), - accessConditions?.IfNoneMatch?.ToString(), + options?.IfMatch?.ToString(), + options?.IfNoneMatch?.ToString(), cancellationToken) .ConfigureAwait(false); diff --git a/sdk/search/Azure.Search.Documents/tests/SearchServiceClientTests.cs b/sdk/search/Azure.Search.Documents/tests/SearchServiceClientTests.cs index 056e8186042dd..708fac598d785 100644 --- a/sdk/search/Azure.Search.Documents/tests/SearchServiceClientTests.cs +++ b/sdk/search/Azure.Search.Documents/tests/SearchServiceClientTests.cs @@ -3,6 +3,7 @@ using System; using System.Collections.Generic; +using System.Net; using System.Threading; using System.Threading.Tasks; using Azure.Core; @@ -230,11 +231,7 @@ public async Task CreateAzureBlobIndexer() actualIndexer.Description = "Updated description"; await serviceClient.CreateOrUpdateIndexerAsync( actualIndexer, - new MatchConditions - { - IfMatch = new ETag(actualIndexer.ETag), - }, - GetOptions()); + GetOptions(ifMatch: new ETag(actualIndexer.ETag))); await WaitForIndexingAsync(serviceClient, actualIndexer.Name); @@ -269,11 +266,15 @@ public async Task CrudSynonymMaps() Assert.AreEqual("solr", map.Format); Assert.AreEqual("msft=>Microsoft", map.Synonyms); - map = await client.CreateOrUpdateSynonymMapAsync(new SynonymMap(synonymMapName, "ms,msft=>Microsoft"), new MatchConditions { IfMatch = new ETag(map.ETag) }); + map = await client.CreateOrUpdateSynonymMapAsync(new SynonymMap(synonymMapName, "ms,msft=>Microsoft"), new SearchConditionalOptions { IfMatch = new ETag(map.ETag) }); Assert.AreEqual(synonymMapName, map.Name); Assert.AreEqual("solr", map.Format); Assert.AreEqual("ms,msft=>Microsoft", map.Synonyms); + RequestFailedException ex = await CatchAsync(async () => + await client.CreateOrUpdateSynonymMapAsync(new SynonymMap(synonymMapName, "ms,msft=>Microsoft"), new SearchConditionalOptions { IfNoneMatch = new ETag(map.ETag) })); + Assert.AreEqual((int)HttpStatusCode.PreconditionFailed, ex.Status); + Response> mapsResponse = await client.GetSynonymMapsAsync(new[] { nameof(SynonymMap.Name) }); foreach (SynonymMap namedMap in mapsResponse.Value) { @@ -284,7 +285,7 @@ public async Task CrudSynonymMaps() } } - await client.DeleteSynonymMapAsync(map.Name, new MatchConditions { IfMatch = new ETag(map.ETag) }); + await client.DeleteSynonymMapAsync(map.Name, new SearchConditionalOptions { IfMatch = new ETag(map.ETag) }); } /// @@ -293,9 +294,10 @@ public async Task CrudSynonymMaps() /// /// A new with a new . /// - private SearchRequestOptions GetOptions() => new SearchRequestOptions + private SearchConditionalOptions GetOptions(ETag? ifMatch = default) => new SearchConditionalOptions { ClientRequestId = Recording.Random.NewGuid(), + IfMatch = ifMatch, }; /// diff --git a/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMaps.json b/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMaps.json index fee590cbe1f00..b17db861349e5 100644 --- a/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMaps.json +++ b/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMaps.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps?api-version=2019-05-06-Preview", "RequestMethod": "POST", "RequestHeaders": { "api-key": "Sanitized", "Content-Length": "69", "Content-Type": "application/json", - "traceparent": "00-17baf5e620b03f408e3ffc9a03bf7788-cd7ec5412e3fc54f-00", + "traceparent": "00-71f2cffa0781214fb0cc3e042917281c-991713398d5ff64d-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "e774d64a0e1ee1ed26d81ec8b16be261", @@ -25,11 +25,11 @@ "Cache-Control": "no-cache", "Content-Length": "216", "Content-Type": "application/json; odata.metadata=minimal", - "Date": "Fri, 17 Apr 2020 01:57:43 GMT", - "elapsed-time": "37", - "ETag": "W/\u00220x8D7E272B830B300\u0022", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "44", + "ETag": "W/\u00220x8D7E31BF62EACCA\u0022", "Expires": "-1", - "Location": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", + "Location": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", @@ -37,8 +37,8 @@ "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B830B300\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF62EACCA\u0022", "name": "vsluedsr", "format": "solr", "synonyms": "msft=\u003EMicrosoft", @@ -46,17 +46,17 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "PUT", "RequestHeaders": { "api-key": "Sanitized", "Content-Length": "72", "Content-Type": "application/json", - "If-Match": "\u00220x8D7E272B830B300\u0022", + "If-Match": "\u00220x8D7E31BF62EACCA\u0022", "Prefer": "return=representation", - "traceparent": "00-539e00883da10a4ca494d6d301dad61d-ed70dcb933ffaa48-00", + "traceparent": "00-0a81605fc26b6d4786d3194736c6e6c0-667f590a574f7a4d-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "890ba43bad9d8bc6db7ea8d0f34ce722", @@ -72,9 +72,9 @@ "Cache-Control": "no-cache", "Content-Length": "219", "Content-Type": "application/json; odata.metadata=minimal", - "Date": "Fri, 17 Apr 2020 01:57:43 GMT", - "elapsed-time": "15", - "ETag": "W/\u00220x8D7E272B8441775\u0022", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "33", + "ETag": "W/\u00220x8D7E31BF63C1D8F\u0022", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", @@ -83,8 +83,8 @@ "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B8441775\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF63C1D8F\u0022", "name": "vsluedsr", "format": "solr", "synonyms": "ms,msft=\u003EMicrosoft", @@ -92,35 +92,79 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps?$select=name\u0026api-version=2019-05-06-Preview", - "RequestMethod": "GET", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", + "RequestMethod": "PUT", "RequestHeaders": { "api-key": "Sanitized", - "traceparent": "00-22784ee66d114f4fbaced681bc04deb5-7c81d95f2a475645-00", + "Content-Length": "72", + "Content-Type": "application/json", + "If-None-Match": "\u00220x8D7E31BF63C1D8F\u0022", + "Prefer": "return=representation", + "traceparent": "00-7a961f91df2f9c49b64c83b823e5d35a-c3dbea4a8af1d24d-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "d6d9fa27c35a394621cb45794f7a1697", "x-ms-return-client-request-id": "true" }, + "RequestBody": { + "name": "vsluedsr", + "format": "solr", + "synonyms": "ms,msft=\u003EMicrosoft" + }, + "StatusCode": 412, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Language": "en", + "Content-Length": "160", + "Content-Type": "application/json; odata.metadata=minimal", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "13", + "Expires": "-1", + "OData-Version": "4.0", + "Pragma": "no-cache", + "Preference-Applied": "odata.include-annotations=\u0022*\u0022", + "request-id": "d6d9fa27-c35a-3946-21cb-45794f7a1697", + "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + }, + "ResponseBody": { + "error": { + "code": "", + "message": "The precondition given in one of the request headers evaluated to false. No change was made to the resource from this request." + } + } + }, + { + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps?$select=name\u0026api-version=2019-05-06-Preview", + "RequestMethod": "GET", + "RequestHeaders": { + "api-key": "Sanitized", + "traceparent": "00-21635eb1c22cb040ad2d4b6add6a4981-331f4c0121efd440-00", + "User-Agent": [ + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9a86040cbd479da90fe80c9f661deeda", + "x-ms-return-client-request-id": "true" + }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "122", "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true", - "Date": "Fri, 17 Apr 2020 01:57:43 GMT", - "elapsed-time": "5", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "11", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", - "request-id": "d6d9fa27-c35a-3946-21cb-45794f7a1697", + "request-id": "9a86040c-bd47-9da9-0fe8-0c9f661deeda", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps(name)", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps(name)", "value": [ { "name": "vsluedsr" @@ -129,16 +173,16 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "GET", "RequestHeaders": { "api-key": "Sanitized", - "traceparent": "00-7fb6a82cd3a72e46b5dc9ce7aecb630f-710b3d7574ed6f43-00", + "traceparent": "00-d77350fdaef682418474397513f40258-251539fafaa5264b-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "9a86040cbd479da90fe80c9f661deeda", + "x-ms-client-request-id": "b7a0fcf00c9278065ed268d2674c3c60", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -147,19 +191,19 @@ "Cache-Control": "no-cache", "Content-Length": "219", "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true", - "Date": "Fri, 17 Apr 2020 01:57:43 GMT", - "elapsed-time": "6", - "ETag": "W/\u00220x8D7E272B8441775\u0022", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "9", + "ETag": "W/\u00220x8D7E31BF63C1D8F\u0022", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", - "request-id": "9a86040c-bd47-9da9-0fe8-0c9f661deeda", + "request-id": "b7a0fcf0-0c92-7806-5ed2-68d2674c3c60", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B8441775\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF63C1D8F\u0022", "name": "vsluedsr", "format": "solr", "synonyms": "ms,msft=\u003EMicrosoft", @@ -167,28 +211,28 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027vsluedsr\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "DELETE", "RequestHeaders": { "api-key": "Sanitized", - "If-Match": "\u00220x8D7E272B8441775\u0022", - "traceparent": "00-081f1168e18fb64e8b0f431cc60940b9-85fd73e665bccf40-00", + "If-Match": "\u00220x8D7E31BF63C1D8F\u0022", + "traceparent": "00-5fa1955c407bc64cb9ec7f3cc86cdc31-00c8c5e4752a874e-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "b7a0fcf00c9278065ed268d2674c3c60", + "x-ms-client-request-id": "efc311684dc569da513cc771b7a7d304", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Fri, 17 Apr 2020 01:57:43 GMT", - "elapsed-time": "12", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "20", "Expires": "-1", "Pragma": "no-cache", - "request-id": "b7a0fcf0-0c92-7806-5ed2-68d2674c3c60", + "request-id": "efc31168-4dc5-69da-513c-c771b7a7d304", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": [] @@ -196,7 +240,7 @@ ], "Variables": { "RandomSeed": "1266633341", - "SearchIndexName": "ibpxiiit", - "SearchServiceName": "azs-net-plgbxdgs" + "SearchIndexName": "fuogpjxx", + "SearchServiceName": "azs-net-psxebbcy" } } \ No newline at end of file diff --git a/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMapsAsync.json b/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMapsAsync.json index 5b8aac88aa7d8..2f0e6bdc111ec 100644 --- a/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMapsAsync.json +++ b/sdk/search/Azure.Search.Documents/tests/SessionRecords/SearchServiceClientTests/CrudSynonymMapsAsync.json @@ -1,15 +1,15 @@ { "Entries": [ { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps?api-version=2019-05-06-Preview", "RequestMethod": "POST", "RequestHeaders": { "api-key": "Sanitized", "Content-Length": "69", "Content-Type": "application/json", - "traceparent": "00-e4cb1a5dfe4a6d4ca6aa9b5d26ab71e7-1585911f586b9744-00", + "traceparent": "00-b57863b3906b2f4e8bcee83621a5042f-00c3f09cb296654a-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "c02069d540fd192627e03b9f134bed62", @@ -25,11 +25,11 @@ "Cache-Control": "no-cache", "Content-Length": "216", "Content-Type": "application/json; odata.metadata=minimal", - "Date": "Fri, 17 Apr 2020 01:57:44 GMT", - "elapsed-time": "19", - "ETag": "W/\u00220x8D7E272B8796203\u0022", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "28", + "ETag": "W/\u00220x8D7E31BF6928FD9\u0022", "Expires": "-1", - "Location": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", + "Location": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", @@ -37,8 +37,8 @@ "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B8796203\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF6928FD9\u0022", "name": "byaqwdpt", "format": "solr", "synonyms": "msft=\u003EMicrosoft", @@ -46,17 +46,17 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "PUT", "RequestHeaders": { "api-key": "Sanitized", "Content-Length": "72", "Content-Type": "application/json", - "If-Match": "\u00220x8D7E272B8796203\u0022", + "If-Match": "\u00220x8D7E31BF6928FD9\u0022", "Prefer": "return=representation", - "traceparent": "00-4d210369c358ae42a2bd0dd85dbdddda-028350aded5eef4e-00", + "traceparent": "00-001d7ff04e23aa40beffd438879481a0-98a20075c6466a47-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "0b9c28133e0e9e04f52c78921f0b1fc4", @@ -72,9 +72,9 @@ "Cache-Control": "no-cache", "Content-Length": "219", "Content-Type": "application/json; odata.metadata=minimal", - "Date": "Fri, 17 Apr 2020 01:57:44 GMT", - "elapsed-time": "15", - "ETag": "W/\u00220x8D7E272B8810482\u0022", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "24", + "ETag": "W/\u00220x8D7E31BF69B92B8\u0022", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", @@ -83,8 +83,8 @@ "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B8810482\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF69B92B8\u0022", "name": "byaqwdpt", "format": "solr", "synonyms": "ms,msft=\u003EMicrosoft", @@ -92,35 +92,79 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps?$select=name\u0026api-version=2019-05-06-Preview", - "RequestMethod": "GET", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", + "RequestMethod": "PUT", "RequestHeaders": { "api-key": "Sanitized", - "traceparent": "00-030c1b01f0db2b4ab5eb02ff698e6b63-48dfd93c203d9548-00", + "Content-Length": "72", + "Content-Type": "application/json", + "If-None-Match": "\u00220x8D7E31BF69B92B8\u0022", + "Prefer": "return=representation", + "traceparent": "00-8a357a830c7fa64aae83aefb34fc678e-58685451f5c5e64a-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "36a22e1a3354ac4d565b1f8fdf1033d3", "x-ms-return-client-request-id": "true" }, + "RequestBody": { + "name": "byaqwdpt", + "format": "solr", + "synonyms": "ms,msft=\u003EMicrosoft" + }, + "StatusCode": 412, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Language": "en", + "Content-Length": "160", + "Content-Type": "application/json; odata.metadata=minimal", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "14", + "Expires": "-1", + "OData-Version": "4.0", + "Pragma": "no-cache", + "Preference-Applied": "odata.include-annotations=\u0022*\u0022", + "request-id": "36a22e1a-3354-ac4d-565b-1f8fdf1033d3", + "Strict-Transport-Security": "max-age=15724800; includeSubDomains" + }, + "ResponseBody": { + "error": { + "code": "", + "message": "The precondition given in one of the request headers evaluated to false. No change was made to the resource from this request." + } + } + }, + { + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps?$select=name\u0026api-version=2019-05-06-Preview", + "RequestMethod": "GET", + "RequestHeaders": { + "api-key": "Sanitized", + "traceparent": "00-d220c65b720e9d4da7dffb3f8e838480-68900954dd329247-00", + "User-Agent": [ + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5043667597c197906482cad0c793f91b", + "x-ms-return-client-request-id": "true" + }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "122", "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true", - "Date": "Fri, 17 Apr 2020 01:57:44 GMT", - "elapsed-time": "9", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "5", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", - "request-id": "36a22e1a-3354-ac4d-565b-1f8fdf1033d3", + "request-id": "50436675-97c1-9790-6482-cad0c793f91b", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps(name)", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps(name)", "value": [ { "name": "byaqwdpt" @@ -129,16 +173,16 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "GET", "RequestHeaders": { "api-key": "Sanitized", - "traceparent": "00-ef85446a239276498eb8b649cbb07c89-7969829700382941-00", + "traceparent": "00-7f764a604959704da257a6406da92b62-b3ca8cb94b1f8341-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "5043667597c197906482cad0c793f91b", + "x-ms-client-request-id": "e58477c0b6a8df0ddbf0b5b31e74bee5", "x-ms-return-client-request-id": "true" }, "RequestBody": null, @@ -147,19 +191,19 @@ "Cache-Control": "no-cache", "Content-Length": "219", "Content-Type": "application/json; odata.metadata=minimal; odata.streaming=true", - "Date": "Fri, 17 Apr 2020 01:57:44 GMT", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", "elapsed-time": "5", - "ETag": "W/\u00220x8D7E272B8810482\u0022", + "ETag": "W/\u00220x8D7E31BF69B92B8\u0022", "Expires": "-1", "OData-Version": "4.0", "Pragma": "no-cache", "Preference-Applied": "odata.include-annotations=\u0022*\u0022", - "request-id": "50436675-97c1-9790-6482-cad0c793f91b", + "request-id": "e58477c0-b6a8-df0d-dbf0-b5b31e74bee5", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": { - "@odata.context": "https://azs-net-plgbxdgs.search.windows.net/$metadata#synonymmaps/$entity", - "@odata.etag": "\u00220x8D7E272B8810482\u0022", + "@odata.context": "https://azs-net-psxebbcy.search.windows.net/$metadata#synonymmaps/$entity", + "@odata.etag": "\u00220x8D7E31BF69B92B8\u0022", "name": "byaqwdpt", "format": "solr", "synonyms": "ms,msft=\u003EMicrosoft", @@ -167,28 +211,28 @@ } }, { - "RequestUri": "https://azs-net-plgbxdgs.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", + "RequestUri": "https://azs-net-psxebbcy.search.windows.net/synonymmaps(\u0027byaqwdpt\u0027)?api-version=2019-05-06-Preview", "RequestMethod": "DELETE", "RequestHeaders": { "api-key": "Sanitized", - "If-Match": "\u00220x8D7E272B8810482\u0022", - "traceparent": "00-767a328e2a30504fb1582bcac4e0902c-789c5d5a0e4dd440-00", + "If-Match": "\u00220x8D7E31BF69B92B8\u0022", + "traceparent": "00-518efc1dd7919443ac302832e5d5d207-35d4949d3621714b-00", "User-Agent": [ - "azsdk-net-Search.Documents/1.0.0-dev.20200416.1", + "azsdk-net-Search.Documents/1.0.0-dev.20200417.1", "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" ], - "x-ms-client-request-id": "e58477c0b6a8df0ddbf0b5b31e74bee5", + "x-ms-client-request-id": "b81ca4f9cfc882029d0bd1d2687ce4c3", "x-ms-return-client-request-id": "true" }, "RequestBody": null, "StatusCode": 204, "ResponseHeaders": { "Cache-Control": "no-cache", - "Date": "Fri, 17 Apr 2020 01:57:44 GMT", - "elapsed-time": "10", + "Date": "Fri, 17 Apr 2020 22:09:13 GMT", + "elapsed-time": "11", "Expires": "-1", "Pragma": "no-cache", - "request-id": "e58477c0-b6a8-df0d-dbf0-b5b31e74bee5", + "request-id": "b81ca4f9-cfc8-8202-9d0b-d1d2687ce4c3", "Strict-Transport-Security": "max-age=15724800; includeSubDomains" }, "ResponseBody": [] @@ -196,7 +240,7 @@ ], "Variables": { "RandomSeed": "43964750", - "SearchIndexName": "ibpxiiit", - "SearchServiceName": "azs-net-plgbxdgs" + "SearchIndexName": "fuogpjxx", + "SearchServiceName": "azs-net-psxebbcy" } } \ No newline at end of file