com.microsoft.rest.ServiceCallback Java Examples

The following examples show how to use com.microsoft.rest.ServiceCallback. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VirtualMachineScaleSetsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> startAsync(String groupName, String name, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(startAsync(groupName, name), callback);
}
 
Example #2
Source File: DeploymentsImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> deleteByIdAsync(String id, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(deleteByIdAsync(id), callback);
}
 
Example #3
Source File: VirtualMachineScaleSetImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> deallocateAsync(ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(this.deallocateAsync(), callback);
}
 
Example #4
Source File: VirtualMachinesImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<Void> restartAsync(String groupName, String name, ServiceCallback<Void> callback) {
    return ServiceFuture.fromBody(restartAsync(groupName, name), callback);
}
 
Example #5
Source File: ManagementLocksImpl.java    From azure-libraries-for-java with MIT License 4 votes vote down vote up
@Override
public ServiceFuture<ManagementLock> getByResourceGroupAsync(String resourceGroupName, String name, ServiceCallback<ManagementLock> callback) {
    return ServiceFuture.fromBody(getByResourceGroupAsync(resourceGroupName, name), callback);
}
 
Example #6
Source File: WebSiteManagementClientImpl.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Move resources between resource groups.
 * Description for Move resources between resource groups.
 *
 * @param resourceGroupName Name of the resource group to which the resource belongs.
 * @param moveResourceEnvelope Object that represents the resource to move.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> moveAsync(String resourceGroupName, CsmMoveResourceEnvelope moveResourceEnvelope, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(moveWithServiceResponseAsync(resourceGroupName, moveResourceEnvelope), serviceCallback);
}
 
Example #7
Source File: ManagementPoliciesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets the managementpolicy associated with the specified storage account.
 *
 * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
 * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<ManagementPolicyInner> getAsync(String resourceGroupName, String accountName, final ServiceCallback<ManagementPolicyInner> serviceCallback) {
    return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback);
}
 
Example #8
Source File: ComputePolicies.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies.
 *
 * @param resourceGroupName The name of the Azure resource group.
 * @param accountName The name of the Data Lake Analytics account.
 * @param computePolicyName The name of the compute policy to create or update.
 * @param parameters Parameters supplied to create or update the compute policy. The max degree of parallelism per job property, min priority per job property, or both must be present.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
ServiceFuture<ComputePolicy> createOrUpdateAsync(String resourceGroupName, String accountName, String computePolicyName, CreateOrUpdateComputePolicyParameters parameters, ServiceCallback<ComputePolicy> serviceCallback);
 
Example #9
Source File: SyncAgentsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets a sync agent.
 *
 * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 * @param serverName The name of the server on which the sync agent is hosted.
 * @param syncAgentName The name of the sync agent.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<SyncAgentInner> getAsync(String resourceGroupName, String serverName, String syncAgentName, final ServiceCallback<SyncAgentInner> serviceCallback) {
    return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, serverName, syncAgentName), serviceCallback);
}
 
Example #10
Source File: GremlinResourcesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets the Gremlin graph under an existing Azure Cosmos DB database account.
 *
 * @param resourceGroupName Name of an Azure resource group.
 * @param accountName Cosmos DB database account name.
 * @param databaseName Cosmos DB database name.
 * @param graphName Cosmos DB graph name.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<GremlinGraphGetResultsInner> getGremlinGraphAsync(String resourceGroupName, String accountName, String databaseName, String graphName, final ServiceCallback<GremlinGraphGetResultsInner> serviceCallback) {
    return ServiceFuture.fromResponse(getGremlinGraphWithServiceResponseAsync(resourceGroupName, accountName, databaseName, graphName), serviceCallback);
}
 
Example #11
Source File: NetworkInterfacesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Deletes the specified network interface.
 *
 * @param resourceGroupName The name of the resource group.
 * @param networkInterfaceName The name of the network interface.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String networkInterfaceName, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, networkInterfaceName), serviceCallback);
}
 
Example #12
Source File: VpnConnectionsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
 *
 * @param resourceGroupName The resource group name of the VpnGateway.
 * @param gatewayName The name of the gateway.
 * @param connectionName The name of the connection.
 * @param vpnConnectionParameters Parameters supplied to create or Update a VPN Connection.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<VpnConnectionInner> createOrUpdateAsync(String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters, final ServiceCallback<VpnConnectionInner> serviceCallback) {
    return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, gatewayName, connectionName, vpnConnectionParameters), serviceCallback);
}
 
Example #13
Source File: PublicIPPrefixesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Updates public IP prefix tags.
 *
 * @param resourceGroupName The name of the resource group.
 * @param publicIpPrefixName The name of the public IP prefix.
 * @param tags Resource tags.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<PublicIPPrefixInner> updateTagsAsync(String resourceGroupName, String publicIpPrefixName, Map<String, String> tags, final ServiceCallback<PublicIPPrefixInner> serviceCallback) {
    return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, publicIpPrefixName, tags), serviceCallback);
}
 
Example #14
Source File: MongoDBResourcesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database account with the provided name.
 *
 * @param resourceGroupName Name of an Azure resource group.
 * @param accountName Cosmos DB database account name.
 * @param databaseName Cosmos DB database name.
 * @param collectionName Cosmos DB collection name.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<ThroughputSettingsGetResultsInner> getMongoDBCollectionThroughputAsync(String resourceGroupName, String accountName, String databaseName, String collectionName, final ServiceCallback<ThroughputSettingsGetResultsInner> serviceCallback) {
    return ServiceFuture.fromResponse(getMongoDBCollectionThroughputWithServiceResponseAsync(resourceGroupName, accountName, databaseName, collectionName), serviceCallback);
}
 
Example #15
Source File: KeyVaultClientCustomImpl.java    From azure-keyvault-java with MIT License 2 votes vote down vote up
/**
 * Imports an externally created key, stores it, and returns key parameters and
 * attributes to the client. The import key operation may be used to import any
 * key type into an Azure Key Vault. If the named key already exists, Azure Key
 * Vault creates a new version of the key. Authorization: requires the
 * keys/import permission.
 *
 * @param importKeyRequest
 *            the grouped properties for importing a key request
 * @param serviceCallback
 *            the async ServiceCallback to handle successful and failed
 *            responses.
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<KeyBundle> importKeyAsync(ImportKeyRequest importKeyRequest,
        final ServiceCallback<KeyBundle> serviceCallback) {
    return importKeyAsync(importKeyRequest.vaultBaseUrl(), importKeyRequest.keyName(), importKeyRequest.key(),
            importKeyRequest.isHsm(), importKeyRequest.keyAttributes(), importKeyRequest.tags(), serviceCallback);
}
 
Example #16
Source File: NetworkProfilesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets the specified network profile in a specified resource group.
 *
 * @param resourceGroupName The name of the resource group.
 * @param networkProfileName The name of the public IP prefix.
 * @param expand Expands referenced resources.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<NetworkProfileInner> getByResourceGroupAsync(String resourceGroupName, String networkProfileName, String expand, final ServiceCallback<NetworkProfileInner> serviceCallback) {
    return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, networkProfileName, expand), serviceCallback);
}
 
Example #17
Source File: EventHubsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Regenerates the ACS and SAS connection strings for the Event Hub.
 *
 * @param resourceGroupName Name of the resource group within the azure subscription.
 * @param namespaceName The Namespace name
 * @param eventHubName The Event Hub name
 * @param authorizationRuleName The authorization rule name.
 * @param parameters Parameters supplied to regenerate the AuthorizationRule Keys (PrimaryKey/SecondaryKey).
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<AccessKeysInner> regenerateKeysAsync(String resourceGroupName, String namespaceName, String eventHubName, String authorizationRuleName, RegenerateAccessKeyParameters parameters, final ServiceCallback<AccessKeysInner> serviceCallback) {
    return ServiceFuture.fromResponse(regenerateKeysWithServiceResponseAsync(resourceGroupName, namespaceName, eventHubName, authorizationRuleName, parameters), serviceCallback);
}
 
Example #18
Source File: IpGroupsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates or updates an ipGroups in a specified resource group.
 *
 * @param resourceGroupName The name of the resource group.
 * @param ipGroupsName The name of the ipGroups.
 * @param parameters Parameters supplied to the create or update IpGroups operation.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<IpGroupInner> createOrUpdateAsync(String resourceGroupName, String ipGroupsName, IpGroupInner parameters, final ServiceCallback<IpGroupInner> serviceCallback) {
    return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, ipGroupsName, parameters), serviceCallback);
}
 
Example #19
Source File: StorageAccountsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this.
 *
 * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<List<StorageAccountInner>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<List<StorageAccountInner>> serviceCallback) {
    return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback);
}
 
Example #20
Source File: RouteTablesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Deletes the specified route table.
 *
 * @param resourceGroupName The name of the resource group.
 * @param routeTableName The name of the route table.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String routeTableName, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, routeTableName), serviceCallback);
}
 
Example #21
Source File: ExpressRouteCircuitConnectionsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Deletes the specified Express Route Circuit Connection from the specified express route circuit.
 *
 * @param resourceGroupName The name of the resource group.
 * @param circuitName The name of the express route circuit.
 * @param peeringName The name of the peering.
 * @param connectionName The name of the express route circuit connection.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String circuitName, String peeringName, String connectionName, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, circuitName, peeringName, connectionName), serviceCallback);
}
 
Example #22
Source File: ActionGroupsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Create a new action group or update an existing one.
 *
 * @param resourceGroupName The name of the resource group.
 * @param actionGroupName The name of the action group.
 * @param actionGroup The action group to create or use for the update.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<ActionGroupResourceInner> createOrUpdateAsync(String resourceGroupName, String actionGroupName, ActionGroupResourceInner actionGroup, final ServiceCallback<ActionGroupResourceInner> serviceCallback) {
    return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(resourceGroupName, actionGroupName, actionGroup), serviceCallback);
}
 
Example #23
Source File: GalleryImageVersionsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Create or update a gallery Image Version.
 *
 * @param resourceGroupName The name of the resource group.
 * @param galleryName The name of the Shared Image Gallery in which the Image Definition resides.
 * @param galleryImageName The name of the gallery Image Definition in which the Image Version is to be created.
 * @param galleryImageVersionName The name of the gallery Image Version to be created. Needs to follow semantic version name pattern: The allowed characters are digit and period. Digits must be within the range of a 32-bit integer. Format: &lt;MajorVersion&gt;.&lt;MinorVersion&gt;.&lt;Patch&gt;
 * @param galleryImageVersion Parameters supplied to the create or update gallery Image Version operation.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<GalleryImageVersionInner> beginCreateOrUpdateAsync(String resourceGroupName, String galleryName, String galleryImageName, String galleryImageVersionName, GalleryImageVersionInner galleryImageVersion, final ServiceCallback<GalleryImageVersionInner> serviceCallback) {
    return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, galleryImageVersion), serviceCallback);
}
 
Example #24
Source File: WorkspacesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Creates a Workspace.
 *
 * @param resourceGroupName Name of the resource group to which the resource belongs.
 * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.
 * @param parameters Workspace creation parameters.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<WorkspaceInner> beginCreateAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters, final ServiceCallback<WorkspaceInner> serviceCallback) {
    return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, parameters), serviceCallback);
}
 
Example #25
Source File: VirtualNetworkTapsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Deletes the specified virtual network tap.
 *
 * @param resourceGroupName The name of the resource group.
 * @param tapName The name of the virtual network tap.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String tapName, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, tapName), serviceCallback);
}
 
Example #26
Source File: JobsImpl.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Pauses the specified job and places it back in the job queue, behind other jobs of equal or higher importance, based on priority. (Only for use internally with Scope job type.).
 *
 * @param accountName The Azure Data Lake Analytics account to execute job operations on.
 * @param jobIdentity Job identifier. Uniquely identifies the job across all jobs submitted to the service.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> yieldAsync(String accountName, UUID jobIdentity, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(yieldWithServiceResponseAsync(accountName, jobIdentity), serviceCallback);
}
 
Example #27
Source File: DataLakeStoreAccounts.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
 *
 * @param resourceGroupName The name of the Azure resource group.
 * @param accountName The name of the Data Lake Analytics account.
 * @param dataLakeStoreAccountName The name of the Data Lake Store account to retrieve
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
ServiceFuture<DataLakeStoreAccountInformation> getAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName, ServiceCallback<DataLakeStoreAccountInformation> serviceCallback);
 
Example #28
Source File: DatabasesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Pauses a data warehouse.
 *
 * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 * @param serverName The name of the server.
 * @param databaseName The name of the data warehouse to pause.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<Void> beginPauseAsync(String resourceGroupName, String serverName, String databaseName, final ServiceCallback<Void> serviceCallback) {
    return ServiceFuture.fromResponse(beginPauseWithServiceResponseAsync(resourceGroupName, serverName, databaseName), serviceCallback);
}
 
Example #29
Source File: ServerAzureADAdministratorsInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * Returns a list of server Administrators.
 *
 * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
 * @param serverName The name of the server.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<List<ServerAzureADAdministratorInner>> listByServerAsync(String resourceGroupName, String serverName, final ServiceCallback<List<ServerAzureADAdministratorInner>> serviceCallback) {
    return ServiceFuture.fromResponse(listByServerWithServiceResponseAsync(resourceGroupName, serverName), serviceCallback);
}
 
Example #30
Source File: BlobServicesInner.java    From azure-libraries-for-java with MIT License 2 votes vote down vote up
/**
 * List blob services of storage account. It returns a collection of one object named default.
 *
 * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
 * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
 * @param serviceCallback the async ServiceCallback to handle successful and failed responses.
 * @throws IllegalArgumentException thrown if parameters fail the validation
 * @return the {@link ServiceFuture} object
 */
public ServiceFuture<List<BlobServicePropertiesInner>> listAsync(String resourceGroupName, String accountName, final ServiceCallback<List<BlobServicePropertiesInner>> serviceCallback) {
    return ServiceFuture.fromResponse(listWithServiceResponseAsync(resourceGroupName, accountName), serviceCallback);
}