Class: Azure::Storage::Mgmt::V2018_11_01::Models::LeaseContainerResponse

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb

Overview

Lease Container response schema.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#lease_idString

any request to delete the container, or to renew, change, or release the lease.

Returns:

  • (String)

    Returned unique lease ID that must be included with



18
19
20
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb', line 18

def lease_id
  @lease_id
end

#lease_time_secondsString

seconds.

Returns:

  • (String)

    Approximate time remaining in the lease period, in



22
23
24
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb', line 22

def lease_time_seconds
  @lease_time_seconds
end

Class Method Details

.mapperObject

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



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LeaseContainerResponse',
    type: {
      name: 'Composite',
      class_name: 'LeaseContainerResponse',
      model_properties: {
        lease_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'leaseId',
          type: {
            name: 'String'
          }
        },
        lease_time_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'leaseTimeSeconds',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end