Class: Jamf::DeviceEnrollmentDevice

Inherits:
JSONObject show all
Extended by:
Immutable
Defined in:
lib/jamf/api/json_objects/device_enrollment_device.rb

Overview

A decvice enrollment defined in the JSS This is a connection to Appleā€™s Device Enrollment Program. A single Jamf server may have many of them, and they can belong to different sites.

These objects can be used to find the details of all the devices connected to them, including the device serial numbers. To see how or if those devices are assigned to prestages, see Jamf::Prestage and its subclasses ComputerPrestage and MobileDevicePrestage

Constant Summary collapse

PROFILE_STATUS_EMPTY =

Constants

'EMPTY'.freeze
PROFILE_STATUS_ASSIGNED =
'ASSIGNED'.freeze
PROFILE_STATUS_PUSHED =
'PUSHED'.freeze
PROFILE_STATUS_REMOVED =
'REMOVED'.freeze
PROFILE_STATUSES =
[
  PROFILE_STATUS_EMPTY,
  PROFILE_STATUS_ASSIGNED,
  PROFILE_STATUS_PUSHED,
  PROFILE_STATUS_REMOVED
].freeze
OBJECT_MODEL =

Object Model / Attributes See APIObject class documentation for details of how the OBJECT_MODEL hash works.

{

  # @!attribute id
  #   @return [String]
  id: {
    class: :j_id,
    identifier: true
  },

  # @!attribute deviceEnrollmentProgramInstanceId
  #   @return [String]
  deviceEnrollmentProgramInstanceId: {
    class: :j_id,
    aliases: %i[instanceId]
  },

  # @!attribute prestageId
  #   The most recent prestage this device was assigned to, even if
  #   currently unassigned to any prestage.
  #   @return [String]
  prestageId: {
    class: :j_id
  },

  # @!attribute serialNumber
  #   @return [String]
  serialNumber: {
    class: :string
  },

  # @!attribute description
  #   @return [String]
  description: {
    class: :string
  },

  # @!attribute model
  #   @return [String]
  model: {
    class: :string
  },

  # @!attribute color
  #   @return [String]
  color: {
    class: :string
  },

  # @!attribute assetTag
  #   @return [String]
  assetTag: {
    class: :string
  },

  # @!attribute profileStatus
  #   @return [String]
  profileStatus: {
    class: :string,
    enum: PROFILE_STATUSES
  },

  # @!attribute syncState
  #   @return [DeviceEnrollmentDeviceSyncState]
  syncState: {
    class: Jamf::DeviceEnrollmentDeviceSyncState
  },

  # @!attribute profileAssignTime
  #   @return [Jamf::Timestamp]
  profileAssignTime: {
    class: Jamf::Timestamp
  },

  # @!attribute profilePushTime
  #   @return [Jamf::Timestamp]
  profilePushTime: {
    class: Jamf::Timestamp
  },

  # @!attribute deviceAssignedDate
  #   When Apple assigned this device to this DevEnrollment instance
  #   @return [Jamf::Timestamp]
  deviceAssignedDate: {
    class: Jamf::Timestamp
  }
}.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Constructor Details

This class inherits a constructor from Jamf::JSONObject

Instance Attribute Details

#assetTagString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 116

#colorString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 110

#descriptionString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 98

#deviceAssignedDateJamf::Timestamp

When Apple assigned this device to this DevEnrollment instance

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 147

#deviceEnrollmentProgramInstanceIdString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 77

#idString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 70

#modelString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 104

#prestageIdString

The most recent prestage this device was assigned to, even if currently unassigned to any prestage.

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 84

#profileAssignTimeJamf::Timestamp

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 135

#profilePushTimeJamf::Timestamp

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 141

#profileStatusString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 122

#serialNumberString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 92

#syncStateDeviceEnrollmentDeviceSyncState



# File 'lib/jamf/api/json_objects/device_enrollment_device.rb', line 129

Class Method Details

.mutable?Boolean Originally defined in module Immutable

Returns:

  • (Boolean)