Udostępnij za pośrednictwem


LeaseContainerRequest Class

Definition

Lease Container request schema.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerRequestTypeConverter))]
public class LeaseContainerRequest : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerRequest
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.LeaseContainerRequestTypeConverter))>]
type LeaseContainerRequest = class
    interface ILeaseContainerRequest
    interface IJsonSerializable
Public Class LeaseContainerRequest
Implements ILeaseContainerRequest
Inheritance
LeaseContainerRequest
Attributes
Implements

Constructors

LeaseContainerRequest()

Creates an new LeaseContainerRequest instance.

Properties

Action

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

BreakPeriod

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

LeaseDuration

Required for acquire. Specifies the duration of the lease, in seconds, or negative one (-1) for a lease that never expires.

LeaseId

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

ProposedLeaseId

Optional for acquire, required for change. Proposed lease ID, in a GUID string format.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of LeaseContainerRequest.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of LeaseContainerRequest.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20190401.ILeaseContainerRequest.

FromJsonString(String)

Creates a new instance of LeaseContainerRequest, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of LeaseContainerRequest into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to