共用方式為


ArmStorageModelFactory.LeaseContainerContent Method

Definition

Initializes a new instance of LeaseContainerContent.

public static Azure.ResourceManager.Storage.Models.LeaseContainerContent LeaseContainerContent (Azure.ResourceManager.Storage.Models.LeaseContainerAction action = default, string leaseId = default, int? breakPeriod = default, int? leaseDuration = default, string proposedLeaseId = default);
static member LeaseContainerContent : Azure.ResourceManager.Storage.Models.LeaseContainerAction * string * Nullable<int> * Nullable<int> * string -> Azure.ResourceManager.Storage.Models.LeaseContainerContent
Public Shared Function LeaseContainerContent (Optional action As LeaseContainerAction = Nothing, Optional leaseId As String = Nothing, Optional breakPeriod As Nullable(Of Integer) = Nothing, Optional leaseDuration As Nullable(Of Integer) = Nothing, Optional proposedLeaseId As String = Nothing) As LeaseContainerContent

Parameters

action
LeaseContainerAction

Specifies the lease action. Can be one of the available actions.

leaseId
String

Identifies the lease. Can be specified in any valid GUID string format.

breakPeriod
Nullable<Int32>

Optional. For a break action, proposed duration the lease should continue before it is broken, in seconds, between 0 and 60.

leaseDuration
Nullable<Int32>

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.

Returns

A new LeaseContainerContent instance for mocking.

Applies to