ManagementPoliciesOperations Class
ManagementPoliciesOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectManagementPoliciesOperations
Constructor
ManagementPoliciesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
Methods
| create_or_update |
Sets the managementpolicy to the specified storage account. |
| delete |
Deletes the managementpolicy associated with the specified storage account. |
| get |
Gets the managementpolicy associated with the specified storage account. |
create_or_update
Sets the managementpolicy to the specified storage account.
async create_or_update(resource_group_name: str, account_name: str, management_policy_name: Union[str, azure.mgmt.storage.v2021_06_01.models._storage_management_client_enums.ManagementPolicyName], properties: azure.mgmt.storage.v2021_06_01.models._models_py3.ManagementPolicy, **kwargs: Any) -> azure.mgmt.storage.v2021_06_01.models._models_py3.ManagementPolicy
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- account_name
- str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- management_policy_name
- str or ManagementPolicyName
The name of the Storage Account Management Policy. It should always be 'default'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementPolicy, or the result of cls(response)
Return type
Exceptions
delete
Deletes the managementpolicy associated with the specified storage account.
async delete(resource_group_name: str, account_name: str, management_policy_name: Union[str, azure.mgmt.storage.v2021_06_01.models._storage_management_client_enums.ManagementPolicyName], **kwargs: Any) -> None
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- account_name
- str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- management_policy_name
- str or ManagementPolicyName
The name of the Storage Account Management Policy. It should always be 'default'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
None, or the result of cls(response)
Return type
Exceptions
get
Gets the managementpolicy associated with the specified storage account.
async get(resource_group_name: str, account_name: str, management_policy_name: Union[str, azure.mgmt.storage.v2021_06_01.models._storage_management_client_enums.ManagementPolicyName], **kwargs: Any) -> azure.mgmt.storage.v2021_06_01.models._models_py3.ManagementPolicy
Parameters
- resource_group_name
- str
The name of the resource group within the user's subscription. The name is case insensitive.
- account_name
- str
The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
- management_policy_name
- str or ManagementPolicyName
The name of the Storage Account Management Policy. It should always be 'default'.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ManagementPolicy, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.storage.v2021_06_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\storage\\v2021_06_01\\models\\__init__.py'>
Feedback
Submit and view feedback for