Class: Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb

Overview

A request for changing the status of a batch of ChromeOS devices.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BatchChangeChromeOsDeviceStatusRequest

Returns a new instance of BatchChangeChromeOsDeviceStatusRequest.



249
250
251
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 249

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#change_chrome_os_device_status_actionString

Required. The Action to take on the ChromeOS device in order to change its status. Corresponds to the JSON property changeChromeOsDeviceStatusAction

Returns:

  • (String)


235
236
237
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 235

def change_chrome_os_device_status_action
  @change_chrome_os_device_status_action
end

#deprovision_reasonString

Optional. The reason behind a device deprovision, must be provided for all deprovisions, otherwise it must not be provided. It must be one of the non- deprecated deprovision reasons. Corresponds to the JSON property deprovisionReason

Returns:

  • (String)


242
243
244
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 242

def deprovision_reason
  @deprovision_reason
end

#device_idsArray<String>

Required. List of the IDs of the ChromeOS devices to change. Corresponds to the JSON property deviceIds

Returns:

  • (Array<String>)


247
248
249
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 247

def device_ids
  @device_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



254
255
256
257
258
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 254

def update!(**args)
  @change_chrome_os_device_status_action = args[:change_chrome_os_device_status_action] if args.key?(:change_chrome_os_device_status_action)
  @deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
  @device_ids = args[:device_ids] if args.key?(:device_ids)
end