Class: Jamf::ReEnrollmentSettings

Inherits:
SingletonResource show all
Includes:
ChangeLog
Defined in:
lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb

Overview

The device re-enrollment settings for the Jamf Pro Server

Constant Summary collapse

RSRC_VERSION =

Constants

'v1'.freeze
RSRC_PATH =
'reenrollment'.freeze
FLUSH_MDM_QUEUE_NOTHING =
'DELETE_NOTHING'.freeze
FLUSH_MDM_QUEUE_ERRORS =
'DELETE_ERRORS'.freeze
FLUSH_MDM_QUEUE_NOT_ACKD =
'DELETE_EVERYTHING_EXCEPT_ACKNOWLEDGED'.freeze
FLUSH_MDM_QUEUE_EVERYTHING =
'DELETE_EVERYTHING'.freeze
FLUSH_MDM_QUEUE_OPTIONS =
[
  FLUSH_MDM_QUEUE_NOTHING,
  FLUSH_MDM_QUEUE_ERRORS,
  FLUSH_MDM_QUEUE_NOT_ACKD,
  FLUSH_MDM_QUEUE_EVERYTHING
].freeze
OBJECT_MODEL =
{

  # @!attribute isFlushPolicyHistoryEnabled
  #   @return [Boolean]
  isFlushPolicyHistoryEnabled: {
    class: :boolean
  },

  # @!attribute isFlushLocationInformationEnabled
  #   @return [Boolean]
  isFlushLocationInformationEnabled: {
    class: :boolean
  },

  # @!attribute isFlushLocationInformationHistoryEnabled
  #   @return [Boolean]
  isFlushLocationInformationHistoryEnabled: {
    class: :boolean
  },

  # @!attribute isFlushExtensionAttributesEnabled
  #   @return [Boolean]
  isFlushExtensionAttributesEnabled: {
    class: :boolean
  },

  # @!attribute flushMDMQueue
  #   @param [Symbol] a key from ReEnrollment::FLUSH_MDM_QUEUE_OPTIONS
  #   @return [Symbol]
  flushMDMQueue: {
    class: :string,
    enum: FLUSH_MDM_QUEUE_OPTIONS
  }

}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

This class inherits a constructor from Jamf::JSONObject

Instance Attribute Details

#flushMDMQueueSymbol

Parameters:

  • a (Symbol)

    key from ReEnrollment::FLUSH_MDM_QUEUE_OPTIONS

Returns:

  • (Symbol)


# File 'lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb', line 82

#isFlushExtensionAttributesEnabledBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb', line 76

#isFlushLocationInformationEnabledBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb', line 64

#isFlushLocationInformationHistoryEnabledBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb', line 70

#isFlushPolicyHistoryEnabledBoolean

Returns:

  • (Boolean)


# File 'lib/jamf/api/resources/singleton_resources/reenrollment_settings.rb', line 58

Instance Method Details

#add_change_log_note(note, cnx: Jamf.cnx) ⇒ void Originally defined in module ChangeLog

This method returns an undefined value.

Add a note to this resource’s change log.

If the change history has been cached already, it is recached after adding the note.

Parameters:

  • note (String)

    The note to add. It cannot be empty.

#change_log(refresh = false, cnx: Jamf.cnx) ⇒ Array<Jamf::ChangeHistoryEntry> Originally defined in module ChangeLog

The change and note history for this resource.

The history is cached internally and only re-fetched when a truthy parameter is given.

Parameters:

  • refresh (Boolean) (defaults to: false)

    re-fetch and re-cache the history

Returns:

  • (Array<Jamf::ChangeHistoryEntry>)

    The change and note history for this resource