Sha256: 1f14da7c64ba7f4cb512287a19dd7ec0ec528ac0e4df194b755095800a65f550
Contents?: true
Size: 750 Bytes
Versions: 2
Compression:
Stored size: 750 Bytes
Contents
module Fog module VcloudDirector module Generators module Compute # @see http://pubs.vmware.com/vcd-56/topic/com.vmware.ICbase/PDF/vcd_56_api_guide.pdf @page 121 class CreateSnapshot attr_reader :attrs def initialize(attrs={}) @attrs = attrs end 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 end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-vcloud-director-0.3.1 | lib/fog/vcloud_director/generators/compute/create_snapshot.rb |
fog-vcloud-director-0.3.0 | lib/fog/vcloud_director/generators/compute/create_snapshot.rb |