Interface ObjectReplicationPoliciesOperationsClient
-
public interface ObjectReplicationPoliciesOperationsClientAn instance of this class provides access to all the operations defined in ObjectReplicationPoliciesOperationsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectReplicationPolicyInnercreateOrUpdate(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)Create or update the object replication policy of the storage account.Mono<ObjectReplicationPolicyInner>createOrUpdateAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)Create or update the object replication policy of the storage account.com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>createOrUpdateWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties, com.azure.core.util.Context context)Create or update the object replication policy of the storage account.Mono<com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>>createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)Create or update the object replication policy of the storage account.voiddelete(String resourceGroupName, String accountName, String objectReplicationPolicyId)Deletes the object replication policy associated with the specified storage account.Mono<Void>deleteAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)Deletes the object replication policy associated with the specified storage account.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, com.azure.core.util.Context context)Deletes the object replication policy associated with the specified storage account.Mono<com.azure.core.http.rest.Response<Void>>deleteWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)Deletes the object replication policy associated with the specified storage account.ObjectReplicationPolicyInnerget(String resourceGroupName, String accountName, String objectReplicationPolicyId)Get the object replication policy of the storage account by policy ID.Mono<ObjectReplicationPolicyInner>getAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)Get the object replication policy of the storage account by policy ID.com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>getWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, com.azure.core.util.Context context)Get the object replication policy of the storage account by policy ID.Mono<com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>>getWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)Get the object replication policy of the storage account by policy ID.com.azure.core.http.rest.PagedIterable<ObjectReplicationPolicyInner>list(String resourceGroupName, String accountName)List the object replication policies associated with the storage account.com.azure.core.http.rest.PagedIterable<ObjectReplicationPolicyInner>list(String resourceGroupName, String accountName, com.azure.core.util.Context context)List the object replication policies associated with the storage account.com.azure.core.http.rest.PagedFlux<ObjectReplicationPolicyInner>listAsync(String resourceGroupName, String accountName)List the object replication policies associated with the storage account.
-
-
-
Method Detail
-
listAsync
com.azure.core.http.rest.PagedFlux<ObjectReplicationPolicyInner> listAsync(String resourceGroupName, String accountName)
List the object replication policies associated with the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.- Returns:
- list storage account object replication policies.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ObjectReplicationPolicyInner> list(String resourceGroupName, String accountName)
List the object replication policies associated with the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.- Returns:
- list storage account object replication policies.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<ObjectReplicationPolicyInner> list(String resourceGroupName, String accountName, com.azure.core.util.Context context)
List the object replication policies associated with the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.context- The context to associate with this operation.- Returns:
- list storage account object replication policies.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>> getWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Get the object replication policy of the storage account by policy ID.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Returns:
- the object replication policy of the storage account by policy ID.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getAsync
Mono<ObjectReplicationPolicyInner> getAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Get the object replication policy of the storage account by policy ID.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Returns:
- the object replication policy of the storage account by policy ID.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
get
ObjectReplicationPolicyInner get(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Get the object replication policy of the storage account by policy ID.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Returns:
- the object replication policy of the storage account by policy ID.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<ObjectReplicationPolicyInner> getWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, com.azure.core.util.Context context)
Get the object replication policy of the storage account by policy ID.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.context- The context to associate with this operation.- Returns:
- the object replication policy of the storage account by policy ID.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ObjectReplicationPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)
Create or update the object replication policy of the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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- The object replication policy set to a storage account. A unique policy ID will be created if absent.- Returns:
- the replication policy between two storage accounts.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateAsync
Mono<ObjectReplicationPolicyInner> createOrUpdateAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)
Create or update the object replication policy of the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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- The object replication policy set to a storage account. A unique policy ID will be created if absent.- Returns:
- the replication policy between two storage accounts.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
ObjectReplicationPolicyInner createOrUpdate(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties)
Create or update the object replication policy of the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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- The object replication policy set to a storage account. A unique policy ID will be created if absent.- Returns:
- the replication policy between two storage accounts.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ObjectReplicationPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, ObjectReplicationPolicyInner properties, com.azure.core.util.Context context)
Create or update the object replication policy of the storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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- The object replication policy set to a storage account. A unique policy ID will be created if absent.context- The context to associate with this operation.- Returns:
- the replication policy between two storage accounts.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Deletes the object replication policy associated with the specified storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteAsync
Mono<Void> deleteAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Deletes the object replication policy associated with the specified storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Returns:
- the completion.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String accountName, String objectReplicationPolicyId)
Deletes the object replication policy associated with the specified storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String accountName, String objectReplicationPolicyId, com.azure.core.util.Context context)
Deletes the object replication policy associated with the specified storage account.- Parameters:
resourceGroupName- The name of the resource group within the user's subscription. The name is case insensitive.accountName- 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.objectReplicationPolicyId- 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.context- The context to associate with this operation.- Returns:
- the response.
- Throws:
IllegalArgumentException- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException- thrown if the request is rejected by server.RuntimeException- all other wrapped checked exceptions if the request fails to be sent.
-
-