/// <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);
     }
 }
 /// <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 BeginCreateOrUpdate(this IAuthorizationsOperations operations, string resourceGroupName, string privateCloudName, string authorizationName, ExpressRouteAuthorization authorization)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, privateCloudName, authorizationName, authorization).GetAwaiter().GetResult());
 }