Method: Jamf::MacOSManagedUpdates#send_managed_os_update

Defined in:
lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb

#send_managed_os_update(updateAction:, maxDeferrals: nil, version: nil, skipVersionVerification: false, applyMajorUpdate: false, forceRestart: false) ⇒ Object

Send a managed update command to an instance of Computer or ComputerGroup. This just calls the class method of the same name.



154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb', line 154

def send_managed_os_update(updateAction:, maxDeferrals: nil, version: nil, skipVersionVerification: false, applyMajorUpdate: false, forceRestart: false)
  deviceIds = is_a?(Jamf::Computer) ? @id : nil
  groupId = is_a?(Jamf::Computer) ? nil : @id

  self.class.send_managed_os_update(
    deviceIds: deviceIds,
    groupId: groupId,
    maxDeferrals: maxDeferrals,
    version: version,
    skipVersionVerification: skipVersionVerification,
    applyMajorUpdate: applyMajorUpdate,
    forceRestart: forceRestart,
    updateAction: updateAction,
    cnx: @cnx
  )
end