/// <summary> /// Create or update a NetApp account /// </summary> /// <remarks> /// Create or update the specified NetApp account within the resource group /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='body'> /// NetApp Account object supplied in the body of the operation. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='accountName'> /// The name of the NetApp account /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NetAppAccount> CreateOrUpdateAsync(this IAccountsOperations operations, NetAppAccount body, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(body, resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or update a Location Based Services Account. A Location Based /// Services Account holds the keys which allow access to the Location Based /// Services REST APIs. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the Azure Resource Group. /// </param> /// <param name='accountName'> /// The name of the Location Based Services Account. /// </param> /// <param name='locationBasedServicesAccountCreateParameters'> /// The new or updated parameters for the Location Based Services Account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LocationBasedServicesAccount> CreateOrUpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, LocationBasedServicesAccountCreateParameters locationBasedServicesAccountCreateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, accountName, locationBasedServicesAccountCreateParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }