| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.ResourceManager.Storage.Models |
| | 9 | | { |
| | 10 | | /// <summary> Lease Container request schema. </summary> |
| | 11 | | public partial class LeaseContainerRequest |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of LeaseContainerRequest. </summary> |
| | 14 | | /// <param name="action"> Specifies the lease action. Can be one of the available actions. </param> |
| 0 | 15 | | public LeaseContainerRequest(LeaseContainerRequestAction action) |
| | 16 | | { |
| 0 | 17 | | Action = action; |
| 0 | 18 | | } |
| | 19 | |
|
| | 20 | | /// <summary> Initializes a new instance of LeaseContainerRequest. </summary> |
| | 21 | | /// <param name="action"> Specifies the lease action. Can be one of the available actions. </param> |
| | 22 | | /// <param name="leaseId"> Identifies the lease. Can be specified in any valid GUID string format. </param> |
| | 23 | | /// <param name="breakPeriod"> Optional. For a break action, proposed duration the lease should continue before |
| | 24 | | /// <param name="leaseDuration"> Required for acquire. Specifies the duration of the lease, in seconds, or negat |
| | 25 | | /// <param name="proposedLeaseId"> Optional for acquire, required for change. Proposed lease ID, in a GUID strin |
| 0 | 26 | | internal LeaseContainerRequest(LeaseContainerRequestAction action, string leaseId, int? breakPeriod, int? leaseD |
| | 27 | | { |
| 0 | 28 | | Action = action; |
| 0 | 29 | | LeaseId = leaseId; |
| 0 | 30 | | BreakPeriod = breakPeriod; |
| 0 | 31 | | LeaseDuration = leaseDuration; |
| 0 | 32 | | ProposedLeaseId = proposedLeaseId; |
| 0 | 33 | | } |
| | 34 | |
|
| | 35 | | /// <summary> Specifies the lease action. Can be one of the available actions. </summary> |
| 0 | 36 | | public LeaseContainerRequestAction Action { get; } |
| | 37 | | /// <summary> Identifies the lease. Can be specified in any valid GUID string format. </summary> |
| 0 | 38 | | public string LeaseId { get; set; } |
| | 39 | | /// <summary> Optional. For a break action, proposed duration the lease should continue before it is broken, in |
| 0 | 40 | | public int? BreakPeriod { get; set; } |
| | 41 | | /// <summary> Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a |
| 0 | 42 | | public int? LeaseDuration { get; set; } |
| | 43 | | /// <summary> Optional for acquire, required for change. Proposed lease ID, in a GUID string format. </summary> |
| 0 | 44 | | public string ProposedLeaseId { get; set; } |
| | 45 | | } |
| | 46 | | } |