/// <summary> /// Updates a Location Based Services Account. Only a subset of the parameters /// may be updated after creation, such as Sku and Tags. /// </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='locationBasedServicesAccountUpdateParameters'> /// The updated parameters for the Location Based Services Account. /// </param> public static LocationBasedServicesAccount Update(this IAccountsOperations operations, string resourceGroupName, string accountName, LocationBasedServicesAccountUpdateParameters locationBasedServicesAccountUpdateParameters) { return(operations.UpdateAsync(resourceGroupName, accountName, locationBasedServicesAccountUpdateParameters).GetAwaiter().GetResult()); }
/// <summary> /// Updates a Location Based Services Account. Only a subset of the parameters /// may be updated after creation, such as Sku and Tags. /// </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='locationBasedServicesAccountUpdateParameters'> /// The updated parameters for the Location Based Services Account. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LocationBasedServicesAccount> UpdateAsync(this IAccountsOperations operations, string resourceGroupName, string accountName, LocationBasedServicesAccountUpdateParameters locationBasedServicesAccountUpdateParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, locationBasedServicesAccountUpdateParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }