azure.mgmt.resource.locks.v2016_09_01.models module

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

Bases: str, Enum

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.

CAN_NOT_DELETE = 'CanNotDelete'
NOT_SPECIFIED = 'NotSpecified'
READ_ONLY = 'ReadOnly'
class azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockListResult(*, value: List[_models.ManagementLockObject] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: Model

The list of locks.

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

Bases: Model

The lock information.

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

All required parameters must be populated in order to send to server.

Variables:
  • id (str) – The resource ID of the lock.

  • type (str) – The resource type of the lock - Microsoft.Authorization/locks.

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

  • level (str or 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. Required. Known values are: “NotSpecified”, “CanNotDelete”, and “ReadOnly”.

  • notes (str) – Notes about the lock. Maximum of 512 characters.

  • owners (list[ManagementLockOwner]) – The owners of the lock.

Keyword Arguments:
  • level (str or 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. Required. Known values are: “NotSpecified”, “CanNotDelete”, and “ReadOnly”.

  • notes (str) – Notes about the lock. Maximum of 512 characters.

  • owners (list[ManagementLockOwner]) – The owners of the lock.

class azure.mgmt.resource.locks.v2016_09_01.models.ManagementLockOwner(*, application_id: str | None = None, **kwargs: Any)[source]

Bases: Model

Lock owner properties.

Variables:

application_id (str) – The application ID of the lock owner.

Keyword Arguments:

application_id (str) – The application ID of the lock owner.

class azure.mgmt.resource.locks.v2016_09_01.models.Operation(*, name: str | None = None, display: _models.OperationDisplay | None = None, **kwargs: Any)[source]

Bases: Model

Microsoft.Authorization operation.

Variables:
  • name (str) – Operation name: {provider}/{resource}/{operation}.

  • display (OperationDisplay) – The object that represents the operation.

Keyword Arguments:
  • name (str) – Operation name: {provider}/{resource}/{operation}.

  • display (OperationDisplay) – The object that represents the operation.

class azure.mgmt.resource.locks.v2016_09_01.models.OperationDisplay(*, provider: str | None = None, resource: str | None = None, operation: str | None = None, **kwargs: Any)[source]

Bases: Model

The object that represents the operation.

Variables:
  • provider (str) – Service provider: Microsoft.Authorization.

  • resource (str) – Resource on which the operation is performed: Profile, endpoint, etc.

  • operation (str) – Operation type: Read, write, delete, etc.

Keyword Arguments:
  • provider (str) – Service provider: Microsoft.Authorization.

  • resource (str) – Resource on which the operation is performed: Profile, endpoint, etc.

  • operation (str) – Operation type: Read, write, delete, etc.

class azure.mgmt.resource.locks.v2016_09_01.models.OperationListResult(*, value: List[_models.Operation] | None = None, next_link: str | None = None, **kwargs: Any)[source]

Bases: Model

Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results.

Variables:
  • value (list[Operation]) – List of Microsoft.Authorization operations.

  • next_link (str) – URL to get the next set of operation list results if there are any.

Keyword Arguments:
  • value (list[Operation]) – List of Microsoft.Authorization operations.

  • next_link (str) – URL to get the next set of operation list results if there are any.