Class: Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::BatchChangeChromeOsDeviceStatusRequest
- 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
-
#change_chrome_os_device_status_action ⇒ String
Required.
-
#deprovision_reason ⇒ String
Optional.
-
#device_ids ⇒ Array<String>
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchChangeChromeOsDeviceStatusRequest
constructor
A new instance of BatchChangeChromeOsDeviceStatusRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BatchChangeChromeOsDeviceStatusRequest
Returns a new instance of BatchChangeChromeOsDeviceStatusRequest.
281 282 283 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#change_chrome_os_device_status_action ⇒ String
Required. The action to take on the ChromeOS device in order to change its
status.
Corresponds to the JSON property changeChromeOsDeviceStatusAction
267 268 269 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 267 def change_chrome_os_device_status_action @change_chrome_os_device_status_action end |
#deprovision_reason ⇒ String
Optional. The reason behind a device deprovision. Must be provided if '
changeChromeOsDeviceStatusAction' is set to '
CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field.
Corresponds to the JSON property deprovisionReason
274 275 276 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 274 def deprovision_reason @deprovision_reason end |
#device_ids ⇒ Array<String>
Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
Corresponds to the JSON property deviceIds
279 280 281 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 279 def device_ids @device_ids end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
286 287 288 289 290 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 286 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 |