Class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand
- 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
Information regarding a command that was issued to a device.
Instance Attribute Summary collapse
-
#command_expire_time ⇒ String
The time at which the command will expire.
-
#command_id ⇒ Fixnum
Unique ID of a device command.
-
#command_result ⇒ Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult
The result of executing a command.
-
#issue_time ⇒ String
The timestamp when the command was issued by the admin.
-
#payload ⇒ String
The payload that the command specified, if any.
-
#state ⇒ String
Indicates the command state.
-
#type ⇒ String
The type of the command.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DirectoryChromeosdevicesCommand
constructor
A new instance of DirectoryChromeosdevicesCommand.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DirectoryChromeosdevicesCommand
Returns a new instance of DirectoryChromeosdevicesCommand.
1753 1754 1755 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1753 def initialize(**args) update!(**args) end |
Instance Attribute Details
#command_expire_time ⇒ String
The time at which the command will expire. If the device doesn't execute the
command within this time the command will become expired.
Corresponds to the JSON property commandExpireTime
1721 1722 1723 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1721 def command_expire_time @command_expire_time end |
#command_id ⇒ Fixnum
Unique ID of a device command.
Corresponds to the JSON property commandId
1726 1727 1728 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1726 def command_id @command_id end |
#command_result ⇒ Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult
The result of executing a command.
Corresponds to the JSON property commandResult
1731 1732 1733 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1731 def command_result @command_result end |
#issue_time ⇒ String
The timestamp when the command was issued by the admin.
Corresponds to the JSON property issueTime
1736 1737 1738 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1736 def issue_time @issue_time end |
#payload ⇒ String
The payload that the command specified, if any.
Corresponds to the JSON property payload
1741 1742 1743 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1741 def payload @payload end |
#state ⇒ String
Indicates the command state.
Corresponds to the JSON property state
1746 1747 1748 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1746 def state @state end |
#type ⇒ String
The type of the command.
Corresponds to the JSON property type
1751 1752 1753 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1751 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1758 1759 1760 1761 1762 1763 1764 1765 1766 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1758 def update!(**args) @command_expire_time = args[:command_expire_time] if args.key?(:command_expire_time) @command_id = args[:command_id] if args.key?(:command_id) @command_result = args[:command_result] if args.key?(:command_result) @issue_time = args[:issue_time] if args.key?(:issue_time) @payload = args[:payload] if args.key?(:payload) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) end |