def self.write_one(object, writer, singular = nil)
singular ||= 'host_nic_virtual_functions_configuration'
writer.write_start(singular)
href = object.href
writer.write_attribute('href', href) unless href.nil?
Writer.write_boolean(writer, 'all_networks_allowed', object.all_networks_allowed) unless object.all_networks_allowed.nil?
Writer.write_integer(writer, 'max_number_of_virtual_functions', object.max_number_of_virtual_functions) unless object.max_number_of_virtual_functions.nil?
Writer.write_integer(writer, 'number_of_virtual_functions', object.number_of_virtual_functions) unless object.number_of_virtual_functions.nil?
writer.write_end
end