class Fog::Generators::Compute::VcloudDirector::CreateSnapshot
@see pubs.vmware.com/vcd-56/topic/com.vmware.ICbase/PDF/vcd_56_api_guide.pdf @page 121
Attributes
attrs[R]
Public Class Methods
new(attrs={})
click to toggle source
# File lib/fog/vcloud_director/generators/compute/create_snapshot.rb, line 9 def initialize(attrs={}) @attrs = attrs end
Public Instance Methods
generate_xml()
click to toggle source
# File lib/fog/vcloud_director/generators/compute/create_snapshot.rb, line 13 def generate_xml attrs = @attrs Nokogiri::XML::Builder.new do CreateSnapshotParams('xmlns' => 'http://www.vmware.com/vcloud/v1.5', 'memory' => attrs[:memory], 'name' => attrs[:name], 'quiesce' => attrs[:quiesce]) { Description attrs[:Description] if attrs.key?(:Description) } end.to_xml end