Class: Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction
- 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
Data about an update to the status of a Chrome OS device.
Instance Attribute Summary collapse
-
#action ⇒ String
Action to be taken on the Chrome OS device.
-
#deprovision_reason ⇒ String
Only used when the action is
deprovision
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ChromeOsDeviceAction
constructor
A new instance of ChromeOsDeviceAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ChromeOsDeviceAction
Returns a new instance of ChromeOsDeviceAction.
1807 1808 1809 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1807 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ String
Action to be taken on the Chrome OS device.
Corresponds to the JSON property action
1798 1799 1800 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1798 def action @action end |
#deprovision_reason ⇒ String
Only used when the action is deprovision
. With the deprovision
action,
this field is required. Note: The deprovision reason is audited because it
might have implications on licenses for perpetual subscription customers.
Corresponds to the JSON property deprovisionReason
1805 1806 1807 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1805 def deprovision_reason @deprovision_reason end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1812 1813 1814 1815 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1812 def update!(**args) @action = args[:action] if args.key?(:action) @deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason) end |