-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
…ions (Azure#11420) * Combine MatchConditions and SearchRequestOptions Fixes Azure#11052 * Redefine ETag properties as Azure.ETag? Fixes Azure#11385 * Update public APIs * Define onlyIfUnchanged for ETag support (#2) This was suggested to match what AppConfiguration does. It simplifies it, with no practical reason for IfNoneMatch. We could always add that later as well. * Update CHANGELOG and public APIs
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Core; | ||
|
||
namespace Azure.Search.Documents.Models | ||
{ | ||
public partial class DataSource | ||
{ | ||
[CodeGenMember("etag")] | ||
private string _etag; | ||
|
||
/// <summary> | ||
/// The <see cref="Azure.ETag"/> of the <see cref="DataSource"/>. | ||
/// </summary> | ||
public ETag? ETag | ||
{ | ||
get => _etag is null ? (ETag?)null : new ETag(_etag); | ||
set => _etag = value?.ToString(); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
using Azure.Core; | ||
|
||
namespace Azure.Search.Documents.Models | ||
{ | ||
public partial class Skillset | ||
{ | ||
[CodeGenMember("etag")] | ||
private string _etag; | ||
|
||
/// <summary> | ||
/// The <see cref="Azure.ETag"/> of the <see cref="Skillset"/>. | ||
/// </summary> | ||
public ETag? ETag | ||
{ | ||
get => _etag is null ? (ETag?)null : new ETag(_etag); | ||
set => _etag = value?.ToString(); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Azure.Search.Documents | ||
{ | ||
/// <summary> | ||
/// Options to customize Search service operations conditioned on <see cref="IfMatch"/> or <see cref="IfNoneMatch"/> ETags. | ||
/// </summary> | ||
public class SearchConditionalOptions : SearchRequestOptions | ||
{ | ||
/// <summary> | ||
/// Optionally limit requests to resources that have a matching ETag. | ||
/// </summary> | ||
public ETag? IfMatch { get; set; } | ||
|
||
/// <summary> | ||
/// Optionally limit requests to resources that do not match the ETag. | ||
/// </summary> | ||
public ETag? IfNoneMatch { get; set; } | ||
} | ||
} |