Class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/representations.rb

Overview

A request for issuing a command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DirectoryChromeosdevicesIssueCommandRequest

Returns a new instance of DirectoryChromeosdevicesIssueCommandRequest.



1481
1482
1483
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1481

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

Instance Attribute Details

#command_typeString

The type of command. Corresponds to the JSON property commandType

Returns:

  • (String)


1471
1472
1473
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1471

def command_type
  @command_type
end

#payloadString

The payload for the command, provide it only if command supports it. The following commands support adding payload: - SET_VOLUME: Payload is a stringified JSON object in the form: "volume": 50. The volume has to be an integer in the range [0,100]. Corresponds to the JSON property payload

Returns:

  • (String)


1479
1480
1481
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1479

def payload
  @payload
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1486
1487
1488
1489
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1486

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