Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * 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.storage; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsBatchDeletion; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsDeletingByResourceGroup; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByResourceGroup; import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingById; 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.SupportsBatchCreation; 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.collection.SupportsListing; import com.microsoft.azure.management.resources.fluentcore.model.HasInner; import com.microsoft.azure.management.storage.implementation.StorageAccountsInner; import com.microsoft.azure.management.storage.implementation.StorageManager; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import rx.Completable; import rx.Observable;
Entry point for storage accounts management API.
/** * Entry point for storage accounts management API. */
@Fluent public interface StorageAccounts extends SupportsListing<StorageAccount>, SupportsCreating<StorageAccount.DefinitionStages.Blank>, SupportsDeletingById, SupportsListingByResourceGroup<StorageAccount>, SupportsGettingByResourceGroup<StorageAccount>, SupportsGettingById<StorageAccount>, SupportsDeletingByResourceGroup, SupportsBatchCreation<StorageAccount>, SupportsBatchDeletion, HasManager<StorageManager>, HasInner<StorageAccountsInner> {
Checks that account name is valid and is not in use.
Params:
  • name – the account name to check
Returns:whether the name is available and other info if not
/** * Checks that account name is valid and is not in use. * * @param name the account name to check * @return whether the name is available and other info if not */
CheckNameAvailabilityResult checkNameAvailability(String name);
Checks that account name is valid and is not in use asynchronously.
Params:
  • name – the account name to check
Returns:a representation of the deferred computation of this call, returning whether the name is available and other info if not
/** * Checks that account name is valid and is not in use asynchronously. * * @param name the account name to check * @return a representation of the deferred computation of this call, returning whether the name is available and other info if not */
Observable<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name);
Checks that account name is valid and is not in use asynchronously.
Params:
  • name – the account name to check
  • callback – the callback to call on success or failure
Returns:a handle to cancel the request
/** * Checks that account name is valid and is not in use asynchronously. * * @param name the account name to check * @param callback the callback to call on success or failure * @return a handle to cancel the request */
ServiceFuture<CheckNameAvailabilityResult> checkNameAvailabilityAsync(String name, ServiceCallback<CheckNameAvailabilityResult> callback);
Creates an Sas token for the storage account.
Params:
  • resourceGroupName – the name of the account's resource group
  • accountName – the account name to check
  • parameters – the parameters to list service SAS credentials of a specific resource
Returns:the created Sas token
/** * Creates an Sas token for the storage account. * * @param resourceGroupName the name of the account's resource group * @param accountName the account name to check * @param parameters the parameters to list service SAS credentials of a specific resource * @return the created Sas token */
String createSasToken(String resourceGroupName, String accountName, ServiceSasParameters parameters);
Creates an Sas token for the storage account asynchronously.
Params:
  • resourceGroupName – the name of the account's resource group
  • accountName – the account name to check
  • parameters – the parameters to list service SAS credentials of a specific resource
Returns:an observable of the created Sas token
/** * Creates an Sas token for the storage account asynchronously. * * @param resourceGroupName the name of the account's resource group * @param accountName the account name to check * @param parameters the parameters to list service SAS credentials of a specific resource * @return an observable of the created Sas token */
Observable<String> createSasTokenAsync(String resourceGroupName, String accountName, ServiceSasParameters parameters);
Sets a failover request that can be triggered for a storage account in case of availability issues.
Params:
  • resourceGroupName – the resource group name of the storage account
  • accountName – the account name to check
/** * Sets a failover request that can be triggered for a storage account in case of availability issues. * * @param resourceGroupName the resource group name of the storage account * @param accountName the account name to check */
void failover(String resourceGroupName, String accountName);
Sets a failover request asynchronously that can be triggered for a storage account in case of availability issues.
Params:
  • resourceGroupName – the resource group name of the storage account
  • accountName – the account name to check
Returns:a completable
/** * Sets a failover request asynchronously that can be triggered for a storage account in case of availability issues. * * @param resourceGroupName the resource group name of the storage account * @param accountName the account name to check * @return a completable */
Completable failoverAsync(String resourceGroupName, String accountName); }