/// <summary>
 /// Create or update an ExpressRoute Circuit Authorization in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// The name of the private cloud.
 /// </param>
 /// <param name='authorizationName'>
 /// Name of the ExpressRoute Circuit Authorization in the private cloud
 /// </param>
 /// <param name='authorization'>
 /// An ExpressRoute Circuit Authorization
 /// </param>
 public static ExpressRouteAuthorization CreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, object authorization)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName, authorization).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get an ExpressRoute Circuit Authorization by name in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='authorizationName'>
 /// Name of the ExpressRoute Circuit Authorization in the private cloud
 /// </param>
 public static ExpressRouteAuthorization Get(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName)
 {
     return(operations.GetAsync(resourceGroupName, privateCloudName, authorizationName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// List ExpressRoute Circuit Authorizations in a private cloud
 /// </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 <ExpressRouteAuthorization> ListNext(this IAuthorizationsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Delete an ExpressRoute Circuit Authorization in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='authorizationName'>
 /// Name of the ExpressRoute Circuit Authorization in the private cloud
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Delete an ExpressRoute Circuit Authorization in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// Name of the private cloud
 /// </param>
 /// <param name='authorizationName'>
 /// Name of the ExpressRoute Circuit Authorization in the private cloud
 /// </param>
 public static void BeginDelete(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName)
 {
     operations.BeginDeleteAsync(resourceGroupName, privateCloudName, authorizationName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Create or update an ExpressRoute Circuit Authorization in a private cloud
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='privateCloudName'>
 /// The name of the private cloud.
 /// </param>
 /// <param name='authorizationName'>
 /// Name of the ExpressRoute Circuit Authorization in the private cloud
 /// </param>
 /// <param name='authorization'>
 /// An ExpressRoute Circuit Authorization
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExpressRouteAuthorization> BeginCreateOrUpdateAsync(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, ExpressRouteAuthorization authorization, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, privateCloudName, authorizationName, authorization, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }