示例#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 IAFDOriginGroupsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListResourceUsageNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#2
0
 /// <summary>
 /// Lists all of the existing origin groups 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 <AFDOriginGroup> > ListByProfileAsync(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#3
0
 /// <summary>
 /// Updates an existing origin group 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='originGroupName'>
 /// Name of the origin group which is unique within the profile.
 /// </param>
 /// <param name='originGroupUpdateProperties'>
 /// Origin group properties
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AFDOriginGroup> BeginUpdateAsync(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName, AFDOriginGroupUpdateParameters originGroupUpdateProperties, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, originGroupName, originGroupUpdateProperties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
示例#4
0
 /// <summary>
 /// Gets an existing origin group 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='originGroupName'>
 /// Name of the origin group which is unique within the endpoint.
 /// </param>
 public static AFDOriginGroup Get(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName)
 {
     return(operations.GetAsync(resourceGroupName, profileName, originGroupName).GetAwaiter().GetResult());
 }
示例#5
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 IAFDOriginGroupsOperations operations, string nextPageLink)
 {
     return(operations.ListResourceUsageNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
示例#6
0
 /// <summary>
 /// Deletes an existing origin group 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='originGroupName'>
 /// Name of the origin group which is unique within the profile.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, originGroupName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
示例#7
0
 /// <summary>
 /// Deletes an existing origin group 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='originGroupName'>
 /// Name of the origin group which is unique within the profile.
 /// </param>
 public static void BeginDelete(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName)
 {
     operations.BeginDeleteAsync(resourceGroupName, profileName, originGroupName).GetAwaiter().GetResult();
 }
示例#8
0
 /// <summary>
 /// Updates an existing origin group 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='originGroupName'>
 /// Name of the origin group which is unique within the profile.
 /// </param>
 /// <param name='originGroupUpdateProperties'>
 /// Origin group properties
 /// </param>
 public static AFDOriginGroup BeginUpdate(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName, AFDOriginGroupUpdateParameters originGroupUpdateProperties)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, profileName, originGroupName, originGroupUpdateProperties).GetAwaiter().GetResult());
 }
示例#9
0
 /// <summary>
 /// Lists all of the existing origin groups 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 <AFDOriginGroup> ListByProfile(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName)
 {
     return(operations.ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult());
 }
示例#10
0
 /// <summary>
 /// Creates a new origin group within the specified 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='originGroupName'>
 /// Name of the origin group which is unique within the endpoint.
 /// </param>
 /// <param name='originGroup'>
 /// Origin group properties
 /// </param>
 public static AFDOriginGroup BeginCreate(this IAFDOriginGroupsOperations operations, string resourceGroupName, string profileName, string originGroupName, AFDOriginGroup originGroup)
 {
     return(operations.BeginCreateAsync(resourceGroupName, profileName, originGroupName, originGroup).GetAwaiter().GetResult());
 }