Class: Azure::Locks::Mgmt::V2015_01_01::Models::ManagementLockObject

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

Class Method Summary collapse

Instance Attribute Details

#idString

Returns The Id of the lock.

Returns:

  • (String)

    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

#levelLockLevel

values include: ‘NotSpecified’, ‘CanNotDelete’, ‘ReadOnly’

Returns:

  • (LockLevel)

    The lock level of the management lock. Possible



17
18
19
# File 'lib/2015-01-01/generated/azure_mgmt_locks/models/management_lock_object.rb', line 17

def level
  @level
end

#nameString

Returns The name of the lock.

Returns:

  • (String)

    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

#notesString

Returns The notes of the management lock.

Returns:

  • (String)

    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

#typeString

Returns The type of the lock.

Returns:

  • (String)

    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

.mapperObject

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