class Jamf::OSXConfigurationProfile

An OS X Configuration Profile in the JSS.

Note that the profile payloads and the profile UUID cannot be edited or updated with this via this class. Use the web UI.

@see Jamf::APIObject

Constants

LEVELS

The possible values for :level

OBJECT_HISTORY_OBJECT_TYPE

the object type for this object in the object history table. See {APIObject#add_object_history_entry}

RSRC_BASE

The base for REST resources of this class

RSRC_LIST_KEY

the hash key used for the JSON list output of all objects in the JSS

RSRC_OBJECT_KEY

The hash key used for the JSON object output. It’s also used in various error messages

SCOPE_TARGET_KEY

Our scopes deal with computers

SELF_SERVICE_TARGET

Our SelfService happens on OSX

Attributes

level[R]

@return [String] the level (user/computer) of this profile

Public Class Methods

new(**args) click to toggle source

See Jamf::APIObject#initialize

Calls superclass method Jamf::ConfigurationProfile::new
   # File lib/jamf/api/classic/api_objects/osx_configuration_profile.rb
82 def initialize(**args)
83   super
84   @level = @main_subset[:level]
85 end

Public Instance Methods

level=(new_val) click to toggle source

@param new_val the new level for this profile (user/computer)

@return [void]

   # File lib/jamf/api/classic/api_objects/osx_configuration_profile.rb
94 def level=(new_val)
95   return nil if @level == new_val
96   raise Jamf::InvalidDataError, "New value must be one of '#{LEVELS.join("' '")}'" unless LEVELS.include? new_val
97   @level = new_val
98   @need_to_update = true
99 end

Private Instance Methods

rest_xml() click to toggle source

Private Instance Methods

Calls superclass method Jamf::ConfigurationProfile#rest_xml
    # File lib/jamf/api/classic/api_objects/osx_configuration_profile.rb
105 def rest_xml
106   doc = super
107   gen = doc.root.elements['general']
108   gen.add_element('level').text = level
109   doc.to_s
110 end