Class: Fog::Generators::Compute::VcloudDirector::MetadataV51

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

Instance Attribute Summary

Attributes inherited from MetadataBase

#attrs

Instance Method Summary collapse

Methods inherited from MetadataBase

#add_item, #generate_xml, #header, #initialize, #tail

Constructor Details

This class inherits a constructor from Fog::Generators::Compute::VcloudDirector::MetadataBase

Instance Method Details

#metadata_entry(key, value) ⇒ Object



76
77
78
79
80
81
82
83
84
85
86
87
# File 'lib/fog/vcloud_director/generators/compute/metadata.rb', line 76

def (key,value)
  body = "  <MetadataEntry\n    type=\"application/vnd.vmware.vcloud.metadata.value+xml\">\n    <Key>\#{key}</Key>\n    <TypedValue\n      xsi:type=\"MetadataStringValue\">\n      <Value>\#{value}</Value>\n    </TypedValue>\n  </MetadataEntry>\n"
end