lib/jss/api_object/printer.rb
def rest_xml
            doc = REXML::Document.new
            printer = doc.add_element 'printer'

            printer.add_element('id').text = @id
            printer.add_element('name').text = @name
            printer.add_element('uri').text = @uri
            printer.add_element('CUPS_name').text = @CUPS_name
            printer.add_element('location').text = @location
            printer.add_element('model').text = @model
            printer.add_element('shared').text = @shared
            printer.add_element('info').text = @info
            printer.add_element('notes').text = @notes
            printer.add_element('make_default').text = @make_default
            printer.add_element('use_generic').text = @use_generic
            printer.add_element('ppd').text = @ppd
            printer.add_element('ppd_contents').text = @ppd_contents
            printer.add_element('ppd_path').text = @ppd_path
            printer.add_element('os_requirements').text = @os_requirements
            add_category_to_xml(doc)

            doc.to_s

        end
### Return the xml for creating or updating this script in the JSS
###
Return the xml for creating or updating this script in the JSS
Return the xml for creating or updating this script in the JSS
def rest_xml
            doc = REXML::Document.new
            printer = doc.add_element 'printer'
            printer.add_element('id').text = @id
            printer.add_element('name').text = @name
            printer.add_element('uri').text = @uri
            printer.add_element('CUPS_name').text = @CUPS_name
            printer.add_element('location').text = @location
            printer.add_element('model').text = @model
            printer.add_element('shared').text = @shared
            printer.add_element('info').text = @info
            printer.add_element('notes').text = @notes
            printer.add_element('make_default').text = @make_default
            printer.add_element('use_generic').text = @use_generic
            printer.add_element('ppd').text = @ppd
            printer.add_element('ppd_contents').text = @ppd_contents
            printer.add_element('ppd_path').text = @ppd_path
            printer.add_element('os_requirements').text = @os_requirements
            add_category_to_xml(doc)
            doc.to_s
        end
def rest_xml doc = REXML :: Document . new printer = doc . add_element 'printer' printer . add_element ( 'id' ) . text = @id printer . add_element ( 'name' ) . text = @name printer . add_element ( 'uri' ) . text = @uri printer . add_element ( 'CUPS_name' ) . text = @CUPS_name printer . add_element ( 'location' ) . text = @location printer . add_element ( 'model' ) . text = @model printer . add_element ( 'shared' ) . text = @shared printer . add_element ( 'info' ) . text = @info printer . add_element ( 'notes' ) . text = @notes printer . add_element ( 'make_default' ) . text = @make_default printer . add_element ( 'use_generic' ) . text = @use_generic printer . add_element ( 'ppd' ) . text = @ppd printer . add_element ( 'ppd_contents' ) . text = @ppd_contents printer . add_element ( 'ppd_path' ) . text = @ppd_path printer . add_element ( 'os_requirements' ) . text = @os_requirements add_category_to_xml ( doc ) doc . to_s end
Return the xml for creating or updating this script in the JSS
Return the xml for creating or updating this script in the JSS