/// <summary>
 /// Lists all Virtual Machine Images supported by the Azure Batch service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountListSupportedImagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <ImageInformation> ListSupportedImages(this IAccountOperations operations, AccountListSupportedImagesOptions accountListSupportedImagesOptions = default(AccountListSupportedImagesOptions))
 {
     return(operations.ListSupportedImagesAsync(accountListSupportedImagesOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the number of Compute Nodes in each state, grouped by Pool. Note that
 /// the numbers returned may not always be up to date. If you need exact node
 /// counts, use a list query.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountListPoolNodeCountsOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <PoolNodeCounts> ListPoolNodeCounts(this IAccountOperations operations, AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions = default(AccountListPoolNodeCountsOptions))
 {
     return(operations.ListPoolNodeCountsAsync(accountListPoolNodeCountsOptions).GetAwaiter().GetResult());
 }
Beispiel #3
0
 public AccountController(IAccountOperations accountOperations)
 {
     _accountOperations = accountOperations;
 }
 /// <summary>
 /// Gets the number of Compute Nodes in each state, grouped by Pool. Note that
 /// the numbers returned may not always be up to date. If you need exact node
 /// counts, use a list query.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='accountListPoolNodeCountsNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <PoolNodeCounts> ListPoolNodeCountsNext(this IAccountOperations operations, string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions))
 {
     return(operations.ListPoolNodeCountsNextAsync(nextPageLink, accountListPoolNodeCountsNextOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get the next set of accounts based on the previously returned
 /// NextLink value.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from the previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// Values returned by the List operation.
 /// </returns>
 public static Task <BatchAccountListResponse> ListNextAsync(this IAccountOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
 /// <summary>
 /// The SyncAutoStorageKeys operation synchronizes access keys for the
 /// auto storage account configured for the specified Batch account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> SyncAutoStorageKeysAsync(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.SyncAutoStorageKeysAsync(resourceGroupName, accountName, CancellationToken.None));
 }
 /// <summary>
 /// Lists the Data Lake Store accounts within a specific resource group. The
 /// response includes a link to the next page of results, if any.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DataLakeStoreAccount> > ListByResourceGroupNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// The ListActions operation gets information about non-standard
 /// actions for the provider.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <returns>
 /// Values returned by the ListActions operation.
 /// </returns>
 public static Task <BatchAccountListActionsResponse> ListActionsAsync(this IAccountOperations operations)
 {
     return(operations.ListActionsAsync(CancellationToken.None));
 }
 /// <summary>
 /// Deletes the specified firewall rule from the specified Data Lake Store
 /// account
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account from which to delete the firewall
 /// rule.
 /// </param>
 /// <param name='firewallRuleName'>
 /// The name of the firewall rule to delete.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteFirewallRuleAsync(this IAccountOperations operations, string resourceGroupName, string accountName, string firewallRuleName, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.DeleteFirewallRuleWithHttpMessagesAsync(resourceGroupName, accountName, firewallRuleName, null, cancellationToken).ConfigureAwait(false);
 }
 /// <summary>
 /// Lists the Data Lake Store accounts within the subscription. The response
 /// includes a link to the next page of results, if any.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='select'>
 /// OData Select statement. Limits the properties on each entry to just those
 /// requested, e.g. Categories?$select=CategoryName,Description. Optional.
 /// </param>
 /// <param name='count'>
 /// The Boolean value of true or false to request a count of the matching
 /// resources included with the resources in the response, e.g.
 /// Categories?$count=true. Optional.
 /// </param>
 /// <param name='search'>
 /// A free form search. A free-text search expression to match for whether a
 /// particular entry should be included in the feed, e.g.
 /// Categories?$search=blue OR green. Optional.
 /// </param>
 /// <param name='format'>
 /// The desired return format. Return the response in particular formatxii
 /// without access to request headers for standard content-type negotiation
 /// (e.g Orders?$format=json). Optional.
 /// </param>
 public static IPage <DataLakeStoreAccount> List(this IAccountOperations operations, ODataQuery <DataLakeStoreAccount> odataQuery = default(ODataQuery <DataLakeStoreAccount>), string select = default(string), bool?count = default(bool?), string search = default(string), string format = default(string))
 {
     return(Task.Factory.StartNew(s => ((IAccountOperations)s).ListAsync(odataQuery, select, count, search, format), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists the Data Lake Store accounts within a specific resource group. The
 /// response includes a link to the next page of results, if any.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account(s).
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='select'>
 /// OData Select statement. Limits the properties on each entry to just those
 /// requested, e.g. Categories?$select=CategoryName,Description. Optional.
 /// </param>
 /// <param name='count'>
 /// A Boolean value of true or false to request a count of the matching
 /// resources included with the resources in the response, e.g.
 /// Categories?$count=true. Optional.
 /// </param>
 /// <param name='search'>
 /// A free form search. A free-text search expression to match for whether a
 /// particular entry should be included in the feed, e.g.
 /// Categories?$search=blue OR green. Optional.
 /// </param>
 /// <param name='format'>
 /// The desired return format. Return the response in particular formatxii
 /// without access to request headers for standard content-type negotiation
 /// (e.g Orders?$format=json). Optional.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DataLakeStoreAccount> > ListByResourceGroupAsync(this IAccountOperations operations, string resourceGroupName, ODataQuery <DataLakeStoreAccount> odataQuery = default(ODataQuery <DataLakeStoreAccount>), string select = default(string), bool?count = default(bool?), string search = default(string), string format = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, select, count, search, format, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Attempts to enable a user managed key vault for encryption of the
 /// specified Data Lake Store account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account to attempt to enable the Key Vault
 /// for.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task EnableKeyVaultAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.EnableKeyVaultWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false);
 }
 /// <summary>
 /// Attempts to enable a user managed key vault for encryption of the
 /// specified Data Lake Store account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account to attempt to enable the Key Vault
 /// for.
 /// </param>
 public static void EnableKeyVault(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     Task.Factory.StartNew(s => ((IAccountOperations)s).EnableKeyVaultAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Updates the specified Data Lake Store account information.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='name'>
 /// The name of the Data Lake Store account to update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to update the Data Lake Store account.
 /// </param>
 public static DataLakeStoreAccount BeginUpdate(this IAccountOperations operations, string resourceGroupName, string name, DataLakeStoreAccount parameters)
 {
     return(Task.Factory.StartNew(s => ((IAccountOperations)s).BeginUpdateAsync(resourceGroupName, name, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists the Data Lake Store accounts within the subscription. The response
 /// includes a link to the next page of results, if any.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <DataLakeStoreAccount> ListNext(this IAccountOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IAccountOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// The List operation gets information about the Batch accounts
 /// associated either with the subscription if no resource group is
 /// specified or within the specified resource group.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Optional. An optional argument which specifies the name of the
 /// resource group that constrains the set of accounts that are
 /// returned.
 /// </param>
 /// <returns>
 /// Values returned by the List operation.
 /// </returns>
 public static Task <BatchAccountListResponse> ListAsync(this IAccountOperations operations, AccountListParameters parameters)
 {
     return(operations.ListAsync(parameters, CancellationToken.None));
 }
 private void InitSubApis()
 {
     if (!isIntialized())
     {
         companyMetaDataOperations = new CompanyMetaDataTemplate(this.RestTemplate);
         this.companyId = this.companyMetaDataOperations.CompanyMetaData().ExternalRealmId;
         accountOperations = new AccountTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         customerOperations = new CustomerTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         invoiceOperations = new InvoiceTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         itemOperations = new ItemTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         paymentMethodOperations = new PaymentMethodTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         paymentOperations = new PaymentTemplate(this.RestTemplate, IsAuthorized, this.companyId);
         userOperations = new UserTemplate(this.RestTemplate, IsAuthorized);
     }
 }
 /// <summary>
 /// The ListKeys operation gets the account keys for the given Batch
 /// account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account.
 /// </param>
 /// <returns>
 /// Values returned by the GetKeys operation.
 /// </returns>
 public static Task <BatchAccountListKeyResponse> ListKeysAsync(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.ListKeysAsync(resourceGroupName, accountName, CancellationToken.None));
 }
Beispiel #19
0
 /// <summary>
 /// Lists all node agent SKUs supported by the Azure Batch service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountListNodeAgentSkusOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <NodeAgentSku> ListNodeAgentSkus(this IAccountOperations operations, AccountListNodeAgentSkusOptions accountListNodeAgentSkusOptions = default(AccountListNodeAgentSkusOptions))
 {
     return(operations.ListNodeAgentSkusAsync(accountListNodeAgentSkusOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// The RegenerateKey operation regenerates the specified account key
 /// for the given Batch account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account.
 /// </param>
 /// <param name='parameters'>
 /// Required. The type of key to regenerate
 /// </param>
 /// <returns>
 /// Values returned by the RegenerateKey operation.
 /// </returns>
 public static Task <BatchAccountRegenerateKeyResponse> RegenerateKeyAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountRegenerateKeyParameters parameters)
 {
     return(operations.RegenerateKeyAsync(resourceGroupName, accountName, parameters, CancellationToken.None));
 }
Beispiel #21
0
 /// <summary>
 /// Gets the specified Data Lake Store account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account to retrieve.
 /// </param>
 public static bool Exists(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(Task.Factory.StartNew(s => ((IAccountOperations)s).ExistsAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Begin creating the batch account.To determine whether the operation
 /// has finished processing the request, call
 /// GetLongRunningOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the new
 /// Batch account.
 /// </param>
 /// <param name='accountName'>
 /// Required. A name for the Batch account which must be unique within
 /// Azure. Batch account names must be between 3 and 24 characters in
 /// length and must use only numbers and lower-case letters. This name
 /// is used as part of the DNS name that is used to access the batch
 /// service in the region in which the account is created. For
 /// example: http://AccountName.batch.core.windows.net/.
 /// </param>
 /// <param name='parameters'>
 /// Required. Additional parameters for account creation
 /// </param>
 /// <returns>
 /// Values returned by the Create operation.
 /// </returns>
 public static Task <BatchAccountCreateResponse> BeginCreatingAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountCreateParameters parameters)
 {
     return(operations.BeginCreatingAsync(resourceGroupName, accountName, parameters, CancellationToken.None));
 }
 public AccountController(SignInManager <User> signInManager, UserManager <User> userManager, IAccountOperations operation)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     this.operation = operation;
 }
 /// <summary>
 /// Lists all Virtual Machine Images supported by the Azure Batch service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='accountListSupportedImagesNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <ImageInformation> ListSupportedImagesNext(this IAccountOperations operations, string nextPageLink, AccountListSupportedImagesNextOptions accountListSupportedImagesNextOptions = default(AccountListSupportedImagesNextOptions))
 {
     return(operations.ListSupportedImagesNextAsync(nextPageLink, accountListSupportedImagesNextOptions).GetAwaiter().GetResult());
 }
Beispiel #25
0
        public MainMenu(IConsoleWriter consoleWriter, IInputReader inputReader, ICryptocurrencyExchange cryptocurrencyExchange, IAccountOperations accountOperations, IShowUser showUser)
        {
            _consoleWriter          = consoleWriter;
            _inputReader            = inputReader;
            _cryptocurrencyExchange = cryptocurrencyExchange;
            _accountOperations      = accountOperations;
            _showUser = showUser;

            AddOptions();
        }
 /// <summary>
 /// Gets the number of Compute Nodes in each state, grouped by Pool. Note that
 /// the numbers returned may not always be up to date. If you need exact node
 /// counts, use a list query.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='accountListPoolNodeCountsNextOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <PoolNodeCounts> > ListPoolNodeCountsNextAsync(this IAccountOperations operations, string nextPageLink, AccountListPoolNodeCountsNextOptions accountListPoolNodeCountsNextOptions = default(AccountListPoolNodeCountsNextOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListPoolNodeCountsNextWithHttpMessagesAsync(nextPageLink, accountListPoolNodeCountsNextOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Initializes a new instance of the MediaServicesManagementClient
 /// class.
 /// </summary>
 private MediaServicesManagementClient()
     : base()
 {
     this._accounts          = new AccountOperations(this);
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
 /// <summary>
 /// Lists all Virtual Machine Images supported by the Azure Batch service.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='accountListSupportedImagesOptions'>
 /// Additional parameters for the operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ImageInformation> > ListSupportedImagesAsync(this IAccountOperations operations, AccountListSupportedImagesOptions accountListSupportedImagesOptions = default(AccountListSupportedImagesOptions), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSupportedImagesWithHttpMessagesAsync(accountListSupportedImagesOptions, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// The Delete operation deletes an existing Batch account. The
 /// operation will return NoContent if the requested account does not
 /// exist.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the account to be deleted.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task <LongRunningOperationResponse> DeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName)
 {
     return(operations.DeleteAsync(resourceGroupName, accountName, CancellationToken.None));
 }
 /// <summary>
 /// The Delete Media Services Account operation deletes an existing
 /// media services account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn194273.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the media services account.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IAccountOperations operations, string accountName)
 {
     return(operations.DeleteAsync(accountName, CancellationToken.None));
 }
 /// <summary>
 /// Creates or updates the specified firewall rule.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure resource group that contains the Data Lake Store
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Data Lake Store account to which to add the firewall rule.
 /// </param>
 /// <param name='name'>
 /// The name of the firewall rule to create or update.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to create the create firewall rule.
 /// </param>
 public static FirewallRule CreateOrUpdateFirewallRule(this IAccountOperations operations, string resourceGroupName, string accountName, string name, FirewallRule parameters)
 {
     return(Task.Factory.StartNew(s => ((IAccountOperations)s).CreateOrUpdateFirewallRuleAsync(resourceGroupName, accountName, name, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }