/// <summary> /// Creates or updates an authorization in the specified express route port. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='expressRoutePortName'> /// The name of the express route port. /// </param> /// <param name='authorizationName'> /// The name of the authorization. /// </param> /// <param name='authorizationParameters'> /// Parameters supplied to the create or update express route port /// authorization operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ExpressRoutePortAuthorization> BeginCreateOrUpdateAsync(this IExpressRoutePortAuthorizationsOperations operations, string resourceGroupName, string expressRoutePortName, string authorizationName, ExpressRoutePortAuthorization authorizationParameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, expressRoutePortName, authorizationName, authorizationParameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates or updates an authorization in the specified express route port. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='expressRoutePortName'> /// The name of the express route port. /// </param> /// <param name='authorizationName'> /// The name of the authorization. /// </param> /// <param name='authorizationParameters'> /// Parameters supplied to the create or update express route port /// authorization operation. /// </param> public static ExpressRoutePortAuthorization BeginCreateOrUpdate(this IExpressRoutePortAuthorizationsOperations operations, string resourceGroupName, string expressRoutePortName, string authorizationName, ExpressRoutePortAuthorization authorizationParameters) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, expressRoutePortName, authorizationName, authorizationParameters).GetAwaiter().GetResult()); }