/// <summary> /// Creates or updates a gateway resource. /// </summary> /// <remarks> /// Creates a gateway resource with the specified name, description and /// properties. If a gateway resource with the same name exists, then it is /// updated with the specified description and properties. Use gateway /// resources to create a gateway for public connectivity for services within /// your application. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Azure resource group name /// </param> /// <param name='gatewayResourceName'> /// The identity of the gateway. /// </param> /// <param name='gatewayResourceDescription'> /// Description for creating a Gateway resource. /// </param> public static GatewayResourceDescription Create(this IGatewayOperations operations, string resourceGroupName, string gatewayResourceName, GatewayResourceDescription gatewayResourceDescription) { return(operations.CreateAsync(resourceGroupName, gatewayResourceName, gatewayResourceDescription).GetAwaiter().GetResult()); }