Class: Fog::Generators::Compute::VcloudDirector::EdgeGateway
- Inherits:
-
Object
- Object
- Fog::Generators::Compute::VcloudDirector::EdgeGateway
- Defined in:
- lib/fog/vcloud_director/generators/compute/edge_gateway.rb
Instance Method Summary collapse
- #generate_xml ⇒ Object
-
#initialize(configuration = {}) ⇒ EdgeGateway
constructor
A new instance of EdgeGateway.
Constructor Details
#initialize(configuration = {}) ⇒ EdgeGateway
Returns a new instance of EdgeGateway.
6 7 8 |
# File 'lib/fog/vcloud_director/generators/compute/edge_gateway.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.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 |