/// <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='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 <Usage> > ListResourceUsageAsync(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListResourceUsageWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <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 IAFDProfilesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListResourceUsageNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Validates the custom domain mapping to ensure it maps to the correct CDN /// endpoint in DNS. /// </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='hostName'> /// The host name of the custom domain. Must be a domain name. /// </param> public static ValidateCustomDomainOutput CheckHostNameAvailability(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName) { return(operations.CheckHostNameAvailabilityAsync(resourceGroupName, profileName, hostName).GetAwaiter().GetResult()); }
/// <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='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 <Usage> ListResourceUsage(this IAFDProfilesOperations operations, string resourceGroupName, string profileName) { return(operations.ListResourceUsageAsync(resourceGroupName, profileName).GetAwaiter().GetResult()); }
/// <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 IAFDProfilesOperations operations, string nextPageLink) { return(operations.ListResourceUsageNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Validates the custom domain mapping to ensure it maps to the correct CDN /// endpoint in DNS. /// </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='hostName'> /// The host name of the custom domain. Must be a domain name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ValidateCustomDomainOutput> CheckHostNameAvailabilityAsync(this IAFDProfilesOperations operations, string resourceGroupName, string profileName, string hostName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckHostNameAvailabilityWithHttpMessagesAsync(resourceGroupName, profileName, hostName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }