Interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient
public interface ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient
An instance of this class provides access to all the operations defined in
ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>, ManagedBackupShortTermRetentionPolicyInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.createOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.createOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.get(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.getAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.com.azure.core.http.rest.Response<ManagedBackupShortTermRetentionPolicyInner> getWithResponse(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, com.azure.core.util.Context context) Gets a dropped database's short term retention policy.Mono<com.azure.core.http.rest.Response<ManagedBackupShortTermRetentionPolicyInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.com.azure.core.http.rest.PagedIterable<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabase(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId) Gets a dropped database's short term retention policy list.com.azure.core.http.rest.PagedIterable<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabase(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, com.azure.core.util.Context context) Gets a dropped database's short term retention policy list.com.azure.core.http.rest.PagedFlux<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabaseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId) Gets a dropped database's short term retention policy list.update(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.update(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.updateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.
-
Method Details
-
listByRestorableDroppedDatabaseAsync
com.azure.core.http.rest.PagedFlux<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabaseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId) Gets a dropped database's short term retention policy list.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.- Returns:
- a dropped database's short term retention policy list as paginated response with
PagedFlux. - 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.
-
listByRestorableDroppedDatabase
com.azure.core.http.rest.PagedIterable<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabase(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId) Gets a dropped database's short term retention policy list.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.- Returns:
- a dropped database's short term retention policy list as paginated response with
PagedIterable. - 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.
-
listByRestorableDroppedDatabase
com.azure.core.http.rest.PagedIterable<ManagedBackupShortTermRetentionPolicyInner> listByRestorableDroppedDatabase(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, com.azure.core.util.Context context) Gets a dropped database's short term retention policy list.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.context- The context to associate with this operation.- Returns:
- a dropped database's short term retention policy list as paginated response with
PagedIterable. - 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<ManagedBackupShortTermRetentionPolicyInner>> getWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name.- Returns:
- a dropped database's short term retention policy along with
Responseon successful completion ofMono. - 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<ManagedBackupShortTermRetentionPolicyInner> getAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name.- Returns:
- a dropped database's short term retention policy on successful completion of
Mono. - 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<ManagedBackupShortTermRetentionPolicyInner> getWithResponse(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, com.azure.core.util.Context context) Gets a dropped database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name.context- The context to associate with this operation.- Returns:
- a dropped database's short term retention policy along with
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.
-
get
ManagedBackupShortTermRetentionPolicyInner get(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName) Gets a dropped database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name.- Returns:
- a dropped database's short term retention policy.
- 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<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy along with
Responseon successful completion ofMono. - 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.
-
beginCreateOrUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- the
PollerFluxfor polling of a short term retention policy. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- the
SyncPollerfor polling of a short term retention policy. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a short term retention policy. - 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<ManagedBackupShortTermRetentionPolicyInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy on successful completion of
Mono. - 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
ManagedBackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy.
- 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
ManagedBackupShortTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.context- The context to associate with this operation.- Returns:
- a short term retention policy.
- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> updateWithResponseAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy along with
Responseon successful completion ofMono. - 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.
-
beginUpdateAsync
com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginUpdateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- the
PollerFluxfor polling of a short term retention policy. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- the
SyncPollerfor polling of a short term retention policy. - 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<ManagedBackupShortTermRetentionPolicyInner>,ManagedBackupShortTermRetentionPolicyInner> beginUpdate(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a short term retention policy. - 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.
-
updateAsync
Mono<ManagedBackupShortTermRetentionPolicyInner> updateAsync(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy on successful completion of
Mono. - 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.
-
update
ManagedBackupShortTermRetentionPolicyInner update(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.- Returns:
- a short term retention policy.
- 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.
-
update
ManagedBackupShortTermRetentionPolicyInner update(String resourceGroupName, String managedInstanceName, String restorableDroppedDatabaseId, ManagedShortTermRetentionPolicyName policyName, ManagedBackupShortTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's short term retention policy.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.managedInstanceName- The name of the managed instance.restorableDroppedDatabaseId- The restorableDroppedDatabaseId parameter.policyName- The policy name. Should always be "default".parameters- The short term retention policy info.context- The context to associate with this operation.- Returns:
- a short term retention policy.
- 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.
-