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

class azure.mgmt.resource.locks.v2015_01_01.models.LockLevel(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: str, 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: List[_models.ManagementLockObject] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: Model

List of management locks.

Variables:
Keyword Arguments:
class azure.mgmt.resource.locks.v2015_01_01.models.ManagementLockObject(*, name: str | None = None, level: str | _models.LockLevel | None = None, notes: str | None = None, **kwargs: Any)[source]

Bases: 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.

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

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

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

Keyword Arguments:
  • name (str) – The name of the lock.

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

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