lib/jss/api_object/vpp_account.rb
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      tmpl = doc.add_element self.class::RSRC_OBJECT_KEY.to_s
      tmpl.add_element('name').text = @name
      tmpl.add_element('contact').text = @contact
      tmpl.add_element('country').text = @country
      tmpl.add_element('apple_id').text = @apple_id
      tmpl.add_element('populate_catalog_from_vpp_content').text = @populate_catalog_from_vpp_content.to_s
      tmpl.add_element('notify_disassociation').text = @notify_disassociation.to_s
      tmpl.add_element('auto_register_managed_users').text = @auto_register_managed_users.to_s

      add_site_to_xml doc

      doc.to_s
    end
# Return a String with the XML Resource
# for submitting creation or changes to the JSS via
# the API via the Creatable or Updatable modules
#
# Most classes will redefine this method.
#
Return a String with the XML Resource
for submitting creation or changes to the JSS via
the API via the Creatable or Updatable modules

Most classes will redefine this method.
Return a String with the XML Resource for submitting creation or changes to the JSS via the API via the Creatable or Updatable modules Most classes will redefine this method .
def rest_xml
      doc = REXML::Document.new APIConnection::XML_HEADER
      tmpl = doc.add_element self.class::RSRC_OBJECT_KEY.to_s
      tmpl.add_element('name').text = @name
      tmpl.add_element('contact').text = @contact
      tmpl.add_element('country').text = @country
      tmpl.add_element('apple_id').text = @apple_id
      tmpl.add_element('populate_catalog_from_vpp_content').text = @populate_catalog_from_vpp_content.to_s
      tmpl.add_element('notify_disassociation').text = @notify_disassociation.to_s
      tmpl.add_element('auto_register_managed_users').text = @auto_register_managed_users.to_s
      add_site_to_xml doc
      doc.to_s
    end
def rest_xml doc = REXML :: Document . new APIConnection :: XML_HEADER tmpl = doc . add_element self . class :: RSRC_OBJECT_KEY . to_s tmpl . add_element ( 'name' ) . text = @name tmpl . add_element ( 'contact' ) . text = @contact tmpl . add_element ( 'country' ) . text = @country tmpl . add_element ( 'apple_id' ) . text = @apple_id tmpl . add_element ( 'populate_catalog_from_vpp_content' ) . text = @populate_catalog_from_vpp_content . to_s tmpl . add_element ( 'notify_disassociation' ) . text = @notify_disassociation . to_s tmpl . add_element ( 'auto_register_managed_users' ) . text = @auto_register_managed_users . to_s add_site_to_xml doc doc . to_s end
Return a String with the XML Resource
for submitting creation or changes to the JSS via
the API via the Creatable or Updatable modules
Return a String with the XML Resource for submitting creation or changes to the JSS via the API via the Creatable or Updatable modules