Class: Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::DirectoryChromeosdevicesIssueCommandRequest
- 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
A request for issuing a command.
Instance Attribute Summary collapse
-
#command_type ⇒ String
The type of command.
-
#payload ⇒ String
The payload for the command, provide it only if command supports it.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DirectoryChromeosdevicesIssueCommandRequest
constructor
A new instance of DirectoryChromeosdevicesIssueCommandRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DirectoryChromeosdevicesIssueCommandRequest
Returns a new instance of DirectoryChromeosdevicesIssueCommandRequest.
1974 1975 1976 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1974 def initialize(**args) update!(**args) end |
Instance Attribute Details
#command_type ⇒ String
The type of command.
Corresponds to the JSON property commandType
1959 1960 1961 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1959 def command_type @command_type end |
#payload ⇒ String
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]. - DEVICE_START_CRD_SESSION: Payload is
optionally a stringified JSON object in the form: "ackedUserPresence": true
. ackedUserPresence is a boolean. If a device is being used, ackedUserPresence
must be set to true to acknowledge that you want to start a CRD session
anyways. It is false by default, so a CRD command will fail if used on an
active device without this field.
Corresponds to the JSON property payload
1972 1973 1974 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1972 def payload @payload end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1979 1980 1981 1982 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 1979 def update!(**args) @command_type = args[:command_type] if args.key?(:command_type) @payload = args[:payload] if args.key?(:payload) end |