/// <summary>
 /// The Put Authorization operation creates/updates an authorization in
 /// thespecified ExpressRouteCircuits
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IExpressRouteCircuitAuthorizationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// Required. The name of the express route circuit.
 /// </param>
 /// <param name='authorizationName'>
 /// Required. The name of the authorization.
 /// </param>
 /// <param name='authorizationParameters'>
 /// Required. Parameters supplied to the create/update
 /// ExpressRouteCircuitAuthorization operation
 /// </param>
 /// <returns>
 /// Response for Put ExpressRouteCircuit Authorization Api service call
 /// </returns>
 public static AuthorizationPutResponse BeginCreateOrUpdating(this IExpressRouteCircuitAuthorizationOperations operations, string resourceGroupName, string circuitName, string authorizationName, ExpressRouteCircuitAuthorization authorizationParameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IExpressRouteCircuitAuthorizationOperations)s).BeginCreateOrUpdatingAsync(resourceGroupName, circuitName, authorizationName, authorizationParameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// The Put Authorization operation creates/updates an authorization in
 /// thespecified ExpressRouteCircuits
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Network.IExpressRouteCircuitAuthorizationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='circuitName'>
 /// Required. The name of the express route circuit.
 /// </param>
 /// <param name='authorizationName'>
 /// Required. The name of the authorization.
 /// </param>
 /// <param name='authorizationParameters'>
 /// Required. Parameters supplied to the create/update
 /// ExpressRouteCircuitAuthorization operation
 /// </param>
 /// <returns>
 /// Response for Put ExpressRouteCircuit Authorization Api service call
 /// </returns>
 public static Task<AuthorizationPutResponse> BeginCreateOrUpdatingAsync(this IExpressRouteCircuitAuthorizationOperations operations, string resourceGroupName, string circuitName, string authorizationName, ExpressRouteCircuitAuthorization authorizationParameters)
 {
     return operations.BeginCreateOrUpdatingAsync(resourceGroupName, circuitName, authorizationName, authorizationParameters, CancellationToken.None);
 }