Exemplo n.º 1
0
 /// <summary>
 /// Lists all of the Backend Pools within a Front Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <BackendPool> > ListByFrontDoorAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Lists all of the Backend Pools within a Front Door.
 /// </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 <BackendPool> > ListByFrontDoorNextAsync(this IBackendPoolsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new Backend Pool with the specified Pool name within the
 /// specified Front Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='backendPoolName'>
 /// Name of the Backend Pool which is unique within the Front Door.
 /// </param>
 /// <param name='backendPoolParameters'>
 /// Backend Pool properties needed to create a new Pool.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <BackendPool> BeginCreateOrUpdateAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Gets a Backend Pool with the specified Pool name within the specified Front
 /// Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='backendPoolName'>
 /// Name of the Backend Pool which is unique within the Front Door.
 /// </param>
 public static BackendPool Get(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName)
 {
     return(operations.GetAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult());
 }
Exemplo n.º 5
0
 /// <summary>
 /// Lists all of the Backend Pools within a Front Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 public static IPage <BackendPool> ListByFrontDoor(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName)
 {
     return(operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult());
 }
Exemplo n.º 6
0
 /// <summary>
 /// Lists all of the Backend Pools within a Front Door.
 /// </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 <BackendPool> ListByFrontDoorNext(this IBackendPoolsOperations operations, string nextPageLink)
 {
     return(operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Exemplo n.º 7
0
 /// <summary>
 /// Deletes an existing Backend Pool with the specified parameters.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='backendPoolName'>
 /// Name of the Backend Pool which is unique within the Front Door.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, backendPoolName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Exemplo n.º 8
0
 /// <summary>
 /// Deletes an existing Backend Pool with the specified parameters.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='backendPoolName'>
 /// Name of the Backend Pool which is unique within the Front Door.
 /// </param>
 public static void BeginDelete(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName)
 {
     operations.BeginDeleteAsync(resourceGroupName, frontDoorName, backendPoolName).GetAwaiter().GetResult();
 }
Exemplo n.º 9
0
 /// <summary>
 /// Creates a new Backend Pool with the specified Pool name within the
 /// specified Front Door.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the Resource group within the Azure subscription.
 /// </param>
 /// <param name='frontDoorName'>
 /// Name of the Front Door which is globally unique.
 /// </param>
 /// <param name='backendPoolName'>
 /// Name of the Backend Pool which is unique within the Front Door.
 /// </param>
 /// <param name='backendPoolParameters'>
 /// Backend Pool properties needed to create a new Pool.
 /// </param>
 public static BackendPool BeginCreateOrUpdate(this IBackendPoolsOperations operations, string resourceGroupName, string frontDoorName, string backendPoolName, BackendPool backendPoolParameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, backendPoolName, backendPoolParameters).GetAwaiter().GetResult());
 }