Class: Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockObject
- Inherits:
-
Object
- Object
- Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockObject
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb
Overview
Management lock information.
Instance Attribute Summary collapse
-
#id ⇒ String
The Id of the lock.
-
#level ⇒ LockLevel
values include: ‘NotSpecified’, ‘CanNotDelete’, ‘ReadOnly’.
-
#name ⇒ String
The name of the lock.
-
#notes ⇒ String
The notes of the management lock.
-
#type ⇒ String
The type of the lock.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ManagementLockObject class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
Returns The Id of the lock.
23 24 25 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 23 def id @id end |
#level ⇒ LockLevel
values include: ‘NotSpecified’, ‘CanNotDelete’, ‘ReadOnly’
17 18 19 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 17 def level @level end |
#name ⇒ String
Returns The name of the lock.
29 30 31 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 29 def name @name end |
#notes ⇒ String
Returns The notes of the management lock.
20 21 22 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 20 def notes @notes end |
#type ⇒ String
Returns The type of the lock.
26 27 28 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 26 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for ManagementLockObject class as Ruby Hash. This will be used for serialization/deserialization.
36 37 38 39 40 41 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 |
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 36 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ManagementLockObject', type: { name: 'Composite', class_name: 'ManagementLockObject', model_properties: { level: { client_side_validation: true, required: false, serialized_name: 'properties.level', type: { name: 'String' } }, notes: { client_side_validation: true, required: false, serialized_name: 'properties.notes', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } } } } } end |