google-apis-androidmanagement_v1 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,39 @@ module Google
22
22
  module Apis
23
23
  module AndroidmanagementV1
24
24
 
25
+ # A shell command was issued over ADB via “adb shell command”.
26
+ class AdbShellCommandEvent
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Shell command that was issued over ADB via "adb shell command". Redacted to
30
+ # empty string on organization-owned managed profile devices.
31
+ # Corresponds to the JSON property `shellCmd`
32
+ # @return [String]
33
+ attr_accessor :shell_cmd
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @shell_cmd = args[:shell_cmd] if args.key?(:shell_cmd)
42
+ end
43
+ end
44
+
45
+ # An ADB interactive shell was opened via “adb shell”. Intentionally empty.
46
+ class AdbShellInteractiveEvent
47
+ include Google::Apis::Core::Hashable
48
+
49
+ def initialize(**args)
50
+ update!(**args)
51
+ end
52
+
53
+ # Update properties of this object
54
+ def update!(**args)
55
+ end
56
+ end
57
+
25
58
  # Security policies set to secure values by default. To maintain the security
26
59
  # posture of a device, we don't recommend overriding any of the default values.
27
60
  class AdvancedSecurityOverrides
@@ -130,6 +163,87 @@ module Google
130
163
  end
131
164
  end
132
165
 
166
+ # Information about a process. It contains process name, start time, app Uid,
167
+ # app Pid, seinfo tag, hash of the base APK.
168
+ class AppProcessInfo
169
+ include Google::Apis::Core::Hashable
170
+
171
+ # SHA-256 hash of the base APK, in hexadecimal format.
172
+ # Corresponds to the JSON property `apkSha256Hash`
173
+ # @return [String]
174
+ attr_accessor :apk_sha256_hash
175
+
176
+ # Package names of all packages that are associated with the particular user id.
177
+ # In most cases, this will be a single package name, the package that has been
178
+ # assigned that user id. If multiple application share a uid then all packages
179
+ # sharing uid will be included.
180
+ # Corresponds to the JSON property `packageNames`
181
+ # @return [Array<String>]
182
+ attr_accessor :package_names
183
+
184
+ # Process ID.
185
+ # Corresponds to the JSON property `pid`
186
+ # @return [Fixnum]
187
+ attr_accessor :pid
188
+
189
+ # Process name.
190
+ # Corresponds to the JSON property `processName`
191
+ # @return [String]
192
+ attr_accessor :process_name
193
+
194
+ # SELinux policy info.
195
+ # Corresponds to the JSON property `seinfo`
196
+ # @return [String]
197
+ attr_accessor :seinfo
198
+
199
+ # Process start time.
200
+ # Corresponds to the JSON property `startTime`
201
+ # @return [String]
202
+ attr_accessor :start_time
203
+
204
+ # UID of the package.
205
+ # Corresponds to the JSON property `uid`
206
+ # @return [Fixnum]
207
+ attr_accessor :uid
208
+
209
+ def initialize(**args)
210
+ update!(**args)
211
+ end
212
+
213
+ # Update properties of this object
214
+ def update!(**args)
215
+ @apk_sha256_hash = args[:apk_sha256_hash] if args.key?(:apk_sha256_hash)
216
+ @package_names = args[:package_names] if args.key?(:package_names)
217
+ @pid = args[:pid] if args.key?(:pid)
218
+ @process_name = args[:process_name] if args.key?(:process_name)
219
+ @seinfo = args[:seinfo] if args.key?(:seinfo)
220
+ @start_time = args[:start_time] if args.key?(:start_time)
221
+ @uid = args[:uid] if args.key?(:uid)
222
+ end
223
+ end
224
+
225
+ # An app process was started. This is available device-wide on fully managed
226
+ # devices and within the work profile on organization-owned devices with a work
227
+ # profile.
228
+ class AppProcessStartEvent
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # Information about a process. It contains process name, start time, app Uid,
232
+ # app Pid, seinfo tag, hash of the base APK.
233
+ # Corresponds to the JSON property `processInfo`
234
+ # @return [Google::Apis::AndroidmanagementV1::AppProcessInfo]
235
+ attr_accessor :process_info
236
+
237
+ def initialize(**args)
238
+ update!(**args)
239
+ end
240
+
241
+ # Update properties of this object
242
+ def update!(**args)
243
+ @process_info = args[:process_info] if args.key?(:process_info)
244
+ end
245
+ end
246
+
133
247
  # Id to name association of a app track.
134
248
  class AppTrackInfo
135
249
  include Google::Apis::Core::Hashable
@@ -648,6 +762,46 @@ module Google
648
762
  end
649
763
  end
650
764
 
765
+ # Batched event logs of events from the device.
766
+ class BatchUsageLogEvents
767
+ include Google::Apis::Core::Hashable
768
+
769
+ # The name of the device in the form ‘enterprises/`enterpriseId`/devices/`
770
+ # deviceId`’
771
+ # Corresponds to the JSON property `device`
772
+ # @return [String]
773
+ attr_accessor :device
774
+
775
+ # The device timestamp when the batch of events were collected from the device.
776
+ # Corresponds to the JSON property `retrievalTime`
777
+ # @return [String]
778
+ attr_accessor :retrieval_time
779
+
780
+ # The list of UsageLogEvent that were reported by the device, sorted
781
+ # chronologically by the event time.
782
+ # Corresponds to the JSON property `usageLogEvents`
783
+ # @return [Array<Google::Apis::AndroidmanagementV1::UsageLogEvent>]
784
+ attr_accessor :usage_log_events
785
+
786
+ # The resource name of the user that owns this device in the form ‘enterprises/`
787
+ # enterpriseId`/users/`userId`’.
788
+ # Corresponds to the JSON property `user`
789
+ # @return [String]
790
+ attr_accessor :user
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @device = args[:device] if args.key?(:device)
799
+ @retrieval_time = args[:retrieval_time] if args.key?(:retrieval_time)
800
+ @usage_log_events = args[:usage_log_events] if args.key?(:usage_log_events)
801
+ @user = args[:user] if args.key?(:user)
802
+ end
803
+ end
804
+
651
805
  # An action to block access to apps and data on a fully managed device or in a
652
806
  # work profile. This action also triggers a device or work profile to displays a
653
807
  # user-facing notification with information (where possible) on how to correct
@@ -679,6 +833,98 @@ module Google
679
833
  end
680
834
  end
681
835
 
836
+ # A new root certificate was installed into the system's trusted credential
837
+ # storage. This is available device-wide on fully managed devices and within the
838
+ # work profile on organization-owned devices with a work profile.
839
+ class CertAuthorityInstalledEvent
840
+ include Google::Apis::Core::Hashable
841
+
842
+ # Subject of the certificate.
843
+ # Corresponds to the JSON property `certificate`
844
+ # @return [String]
845
+ attr_accessor :certificate
846
+
847
+ # Whether the installation event succeeded.
848
+ # Corresponds to the JSON property `success`
849
+ # @return [Boolean]
850
+ attr_accessor :success
851
+ alias_method :success?, :success
852
+
853
+ # The user in which the certificate install event happened. Only available for
854
+ # devices running Android 11 and above.
855
+ # Corresponds to the JSON property `userId`
856
+ # @return [Fixnum]
857
+ attr_accessor :user_id
858
+
859
+ def initialize(**args)
860
+ update!(**args)
861
+ end
862
+
863
+ # Update properties of this object
864
+ def update!(**args)
865
+ @certificate = args[:certificate] if args.key?(:certificate)
866
+ @success = args[:success] if args.key?(:success)
867
+ @user_id = args[:user_id] if args.key?(:user_id)
868
+ end
869
+ end
870
+
871
+ # A root certificate was removed from the system's trusted credential storage.
872
+ # This is available device-wide on fully managed devices and within the work
873
+ # profile on organization-owned devices with a work profile.
874
+ class CertAuthorityRemovedEvent
875
+ include Google::Apis::Core::Hashable
876
+
877
+ # Subject of the certificate.
878
+ # Corresponds to the JSON property `certificate`
879
+ # @return [String]
880
+ attr_accessor :certificate
881
+
882
+ # Whether the removal succeeded.
883
+ # Corresponds to the JSON property `success`
884
+ # @return [Boolean]
885
+ attr_accessor :success
886
+ alias_method :success?, :success
887
+
888
+ # The user in which the certificate removal event occurred. Only available for
889
+ # devices running Android 11 and above.
890
+ # Corresponds to the JSON property `userId`
891
+ # @return [Fixnum]
892
+ attr_accessor :user_id
893
+
894
+ def initialize(**args)
895
+ update!(**args)
896
+ end
897
+
898
+ # Update properties of this object
899
+ def update!(**args)
900
+ @certificate = args[:certificate] if args.key?(:certificate)
901
+ @success = args[:success] if args.key?(:success)
902
+ @user_id = args[:user_id] if args.key?(:user_id)
903
+ end
904
+ end
905
+
906
+ # An X.509v3 certificate failed to validate, currently this validation is
907
+ # performed on the Wi-FI access point and failure may be due to a mismatch upon
908
+ # server certificate validation. However it may in the future include other
909
+ # validation events of an X.509v3 certificate.
910
+ class CertValidationFailureEvent
911
+ include Google::Apis::Core::Hashable
912
+
913
+ # The reason why certification validation failed.
914
+ # Corresponds to the JSON property `failureReason`
915
+ # @return [String]
916
+ attr_accessor :failure_reason
917
+
918
+ def initialize(**args)
919
+ update!(**args)
920
+ end
921
+
922
+ # Update properties of this object
923
+ def update!(**args)
924
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
925
+ end
926
+ end
927
+
682
928
  # Controls apps' access to private keys. The rule determines which private key,
683
929
  # if any, Android Device Policy grants to the specified app. Access is granted
684
930
  # either when the app calls KeyChain.choosePrivateKeyAlias (https://developer.
@@ -928,6 +1174,37 @@ module Google
928
1174
  end
929
1175
  end
930
1176
 
1177
+ # A TCP connect event was initiated through the standard network stack.
1178
+ class ConnectEvent
1179
+ include Google::Apis::Core::Hashable
1180
+
1181
+ # The destination IP address of the connect call.
1182
+ # Corresponds to the JSON property `destinationIpAddress`
1183
+ # @return [String]
1184
+ attr_accessor :destination_ip_address
1185
+
1186
+ # The destination port of the connect call.
1187
+ # Corresponds to the JSON property `destinationPort`
1188
+ # @return [Fixnum]
1189
+ attr_accessor :destination_port
1190
+
1191
+ # The package name of the UID that performed the connect call.
1192
+ # Corresponds to the JSON property `packageName`
1193
+ # @return [String]
1194
+ attr_accessor :package_name
1195
+
1196
+ def initialize(**args)
1197
+ update!(**args)
1198
+ end
1199
+
1200
+ # Update properties of this object
1201
+ def update!(**args)
1202
+ @destination_ip_address = args[:destination_ip_address] if args.key?(:destination_ip_address)
1203
+ @destination_port = args[:destination_port] if args.key?(:destination_port)
1204
+ @package_name = args[:package_name] if args.key?(:package_name)
1205
+ end
1206
+ end
1207
+
931
1208
  # Contact details for managed Google Play enterprises.
932
1209
  class ContactInfo
933
1210
  include Google::Apis::Core::Hashable
@@ -1055,6 +1332,28 @@ module Google
1055
1332
  end
1056
1333
  end
1057
1334
 
1335
+ # Validates whether Android’s built-in cryptographic library (BoringSSL) is
1336
+ # valid. Should always succeed on device boot, if it fails, the device should be
1337
+ # considered untrusted.
1338
+ class CryptoSelfTestCompletedEvent
1339
+ include Google::Apis::Core::Hashable
1340
+
1341
+ # Whether the test succeeded.
1342
+ # Corresponds to the JSON property `success`
1343
+ # @return [Boolean]
1344
+ attr_accessor :success
1345
+ alias_method :success?, :success
1346
+
1347
+ def initialize(**args)
1348
+ update!(**args)
1349
+ end
1350
+
1351
+ # Update properties of this object
1352
+ def update!(**args)
1353
+ @success = args[:success] if args.key?(:success)
1354
+ end
1355
+ end
1356
+
1058
1357
  # Represents a whole or partial calendar date, such as a birthday. The time of
1059
1358
  # day and time zone are either specified elsewhere or are insignificant. The
1060
1359
  # date is relative to the Gregorian Calendar. This can represent one of the
@@ -1474,6 +1773,45 @@ module Google
1474
1773
  end
1475
1774
  end
1476
1775
 
1776
+ # A DNS lookup event was initiated through the standard network stack.
1777
+ class DnsEvent
1778
+ include Google::Apis::Core::Hashable
1779
+
1780
+ # The hostname that was looked up.
1781
+ # Corresponds to the JSON property `hostname`
1782
+ # @return [String]
1783
+ attr_accessor :hostname
1784
+
1785
+ # The (possibly truncated) list of the IP addresses returned for DNS lookup (max
1786
+ # 10 IPv4 or IPv6 addresses).
1787
+ # Corresponds to the JSON property `ipAddresses`
1788
+ # @return [Array<String>]
1789
+ attr_accessor :ip_addresses
1790
+
1791
+ # The package name of the UID that performed the DNS lookup.
1792
+ # Corresponds to the JSON property `packageName`
1793
+ # @return [String]
1794
+ attr_accessor :package_name
1795
+
1796
+ # The number of IP addresses returned from the DNS lookup event. May be higher
1797
+ # than the amount of ip_addresses if there were too many addresses to log.
1798
+ # Corresponds to the JSON property `totalIpAddressesReturned`
1799
+ # @return [Fixnum]
1800
+ attr_accessor :total_ip_addresses_returned
1801
+
1802
+ def initialize(**args)
1803
+ update!(**args)
1804
+ end
1805
+
1806
+ # Update properties of this object
1807
+ def update!(**args)
1808
+ @hostname = args[:hostname] if args.key?(:hostname)
1809
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
1810
+ @package_name = args[:package_name] if args.key?(:package_name)
1811
+ @total_ip_addresses_returned = args[:total_ip_addresses_returned] if args.key?(:total_ip_addresses_returned)
1812
+ end
1813
+ end
1814
+
1477
1815
  # A generic empty message that you can re-use to avoid defining duplicated empty
1478
1816
  # messages in your APIs. A typical example is to use it as the request or the
1479
1817
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1736,6 +2074,44 @@ module Google
1736
2074
  end
1737
2075
  end
1738
2076
 
2077
+ # A file was downloaded from the device.
2078
+ class FilePulledEvent
2079
+ include Google::Apis::Core::Hashable
2080
+
2081
+ # The path of the file being pulled.
2082
+ # Corresponds to the JSON property `filePath`
2083
+ # @return [String]
2084
+ attr_accessor :file_path
2085
+
2086
+ def initialize(**args)
2087
+ update!(**args)
2088
+ end
2089
+
2090
+ # Update properties of this object
2091
+ def update!(**args)
2092
+ @file_path = args[:file_path] if args.key?(:file_path)
2093
+ end
2094
+ end
2095
+
2096
+ # A file was uploaded onto the device.
2097
+ class FilePushedEvent
2098
+ include Google::Apis::Core::Hashable
2099
+
2100
+ # The path of the file being pushed.
2101
+ # Corresponds to the JSON property `filePath`
2102
+ # @return [String]
2103
+ attr_accessor :file_path
2104
+
2105
+ def initialize(**args)
2106
+ update!(**args)
2107
+ end
2108
+
2109
+ # Update properties of this object
2110
+ def update!(**args)
2111
+ @file_path = args[:file_path] if args.key?(:file_path)
2112
+ end
2113
+ end
2114
+
1739
2115
  # A system freeze period. When a device’s clock is within the freeze period, all
1740
2116
  # incoming system updates (including security patches) are blocked and won’t be
1741
2117
  # installed. When a device is outside the freeze period, normal update behavior
@@ -1966,6 +2342,140 @@ module Google
1966
2342
  end
1967
2343
  end
1968
2344
 
2345
+ # A cryptographic key including user installed, admin installed and system
2346
+ # maintained private key is removed from the device either by the user or
2347
+ # management. This is available device-wide on fully managed devices and within
2348
+ # the work profile on organization-owned devices with a work profile.
2349
+ class KeyDestructionEvent
2350
+ include Google::Apis::Core::Hashable
2351
+
2352
+ # UID of the application which owns the key.
2353
+ # Corresponds to the JSON property `applicationUid`
2354
+ # @return [Fixnum]
2355
+ attr_accessor :application_uid
2356
+
2357
+ # Alias of the key.
2358
+ # Corresponds to the JSON property `keyAlias`
2359
+ # @return [String]
2360
+ attr_accessor :key_alias
2361
+
2362
+ # Whether the operation was successful.
2363
+ # Corresponds to the JSON property `success`
2364
+ # @return [Boolean]
2365
+ attr_accessor :success
2366
+ alias_method :success?, :success
2367
+
2368
+ def initialize(**args)
2369
+ update!(**args)
2370
+ end
2371
+
2372
+ # Update properties of this object
2373
+ def update!(**args)
2374
+ @application_uid = args[:application_uid] if args.key?(:application_uid)
2375
+ @key_alias = args[:key_alias] if args.key?(:key_alias)
2376
+ @success = args[:success] if args.key?(:success)
2377
+ end
2378
+ end
2379
+
2380
+ # A cryptographic key including user installed, admin installed and system
2381
+ # maintained private key is installed on the device either by the user or
2382
+ # management.This is available device-wide on fully managed devices and within
2383
+ # the work profile on organization-owned devices with a work profile.
2384
+ class KeyGeneratedEvent
2385
+ include Google::Apis::Core::Hashable
2386
+
2387
+ # UID of the application which generated the key.
2388
+ # Corresponds to the JSON property `applicationUid`
2389
+ # @return [Fixnum]
2390
+ attr_accessor :application_uid
2391
+
2392
+ # Alias of the key.
2393
+ # Corresponds to the JSON property `keyAlias`
2394
+ # @return [String]
2395
+ attr_accessor :key_alias
2396
+
2397
+ # Whether the operation was successful.
2398
+ # Corresponds to the JSON property `success`
2399
+ # @return [Boolean]
2400
+ attr_accessor :success
2401
+ alias_method :success?, :success
2402
+
2403
+ def initialize(**args)
2404
+ update!(**args)
2405
+ end
2406
+
2407
+ # Update properties of this object
2408
+ def update!(**args)
2409
+ @application_uid = args[:application_uid] if args.key?(:application_uid)
2410
+ @key_alias = args[:key_alias] if args.key?(:key_alias)
2411
+ @success = args[:success] if args.key?(:success)
2412
+ end
2413
+ end
2414
+
2415
+ # A cryptographic key including user installed, admin installed and system
2416
+ # maintained private key is imported on the device either by the user or
2417
+ # management. This is available device-wide on fully managed devices and within
2418
+ # the work profile on organization-owned devices with a work profile.
2419
+ class KeyImportEvent
2420
+ include Google::Apis::Core::Hashable
2421
+
2422
+ # UID of the application which imported the key
2423
+ # Corresponds to the JSON property `applicationUid`
2424
+ # @return [Fixnum]
2425
+ attr_accessor :application_uid
2426
+
2427
+ # Alias of the key.
2428
+ # Corresponds to the JSON property `keyAlias`
2429
+ # @return [String]
2430
+ attr_accessor :key_alias
2431
+
2432
+ # Whether the operation was successful.
2433
+ # Corresponds to the JSON property `success`
2434
+ # @return [Boolean]
2435
+ attr_accessor :success
2436
+ alias_method :success?, :success
2437
+
2438
+ def initialize(**args)
2439
+ update!(**args)
2440
+ end
2441
+
2442
+ # Update properties of this object
2443
+ def update!(**args)
2444
+ @application_uid = args[:application_uid] if args.key?(:application_uid)
2445
+ @key_alias = args[:key_alias] if args.key?(:key_alias)
2446
+ @success = args[:success] if args.key?(:success)
2447
+ end
2448
+ end
2449
+
2450
+ # A cryptographic key including user installed, admin installed and system
2451
+ # maintained private key is determined to be corrupted due to storage corruption,
2452
+ # hardware failure or some OS issue. This is available device-wide on fully
2453
+ # managed devices and within the work profile on organization-owned devices with
2454
+ # a work profile.
2455
+ class KeyIntegrityViolationEvent
2456
+ include Google::Apis::Core::Hashable
2457
+
2458
+ # UID of the application which owns the key
2459
+ # Corresponds to the JSON property `applicationUid`
2460
+ # @return [Fixnum]
2461
+ attr_accessor :application_uid
2462
+
2463
+ # Alias of the key.
2464
+ # Corresponds to the JSON property `keyAlias`
2465
+ # @return [String]
2466
+ attr_accessor :key_alias
2467
+
2468
+ def initialize(**args)
2469
+ update!(**args)
2470
+ end
2471
+
2472
+ # Update properties of this object
2473
+ def update!(**args)
2474
+ @application_uid = args[:application_uid] if args.key?(:application_uid)
2475
+ @key_alias = args[:key_alias] if args.key?(:key_alias)
2476
+ end
2477
+ end
2478
+
1969
2479
  # Keyed app state reported by the app.
1970
2480
  class KeyedAppState
1971
2481
  include Google::Apis::Core::Hashable
@@ -2021,6 +2531,60 @@ module Google
2021
2531
  end
2022
2532
  end
2023
2533
 
2534
+ # An attempt was made to unlock the device.
2535
+ class KeyguardDismissAuthAttemptEvent
2536
+ include Google::Apis::Core::Hashable
2537
+
2538
+ # Whether a strong form of authentication (password, PIN, or pattern) was used
2539
+ # to unlock device.
2540
+ # Corresponds to the JSON property `strongAuthMethodUsed`
2541
+ # @return [Boolean]
2542
+ attr_accessor :strong_auth_method_used
2543
+ alias_method :strong_auth_method_used?, :strong_auth_method_used
2544
+
2545
+ # Whether the unlock attempt was successful.
2546
+ # Corresponds to the JSON property `success`
2547
+ # @return [Boolean]
2548
+ attr_accessor :success
2549
+ alias_method :success?, :success
2550
+
2551
+ def initialize(**args)
2552
+ update!(**args)
2553
+ end
2554
+
2555
+ # Update properties of this object
2556
+ def update!(**args)
2557
+ @strong_auth_method_used = args[:strong_auth_method_used] if args.key?(:strong_auth_method_used)
2558
+ @success = args[:success] if args.key?(:success)
2559
+ end
2560
+ end
2561
+
2562
+ # The keyguard was dismissed. Intentionally empty.
2563
+ class KeyguardDismissedEvent
2564
+ include Google::Apis::Core::Hashable
2565
+
2566
+ def initialize(**args)
2567
+ update!(**args)
2568
+ end
2569
+
2570
+ # Update properties of this object
2571
+ def update!(**args)
2572
+ end
2573
+ end
2574
+
2575
+ # The device was locked either by user or timeout. Intentionally empty.
2576
+ class KeyguardSecuredEvent
2577
+ include Google::Apis::Core::Hashable
2578
+
2579
+ def initialize(**args)
2580
+ update!(**args)
2581
+ end
2582
+
2583
+ # Update properties of this object
2584
+ def update!(**args)
2585
+ end
2586
+ end
2587
+
2024
2588
  # Settings controlling the behavior of a device in kiosk mode. To enable kiosk
2025
2589
  # mode, set kioskCustomLauncherEnabled to true or specify an app in the policy
2026
2590
  # with installType KIOSK.
@@ -2239,6 +2803,46 @@ module Google
2239
2803
  end
2240
2804
  end
2241
2805
 
2806
+ # The usageLog buffer on the device has reached 90% of its capacity, therefore
2807
+ # older events may be dropped. Intentionally empty.
2808
+ class LogBufferSizeCriticalEvent
2809
+ include Google::Apis::Core::Hashable
2810
+
2811
+ def initialize(**args)
2812
+ update!(**args)
2813
+ end
2814
+
2815
+ # Update properties of this object
2816
+ def update!(**args)
2817
+ end
2818
+ end
2819
+
2820
+ # usageLog policy has been enabled. Intentionally empty.
2821
+ class LoggingStartedEvent
2822
+ include Google::Apis::Core::Hashable
2823
+
2824
+ def initialize(**args)
2825
+ update!(**args)
2826
+ end
2827
+
2828
+ # Update properties of this object
2829
+ def update!(**args)
2830
+ end
2831
+ end
2832
+
2833
+ # usageLog policy has been disabled. Intentionally empty.
2834
+ class LoggingStoppedEvent
2835
+ include Google::Apis::Core::Hashable
2836
+
2837
+ def initialize(**args)
2838
+ update!(**args)
2839
+ end
2840
+
2841
+ # Update properties of this object
2842
+ def update!(**args)
2843
+ end
2844
+ end
2845
+
2242
2846
  # The managed configurations template for the app, saved from the managed
2243
2847
  # configurations iframe.
2244
2848
  class ManagedConfigurationTemplate
@@ -2351,6 +2955,58 @@ module Google
2351
2955
  end
2352
2956
  end
2353
2957
 
2958
+ # Removable media was mounted.
2959
+ class MediaMountEvent
2960
+ include Google::Apis::Core::Hashable
2961
+
2962
+ # Mount point.
2963
+ # Corresponds to the JSON property `mountPoint`
2964
+ # @return [String]
2965
+ attr_accessor :mount_point
2966
+
2967
+ # Volume label. Redacted to empty string on organization-owned managed profile
2968
+ # devices.
2969
+ # Corresponds to the JSON property `volumeLabel`
2970
+ # @return [String]
2971
+ attr_accessor :volume_label
2972
+
2973
+ def initialize(**args)
2974
+ update!(**args)
2975
+ end
2976
+
2977
+ # Update properties of this object
2978
+ def update!(**args)
2979
+ @mount_point = args[:mount_point] if args.key?(:mount_point)
2980
+ @volume_label = args[:volume_label] if args.key?(:volume_label)
2981
+ end
2982
+ end
2983
+
2984
+ # Removable media was unmounted.
2985
+ class MediaUnmountEvent
2986
+ include Google::Apis::Core::Hashable
2987
+
2988
+ # Mount point.
2989
+ # Corresponds to the JSON property `mountPoint`
2990
+ # @return [String]
2991
+ attr_accessor :mount_point
2992
+
2993
+ # Volume label. Redacted to empty string on organization-owned managed profile
2994
+ # devices.
2995
+ # Corresponds to the JSON property `volumeLabel`
2996
+ # @return [String]
2997
+ attr_accessor :volume_label
2998
+
2999
+ def initialize(**args)
3000
+ update!(**args)
3001
+ end
3002
+
3003
+ # Update properties of this object
3004
+ def update!(**args)
3005
+ @mount_point = args[:mount_point] if args.key?(:mount_point)
3006
+ @volume_label = args[:volume_label] if args.key?(:volume_label)
3007
+ end
3008
+ end
3009
+
2354
3010
  # An event related to memory and storage measurements.
2355
3011
  class MemoryEvent
2356
3012
  include Google::Apis::Core::Hashable
@@ -2667,6 +3323,44 @@ module Google
2667
3323
  end
2668
3324
  end
2669
3325
 
3326
+ # Device was shutdown. Intentionally empty.
3327
+ class OsShutdownEvent
3328
+ include Google::Apis::Core::Hashable
3329
+
3330
+ def initialize(**args)
3331
+ update!(**args)
3332
+ end
3333
+
3334
+ # Update properties of this object
3335
+ def update!(**args)
3336
+ end
3337
+ end
3338
+
3339
+ # Device was started.
3340
+ class OsStartupEvent
3341
+ include Google::Apis::Core::Hashable
3342
+
3343
+ # Verified Boot state.
3344
+ # Corresponds to the JSON property `verifiedBootState`
3345
+ # @return [String]
3346
+ attr_accessor :verified_boot_state
3347
+
3348
+ # dm-verity mode.
3349
+ # Corresponds to the JSON property `verityMode`
3350
+ # @return [String]
3351
+ attr_accessor :verity_mode
3352
+
3353
+ def initialize(**args)
3354
+ update!(**args)
3355
+ end
3356
+
3357
+ # Update properties of this object
3358
+ def update!(**args)
3359
+ @verified_boot_state = args[:verified_boot_state] if args.key?(:verified_boot_state)
3360
+ @verity_mode = args[:verity_mode] if args.key?(:verity_mode)
3361
+ end
3362
+ end
3363
+
2670
3364
  # A list of package names.
2671
3365
  class PackageNameList
2672
3366
  include Google::Apis::Core::Hashable
@@ -3786,6 +4480,37 @@ module Google
3786
4480
  end
3787
4481
  end
3788
4482
 
4483
+ # The device or profile has been remotely locked via the LOCK command.
4484
+ class RemoteLockEvent
4485
+ include Google::Apis::Core::Hashable
4486
+
4487
+ # Package name of the admin app requesting the change.
4488
+ # Corresponds to the JSON property `adminPackageName`
4489
+ # @return [String]
4490
+ attr_accessor :admin_package_name
4491
+
4492
+ # User ID of the admin app from the which the change was requested.
4493
+ # Corresponds to the JSON property `adminUserId`
4494
+ # @return [Fixnum]
4495
+ attr_accessor :admin_user_id
4496
+
4497
+ # User ID in which the change was requested in.
4498
+ # Corresponds to the JSON property `targetUserId`
4499
+ # @return [Fixnum]
4500
+ attr_accessor :target_user_id
4501
+
4502
+ def initialize(**args)
4503
+ update!(**args)
4504
+ end
4505
+
4506
+ # Update properties of this object
4507
+ def update!(**args)
4508
+ @admin_package_name = args[:admin_package_name] if args.key?(:admin_package_name)
4509
+ @admin_user_id = args[:admin_user_id] if args.key?(:admin_user_id)
4510
+ @target_user_id = args[:target_user_id] if args.key?(:target_user_id)
4511
+ end
4512
+ end
4513
+
3789
4514
  # The security posture of the device, as determined by the current device state
3790
4515
  # and the policies applied.
3791
4516
  class SecurityPosture
@@ -4318,6 +5043,227 @@ module Google
4318
5043
  end
4319
5044
  end
4320
5045
 
5046
+ # An event logged on the device.
5047
+ class UsageLogEvent
5048
+ include Google::Apis::Core::Hashable
5049
+
5050
+ # A shell command was issued over ADB via “adb shell command”.
5051
+ # Corresponds to the JSON property `adbShellCommandEvent`
5052
+ # @return [Google::Apis::AndroidmanagementV1::AdbShellCommandEvent]
5053
+ attr_accessor :adb_shell_command_event
5054
+
5055
+ # An ADB interactive shell was opened via “adb shell”. Intentionally empty.
5056
+ # Corresponds to the JSON property `adbShellInteractiveEvent`
5057
+ # @return [Google::Apis::AndroidmanagementV1::AdbShellInteractiveEvent]
5058
+ attr_accessor :adb_shell_interactive_event
5059
+
5060
+ # An app process was started. This is available device-wide on fully managed
5061
+ # devices and within the work profile on organization-owned devices with a work
5062
+ # profile.
5063
+ # Corresponds to the JSON property `appProcessStartEvent`
5064
+ # @return [Google::Apis::AndroidmanagementV1::AppProcessStartEvent]
5065
+ attr_accessor :app_process_start_event
5066
+
5067
+ # A new root certificate was installed into the system's trusted credential
5068
+ # storage. This is available device-wide on fully managed devices and within the
5069
+ # work profile on organization-owned devices with a work profile.
5070
+ # Corresponds to the JSON property `certAuthorityInstalledEvent`
5071
+ # @return [Google::Apis::AndroidmanagementV1::CertAuthorityInstalledEvent]
5072
+ attr_accessor :cert_authority_installed_event
5073
+
5074
+ # A root certificate was removed from the system's trusted credential storage.
5075
+ # This is available device-wide on fully managed devices and within the work
5076
+ # profile on organization-owned devices with a work profile.
5077
+ # Corresponds to the JSON property `certAuthorityRemovedEvent`
5078
+ # @return [Google::Apis::AndroidmanagementV1::CertAuthorityRemovedEvent]
5079
+ attr_accessor :cert_authority_removed_event
5080
+
5081
+ # An X.509v3 certificate failed to validate, currently this validation is
5082
+ # performed on the Wi-FI access point and failure may be due to a mismatch upon
5083
+ # server certificate validation. However it may in the future include other
5084
+ # validation events of an X.509v3 certificate.
5085
+ # Corresponds to the JSON property `certValidationFailureEvent`
5086
+ # @return [Google::Apis::AndroidmanagementV1::CertValidationFailureEvent]
5087
+ attr_accessor :cert_validation_failure_event
5088
+
5089
+ # A TCP connect event was initiated through the standard network stack.
5090
+ # Corresponds to the JSON property `connectEvent`
5091
+ # @return [Google::Apis::AndroidmanagementV1::ConnectEvent]
5092
+ attr_accessor :connect_event
5093
+
5094
+ # Validates whether Android’s built-in cryptographic library (BoringSSL) is
5095
+ # valid. Should always succeed on device boot, if it fails, the device should be
5096
+ # considered untrusted.
5097
+ # Corresponds to the JSON property `cryptoSelfTestCompletedEvent`
5098
+ # @return [Google::Apis::AndroidmanagementV1::CryptoSelfTestCompletedEvent]
5099
+ attr_accessor :crypto_self_test_completed_event
5100
+
5101
+ # A DNS lookup event was initiated through the standard network stack.
5102
+ # Corresponds to the JSON property `dnsEvent`
5103
+ # @return [Google::Apis::AndroidmanagementV1::DnsEvent]
5104
+ attr_accessor :dns_event
5105
+
5106
+ # Unique id of the event.
5107
+ # Corresponds to the JSON property `eventId`
5108
+ # @return [Fixnum]
5109
+ attr_accessor :event_id
5110
+
5111
+ # Device timestamp when the event was logged.
5112
+ # Corresponds to the JSON property `eventTime`
5113
+ # @return [String]
5114
+ attr_accessor :event_time
5115
+
5116
+ # The particular usage log event type that was reported on the device. Use this
5117
+ # to determine which event field to access.
5118
+ # Corresponds to the JSON property `eventType`
5119
+ # @return [String]
5120
+ attr_accessor :event_type
5121
+
5122
+ # A file was downloaded from the device.
5123
+ # Corresponds to the JSON property `filePulledEvent`
5124
+ # @return [Google::Apis::AndroidmanagementV1::FilePulledEvent]
5125
+ attr_accessor :file_pulled_event
5126
+
5127
+ # A file was uploaded onto the device.
5128
+ # Corresponds to the JSON property `filePushedEvent`
5129
+ # @return [Google::Apis::AndroidmanagementV1::FilePushedEvent]
5130
+ attr_accessor :file_pushed_event
5131
+
5132
+ # A cryptographic key including user installed, admin installed and system
5133
+ # maintained private key is removed from the device either by the user or
5134
+ # management. This is available device-wide on fully managed devices and within
5135
+ # the work profile on organization-owned devices with a work profile.
5136
+ # Corresponds to the JSON property `keyDestructionEvent`
5137
+ # @return [Google::Apis::AndroidmanagementV1::KeyDestructionEvent]
5138
+ attr_accessor :key_destruction_event
5139
+
5140
+ # A cryptographic key including user installed, admin installed and system
5141
+ # maintained private key is installed on the device either by the user or
5142
+ # management.This is available device-wide on fully managed devices and within
5143
+ # the work profile on organization-owned devices with a work profile.
5144
+ # Corresponds to the JSON property `keyGeneratedEvent`
5145
+ # @return [Google::Apis::AndroidmanagementV1::KeyGeneratedEvent]
5146
+ attr_accessor :key_generated_event
5147
+
5148
+ # A cryptographic key including user installed, admin installed and system
5149
+ # maintained private key is imported on the device either by the user or
5150
+ # management. This is available device-wide on fully managed devices and within
5151
+ # the work profile on organization-owned devices with a work profile.
5152
+ # Corresponds to the JSON property `keyImportEvent`
5153
+ # @return [Google::Apis::AndroidmanagementV1::KeyImportEvent]
5154
+ attr_accessor :key_import_event
5155
+
5156
+ # A cryptographic key including user installed, admin installed and system
5157
+ # maintained private key is determined to be corrupted due to storage corruption,
5158
+ # hardware failure or some OS issue. This is available device-wide on fully
5159
+ # managed devices and within the work profile on organization-owned devices with
5160
+ # a work profile.
5161
+ # Corresponds to the JSON property `keyIntegrityViolationEvent`
5162
+ # @return [Google::Apis::AndroidmanagementV1::KeyIntegrityViolationEvent]
5163
+ attr_accessor :key_integrity_violation_event
5164
+
5165
+ # An attempt was made to unlock the device.
5166
+ # Corresponds to the JSON property `keyguardDismissAuthAttemptEvent`
5167
+ # @return [Google::Apis::AndroidmanagementV1::KeyguardDismissAuthAttemptEvent]
5168
+ attr_accessor :keyguard_dismiss_auth_attempt_event
5169
+
5170
+ # The keyguard was dismissed. Intentionally empty.
5171
+ # Corresponds to the JSON property `keyguardDismissedEvent`
5172
+ # @return [Google::Apis::AndroidmanagementV1::KeyguardDismissedEvent]
5173
+ attr_accessor :keyguard_dismissed_event
5174
+
5175
+ # The device was locked either by user or timeout. Intentionally empty.
5176
+ # Corresponds to the JSON property `keyguardSecuredEvent`
5177
+ # @return [Google::Apis::AndroidmanagementV1::KeyguardSecuredEvent]
5178
+ attr_accessor :keyguard_secured_event
5179
+
5180
+ # The usageLog buffer on the device has reached 90% of its capacity, therefore
5181
+ # older events may be dropped. Intentionally empty.
5182
+ # Corresponds to the JSON property `logBufferSizeCriticalEvent`
5183
+ # @return [Google::Apis::AndroidmanagementV1::LogBufferSizeCriticalEvent]
5184
+ attr_accessor :log_buffer_size_critical_event
5185
+
5186
+ # usageLog policy has been enabled. Intentionally empty.
5187
+ # Corresponds to the JSON property `loggingStartedEvent`
5188
+ # @return [Google::Apis::AndroidmanagementV1::LoggingStartedEvent]
5189
+ attr_accessor :logging_started_event
5190
+
5191
+ # usageLog policy has been disabled. Intentionally empty.
5192
+ # Corresponds to the JSON property `loggingStoppedEvent`
5193
+ # @return [Google::Apis::AndroidmanagementV1::LoggingStoppedEvent]
5194
+ attr_accessor :logging_stopped_event
5195
+
5196
+ # Removable media was mounted.
5197
+ # Corresponds to the JSON property `mediaMountEvent`
5198
+ # @return [Google::Apis::AndroidmanagementV1::MediaMountEvent]
5199
+ attr_accessor :media_mount_event
5200
+
5201
+ # Removable media was unmounted.
5202
+ # Corresponds to the JSON property `mediaUnmountEvent`
5203
+ # @return [Google::Apis::AndroidmanagementV1::MediaUnmountEvent]
5204
+ attr_accessor :media_unmount_event
5205
+
5206
+ # Device was shutdown. Intentionally empty.
5207
+ # Corresponds to the JSON property `osShutdownEvent`
5208
+ # @return [Google::Apis::AndroidmanagementV1::OsShutdownEvent]
5209
+ attr_accessor :os_shutdown_event
5210
+
5211
+ # Device was started.
5212
+ # Corresponds to the JSON property `osStartupEvent`
5213
+ # @return [Google::Apis::AndroidmanagementV1::OsStartupEvent]
5214
+ attr_accessor :os_startup_event
5215
+
5216
+ # The device or profile has been remotely locked via the LOCK command.
5217
+ # Corresponds to the JSON property `remoteLockEvent`
5218
+ # @return [Google::Apis::AndroidmanagementV1::RemoteLockEvent]
5219
+ attr_accessor :remote_lock_event
5220
+
5221
+ # The work profile or company-owned device failed to wipe when when requested.
5222
+ # This could be user initiated or admin initiated e.g. delete was received.
5223
+ # Intentionally empty.
5224
+ # Corresponds to the JSON property `wipeFailureEvent`
5225
+ # @return [Google::Apis::AndroidmanagementV1::WipeFailureEvent]
5226
+ attr_accessor :wipe_failure_event
5227
+
5228
+ def initialize(**args)
5229
+ update!(**args)
5230
+ end
5231
+
5232
+ # Update properties of this object
5233
+ def update!(**args)
5234
+ @adb_shell_command_event = args[:adb_shell_command_event] if args.key?(:adb_shell_command_event)
5235
+ @adb_shell_interactive_event = args[:adb_shell_interactive_event] if args.key?(:adb_shell_interactive_event)
5236
+ @app_process_start_event = args[:app_process_start_event] if args.key?(:app_process_start_event)
5237
+ @cert_authority_installed_event = args[:cert_authority_installed_event] if args.key?(:cert_authority_installed_event)
5238
+ @cert_authority_removed_event = args[:cert_authority_removed_event] if args.key?(:cert_authority_removed_event)
5239
+ @cert_validation_failure_event = args[:cert_validation_failure_event] if args.key?(:cert_validation_failure_event)
5240
+ @connect_event = args[:connect_event] if args.key?(:connect_event)
5241
+ @crypto_self_test_completed_event = args[:crypto_self_test_completed_event] if args.key?(:crypto_self_test_completed_event)
5242
+ @dns_event = args[:dns_event] if args.key?(:dns_event)
5243
+ @event_id = args[:event_id] if args.key?(:event_id)
5244
+ @event_time = args[:event_time] if args.key?(:event_time)
5245
+ @event_type = args[:event_type] if args.key?(:event_type)
5246
+ @file_pulled_event = args[:file_pulled_event] if args.key?(:file_pulled_event)
5247
+ @file_pushed_event = args[:file_pushed_event] if args.key?(:file_pushed_event)
5248
+ @key_destruction_event = args[:key_destruction_event] if args.key?(:key_destruction_event)
5249
+ @key_generated_event = args[:key_generated_event] if args.key?(:key_generated_event)
5250
+ @key_import_event = args[:key_import_event] if args.key?(:key_import_event)
5251
+ @key_integrity_violation_event = args[:key_integrity_violation_event] if args.key?(:key_integrity_violation_event)
5252
+ @keyguard_dismiss_auth_attempt_event = args[:keyguard_dismiss_auth_attempt_event] if args.key?(:keyguard_dismiss_auth_attempt_event)
5253
+ @keyguard_dismissed_event = args[:keyguard_dismissed_event] if args.key?(:keyguard_dismissed_event)
5254
+ @keyguard_secured_event = args[:keyguard_secured_event] if args.key?(:keyguard_secured_event)
5255
+ @log_buffer_size_critical_event = args[:log_buffer_size_critical_event] if args.key?(:log_buffer_size_critical_event)
5256
+ @logging_started_event = args[:logging_started_event] if args.key?(:logging_started_event)
5257
+ @logging_stopped_event = args[:logging_stopped_event] if args.key?(:logging_stopped_event)
5258
+ @media_mount_event = args[:media_mount_event] if args.key?(:media_mount_event)
5259
+ @media_unmount_event = args[:media_unmount_event] if args.key?(:media_unmount_event)
5260
+ @os_shutdown_event = args[:os_shutdown_event] if args.key?(:os_shutdown_event)
5261
+ @os_startup_event = args[:os_startup_event] if args.key?(:os_startup_event)
5262
+ @remote_lock_event = args[:remote_lock_event] if args.key?(:remote_lock_event)
5263
+ @wipe_failure_event = args[:wipe_failure_event] if args.key?(:wipe_failure_event)
5264
+ end
5265
+ end
5266
+
4321
5267
  # A user belonging to an enterprise.
4322
5268
  class User
4323
5269
  include Google::Apis::Core::Hashable
@@ -4528,6 +5474,21 @@ module Google
4528
5474
  @wipe_after_days = args[:wipe_after_days] if args.key?(:wipe_after_days)
4529
5475
  end
4530
5476
  end
5477
+
5478
+ # The work profile or company-owned device failed to wipe when when requested.
5479
+ # This could be user initiated or admin initiated e.g. delete was received.
5480
+ # Intentionally empty.
5481
+ class WipeFailureEvent
5482
+ include Google::Apis::Core::Hashable
5483
+
5484
+ def initialize(**args)
5485
+ update!(**args)
5486
+ end
5487
+
5488
+ # Update properties of this object
5489
+ def update!(**args)
5490
+ end
5491
+ end
4531
5492
  end
4532
5493
  end
4533
5494
  end