Class: Google::Apis::AdminDirectoryV1::ChromeOsDeviceAction

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

Data about an update to the status of a Chrome OS device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ChromeOsDeviceAction

Returns a new instance of ChromeOsDeviceAction.



1698
1699
1700
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1698

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

Instance Attribute Details

#actionString

Action to be taken on the Chrome OS device. Corresponds to the JSON property action

Returns:

  • (String)


1689
1690
1691
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1689

def action
  @action
end

#deprovision_reasonString

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

Returns:

  • (String)


1696
1697
1698
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1696

def deprovision_reason
  @deprovision_reason
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1703
1704
1705
1706
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1703

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