ManagementLockObject Class

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.

Inheritance
azure.mgmt.resource.locks._serialization.Model
ManagementLockObject

Constructor

ManagementLockObject(*, level: str | _models.LockLevel, notes: str | None = None, owners: List[_models.ManagementLockOwner] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
level

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

The owners of the lock.

Variables

Name Description
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

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

The owners of the lock.