com.microsoft.azure.management.keyvault.Vaults Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-keyvault Show documentation
Show all versions of azure-mgmt-keyvault Show documentation
This package contains Microsoft Azure Key Vault Management SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-keyvault is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.keyvault;
import com.microsoft.azure.CloudException;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.Beta;
import com.microsoft.azure.management.apigeneration.Beta.SinceVersion;
import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.keyvault.implementation.KeyVaultManager;
import com.microsoft.azure.management.keyvault.implementation.VaultsInner;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.management.resources.fluentcore.arm.models.HasManager;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsCreating;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsDeletingById;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
import com.microsoft.rest.ServiceFuture;
import rx.Completable;
import rx.Observable;
/**
* Entry point for key vaults management API.
*/
@Fluent(ContainerName = "/Microsoft.Azure.Management.Fluent.KeyVault")
public interface Vaults extends SupportsCreating, SupportsDeletingById,
SupportsListingByResourceGroup, SupportsGettingByResourceGroup, SupportsGettingById,
SupportsDeletingByResourceGroup, HasManager, HasInner {
/**
* Gets information about the deleted vaults in a subscription.
*
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @throws CloudException
* thrown if the request is rejected by server
* @throws RuntimeException
* all other wrapped checked exceptions if the request fails to be
* sent
* @return the PagedList<DeletedVault> object if successful.
*/
@Beta(SinceVersion.V1_11_0)
PagedList listDeleted();
/**
* Gets information about the deleted vaults in a subscription.
*
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @return the observable to the PagedList<DeletedVault> object
*/
@Beta(SinceVersion.V1_11_0)
Observable listDeletedAsync();
/**
* Gets the deleted Azure key vault.
*
* @param vaultName
* The name of the vault.
* @param location
* The location of the deleted vault.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @throws CloudException
* thrown if the request is rejected by server
* @throws RuntimeException
* all other wrapped checked exceptions if the request fails to be
* sent
* @return the DeletedVault object if successful.
*/
@Beta(SinceVersion.V1_11_0)
DeletedVault getDeleted(String vaultName, String location);
/**
* Gets the deleted Azure key vault.
*
* @param vaultName
* The name of the vault.
* @param location
* The location of the deleted vault.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
@Beta(SinceVersion.V1_11_0)
Observable getDeletedAsync(String vaultName, String location);
/**
* Permanently deletes the specified vault. aka Purges the deleted Azure key
* vault.
*
* @param vaultName
* The name of the soft-deleted vault.
* @param location
* The location of the soft-deleted vault.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @throws CloudException
* thrown if the request is rejected by server
* @throws RuntimeException
* all other wrapped checked exceptions if the request fails to be
* sent
*/
@Beta(SinceVersion.V1_11_0)
void purgeDeleted(String vaultName, String location);
/**
* Permanently deletes the specified vault. aka Purges the deleted Azure key
* vault.
*
* @param vaultName
* The name of the soft-deleted vault.
* @param location
* The location of the soft-deleted vault.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @return the observable for the request
*/
@Beta(SinceVersion.V1_11_0)
Completable purgeDeletedAsync(String vaultName, String location);
/**
* Checks that the vault name is valid and is not already in use.
*
* @param name
* The vault name.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @throws CloudException
* thrown if the request is rejected by server
* @throws RuntimeException
* all other wrapped checked exceptions if the request fails to be
* sent
* @return the CheckNameAvailabilityResult object if successful.
*/
@Beta(SinceVersion.V1_11_0)
CheckNameAvailabilityResult checkNameAvailability(String name);
/**
* Checks that the vault name is valid and is not already in use.
*
* @param name
* The vault name.
* @throws IllegalArgumentException
* thrown if parameters fail the validation
* @return the observable to the CheckNameAvailabilityResult object
*/
@Beta(SinceVersion.V1_11_0)
Observable checkNameAvailabilityAsync(String name);
/**
* Recovers a soft deleted vault.
*
* @param resourceGroupName The name of the Resource Group to which the server belongs.
* @param vaultName Name of the vault
* @param location The location of the deleted vault.
* @return the recovered Vault object if successful
*/
@Beta(SinceVersion.V1_11_0)
Vault recoverSoftDeletedVault(String resourceGroupName, String vaultName, String location);
/**
* Recovers a soft deleted vault.
*
* @param resourceGroupName The name of the Resource Group to which the server belongs.
* @param vaultName Name of the vault
* @param location The location of the deleted vault.
* @return the recovered Vault object if successful
*/
@Beta(SinceVersion.V1_11_0)
Observable recoverSoftDeletedVaultAsync(String resourceGroupName, String vaultName, String location);
}