Class: Azure::Storage::Mgmt::V2019_06_01::Models::LeaseContainerRequest
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2019_06_01::Models::LeaseContainerRequest
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb
Overview
Lease Container request schema.
Instance Attribute Summary collapse
-
#action ⇒ Enum
actions.
-
#break_period ⇒ Integer
lease should continue before it is broken, in seconds, between 0 and 60.
-
#lease_duration ⇒ Integer
lease, in seconds, or negative one (-1) for a lease that never expires.
-
#lease_id ⇒ String
GUID string format.
-
#proposed_lease_id ⇒ String
lease ID, in a GUID string format.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for LeaseContainerRequest class as Ruby Hash.
Instance Attribute Details
#action ⇒ Enum
actions. Possible values include: ‘Acquire’, ‘Renew’, ‘Change’, ‘Release’, ‘Break’
18 19 20 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 18 def action @action end |
#break_period ⇒ Integer
lease should continue before it is broken, in seconds, between 0 and 60.
27 28 29 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 27 def break_period @break_period end |
#lease_duration ⇒ Integer
lease, in seconds, or negative one (-1) for a lease that never expires.
31 32 33 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 31 def lease_duration @lease_duration end |
#lease_id ⇒ String
GUID string format.
22 23 24 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 22 def lease_id @lease_id end |
#proposed_lease_id ⇒ String
lease ID, in a GUID string format.
35 36 37 |
# File 'lib/2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb', line 35 def proposed_lease_id @proposed_lease_id end |
Class Method Details
.mapper ⇒ Object
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/2019-06-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 |