Esempio n. 1
0
 /// <summary>
 /// Return the requested IP pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='ipPool'>
 /// IP pool name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IpPool> GetAsync(this IIpPoolsOperations operations, string resourceGroupName, string location, string ipPool, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, ipPool, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Returns a list of all IP pools at a certain location.
 /// </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 <IpPool> > ListNextAsync(this IIpPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Returns a list of all IP pools at a certain location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <IpPool> > ListAsync(this IIpPoolsOperations operations, string resourceGroupName, string location, ODataQuery <IpPool> odataQuery = default(ODataQuery <IpPool>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Create an IP pool.  Once created an IP pool cannot be deleted.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='ipPool'>
 /// IP pool name.
 /// </param>
 /// <param name='pool'>
 /// IP pool object to send.
 /// </param>
 public static IpPool CreateOrUpdate(this IIpPoolsOperations operations, string resourceGroupName, string location, string ipPool, IpPool pool)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, location, ipPool, pool).GetAwaiter().GetResult());
 }
Esempio n. 5
0
 /// <summary>
 /// Return the requested IP pool.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='ipPool'>
 /// IP pool name.
 /// </param>
 public static IpPool Get(this IIpPoolsOperations operations, string resourceGroupName, string location, string ipPool)
 {
     return(operations.GetAsync(resourceGroupName, location, ipPool).GetAwaiter().GetResult());
 }
Esempio n. 6
0
 /// <summary>
 /// Returns a list of all IP pools at a certain location.
 /// </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 <IpPool> ListNext(this IIpPoolsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Esempio n. 7
0
 /// <summary>
 /// Returns a list of all IP pools at a certain location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <IpPool> List(this IIpPoolsOperations operations, string resourceGroupName, string location, ODataQuery <IpPool> odataQuery = default(ODataQuery <IpPool>))
 {
     return(operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult());
 }