Class: Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb

Instance Method Summary collapse

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_xmlObject



10
11
12
13
14
15
16
17
18
19
20
21
# 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)
      build_vpn(xml)
      build_dhcp(xml)
      build_static_routing_service(xml)
    }
  end.to_xml
end