| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.DigitalTwins.Core |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// General request options that are applicable, but optional, for many APIs. |
| | 8 | | /// </summary> |
| | 9 | | public class RequestOptions |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// A string representing a weak ETag for the entity that this request performs an operation against, as per RFC |
| | 13 | | /// </summary> |
| | 14 | | /// <remarks> |
| | 15 | | /// <para> |
| | 16 | | /// The request's operation is performed only if this ETag matches the value maintained by the server, |
| | 17 | | /// indicating that the entity has not been modified since it was last retrieved. |
| | 18 | | /// To force the operation to execute only if the entity exists, set the ETag to the wildcard character '*'. |
| | 19 | | /// To force the operation to execute unconditionally, leave this value null. |
| | 20 | | /// If this value is not set, it defaults to null, and the ifMatch header will not be sent with the request. |
| | 21 | | /// This means that update and delete will be unconditional and the operation will execute regardless of the exi |
| | 22 | | /// </para> |
| | 23 | | /// </remarks> |
| 8 | 24 | | public string IfMatch { get; set; } |
| | 25 | | } |
| | 26 | | } |