Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new LoadBalancingSettings with the specified Rule 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='loadBalancingSettingsName'>
 /// Name of the load balancing settings which is unique within the Front Door.
 /// </param>
 /// <param name='loadBalancingSettingsParameters'>
 /// LoadBalancingSettings properties needed to create a new Front Door.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LoadBalancingSettingsModel> CreateOrUpdateAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets a LoadBalancingSettings with the specified Rule 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='loadBalancingSettingsName'>
 /// Name of the load balancing settings which is unique within the Front Door.
 /// </param>
 public static LoadBalancingSettingsModel Get(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName)
 {
     return(operations.GetAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName).GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Lists all of the LoadBalancingSettings 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 <LoadBalancingSettingsModel> > ListByFrontDoorAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByFrontDoorWithHttpMessagesAsync(resourceGroupName, frontDoorName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Lists all of the LoadBalancingSettings 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 <LoadBalancingSettingsModel> ListByFrontDoor(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName)
 {
     return(operations.ListByFrontDoorAsync(resourceGroupName, frontDoorName).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Lists all of the LoadBalancingSettings 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 <LoadBalancingSettingsModel> > ListByFrontDoorNextAsync(this ILoadBalancingSettingsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByFrontDoorNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Lists all of the LoadBalancingSettings 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 <LoadBalancingSettingsModel> ListByFrontDoorNext(this ILoadBalancingSettingsOperations operations, string nextPageLink)
 {
     return(operations.ListByFrontDoorNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Deletes an existing LoadBalancingSettings 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='loadBalancingSettingsName'>
 /// Name of the load balancing settings which is unique within the Front Door.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Deletes an existing LoadBalancingSettings 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='loadBalancingSettingsName'>
 /// Name of the load balancing settings which is unique within the Front Door.
 /// </param>
 public static void BeginDelete(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName)
 {
     operations.BeginDeleteAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName).GetAwaiter().GetResult();
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Creates a new LoadBalancingSettings with the specified Rule 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='loadBalancingSettingsName'>
 /// Name of the load balancing settings which is unique within the Front Door.
 /// </param>
 /// <param name='loadBalancingSettingsParameters'>
 /// LoadBalancingSettings properties needed to create a new Front Door.
 /// </param>
 public static LoadBalancingSettingsModel BeginCreateOrUpdate(this ILoadBalancingSettingsOperations operations, string resourceGroupName, string frontDoorName, string loadBalancingSettingsName, LoadBalancingSettingsModel loadBalancingSettingsParameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, frontDoorName, loadBalancingSettingsName, loadBalancingSettingsParameters).GetAwaiter().GetResult());
 }