Exemplo n.º 1
0
 /// <summary>
 /// Get virtual network subnet usage for a given vNet resource id.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// The name of the location.
 /// </param>
 /// <param name='parameters'>
 /// The required parameters for creating or updating a server.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <VirtualNetworkSubnetUsageResult> ExecuteAsync(this ICheckVirtualNetworkSubnetUsageOperations operations, string locationName, VirtualNetworkSubnetUsageParameter parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ExecuteWithHttpMessagesAsync(locationName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Get virtual network subnet usage for a given vNet resource id.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='locationName'>
 /// The name of the location.
 /// </param>
 /// <param name='parameters'>
 /// The required parameters for creating or updating a server.
 /// </param>
 public static VirtualNetworkSubnetUsageResult Execute(this ICheckVirtualNetworkSubnetUsageOperations operations, string locationName, VirtualNetworkSubnetUsageParameter parameters)
 {
     return(operations.ExecuteAsync(locationName, parameters).GetAwaiter().GetResult());
 }