Class: Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration
- Inherits:
-
Object
- Object
- Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration
- Defined in:
- lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb
Instance Method Summary collapse
- #generate_xml ⇒ Object
-
#initialize(configuration = {}) ⇒ EdgeGatewayServiceConfiguration
constructor
A new instance of EdgeGatewayServiceConfiguration.
Constructor Details
#initialize(configuration = {}) ⇒ EdgeGatewayServiceConfiguration
Returns a new instance of EdgeGatewayServiceConfiguration.
6 7 8 |
# File 'lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb', line 6 def initialize(configuration={}) @configuration = configuration end |
Instance Method Details
#generate_xml ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb', line 10 def generate_xml Nokogiri::XML::Builder.new do |xml| xml.EdgeGatewayServiceConfiguration('xmlns' => "http://www.vmware.com/vcloud/v1.5"){ build_firewall_service(xml) build_nat_service(xml) build_load_balancer_service(xml) } end.to_xml end |