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.



2004
2005
2006
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2004

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)


1972
1973
1974
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1972

def command_expire_time
  @command_expire_time
end

#command_idFixnum

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

Returns:

  • (Fixnum)


1977
1978
1979
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1977

def command_id
  @command_id
end

#command_resultGoogle::Apis::AdminDirectoryV1::DirectoryChromeosdevicesCommandResult

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



1982
1983
1984
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1982

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)


1987
1988
1989
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1987

def issue_time
  @issue_time
end

#payloadString

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

Returns:

  • (String)


1992
1993
1994
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1992

def payload
  @payload
end

#stateString

Indicates the command state. Corresponds to the JSON property state

Returns:

  • (String)


1997
1998
1999
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1997

def state
  @state
end

#typeString

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

Returns:

  • (String)


2002
2003
2004
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2002

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2009
2010
2011
2012
2013
2014
2015
2016
2017
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 2009

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