Class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommand

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

Information regarding a command that was issued to a device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DirectoryChromeosdevicesCommand

Returns a new instance of DirectoryChromeosdevicesCommand.



2113
2114
2115
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2113

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

Instance Attribute Details

#command_expire_timeString

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

Returns:

  • (String)


2081
2082
2083
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2081

def command_expire_time
  @command_expire_time
end

#command_idFixnum

Unique ID of a device command. Corresponds to the JSON property commandId

Returns:

  • (Fixnum)


2086
2087
2088
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2086

def command_id
  @command_id
end

#command_resultGoogle::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult

The result of executing a command. Corresponds to the JSON property commandResult



2091
2092
2093
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2091

def command_result
  @command_result
end

#issue_timeString

The timestamp when the command was issued by the admin. Corresponds to the JSON property issueTime

Returns:

  • (String)


2096
2097
2098
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2096

def issue_time
  @issue_time
end

#payloadString

The payload that the command specified, if any. Corresponds to the JSON property payload

Returns:

  • (String)


2101
2102
2103
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2101

def payload
  @payload
end

#stateString

Indicates the command state. Corresponds to the JSON property state

Returns:

  • (String)


2106
2107
2108
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2106

def state
  @state
end

#typeString

The type of the command. Corresponds to the JSON property type

Returns:

  • (String)


2111
2112
2113
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2111

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2118
2119
2120
2121
2122
2123
2124
2125
2126
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2118

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