/// <summary> /// Deletes the specified Azure backup vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.BackupServices.IVaultOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of resource group to which vault belongs /// </param> /// <param name='resourceName'> /// Required. The name of the vault /// </param> /// <param name='customRequestHeaders'> /// Optional. Request header parameters. /// </param> /// <returns> /// Vault information. /// </returns> public static Task <AzureBackupVaultGetResponse> DeleteAsync(this IVaultOperations operations, string resourceGroupName, string resourceName, CustomRequestHeaders customRequestHeaders) { return(operations.DeleteAsync(resourceGroupName, resourceName, customRequestHeaders, CancellationToken.None)); }
/// <summary> /// Deletes a vault /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.RecoveryServices.IVaultOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the (Resource Group) cloud service containing /// the job collection. /// </param> /// <param name='vaultName'> /// Required. The name of the vault to delete. /// </param> /// <returns> /// The response body contains the status of the specified asynchronous /// operation, indicating whether it has succeeded, is inprogress, or /// has failed. Note that this status is distinct from the HTTP status /// code returned for the Get Operation Status operation itself. If /// the asynchronous operation succeeded, the response body includes /// the HTTP status code for the successful request. If the /// asynchronous operation failed, the response body includes the HTTP /// status code for the failed request, and also includes error /// information regarding the failure. /// </returns> public static Task <RecoveryServicesOperationStatusResponse> DeleteAsync(this IVaultOperations operations, string resourceGroupName, string vaultName) { return(operations.DeleteAsync(resourceGroupName, vaultName, CancellationToken.None)); }
/// <summary> /// Deletes the specified Azure key vault. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.KeyVault.IVaultOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the Resource Group to which the vault belongs. /// </param> /// <param name='vaultName'> /// Required. The name of the vault to delete /// </param> /// <returns> /// Vault information. /// </returns> public static Task <VaultGetResponse> DeleteAsync(this IVaultOperations operations, string resourceGroupName, string vaultName) { return(operations.DeleteAsync(resourceGroupName, vaultName, CancellationToken.None)); }
/// <summary> /// Creates a Cloud services /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations. /// </param> /// <param name='cloudServiceName'> /// Required. The name of the cloud service containing the job /// collection. /// </param> /// <param name='vaultName'> /// Required. The name of the vault to create. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IVaultOperations operations, string cloudServiceName, string vaultName) { return(operations.DeleteAsync(cloudServiceName, vaultName, CancellationToken.None)); }