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.
2070 2071 2072 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2070 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
2038 2039 2040 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2038 def command_expire_time @command_expire_time end |
#command_id ⇒ Fixnum
Unique ID of a device command.
Corresponds to the JSON property commandId
2043 2044 2045 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2043 def command_id @command_id end |
#command_result ⇒ Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult
The result of executing a command.
Corresponds to the JSON property commandResult
2048 2049 2050 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2048 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
2053 2054 2055 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2053 def issue_time @issue_time end |
#payload ⇒ String
The payload that the command specified, if any.
Corresponds to the JSON property payload
2058 2059 2060 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2058 def payload @payload end |
#state ⇒ String
Indicates the command state.
Corresponds to the JSON property state
2063 2064 2065 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2063 def state @state end |
#type ⇒ String
The type of the command.
Corresponds to the JSON property type
2068 2069 2070 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2068 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2075 2076 2077 2078 2079 2080 2081 2082 2083 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2075 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 |