Method: Azure::BaseManagement::Serialization.resource_to_xml
- Defined in:
- lib/azure/base_management/serialization.rb
.resource_to_xml(label, options = {}) ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/azure/base_management/serialization.rb', line 116 def self.resource_to_xml(label, = {}) builder = Nokogiri::XML::Builder.new do |xml| xml.UpdateAffinityGroup( 'xmlns' => 'http://schemas.microsoft.com/windowsazure' ) do xml.Label Base64.encode64(label).strip xml.Description [:description] if [:description] end end builder.doc.to_xml end |