Interface SqlPoolGeoBackupPolicies
public interface SqlPoolGeoBackupPolicies
Resource collection API of SqlPoolGeoBackupPolicies.
-
Method Summary
Modifier and TypeMethodDescriptiondefine
(GeoBackupPolicyName name) Begins definition for a new GeoBackupPolicy resource.get
(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) Get a SQL pool geo backup policyGet a SQL pool geo backup policycom.azure.core.http.rest.Response<GeoBackupPolicy>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a SQL pool geo backup policycom.azure.core.http.rest.Response<GeoBackupPolicy>
getWithResponse
(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context) Get a SQL pool geo backup policycom.azure.core.http.rest.PagedIterable<GeoBackupPolicy>
List SQL pool geo backup policiescom.azure.core.http.rest.PagedIterable<GeoBackupPolicy>
list
(String resourceGroupName, String workspaceName, String sqlPoolName, com.azure.core.util.Context context) List SQL pool geo backup policies
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<GeoBackupPolicy> list(String resourceGroupName, String workspaceName, String sqlPoolName) List SQL pool geo backup policiesGet list of SQL pool geo backup policies.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.- Returns:
- list of SQL pool geo backup policies 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.
-
list
com.azure.core.http.rest.PagedIterable<GeoBackupPolicy> list(String resourceGroupName, String workspaceName, String sqlPoolName, com.azure.core.util.Context context) List SQL pool geo backup policiesGet list of SQL pool geo backup policies.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.context
- The context to associate with this operation.- Returns:
- list of SQL pool geo backup policies 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.
-
getWithResponse
com.azure.core.http.rest.Response<GeoBackupPolicy> getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context) Get a SQL pool geo backup policyGet the specified SQL pool geo backup policy.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.geoBackupPolicyName
- The name of the geo backup policy.context
- The context to associate with this operation.- Returns:
- the specified SQL pool geo backup 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
GeoBackupPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName) Get a SQL pool geo backup policyGet the specified SQL pool geo backup policy.
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.workspaceName
- The name of the workspace.sqlPoolName
- SQL pool name.geoBackupPolicyName
- The name of the geo backup policy.- Returns:
- the specified SQL pool 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.
-
getById
Get a SQL pool geo backup policyGet the specified SQL pool geo backup policy.
- Parameters:
id
- the resource ID.- Returns:
- the specified SQL pool geo backup 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<GeoBackupPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a SQL pool geo backup policyGet the specified SQL pool geo backup policy.
- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- the specified SQL pool geo backup 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.
-
define
Begins definition for a new GeoBackupPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new GeoBackupPolicy definition.
-