/// <summary>
 /// Lists security policies associated with the 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 <SecurityPolicy> > ListByProfileAsync(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Updates an existing Secret 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='securityPolicyName'>
 /// Name of the security policy under the profile.
 /// </param>
 /// <param name='parameters'>
 /// object which contains security policy parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SecurityPolicy> BeginPatchAsync(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginPatchWithHttpMessagesAsync(resourceGroupName, profileName, securityPolicyName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists security policies associated with the 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 <SecurityPolicy> > ListByProfileNextAsync(this ISecurityPoliciesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByProfileNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets an existing security policy 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='securityPolicyName'>
 /// Name of the security policy under the profile.
 /// </param>
 public static SecurityPolicy Get(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, string securityPolicyName)
 {
     return(operations.GetAsync(resourceGroupName, profileName, securityPolicyName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists security policies associated with the 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 <SecurityPolicy> ListByProfileNext(this ISecurityPoliciesOperations operations, string nextPageLink)
 {
     return(operations.ListByProfileNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes an existing security policy within 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='securityPolicyName'>
 /// Name of the Secret under the profile.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, string securityPolicyName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, profileName, securityPolicyName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes an existing security policy within 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='securityPolicyName'>
 /// Name of the Secret under the profile.
 /// </param>
 public static void BeginDelete(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, string securityPolicyName)
 {
     operations.BeginDeleteAsync(resourceGroupName, profileName, securityPolicyName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Lists security policies associated with the 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 <SecurityPolicy> ListByProfile(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName)
 {
     return(operations.ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Updates an existing Secret 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='securityPolicyName'>
 /// Name of the security policy under the profile.
 /// </param>
 /// <param name='parameters'>
 /// object which contains security policy parameters
 /// </param>
 public static SecurityPolicy BeginPatch(this ISecurityPoliciesOperations operations, string resourceGroupName, string profileName, string securityPolicyName, SecurityPolicyParameters parameters = default(SecurityPolicyParameters))
 {
     return(operations.BeginPatchAsync(resourceGroupName, profileName, securityPolicyName, parameters).GetAwaiter().GetResult());
 }