Interface BackupVaultsClient
-
public interface BackupVaultsClient
An instance of this class provides access to all the operations defined in BackupVaultsClient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupVaultResourceInner>,BackupVaultResourceInner>
beginCreateOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters)
Creates or updates a BackupVault resource belonging to a resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupVaultResourceInner>,BackupVaultResourceInner>
beginCreateOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, com.azure.core.util.Context context)
Creates or updates a BackupVault resource belonging to a resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupVaultResourceInner>,BackupVaultResourceInner>
beginUpdate(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters)
Updates a BackupVault resource belonging to a resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupVaultResourceInner>,BackupVaultResourceInner>
beginUpdate(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, com.azure.core.util.Context context)
Updates a BackupVault resource belonging to a resource group.CheckNameAvailabilityResultInner
checkNameAvailability(String resourceGroupName, String location, CheckNameAvailabilityRequest parameters)
API to check for resource name availability.com.azure.core.http.rest.Response<CheckNameAvailabilityResultInner>
checkNameAvailabilityWithResponse(String resourceGroupName, String location, CheckNameAvailabilityRequest parameters, com.azure.core.util.Context context)
API to check for resource name availability.BackupVaultResourceInner
createOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters)
Creates or updates a BackupVault resource belonging to a resource group.BackupVaultResourceInner
createOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, com.azure.core.util.Context context)
Creates or updates a BackupVault resource belonging to a resource group.void
delete(String resourceGroupName, String vaultName)
Deletes a BackupVault resource from the resource group.com.azure.core.http.rest.Response<Void>
deleteWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Deletes a BackupVault resource from the resource group.BackupVaultResourceInner
getByResourceGroup(String resourceGroupName, String vaultName)
Returns a resource belonging to a resource group.com.azure.core.http.rest.Response<BackupVaultResourceInner>
getByResourceGroupWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Returns a resource belonging to a resource group.com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner>
list()
Returns resource collection belonging to a subscription.com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner>
list(com.azure.core.util.Context context)
Returns resource collection belonging to a subscription.com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner>
listByResourceGroup(String resourceGroupName)
Returns resource collection belonging to a resource group.com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner>
listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns resource collection belonging to a resource group.BackupVaultResourceInner
update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters)
Updates a BackupVault resource belonging to a resource group.BackupVaultResourceInner
update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, com.azure.core.util.Context context)
Updates a BackupVault resource belonging to a resource group.
-
-
-
Method Detail
-
list
com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner> list()
Returns resource collection belonging to a subscription.- Returns:
- backupVaultResourceList.
- Throws:
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<BackupVaultResourceInner> list(com.azure.core.util.Context context)
Returns resource collection belonging to a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- backupVaultResourceList.
- 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner> listByResourceGroup(String resourceGroupName)
Returns resource collection belonging to a resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.- Returns:
- backupVaultResourceList.
- 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<BackupVaultResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
Returns resource collection belonging to a resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.context
- The context to associate with this operation.- Returns:
- backupVaultResourceList.
- 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.
-
getByResourceGroup
BackupVaultResourceInner getByResourceGroup(String resourceGroupName, String vaultName)
Returns a resource belonging to a resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.- Returns:
- backupVault Resource.
- 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<BackupVaultResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Returns a resource belonging to a resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.context
- The context to associate with this operation.- Returns:
- backupVault Resource.
- 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<BackupVaultResourceInner>,BackupVaultResourceInner> beginCreateOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters)
Creates or updates a BackupVault resource belonging to a resource group.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.- Returns:
- backupVault Resource.
- 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<BackupVaultResourceInner>,BackupVaultResourceInner> beginCreateOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, com.azure.core.util.Context context)
Creates or updates a BackupVault resource belonging to a resource group.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.context
- The context to associate with this operation.- Returns:
- backupVault Resource.
- 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
BackupVaultResourceInner createOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters)
Creates or updates a BackupVault resource belonging to a resource group.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.- Returns:
- backupVault Resource.
- 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
BackupVaultResourceInner createOrUpdate(String vaultName, String resourceGroupName, BackupVaultResourceInner parameters, com.azure.core.util.Context context)
Creates or updates a BackupVault resource belonging to a resource group.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.context
- The context to associate with this operation.- Returns:
- backupVault Resource.
- 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.
-
delete
void delete(String resourceGroupName, String vaultName)
Deletes a BackupVault resource from the resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.- 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context)
Deletes a BackupVault resource from the resource group.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.vaultName
- The name of the backup vault.context
- The context to associate with this operation.- Returns:
- the 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.
-
beginUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<BackupVaultResourceInner>,BackupVaultResourceInner> beginUpdate(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters)
Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.- Returns:
- backupVault Resource.
- 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<BackupVaultResourceInner>,BackupVaultResourceInner> beginUpdate(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, com.azure.core.util.Context context)
Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.context
- The context to associate with this operation.- Returns:
- backupVault Resource.
- 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
BackupVaultResourceInner update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters)
Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.- Returns:
- backupVault Resource.
- 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
BackupVaultResourceInner update(String vaultName, String resourceGroupName, PatchResourceRequestInput parameters, com.azure.core.util.Context context)
Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource.- Parameters:
vaultName
- The name of the backup vault.resourceGroupName
- The name of the resource group where the backup vault is present.parameters
- Request body for operation.context
- The context to associate with this operation.- Returns:
- backupVault Resource.
- 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.
-
checkNameAvailability
CheckNameAvailabilityResultInner checkNameAvailability(String resourceGroupName, String location, CheckNameAvailabilityRequest parameters)
API to check for resource name availability.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.location
- The location in which uniqueness will be verified.parameters
- Check name availability request.- Returns:
- checkNameAvailabilityResult.
- 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.
-
checkNameAvailabilityWithResponse
com.azure.core.http.rest.Response<CheckNameAvailabilityResultInner> checkNameAvailabilityWithResponse(String resourceGroupName, String location, CheckNameAvailabilityRequest parameters, com.azure.core.util.Context context)
API to check for resource name availability.- Parameters:
resourceGroupName
- The name of the resource group where the backup vault is present.location
- The location in which uniqueness will be verified.parameters
- Check name availability request.context
- The context to associate with this operation.- Returns:
- checkNameAvailabilityResult.
- 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.
-
-