Class: Jamf::DeviceEnrollmentSyncStatus
- Inherits:
-
JSONObject
- Object
- JSONObject
- Jamf::DeviceEnrollmentSyncStatus
- 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
- .mutable? ⇒ Boolean extended from Immutable
Instance Method Summary collapse
-
#initialize(*args) ⇒ DeviceEnrollmentSyncStatus
constructor
TEMPORARY timestamps are in UTC, but the iso8601 string isn't marked as such, so they are interpreted as localtime.
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
#instanceId ⇒ Integer
|
# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 42
|
#timestamp ⇒ Jamf::Timestamp
|
# File 'lib/jamf/api/json_objects/device_enrollment_sync_status.rb', line 48
|