class Azure::Locks::Mgmt::V2016_09_01::Models::ManagementLockObject

The lock information.

Attributes

id[RW]

@return [String] The resource ID of the lock.

level[RW]

@return [LockLevel] The level of the lock. Possible values are: 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'

name[RW]

@return [String] The name of the lock.

notes[RW]

@return [String] Notes about the lock. Maximum of 512 characters.

owners[RW]

@return [Array<ManagementLockOwner>] The owners of the lock.

type[RW]

@return [String] The resource type of the lock - Microsoft.Authorization/locks.

Private Class Methods

mapper() click to toggle source

Mapper for ManagementLockObject class as Ruby Hash. This will be used for serialization/deserialization.

# 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