ObjectReplicationPoliciesOperations Class
ObjectReplicationPoliciesOperations 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.objectObjectReplicationPoliciesOperations
Constructor
ObjectReplicationPoliciesOperations(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 |
Create or update the object replication policy of the storage account. |
| delete |
Deletes the object replication policy associated with the specified storage account. |
| get |
Get the object replication policy of the storage account by policy ID. |
| list |
List the object replication policies associated with the storage account. |
create_or_update
Create or update the object replication policy of the storage account.
async create_or_update(resource_group_name: str, account_name: str, object_replication_policy_id: str, properties: azure.mgmt.storage.v2021_08_01.models._models_py3.ObjectReplicationPolicy, **kwargs: Any) -> azure.mgmt.storage.v2021_08_01.models._models_py3.ObjectReplicationPolicy
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.
- object_replication_policy_id
- str
For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
- properties
- ObjectReplicationPolicy
The object replication policy set to a storage account. A unique policy ID will be created if absent.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ObjectReplicationPolicy, or the result of cls(response)
Return type
Exceptions
delete
Deletes the object replication policy associated with the specified storage account.
async delete(resource_group_name: str, account_name: str, object_replication_policy_id: str, **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.
- object_replication_policy_id
- str
For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
- 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
Get the object replication policy of the storage account by policy ID.
async get(resource_group_name: str, account_name: str, object_replication_policy_id: str, **kwargs: Any) -> azure.mgmt.storage.v2021_08_01.models._models_py3.ObjectReplicationPolicy
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.
- object_replication_policy_id
- str
For the destination account, provide the value 'default'. Configure the policy on the destination account first. For the source account, provide the value of the policy ID that is returned when you download the policy that was defined on the destination account. The policy is downloaded as a JSON file.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
ObjectReplicationPolicy, or the result of cls(response)
Return type
Exceptions
list
List the object replication policies associated with the storage account.
list(resource_group_name: str, account_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.storage.v2021_08_01.models._models_py3.ObjectReplicationPolicies]
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.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either ObjectReplicationPolicies or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.storage.v2021_08_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\storage\\v2021_08_01\\models\\__init__.py'>
Feedback
Submit and view feedback for