/// <summary> /// Asynchronously creates a new storage account with the specified /// parameters. Existing accounts cannot be updated with this API and /// should instead use the Update Storage Account API. If an account /// is already created and subsequent PUT request is issued with exact /// same set of properties, then HTTP 200 would be returned. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Storage.IStorageAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group within the user's /// subscription. /// </param> /// <param name='accountName'> /// Required. 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> /// <param name='parameters'> /// Required. The parameters to provide for the created account. /// </param> /// <returns> /// The Create storage account operation response. /// </returns> public static Task<StorageAccountCreateResponse> BeginCreateAsync(this IStorageAccountOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters) { return operations.BeginCreateAsync(resourceGroupName, accountName, parameters, CancellationToken.None); }
/// <summary> /// Create a cloud service. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.ICloudServiceOperations. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the Create cloud Service operation. /// </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<LongRunningOperationStatusResponse> BeginCreateAsync(this ICloudServiceOperations operations, CloudServiceCreateParameters parameters) { return operations.BeginCreateAsync(parameters, CancellationToken.None); }
/// <summary> /// Creates the specified Data Lake Store account. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataLake.Store.IDataLakeStoreAccountOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group the account will be /// associated with. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create Data Lake Store account /// operation. /// </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 error information regarding /// the failure. /// </returns> public static Task<AzureAsyncOperationResponse> BeginCreateAsync(this IDataLakeStoreAccountOperations operations, string resourceGroupName, DataLakeStoreAccountCreateOrUpdateParameters parameters) { return operations.BeginCreateAsync(resourceGroupName, parameters, CancellationToken.None); }
/// <summary> /// Initiates a file creation request, resulting in a return of the /// data node location that will service the request. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.DataLake.StoreFileSystem.IFileSystemOperations. /// </param> /// <param name='filePath'> /// Required. The path to the file to create. /// </param> /// <param name='accountName'> /// Required. The name of the Data Lake Store account to create the /// file in /// </param> /// <param name='parameters'> /// Optional. The optional parameters to use when creating the file /// </param> /// <returns> /// The response recieved after the BeginOpen, BeginCreate and /// BeginAppend requests. /// </returns> public static Task<FileCreateOpenAndAppendResponse> BeginCreateAsync(this IFileSystemOperations operations, string filePath, string accountName, FileCreateParameters parameters) { return operations.BeginCreateAsync(filePath, accountName, parameters, CancellationToken.None); }
/// <summary> /// Create an automation account. (see /// http://aka.ms/azureautomationsdk/automationaccountoperations for /// more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Automation.IAutomationAccountOperations. /// </param> /// <param name='clouldServiceName'> /// Required. Cloud service name. /// </param> /// <param name='parameters'> /// Required. Parameters supplied to the create automation account. /// </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<LongRunningOperationStatusResponse> BeginCreateAsync(this IAutomationAccountOperations operations, string clouldServiceName, AutomationAccountCreateParameters parameters) { return operations.BeginCreateAsync(clouldServiceName, parameters, CancellationToken.None); }