Interface LongTermRetentionPoliciesClient
public interface LongTermRetentionPoliciesClient
An instance of this class provides access to all the operations defined in LongTermRetentionPoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long term retention policy.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's long term retention policy.com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long term retention policy.createOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long term retention policy.createOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's long term retention policy.createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long term retention policy.Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long term retention policy.get(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long term retention policy.getAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long term retention policy.com.azure.core.http.rest.Response<LongTermRetentionPolicyInner>getWithResponse(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, com.azure.core.util.Context context) Gets a database's long term retention policy.Mono<com.azure.core.http.rest.Response<LongTermRetentionPolicyInner>>getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long term retention policy.com.azure.core.http.rest.PagedIterable<LongTermRetentionPolicyInner>listByDatabase(String resourceGroupName, String serverName, String databaseName) Gets a database's long term retention policy.com.azure.core.http.rest.PagedIterable<LongTermRetentionPolicyInner>listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets a database's long term retention policy.com.azure.core.http.rest.PagedFlux<LongTermRetentionPolicyInner>listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) Gets a database's long term retention policy.
-
Method Details
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<LongTermRetentionPolicyInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- a database's long term retention policy 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<LongTermRetentionPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.- Returns:
- a database's long term retention policy 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.
-
listByDatabase
com.azure.core.http.rest.PagedIterable<LongTermRetentionPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.context- The context to associate with this operation.- Returns:
- a database's long term retention policy 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<LongTermRetentionPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.- Returns:
- a database's long 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<LongTermRetentionPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.- Returns:
- a database's long 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<LongTermRetentionPolicyInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, com.azure.core.util.Context context) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.context- The context to associate with this operation.- Returns:
- a database's long 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
LongTermRetentionPolicyInner get(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName) Gets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.- Returns:
- a database's long 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 serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.- Returns:
- a long 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<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.- Returns:
- the
PollerFluxfor polling of a long 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<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.- Returns:
- the
SyncPollerfor polling of a long 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<LongTermRetentionPolicyInner>,LongTermRetentionPolicyInner> beginCreateOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.context- The context to associate with this operation.- Returns:
- the
SyncPollerfor polling of a long 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<LongTermRetentionPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.- Returns:
- a long 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
LongTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.- Returns:
- a long 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
LongTermRetentionPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, LongTermRetentionPolicyName policyName, LongTermRetentionPolicyInner parameters, com.azure.core.util.Context context) Sets a database's long 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.serverName- The name of the server.databaseName- The name of the database.policyName- The policy name. Should always be Default.parameters- The long term retention policy info.context- The context to associate with this operation.- Returns:
- a long 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.
-