Class: Azure::Storage::Mgmt::V2021_01_01::Models::LeaseContainerRequest

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb

Overview

Lease Container request schema.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionEnum

actions. Possible values include: ‘Acquire’, ‘Renew’, ‘Change’, ‘Release’, ‘Break’

Returns:

  • (Enum)

    Specifies the lease action. Can be one of the available



18
19
20
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 18

def action
  @action
end

#break_periodInteger

lease should continue before it is broken, in seconds, between 0 and 60.

Returns:

  • (Integer)

    Optional. For a break action, proposed duration the



27
28
29
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 27

def break_period
  @break_period
end

#lease_durationInteger

lease, in seconds, or negative one (-1) for a lease that never expires.

Returns:

  • (Integer)

    Required for acquire. Specifies the duration of the



31
32
33
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 31

def lease_duration
  @lease_duration
end

#lease_idString

GUID string format.

Returns:

  • (String)

    Identifies the lease. Can be specified in any valid



22
23
24
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 22

def lease_id
  @lease_id
end

#proposed_lease_idString

lease ID, in a GUID string format.

Returns:

  • (String)

    Optional for acquire, required for change. Proposed



35
36
37
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 35

def proposed_lease_id
  @proposed_lease_id
end

Class Method Details

.mapperObject

Mapper for LeaseContainerRequest class as Ruby Hash. This will be used for serialization/deserialization.



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LeaseContainerRequest',
    type: {
      name: 'Composite',
      class_name: 'LeaseContainerRequest',
      model_properties: {
        action: {
          client_side_validation: true,
          required: true,
          serialized_name: 'action',
          type: {
            name: 'String'
          }
        },
        lease_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'leaseId',
          type: {
            name: 'String'
          }
        },
        break_period: {
          client_side_validation: true,
          required: false,
          serialized_name: 'breakPeriod',
          type: {
            name: 'Number'
          }
        },
        lease_duration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'leaseDuration',
          type: {
            name: 'Number'
          }
        },
        proposed_lease_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'proposedLeaseId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end