Class: Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
- Inherits:
-
Object
- Object
- Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject
- Includes:
- MsRestAzure
- Defined in:
- lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb
Overview
The lock information.
Instance Attribute Summary collapse
-
#id ⇒ String
The resource ID of the lock.
-
#level ⇒ LockLevel
NotSpecified, CanNotDelete, ReadOnly.
-
#name ⇒ String
The name of the lock.
-
#notes ⇒ String
Notes about the lock.
-
#owners ⇒ Array<ManagementLockOwner>
The owners of the lock.
-
#type ⇒ String
Microsoft.Authorization/locks.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ManagementLockObject class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
Returns The resource ID of the lock.
30 31 32 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 30 def id @id end |
#level ⇒ LockLevel
NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can’t modify or delete it. Possible values include: ‘NotSpecified’, ‘CanNotDelete’, ‘ReadOnly’
21 22 23 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 21 def level @level end |
#name ⇒ String
Returns The name of the lock.
37 38 39 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 37 def name @name end |
#notes ⇒ String
Returns Notes about the lock. Maximum of 512 characters.
24 25 26 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 24 def notes @notes end |
#owners ⇒ Array<ManagementLockOwner>
Returns The owners of the lock.
27 28 29 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 27 def owners @owners end |
#type ⇒ String
Microsoft.Authorization/locks.
34 35 36 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 34 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for ManagementLockObject class as Ruby Hash. This will be used for serialization/deserialization.
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 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 44 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: true, serialized_name: 'properties.level', type: { name: 'String' } }, notes: { client_side_validation: true, required: false, serialized_name: 'properties.notes', type: { name: 'String' } }, owners: { client_side_validation: true, required: false, serialized_name: 'properties.owners', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ManagementLockOwnerElementType', type: { name: 'Composite', class_name: 'ManagementLockOwner' } } } }, 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, read_only: true, serialized_name: 'name', type: { name: 'String' } } } } } end |