azure.mgmt.resource.locks.v2015_01_01.models module

class azure.mgmt.resource.locks.v2015_01_01.models.LockLevel(value)[source]

Bases: str, enum.Enum

The lock level of the management lock.

can_not_delete = 'CanNotDelete'
not_specified = 'NotSpecified'
read_only = 'ReadOnly'
class azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockListResult(*, value: Optional[List[ManagementLockObject]] = None, next_link: Optional[str] = None, **kwargs)[source]

Bases: msrest.serialization.Model

List of management locks.

Parameters
class azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject(*, name: Optional[str] = None, level: Optional[Union[str, LockLevel]] = None, notes: Optional[str] = None, **kwargs)[source]

Bases: msrest.serialization.Model

Management lock information.

Variables are only populated by the server, and will be ignored when sending a request.

Variables
  • id (str) – The Id of the lock.

  • type (str) – The type of the lock.

Parameters
  • name (str) – The name of the lock.

  • level (str or LockLevel) – The lock level of the management lock. Possible values include: “NotSpecified”, “CanNotDelete”, “ReadOnly”.

  • notes (str) – The notes of the management lock.