azure.mgmt.resource.locks.v2015_01_01.operations module¶
-
class
azure.mgmt.resource.locks.v2015_01_01.operations.
ManagementLocksOperations
(client, config, serializer, deserializer)[source]¶ Bases:
object
ManagementLocksOperations operations.
You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.
Parameters: - client – Client for service requests.
- config – Configuration of service client.
- serializer – An object model serializer.
- deserializer – An object model deserializer.
Variables: api_version – The API version to use for the operation. Constant value: “2015-01-01”.
-
create_or_update_at_resource_group_level
(resource_group_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config)[source]¶ Create or update a management lock at the resource group level.
Parameters: - resource_group_name (str) – The resource group name.
- lock_name (str) – The lock name.
- parameters (ManagementLockObject) – The management lock parameters.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ManagementLockObject or ClientRawResponse if raw=true
Return type: ManagementLockObject or ClientRawResponse
Raises: CloudError
-
create_or_update_at_resource_level
(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, parameters, custom_headers=None, raw=False, **operation_config)[source]¶ Create or update a management lock at the resource level or any level below resource.
Parameters: - resource_group_name (str) – The name of the resource group.
- resource_provider_namespace (str) – Resource identity.
- parent_resource_path (str) – Resource identity.
- resource_type (str) – Resource identity.
- resource_name (str) – Resource identity.
- lock_name (str) – The name of lock.
- parameters (ManagementLockObject) – Create or update management lock parameters.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ManagementLockObject or ClientRawResponse if raw=true
Return type: ManagementLockObject or ClientRawResponse
Raises: CloudError
-
create_or_update_at_subscription_level
(lock_name, parameters, custom_headers=None, raw=False, **operation_config)[source]¶ Create or update a management lock at the subscription level.
Parameters: - lock_name (str) – The name of lock.
- parameters (ManagementLockObject) – The management lock parameters.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ManagementLockObject or ClientRawResponse if raw=true
Return type: ManagementLockObject or ClientRawResponse
Raises: CloudError
-
delete_at_resource_group_level
(resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config)[source]¶ Deletes the management lock of a resource group.
Parameters: - resource_group_name (str) – The resource group name.
- lock_name (str) – The name of lock.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: None or ClientRawResponse if raw=true
Return type: None or ClientRawResponse
Raises: CloudError
-
delete_at_resource_level
(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, lock_name, custom_headers=None, raw=False, **operation_config)[source]¶ Deletes the management lock of a resource or any level below resource.
Parameters: - resource_group_name (str) – The name of the resource group.
- resource_provider_namespace (str) – Resource identity.
- parent_resource_path (str) – Resource identity.
- resource_type (str) – Resource identity.
- resource_name (str) – Resource identity.
- lock_name (str) – The name of lock.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: None or ClientRawResponse if raw=true
Return type: None or ClientRawResponse
Raises: CloudError
-
delete_at_subscription_level
(lock_name, custom_headers=None, raw=False, **operation_config)[source]¶ Deletes the management lock of a subscription.
Parameters: - lock_name (str) – The name of lock.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: None or ClientRawResponse if raw=true
Return type: None or ClientRawResponse
Raises: CloudError
-
get
(lock_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets the management lock of a scope.
Parameters: - lock_name (str) – Name of the management lock.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ManagementLockObject or ClientRawResponse if raw=true
Return type: ManagementLockObject or ClientRawResponse
Raises: CloudError
-
get_at_resource_group_level
(resource_group_name, lock_name, custom_headers=None, raw=False, **operation_config)[source]¶ Gets a management lock at the resource group level.
Parameters: - resource_group_name (str) – The resource group name.
- lock_name (str) – The lock name.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: ManagementLockObject or ClientRawResponse if raw=true
Return type: ManagementLockObject or ClientRawResponse
Raises: CloudError
-
list_at_resource_group_level
(resource_group_name, filter=None, custom_headers=None, raw=False, **operation_config)[source]¶ Gets all the management locks of a resource group.
Parameters: - resource_group_name (str) – Resource group name.
- filter (str) – The filter to apply on the operation.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: An iterator like instance of ManagementLockObject
Return type: Raises: CloudError
-
list_at_resource_level
(resource_group_name, resource_provider_namespace, parent_resource_path, resource_type, resource_name, filter=None, custom_headers=None, raw=False, **operation_config)[source]¶ Gets all the management locks of a resource or any level below resource.
Parameters: - resource_group_name (str) – The name of the resource group. The name is case insensitive.
- resource_provider_namespace (str) – Resource identity.
- parent_resource_path (str) – Resource identity.
- resource_type (str) – Resource identity.
- resource_name (str) – Resource identity.
- filter (str) – The filter to apply on the operation.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: An iterator like instance of ManagementLockObject
Return type: Raises: CloudError
-
list_at_subscription_level
(filter=None, custom_headers=None, raw=False, **operation_config)[source]¶ Gets all the management locks of a subscription.
Parameters: - filter (str) – The filter to apply on the operation.
- custom_headers (dict) – headers that will be added to the request
- raw (bool) – returns the direct response alongside the deserialized response
- operation_config – Operation configuration overrides.
Returns: An iterator like instance of ManagementLockObject
Return type: Raises: CloudError
-
models
= <module 'azure.mgmt.resource.locks.v2015_01_01.models' from '/usr/lib/python3/dist-packages/azure/mgmt/resource/locks/v2015_01_01/models/__init__.py'>¶