Beispiel #1
0
 /// <summary>
 /// Checks the quota and actual usage of endpoints under the given CDN profile.
 /// </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 <Usage> > ListResourceUsageNextAsync(this IRuleSetsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListResourceUsageNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Lists existing AzureFrontDoor rule sets within a profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RuleSet> > ListByProfileAsync(this IRuleSetsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #3
0
 /// <summary>
 /// Gets an existing AzureFrontDoor rule set with the specified rule set name
 /// under the specified subscription, resource group and profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='ruleSetName'>
 /// Name of the rule set under the profile which is unique globally.
 /// </param>
 public static RuleSet Get(this IRuleSetsOperations operations, string resourceGroupName, string profileName, string ruleSetName)
 {
     return(operations.GetAsync(resourceGroupName, profileName, ruleSetName).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Checks the quota and actual usage of endpoints under the given CDN profile.
 /// </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 <Usage> ListResourceUsageNext(this IRuleSetsOperations operations, string nextPageLink)
 {
     return(operations.ListResourceUsageNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Beispiel #5
0
 /// <summary>
 /// Lists existing AzureFrontDoor rule sets within a profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 public static IPage <RuleSet> ListByProfile(this IRuleSetsOperations operations, string resourceGroupName, string profileName)
 {
     return(operations.ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult());
 }
Beispiel #6
0
 /// <summary>
 /// Lists existing AzureFrontDoor rule sets within a profile.
 /// </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 <RuleSet> ListByProfileNext(this IRuleSetsOperations operations, string nextPageLink)
 {
     return(operations.ListByProfileNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Beispiel #7
0
 /// <summary>
 /// Deletes an existing AzureFrontDoor rule set with the specified rule set
 /// name under the specified subscription, resource group and profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='ruleSetName'>
 /// Name of the rule set under the profile which is unique globally.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IRuleSetsOperations operations, string resourceGroupName, string profileName, string ruleSetName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, ruleSetName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Beispiel #8
0
 /// <summary>
 /// Deletes an existing AzureFrontDoor rule set with the specified rule set
 /// name under the specified subscription, resource group and profile.
 /// </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='profileName'>
 /// Name of the CDN profile which is unique within the resource group.
 /// </param>
 /// <param name='ruleSetName'>
 /// Name of the rule set under the profile which is unique globally.
 /// </param>
 public static void BeginDelete(this IRuleSetsOperations operations, string resourceGroupName, string profileName, string ruleSetName)
 {
     operations.BeginDeleteAsync(resourceGroupName, profileName, ruleSetName).GetAwaiter().GetResult();
 }