Class: Google::Apis::AndroidmanagementV1::AdbShellCommandEvent

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

Overview

A shell command was issued over ADB via “adb shell command”.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdbShellCommandEvent

Returns a new instance of AdbShellCommandEvent.



35
36
37
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 35

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

Instance Attribute Details

#shell_cmdString

Shell command that was issued over ADB via "adb shell command". Redacted to empty string on organization-owned managed profile devices. Corresponds to the JSON property shellCmd

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 33

def shell_cmd
  @shell_cmd
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 40

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