Class: Jamf::DeviceEnrollmentSyncStatus

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

Overview

A 'location' for a managed object in Jamf Pro

Constant Summary collapse

OBJECT_MODEL =
{

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

  # @!attribute instanceId
  #   @return [Integer]
  instanceId: {
    class: :j_id
  },

  # @!attribute timestamp
  #   @return [Jamf::Timestamp]
  timestamp: {
    class: Jamf::Timestamp
  }
}.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ DeviceEnrollmentSyncStatus

TEMPORARY timestamps are in UTC, but the iso8601 string isn't marked as such, so they are interpreted as localtime. i.e. the string comes as ā€œ2019-12-06T18:32:47.218ā€ but is should be ā€œ2019-12-06T18:32:47.218Zā€

This resets them to the correct time



64
65
66
67
# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 64

def initialize(*args)
  super
  @timestamp += @timestamp.utc_offset
end

Instance Attribute Details

#instanceIdInteger

Returns:

  • (Integer)


# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 42

#syncStateString

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 36

#timestampJamf::Timestamp

Returns:



# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 48

Class Method Details

.mutable?Boolean Originally defined in module Immutable

Returns:

  • (Boolean)