Class: Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#idString

Returns The resource ID of the lock.

Returns:

  • (String)

    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

#levelLockLevel

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’

Returns:

  • (LockLevel)

    The level of the lock. Possible values are:



21
22
23
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 21

def level
  @level
end

#nameString

Returns The name of the lock.

Returns:

  • (String)

    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

#notesString

Returns Notes about the lock. Maximum of 512 characters.

Returns:

  • (String)

    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

#ownersArray<ManagementLockOwner>

Returns The owners of the lock.

Returns:



27
28
29
# File 'lib/2016-09-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 27

def owners
  @owners
end

#typeString

Microsoft.Authorization/locks.

Returns:

  • (String)

    The resource type of the lock -



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

.mapperObject

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