azure.mgmt.resource.locks.v2016_09_01.models module¶
-
class
azure.mgmt.resource.locks.v2016_09_01.models.
LockLevel
(value)[source]¶ -
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: Optional[List[_models.ManagementLockObject]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.Model
The list of locks.
- Variables
value (list[ManagementLockObject]) – The list of locks.
next_link (str) – The URL to use for getting the next set of results.
- Keyword Arguments
value (list[ManagementLockObject]) – The list of locks.
next_link (str) – The URL to use for getting the next set of results.
-
class
azure.mgmt.resource.locks.v2016_09_01.models.
ManagementLockObject
(*, level: Union[str, _models.LockLevel], notes: Optional[str] = None, owners: Optional[List[_models.ManagementLockOwner]] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.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 Azure.
- Variables
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: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.Model
Lock owner properties.
-
class
azure.mgmt.resource.locks.v2016_09_01.models.
Operation
(*, name: Optional[str] = None, display: Optional[_models.OperationDisplay] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.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: Optional[str] = None, resource: Optional[str] = None, operation: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.Model
The object that represents the operation.
- Variables
- Keyword Arguments
-
class
azure.mgmt.resource.locks.v2016_09_01.models.
OperationListResult
(*, value: Optional[List[_models.Operation]] = None, next_link: Optional[str] = None, **kwargs: Any)[source]¶ Bases:
azure.mgmt.resource.locks._serialization.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
- Keyword Arguments