Interface SqlPoolGeoBackupPolicies
-
public interface SqlPoolGeoBackupPolicies
Resource collection API of SqlPoolGeoBackupPolicies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GeoBackupPolicy.DefinitionStages.Blank
define(GeoBackupPolicyName name)
Begins definition for a new GeoBackupPolicy resource.GeoBackupPolicy
get(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName)
Get the specified SQL pool geo backup policy.GeoBackupPolicy
getById(String id)
Get the specified SQL pool geo backup policy.com.azure.core.http.rest.Response<GeoBackupPolicy>
getByIdWithResponse(String id, com.azure.core.util.Context context)
Get the specified SQL pool geo backup policy.com.azure.core.http.rest.Response<GeoBackupPolicy>
getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context)
Get the specified SQL pool geo backup policy.com.azure.core.http.rest.PagedIterable<GeoBackupPolicy>
list(String resourceGroupName, String workspaceName, String sqlPoolName)
Get list of SQL pool geo backup policies.com.azure.core.http.rest.PagedIterable<GeoBackupPolicy>
list(String resourceGroupName, String workspaceName, String sqlPoolName, com.azure.core.util.Context context)
Get list of SQL pool geo backup policies.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<GeoBackupPolicy> list(String resourceGroupName, String workspaceName, String sqlPoolName)
Get 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)
Get 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.
-
get
GeoBackupPolicy get(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName)
Get 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.
-
getWithResponse
com.azure.core.http.rest.Response<GeoBackupPolicy> getWithResponse(String resourceGroupName, String workspaceName, String sqlPoolName, GeoBackupPolicyName geoBackupPolicyName, com.azure.core.util.Context context)
Get 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.
-
getById
GeoBackupPolicy getById(String id)
Get 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 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
GeoBackupPolicy.DefinitionStages.Blank define(GeoBackupPolicyName name)
Begins definition for a new GeoBackupPolicy resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new GeoBackupPolicy definition.
-
-