Example #1
0
 /// <summary>
 /// Update a list of configurations in a given server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='value'>
 /// The parameters for updating a list of server configuration.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConfigurationListResult> BatchUpdateAsync(this IServerParametersOperations operations, string resourceGroupName, string serverName, ConfigurationListResult value, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BatchUpdateWithHttpMessagesAsync(resourceGroupName, serverName, value, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #2
0
 /// <summary>
 /// Update a list of configurations in a given server.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='serverName'>
 /// The name of the server.
 /// </param>
 /// <param name='value'>
 /// The parameters for updating a list of server configuration.
 /// </param>
 public static ConfigurationListResult BeginBatchUpdate(this IServerParametersOperations operations, string resourceGroupName, string serverName, ConfigurationListResult value)
 {
     return(operations.BeginBatchUpdateAsync(resourceGroupName, serverName, value).GetAwaiter().GetResult());
 }