Interface VaultsClient
public interface VaultsClient
An instance of this class provides access to all the operations defined in VaultsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VaultInner>,
VaultInner> beginCreateOrUpdate
(String resourceGroupName, String vaultName, VaultInner vault) Creates or updates a Recovery Services vault.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VaultInner>,
VaultInner> beginCreateOrUpdate
(String resourceGroupName, String vaultName, VaultInner vault, com.azure.core.util.Context context) Creates or updates a Recovery Services vault.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VaultInner>,
VaultInner> beginUpdate
(String resourceGroupName, String vaultName, PatchVault vault) Updates the vault.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VaultInner>,
VaultInner> beginUpdate
(String resourceGroupName, String vaultName, PatchVault vault, com.azure.core.util.Context context) Updates the vault.createOrUpdate
(String resourceGroupName, String vaultName, VaultInner vault) Creates or updates a Recovery Services vault.createOrUpdate
(String resourceGroupName, String vaultName, VaultInner vault, com.azure.core.util.Context context) Creates or updates a Recovery Services vault.void
Deletes a vault.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Deletes a vault.getByResourceGroup
(String resourceGroupName, String vaultName) Get the Vault details.com.azure.core.http.rest.Response<VaultInner>
getByResourceGroupWithResponse
(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Get the Vault details.com.azure.core.http.rest.PagedIterable<VaultInner>
list()
Fetches all the resources of the specified type in the subscription.com.azure.core.http.rest.PagedIterable<VaultInner>
list
(com.azure.core.util.Context context) Fetches all the resources of the specified type in the subscription.com.azure.core.http.rest.PagedIterable<VaultInner>
listByResourceGroup
(String resourceGroupName) Retrieve a list of Vaults.com.azure.core.http.rest.PagedIterable<VaultInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Retrieve a list of Vaults.update
(String resourceGroupName, String vaultName, PatchVault vault) Updates the vault.update
(String resourceGroupName, String vaultName, PatchVault vault, com.azure.core.util.Context context) Updates the vault.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<VaultInner> list()Fetches all the resources of the specified type in the subscription.- Returns:
- the response model for a list of Vaults as paginated response with
PagedIterable
. - 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
Fetches all the resources of the specified type in the subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response model for a list of Vaults 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.
-
listByResourceGroup
Retrieve a list of Vaults.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.- Returns:
- the response model for a list of Vaults 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<VaultInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Retrieve a list of Vaults.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.context
- The context to associate with this operation.- Returns:
- the response model for a list of Vaults 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.
-
getByResourceGroup
Get the Vault details.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.- Returns:
- the Vault details.
- 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<VaultInner> getByResourceGroupWithResponse(String resourceGroupName, String vaultName, com.azure.core.util.Context context) Get the Vault details.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.context
- The context to associate with this operation.- Returns:
- the Vault details 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<VaultInner>,VaultInner> beginCreateOrUpdate(String resourceGroupName, String vaultName, VaultInner vault) Creates or updates a Recovery Services vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.- Returns:
- the
SyncPoller
for polling of resource information, as returned by the resource provider. - 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<VaultInner>,VaultInner> beginCreateOrUpdate(String resourceGroupName, String vaultName, VaultInner vault, com.azure.core.util.Context context) Creates or updates a Recovery Services vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of resource information, as returned by the resource provider. - 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
Creates or updates a Recovery Services vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.- Returns:
- resource information, as returned by the resource provider.
- 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
VaultInner createOrUpdate(String resourceGroupName, String vaultName, VaultInner vault, com.azure.core.util.Context context) Creates or updates a Recovery Services vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.context
- The context to associate with this operation.- Returns:
- resource information, as returned by the resource provider.
- 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
Deletes a vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services 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 vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services 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<VaultInner>,VaultInner> beginUpdate(String resourceGroupName, String vaultName, PatchVault vault) Updates the vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.- Returns:
- the
SyncPoller
for polling of resource information, as returned by the resource provider. - 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<VaultInner>,VaultInner> beginUpdate(String resourceGroupName, String vaultName, PatchVault vault, com.azure.core.util.Context context) Updates the vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of resource information, as returned by the resource provider. - 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
Updates the vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.- Returns:
- resource information, as returned by the resource provider.
- 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
VaultInner update(String resourceGroupName, String vaultName, PatchVault vault, com.azure.core.util.Context context) Updates the vault.- Parameters:
resourceGroupName
- The name of the resource group where the recovery services vault is present.vaultName
- The name of the recovery services vault.vault
- Recovery Services Vault to be created.context
- The context to associate with this operation.- Returns:
- resource information, as returned by the resource provider.
- 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.
-