LeaseContainerRequest Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
LeaseContainerRequest() |
Initializes a new instance of the LeaseContainerRequest class. |
LeaseContainerRequest(String, String, Nullable<Int32>, Nullable<Int32>, String) |
Initializes a new instance of the LeaseContainerRequest class. |
LeaseContainerRequest()
Initializes a new instance of the LeaseContainerRequest class.
public LeaseContainerRequest ();
Public Sub New ()
Applies to
LeaseContainerRequest(String, String, Nullable<Int32>, Nullable<Int32>, String)
Initializes a new instance of the LeaseContainerRequest class.
public LeaseContainerRequest (string action, string leaseId = default, int? breakPeriod = default, int? leaseDuration = default, string proposedLeaseId = default);
new Microsoft.Azure.Management.Storage.Models.LeaseContainerRequest : string * string * Nullable<int> * Nullable<int> * string -> Microsoft.Azure.Management.Storage.Models.LeaseContainerRequest
Public Sub New (action As String, Optional leaseId As String = Nothing, Optional breakPeriod As Nullable(Of Integer) = Nothing, Optional leaseDuration As Nullable(Of Integer) = Nothing, Optional proposedLeaseId As String = Nothing)
Parameters
- action
- String
Specifies the lease action. Can be one of the available actions. Possible values include: 'Acquire', 'Renew', 'Change', 'Release', 'Break'
- leaseId
- String
Identifies the lease. Can be specified in any valid GUID string format.
Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.
Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.
- proposedLeaseId
- String
Optional for acquire, required for change. Proposed lease ID, in a GUID string format.