class Jamf::MobileDeviceConfigurationProfile

Constants

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 mobile_devices

Attributes

redeploy_days_before_certificate_expires[R]

@return [Integer] how many days before a cert payload expires should this profile be automatically re-installed?

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/mobile_device_configuration_profile.rb
64 def initialize(**args)
65   super
66   @redeploy_days_before_certificate_expires = @main_subset[:redeploy_days_before_certificate_expires]
67 end

Public Instance Methods

redeploy_days_before_certificate_expires=(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/mobile_device_configuration_profile.rb
73 def redeploy_days_before_certificate_expires=(new_val)
74   return nil if redeploy_days_before_certificate_expires == new_val
75   raise Jamf::InvalidDataError, 'New value must be an integer >= 0' unless new_val.is_a?(Integer) && new_val >= 0
76 
77   @redeploy_days_before_certificate_expires = new_val
78   @need_to_update = true
79 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/mobile_device_configuration_profile.rb
85 def rest_xml
86   doc = super
87   gen = doc.root.elements['general']
88   gen.add_element('redeploy_days_before_certificate_expires').text = redeploy_days_before_certificate_expires.to_s
89   doc.to_s
90 end