| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | namespace Azure.Storage.Files.Shares.Models |
| | 5 | | { |
| | 6 | | /// <summary> |
| | 7 | | /// Specifies lease access conditions for a file. |
| | 8 | | /// </summary> |
| | 9 | | public class ShareFileRequestConditions |
| | 10 | | { |
| | 11 | | /// <summary> |
| | 12 | | /// Optionally limit requests to resources with an active lease |
| | 13 | | /// matching this Id. |
| | 14 | | /// </summary> |
| 102 | 15 | | public string LeaseId { get; set; } |
| | 16 | |
|
| | 17 | | /// <summary> |
| | 18 | | /// Converts the value of the current RequestConditions object to |
| | 19 | | /// its equivalent string representation. |
| | 20 | | /// </summary> |
| | 21 | | /// <returns> |
| | 22 | | /// A string representation of the RequestConditions. |
| | 23 | | /// </returns> |
| | 24 | | public override string ToString() |
| 0 | 25 | | => $"[{nameof(LeaseId)}={LeaseId}]"; |
| | 26 | | } |
| | 27 | | } |