Interface GeoBackupPoliciesClient
-
public interface GeoBackupPoliciesClientAn instance of this class provides access to all the operations defined in GeoBackupPoliciesClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeoBackupPolicyInnercreateOrUpdate(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)Updates a database geo backup policy.Mono<GeoBackupPolicyInner>createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)Updates a database geo backup policy.com.azure.core.http.rest.Response<GeoBackupPolicyInner>createOrUpdateWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state, com.azure.core.util.Context context)Updates a database geo backup policy.Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)Updates a database geo backup policy.GeoBackupPolicyInnerget(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)Gets a geo backup policy.Mono<GeoBackupPolicyInner>getAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)Gets a geo backup policy.com.azure.core.http.rest.Response<GeoBackupPolicyInner>getWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context)Gets a geo backup policy.Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>>getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)Gets a geo backup policy.com.azure.core.http.rest.PagedIterable<GeoBackupPolicyInner>listByDatabase(String resourceGroupName, String serverName, String databaseName)Returns a list of geo backup policies.com.azure.core.http.rest.PagedIterable<GeoBackupPolicyInner>listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)Returns a list of geo backup policies.com.azure.core.http.rest.PagedFlux<GeoBackupPolicyInner>listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName)Returns a list of geo backup policies.
-
-
-
Method Detail
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)
Updates a database geo backup 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.geoBackupPolicyName- The name of the geo backup policy.state- The state of the geo backup policy.- Returns:
- a database geo backup 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<GeoBackupPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)
Updates a database geo backup 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.geoBackupPolicyName- The name of the geo backup policy.state- The state of the geo backup policy.- Returns:
- a database geo backup 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
GeoBackupPolicyInner createOrUpdate(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state)
Updates a database geo backup 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.geoBackupPolicyName- The name of the geo backup policy.state- The state of the geo backup policy.- Returns:
- a database geo backup 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<GeoBackupPolicyInner> createOrUpdateWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, GeoBackupPolicyState state, com.azure.core.util.Context context)
Updates a database geo backup 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.geoBackupPolicyName- The name of the geo backup policy.state- The state of the geo backup policy.context- The context to associate with this operation.- Returns:
- a database geo backup 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<GeoBackupPolicyInner>> getWithResponseAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
Gets a geo backup 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.geoBackupPolicyName- The name of the geo backup policy.- Returns:
- a geo backup 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.
-
getAsync
Mono<GeoBackupPolicyInner> getAsync(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
Gets a geo backup 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.geoBackupPolicyName- The name of the geo backup policy.- Returns:
- a geo backup 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.
-
get
GeoBackupPolicyInner get(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName)
Gets a geo backup 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.geoBackupPolicyName- The name of the geo backup policy.- Returns:
- a geo backup 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.
-
getWithResponse
com.azure.core.http.rest.Response<GeoBackupPolicyInner> getWithResponse(String resourceGroupName, String serverName, String databaseName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context)
Gets a geo backup 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.geoBackupPolicyName- The name of the geo backup policy.context- The context to associate with this operation.- Returns:
- a geo backup 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.
-
listByDatabaseAsync
com.azure.core.http.rest.PagedFlux<GeoBackupPolicyInner> listByDatabaseAsync(String resourceGroupName, String serverName, String databaseName)
Returns a list of geo backup policies.- 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:
- the response to a list geo backup policies request.
- 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<GeoBackupPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName)
Returns a list of geo backup policies.- 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:
- the response to a list geo backup policies request.
- 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<GeoBackupPolicyInner> listByDatabase(String resourceGroupName, String serverName, String databaseName, com.azure.core.util.Context context)
Returns a list of geo backup policies.- 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:
- the response to a list geo backup policies request.
- 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.
-
-