def begin_create_or_update_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
      begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
    end
def begin_create_or_update_with_http_info(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:nil)
      begin_create_or_update_async(resource_group_name, gateway_name, p2svpn_gateway_parameters, custom_headers:custom_headers).value!
    end
Creates a virtual wan p2s vpn gateway if it doesn't exist else updates the
 existing gateway.

 @param resource_group_name [String] The resource group name of the
 P2SVpnGateway.
 @param gateway_name [String] The name of the gateway.
 @param p2svpn_gateway_parameters [P2SVpnGateway] Parameters supplied to
 create or Update a virtual wan p2s vpn gateway.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [MsRestAzure::AzureOperationResponse] HTTP response information.