From 14ac44ce62161c9c4efc7ad3a2710cb5b66d49a3 Mon Sep 17 00:00:00 2001 From: Rodrigo Estebanez Date: Tue, 18 Jun 2013 16:14:53 +0200 Subject: [PATCH] parsed body as comment --- .../parsers/compute/get_vapp_template.rb | 154 ++++++++++++++++-- 1 file changed, 136 insertions(+), 18 deletions(-) diff --git a/lib/fog/vcloudng/parsers/compute/get_vapp_template.rb b/lib/fog/vcloudng/parsers/compute/get_vapp_template.rb index e8b432e73..47ca0e3fc 100644 --- a/lib/fog/vcloudng/parsers/compute/get_vapp_template.rb +++ b/lib/fog/vcloudng/parsers/compute/get_vapp_template.rb @@ -1,22 +1,22 @@ # # -# -# -# -# -# -# -# +# +# +# +# +# +# +# # Windows Server 2008 R2 Web Edition # -# +# # # -# -# -# +# +# +# # Windows Server 2008 R2 Web Edition -# +# # Specifies the available VM network connections # 0 # @@ -26,7 +26,7 @@ # NONE # # -# +# # Specifies Guest OS Customization Settings # true # false @@ -41,13 +41,13 @@ # DEVWEB # # -# +# # The list of logical networks # # This is a special place-holder used for disconnected network interfaces. # # -# +# # The configuration parameters for logical networks # # This is a special place-holder used for disconnected network interfaces. @@ -57,18 +57,135 @@ # false # # -# +# # Lease settings section -# +# # 7776000 # 2013-09-11T15:53:20.900Z # -# +# # VApp template customization section # true # # +#module Boolean; end +#class TrueClass; include Boolean; end +#class FalseClass; include Boolean; end +# +#module Fog +# module Parsers +# module Vcloudng +# module Compute +# +# +# class GetVappTemplate < VcloudngParser +# +# +# +# def customization_section +# +# end +# +# def lease_settings_section +# +# end +# +# +# def network_section +# +# end +# +# +# def vm +# +# end +# +# def children +# { +# 'elements' => { 'Vm' => vm } +# } +# end +# +# def link +# { +# 'attributes' => { 'rel' => String, +# 'type' => String, +# 'href' => String +# } +# } +# end +# +# +# +# def owner +# { +# 'attributes' => { 'type' => String }, +# 'elements' => { 'user' => user } +# } +# end +# +# def user +# { +# 'elements' => { 'type' => String, +# 'name' => String, +# 'href' => String +# } +# } +# end +# +# def vapp_template +# { +# 'attributes' => { 'goldMaster' => Boolean, +# 'status' => Integer, +# 'name' => String, +# 'type' => String, +# 'href' => String +# }, +# 'elements' => { 'Link' => link, +# 'Description' => String, +# 'Owner' => owner, +# 'Children' => children, +# 'NetworkSection' => network_section, +# 'LeaseSettingsSection' => lease_settings_section, +# 'CustomizationSection' => customization_section +# } +# +# } +# end +# +# @schema = { 'VAppTemplate' => vapp_template } +# +# def reset +# @response = { 'Links' => [], 'Children' => [] } +# @current_path = [] +# end +# +# def start_element(name, attributes) +# super +# if is_an_attribute?(name) +# @last_element = name +# current = extract_attributes(attributes) +# else +# @current_path << name if @current_path.last != name +# +# end +# end +# +# def end_element(name) +# case name +# when @schema['elements'].keys? +# @schema['attributes'][name] == +# end +# end +# +# end +# +# end +# end +# end +#end + module Fog module Parsers module Vcloudng @@ -186,3 +303,4 @@ module Fog end end end +