forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine MatchConditions and SearchRequestOptions
Fixes Azure#11052
- Loading branch information
Showing
6 changed files
with
291 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sdk/search/Azure.Search.Documents/src/Options/SearchConditionalOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
Oops, something went wrong.