google-apis-devicerun_v1alpha 0.1.0 → 0.3.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/devicerun_v1alpha/classes.rb +152 -99
- data/lib/google/apis/devicerun_v1alpha/gem_version.rb +3 -3
- data/lib/google/apis/devicerun_v1alpha/representations.rb +51 -31
- data/lib/google/apis/devicerun_v1alpha/service.rb +51 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1906d20b6bf2e88c55f28e1beb54cf344de167df2ec11e5ff3e82d45d29e0f7b
|
|
4
|
+
data.tar.gz: b4e143619825d1da8277b26ec64525372646ace865ca7720359c28f3d927d7e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e179ea5cf110b0b2e17f75edf013105718ca5d8b4b0596ca8bb09a0ed669dfb7653b8ec77f6d21a42e60f6f9a4678decaf186c6c933817c2772727ad628bd2ee
|
|
7
|
+
data.tar.gz: ec108320568716fc80f19e6d7db39c6f9022fd35a67793539ae59d172da3afb0b73cfdcc1ff31cc6dabd6ba38aebeecfff6f3cd39e3878a62daaf3ec9dd93bc9
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-devicerun_v1alpha
|
|
2
2
|
|
|
3
|
+
### v0.3.0 (2026-10-21)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20261019
|
|
6
|
+
* Regenerated using generator version 0.19.1
|
|
7
|
+
|
|
8
|
+
### v0.2.0 (2026-10-04)
|
|
9
|
+
|
|
10
|
+
* Regenerated from discovery document revision 20261001
|
|
11
|
+
|
|
3
12
|
### v0.1.0 (2026-09-27)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20260923
|
|
@@ -48,9 +48,9 @@ module Google
|
|
|
48
48
|
class AndroidBugreportDeviceAction
|
|
49
49
|
include Google::Apis::Core::Hashable
|
|
50
50
|
|
|
51
|
-
# Optional. Whether to deliver the bugreport when the test passes. If false
|
|
52
|
-
# bugreport is skipped on pass to save time (default behavior). If true
|
|
53
|
-
# bugreport is always delivered.
|
|
51
|
+
# Optional. Whether to deliver the bugreport when the test passes. If `false`,
|
|
52
|
+
# the bugreport is skipped on pass to save time (default behavior). If `true`,
|
|
53
|
+
# the bugreport is always delivered.
|
|
54
54
|
# Corresponds to the JSON property `collectOnPass`
|
|
55
55
|
# @return [Boolean]
|
|
56
56
|
attr_accessor :collect_on_pass
|
|
@@ -71,8 +71,8 @@ module Google
|
|
|
71
71
|
class AndroidDumpsysDeviceAction
|
|
72
72
|
include Google::Apis::Core::Hashable
|
|
73
73
|
|
|
74
|
-
# Optional. Whether to deliver the dumpsys when the test passes. If false
|
|
75
|
-
# dumpsys is skipped on pass to save time (default behavior). If true
|
|
74
|
+
# Optional. Whether to deliver the dumpsys when the test passes. If `false`, the
|
|
75
|
+
# dumpsys is skipped on pass to save time (default behavior). If `true`, the
|
|
76
76
|
# dumpsys is always delivered.
|
|
77
77
|
# Corresponds to the JSON property `collectOnPass`
|
|
78
78
|
# @return [Boolean]
|
|
@@ -203,7 +203,7 @@ module Google
|
|
|
203
203
|
# The smart sharding strategy to split the job into multiple shards based on the
|
|
204
204
|
# test methods and their recorded execution time.
|
|
205
205
|
# Corresponds to the JSON property `smartSharding`
|
|
206
|
-
# @return [Google::Apis::DevicerunV1alpha::
|
|
206
|
+
# @return [Google::Apis::DevicerunV1alpha::SmartSharding]
|
|
207
207
|
attr_accessor :smart_sharding
|
|
208
208
|
|
|
209
209
|
# An Android Installable represents the file(s) for installing an Android
|
|
@@ -234,14 +234,14 @@ module Google
|
|
|
234
234
|
# @return [Array<String>]
|
|
235
235
|
attr_accessor :test_targets
|
|
236
236
|
|
|
237
|
-
# Uniformly shards test cases given a total number of shards.
|
|
238
|
-
# translated to `-e numShard` and `-e
|
|
239
|
-
# With uniform sharding enabled,
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
237
|
+
# Uniformly shards test cases given a total number of shards. For Android
|
|
238
|
+
# instrumentation tests, it will be translated to `-e numShard` and `-e
|
|
239
|
+
# shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
|
|
240
|
+
# specifying either of these sharding arguments via `environment_variables` is
|
|
241
|
+
# invalid. There is no guarantee that test cases will be distributed uniformly
|
|
242
|
+
# across all shards.
|
|
243
243
|
# Corresponds to the JSON property `uniformSharding`
|
|
244
|
-
# @return [Google::Apis::DevicerunV1alpha::
|
|
244
|
+
# @return [Google::Apis::DevicerunV1alpha::UniformSharding]
|
|
245
245
|
attr_accessor :uniform_sharding
|
|
246
246
|
|
|
247
247
|
def initialize(**args)
|
|
@@ -262,79 +262,6 @@ module Google
|
|
|
262
262
|
end
|
|
263
263
|
end
|
|
264
264
|
|
|
265
|
-
# The smart sharding strategy to split the job into multiple shards based on the
|
|
266
|
-
# test methods and their recorded execution time.
|
|
267
|
-
class AndroidInstrumentationTestSmartSharding
|
|
268
|
-
include Google::Apis::Core::Hashable
|
|
269
|
-
|
|
270
|
-
# Optional. The maximum number of shards to create. If unset or less than 1,
|
|
271
|
-
# system-defined max limits are used. This limit takes precedence if the
|
|
272
|
-
# targeted_shard_duration cannot be satisfied. Limits: - For physical devices,
|
|
273
|
-
# the number of shards must be <= 20. - For virtual devices, the number of
|
|
274
|
-
# shards must be <= 200.
|
|
275
|
-
# Corresponds to the JSON property `maxShardCount`
|
|
276
|
-
# @return [Fixnum]
|
|
277
|
-
attr_accessor :max_shard_count
|
|
278
|
-
|
|
279
|
-
# Required. The targeted duration of each shard. Limits: - Must be at least 2
|
|
280
|
-
# minutes. - Must be at most 3 hours. Shard duration is not guaranteed because
|
|
281
|
-
# smart sharding uses test case history and default durations which may not be
|
|
282
|
-
# accurate. Durations are calculated based on the following inputs: - Timing
|
|
283
|
-
# records from previous runs of the same test case. - For new test cases, the
|
|
284
|
-
# average duration of other known test cases. - A system-chosen, default
|
|
285
|
-
# duration if there are no previous timing records available. Because the actual
|
|
286
|
-
# shard duration can exceed the targeted shard duration, we recommend that you
|
|
287
|
-
# set the targeted value at least 5 minutes less than the maximum allowed
|
|
288
|
-
# instrumentation timeout. This approach avoids cancelling the shard before all
|
|
289
|
-
# tests can finish.
|
|
290
|
-
# Corresponds to the JSON property `targetedShardDuration`
|
|
291
|
-
# @return [String]
|
|
292
|
-
attr_accessor :targeted_shard_duration
|
|
293
|
-
|
|
294
|
-
# Input file.
|
|
295
|
-
# Corresponds to the JSON property `timingRecord`
|
|
296
|
-
# @return [Google::Apis::DevicerunV1alpha::InputFile]
|
|
297
|
-
attr_accessor :timing_record
|
|
298
|
-
|
|
299
|
-
def initialize(**args)
|
|
300
|
-
update!(**args)
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# Update properties of this object
|
|
304
|
-
def update!(**args)
|
|
305
|
-
@max_shard_count = args[:max_shard_count] if args.key?(:max_shard_count)
|
|
306
|
-
@targeted_shard_duration = args[:targeted_shard_duration] if args.key?(:targeted_shard_duration)
|
|
307
|
-
@timing_record = args[:timing_record] if args.key?(:timing_record)
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
# Uniformly shards test cases given a total number of shards. It will be
|
|
312
|
-
# translated to `-e numShard` and `-e shardIndex` AndroidJUnitRunner arguments.
|
|
313
|
-
# With uniform sharding enabled, specifying either of these sharding arguments
|
|
314
|
-
# via `environment_variables` is invalid. Based on the sharding mechanism
|
|
315
|
-
# AndroidJUnitRunner uses, there is no guarantee that test cases will be
|
|
316
|
-
# distributed uniformly across all shards.
|
|
317
|
-
class AndroidInstrumentationTestUniformSharding
|
|
318
|
-
include Google::Apis::Core::Hashable
|
|
319
|
-
|
|
320
|
-
# Required. The total number of shards to create. This must always be a positive
|
|
321
|
-
# number that is no greater than the total number of test cases. Limits: - For
|
|
322
|
-
# physical devices, the number of shards must be <= 20. - For virtual devices,
|
|
323
|
-
# the number of shards must be <= 200.
|
|
324
|
-
# Corresponds to the JSON property `shardCount`
|
|
325
|
-
# @return [Fixnum]
|
|
326
|
-
attr_accessor :shard_count
|
|
327
|
-
|
|
328
|
-
def initialize(**args)
|
|
329
|
-
update!(**args)
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Update properties of this object
|
|
333
|
-
def update!(**args)
|
|
334
|
-
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
|
|
338
265
|
# Collects logcat output from the device. The output will be written to a file
|
|
339
266
|
# named `logcat.txt` in the execution output directory.
|
|
340
267
|
class AndroidLogcatDeviceAction
|
|
@@ -381,17 +308,16 @@ module Google
|
|
|
381
308
|
attr_accessor :android_native_binary
|
|
382
309
|
|
|
383
310
|
# Optional. Arguments for running the binary file. The flags will be appended to
|
|
384
|
-
# the command line that invokes the binary.
|
|
385
|
-
#
|
|
311
|
+
# the command line that invokes the binary. Limits: - Maximum number of entries:
|
|
312
|
+
# 64 - Maximum entry size: 1024 bytes (UTF-8)
|
|
386
313
|
# Corresponds to the JSON property `args`
|
|
387
314
|
# @return [Array<String>]
|
|
388
315
|
attr_accessor :args
|
|
389
316
|
|
|
390
317
|
# Optional. A map of environment variables to set for the binary process. The
|
|
391
|
-
# keys are the variable names and the values are the variable values.
|
|
392
|
-
#
|
|
393
|
-
#
|
|
394
|
-
# total size of all environment variables must not exceed 16 KiB.
|
|
318
|
+
# keys are the variable names and the values are the variable values. Limits: -
|
|
319
|
+
# Maximum number of entries: 32 - Maximum key size: 64 bytes (UTF-8) - Key regex:
|
|
320
|
+
# `a-zA-Z_*` - Maximum value size: 1024 bytes (UTF-8)
|
|
395
321
|
# Corresponds to the JSON property `envVars`
|
|
396
322
|
# @return [Hash<String,String>]
|
|
397
323
|
attr_accessor :env_vars
|
|
@@ -512,7 +438,7 @@ module Google
|
|
|
512
438
|
include Google::Apis::Core::Hashable
|
|
513
439
|
|
|
514
440
|
# Optional. Whether to discard and not upload the recording when the test passes.
|
|
515
|
-
# Default is false
|
|
441
|
+
# Default is `false`.
|
|
516
442
|
# Corresponds to the JSON property `discardOnPass`
|
|
517
443
|
# @return [Boolean]
|
|
518
444
|
attr_accessor :discard_on_pass
|
|
@@ -550,6 +476,25 @@ module Google
|
|
|
550
476
|
end
|
|
551
477
|
end
|
|
552
478
|
|
|
479
|
+
# Response including the requested sessions.
|
|
480
|
+
class BatchGetSessionsResponse
|
|
481
|
+
include Google::Apis::Core::Hashable
|
|
482
|
+
|
|
483
|
+
# The requested sessions, in the same order as the `names` in the request.
|
|
484
|
+
# Corresponds to the JSON property `sessions`
|
|
485
|
+
# @return [Array<Google::Apis::DevicerunV1alpha::Session>]
|
|
486
|
+
attr_accessor :sessions
|
|
487
|
+
|
|
488
|
+
def initialize(**args)
|
|
489
|
+
update!(**args)
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Update properties of this object
|
|
493
|
+
def update!(**args)
|
|
494
|
+
@sessions = args[:sessions] if args.key?(:sessions)
|
|
495
|
+
end
|
|
496
|
+
end
|
|
497
|
+
|
|
553
498
|
# Request to cancel a session.
|
|
554
499
|
class CancelSessionRequest
|
|
555
500
|
include Google::Apis::Core::Hashable
|
|
@@ -1221,8 +1166,11 @@ module Google
|
|
|
1221
1166
|
# @return [Google::Apis::DevicerunV1alpha::IosPushFilesDeviceAction]
|
|
1222
1167
|
attr_accessor :ios_push_files
|
|
1223
1168
|
|
|
1224
|
-
# Records
|
|
1225
|
-
#
|
|
1169
|
+
# Records videos of the iOS device screen, one per UI test case. Each video
|
|
1170
|
+
# covers only the execution of its test case, and will be written to `testcases/`
|
|
1171
|
+
# test_class`/`test_method`/video.mp4` in the execution output directory. No
|
|
1172
|
+
# video is recorded for unit tests, or on devices running a version earlier than
|
|
1173
|
+
# iOS 17.
|
|
1226
1174
|
# Corresponds to the JSON property `iosRecordVideo`
|
|
1227
1175
|
# @return [Google::Apis::DevicerunV1alpha::IosRecordVideoDeviceAction]
|
|
1228
1176
|
attr_accessor :ios_record_video
|
|
@@ -1704,13 +1652,16 @@ module Google
|
|
|
1704
1652
|
end
|
|
1705
1653
|
end
|
|
1706
1654
|
|
|
1707
|
-
# Records
|
|
1708
|
-
#
|
|
1655
|
+
# Records videos of the iOS device screen, one per UI test case. Each video
|
|
1656
|
+
# covers only the execution of its test case, and will be written to `testcases/`
|
|
1657
|
+
# test_class`/`test_method`/video.mp4` in the execution output directory. No
|
|
1658
|
+
# video is recorded for unit tests, or on devices running a version earlier than
|
|
1659
|
+
# iOS 17.
|
|
1709
1660
|
class IosRecordVideoDeviceAction
|
|
1710
1661
|
include Google::Apis::Core::Hashable
|
|
1711
1662
|
|
|
1712
|
-
# Optional. Whether to discard the video
|
|
1713
|
-
# the default is false (
|
|
1663
|
+
# Optional. Whether to discard the video of a test case when it passes. If not
|
|
1664
|
+
# specified, the default is `false` (videos of all test cases are kept).
|
|
1714
1665
|
# Corresponds to the JSON property `discardOnPass`
|
|
1715
1666
|
# @return [Boolean]
|
|
1716
1667
|
attr_accessor :discard_on_pass
|
|
@@ -1750,11 +1701,27 @@ module Google
|
|
|
1750
1701
|
class IosXcTest
|
|
1751
1702
|
include Google::Apis::Core::Hashable
|
|
1752
1703
|
|
|
1704
|
+
# The smart sharding strategy to split the job into multiple shards based on the
|
|
1705
|
+
# test methods and their recorded execution time.
|
|
1706
|
+
# Corresponds to the JSON property `smartSharding`
|
|
1707
|
+
# @return [Google::Apis::DevicerunV1alpha::SmartSharding]
|
|
1708
|
+
attr_accessor :smart_sharding
|
|
1709
|
+
|
|
1753
1710
|
# Input file.
|
|
1754
1711
|
# Corresponds to the JSON property `testsZip`
|
|
1755
1712
|
# @return [Google::Apis::DevicerunV1alpha::InputFile]
|
|
1756
1713
|
attr_accessor :tests_zip
|
|
1757
1714
|
|
|
1715
|
+
# Uniformly shards test cases given a total number of shards. For Android
|
|
1716
|
+
# instrumentation tests, it will be translated to `-e numShard` and `-e
|
|
1717
|
+
# shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
|
|
1718
|
+
# specifying either of these sharding arguments via `environment_variables` is
|
|
1719
|
+
# invalid. There is no guarantee that test cases will be distributed uniformly
|
|
1720
|
+
# across all shards.
|
|
1721
|
+
# Corresponds to the JSON property `uniformSharding`
|
|
1722
|
+
# @return [Google::Apis::DevicerunV1alpha::UniformSharding]
|
|
1723
|
+
attr_accessor :uniform_sharding
|
|
1724
|
+
|
|
1758
1725
|
# Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3
|
|
1759
1726
|
# hours].
|
|
1760
1727
|
# Corresponds to the JSON property `xcTestTimeout`
|
|
@@ -1779,7 +1746,9 @@ module Google
|
|
|
1779
1746
|
|
|
1780
1747
|
# Update properties of this object
|
|
1781
1748
|
def update!(**args)
|
|
1749
|
+
@smart_sharding = args[:smart_sharding] if args.key?(:smart_sharding)
|
|
1782
1750
|
@tests_zip = args[:tests_zip] if args.key?(:tests_zip)
|
|
1751
|
+
@uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding)
|
|
1783
1752
|
@xc_test_timeout = args[:xc_test_timeout] if args.key?(:xc_test_timeout)
|
|
1784
1753
|
@xcode_version = args[:xcode_version] if args.key?(:xcode_version)
|
|
1785
1754
|
@xctestrun = args[:xctestrun] if args.key?(:xctestrun)
|
|
@@ -1795,6 +1764,11 @@ module Google
|
|
|
1795
1764
|
# @return [String]
|
|
1796
1765
|
attr_accessor :message
|
|
1797
1766
|
|
|
1767
|
+
# Output only. Additional metadata about the issue.
|
|
1768
|
+
# Corresponds to the JSON property `metadata`
|
|
1769
|
+
# @return [Hash<String,String>]
|
|
1770
|
+
attr_accessor :metadata
|
|
1771
|
+
|
|
1798
1772
|
# Output only. The reason of the issue. This is a constant value that identifies
|
|
1799
1773
|
# the proximate cause of the issue. This should be at most 63 characters and
|
|
1800
1774
|
# match a regular expression of `A-Z*[A-Z0-9]`, which represents
|
|
@@ -1815,6 +1789,7 @@ module Google
|
|
|
1815
1789
|
# Update properties of this object
|
|
1816
1790
|
def update!(**args)
|
|
1817
1791
|
@message = args[:message] if args.key?(:message)
|
|
1792
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1818
1793
|
@reason = args[:reason] if args.key?(:reason)
|
|
1819
1794
|
@type = args[:type] if args.key?(:type)
|
|
1820
1795
|
end
|
|
@@ -2318,6 +2293,11 @@ module Google
|
|
|
2318
2293
|
class Session
|
|
2319
2294
|
include Google::Apis::Core::Hashable
|
|
2320
2295
|
|
|
2296
|
+
# Output only. The time when the session was created.
|
|
2297
|
+
# Corresponds to the JSON property `createTime`
|
|
2298
|
+
# @return [String]
|
|
2299
|
+
attr_accessor :create_time
|
|
2300
|
+
|
|
2321
2301
|
# Identifier. The resource name of the session. Format: `projects/`project`/
|
|
2322
2302
|
# locations/`location`/sessions/`session``.
|
|
2323
2303
|
# Corresponds to the JSON property `name`
|
|
@@ -2340,6 +2320,7 @@ module Google
|
|
|
2340
2320
|
|
|
2341
2321
|
# Update properties of this object
|
|
2342
2322
|
def update!(**args)
|
|
2323
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2343
2324
|
@name = args[:name] if args.key?(:name)
|
|
2344
2325
|
@session_config = args[:session_config] if args.key?(:session_config)
|
|
2345
2326
|
@session_report = args[:session_report] if args.key?(:session_report)
|
|
@@ -2488,6 +2469,51 @@ module Google
|
|
|
2488
2469
|
end
|
|
2489
2470
|
end
|
|
2490
2471
|
|
|
2472
|
+
# The smart sharding strategy to split the job into multiple shards based on the
|
|
2473
|
+
# test methods and their recorded execution time.
|
|
2474
|
+
class SmartSharding
|
|
2475
|
+
include Google::Apis::Core::Hashable
|
|
2476
|
+
|
|
2477
|
+
# Optional. The maximum number of shards to create. If unset or less than 1,
|
|
2478
|
+
# system-defined max limits are used. This limit takes precedence if the
|
|
2479
|
+
# targeted_shard_duration cannot be satisfied. Limits: - For physical devices,
|
|
2480
|
+
# the number of shards must be <= 20. - For virtual devices, the number of
|
|
2481
|
+
# shards must be <= 200.
|
|
2482
|
+
# Corresponds to the JSON property `maxShardCount`
|
|
2483
|
+
# @return [Fixnum]
|
|
2484
|
+
attr_accessor :max_shard_count
|
|
2485
|
+
|
|
2486
|
+
# Required. The targeted duration of each shard. Limits: - Must be at least 2
|
|
2487
|
+
# minutes. - Must be at most 3 hours. Shard duration is not guaranteed because
|
|
2488
|
+
# smart sharding uses test case history and default durations which may not be
|
|
2489
|
+
# accurate. Durations are calculated based on the following inputs: - Timing
|
|
2490
|
+
# records from previous runs of the same test case. - For new test cases, the
|
|
2491
|
+
# average duration of other known test cases. - A system-chosen, default
|
|
2492
|
+
# duration if there are no previous timing records available. Because the actual
|
|
2493
|
+
# shard duration can exceed the targeted shard duration, we recommend that you
|
|
2494
|
+
# set the targeted value at least 5 minutes less than the maximum allowed test
|
|
2495
|
+
# timeout. This approach avoids cancelling the shard before all tests can finish.
|
|
2496
|
+
# Corresponds to the JSON property `targetedShardDuration`
|
|
2497
|
+
# @return [String]
|
|
2498
|
+
attr_accessor :targeted_shard_duration
|
|
2499
|
+
|
|
2500
|
+
# Input file.
|
|
2501
|
+
# Corresponds to the JSON property `timingRecord`
|
|
2502
|
+
# @return [Google::Apis::DevicerunV1alpha::InputFile]
|
|
2503
|
+
attr_accessor :timing_record
|
|
2504
|
+
|
|
2505
|
+
def initialize(**args)
|
|
2506
|
+
update!(**args)
|
|
2507
|
+
end
|
|
2508
|
+
|
|
2509
|
+
# Update properties of this object
|
|
2510
|
+
def update!(**args)
|
|
2511
|
+
@max_shard_count = args[:max_shard_count] if args.key?(:max_shard_count)
|
|
2512
|
+
@targeted_shard_duration = args[:targeted_shard_duration] if args.key?(:targeted_shard_duration)
|
|
2513
|
+
@timing_record = args[:timing_record] if args.key?(:timing_record)
|
|
2514
|
+
end
|
|
2515
|
+
end
|
|
2516
|
+
|
|
2491
2517
|
# The status of a session/job/execution.
|
|
2492
2518
|
class Status
|
|
2493
2519
|
include Google::Apis::Core::Hashable
|
|
@@ -2516,6 +2542,33 @@ module Google
|
|
|
2516
2542
|
end
|
|
2517
2543
|
end
|
|
2518
2544
|
|
|
2545
|
+
# Uniformly shards test cases given a total number of shards. For Android
|
|
2546
|
+
# instrumentation tests, it will be translated to `-e numShard` and `-e
|
|
2547
|
+
# shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
|
|
2548
|
+
# specifying either of these sharding arguments via `environment_variables` is
|
|
2549
|
+
# invalid. There is no guarantee that test cases will be distributed uniformly
|
|
2550
|
+
# across all shards.
|
|
2551
|
+
class UniformSharding
|
|
2552
|
+
include Google::Apis::Core::Hashable
|
|
2553
|
+
|
|
2554
|
+
# Required. The total number of shards to create. This must always be a positive
|
|
2555
|
+
# number that is no greater than the total number of test cases. Limits: - For
|
|
2556
|
+
# physical devices, the number of shards must be <= 20. - For virtual devices,
|
|
2557
|
+
# the number of shards must be <= 200.
|
|
2558
|
+
# Corresponds to the JSON property `shardCount`
|
|
2559
|
+
# @return [Fixnum]
|
|
2560
|
+
attr_accessor :shard_count
|
|
2561
|
+
|
|
2562
|
+
def initialize(**args)
|
|
2563
|
+
update!(**args)
|
|
2564
|
+
end
|
|
2565
|
+
|
|
2566
|
+
# Update properties of this object
|
|
2567
|
+
def update!(**args)
|
|
2568
|
+
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
|
2569
|
+
end
|
|
2570
|
+
end
|
|
2571
|
+
|
|
2519
2572
|
# Non-fatal operational anomaly, lint observation, or execution insight.
|
|
2520
2573
|
class Warning
|
|
2521
2574
|
include Google::Apis::Core::Hashable
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module DevicerunV1alpha
|
|
18
18
|
# Version of the google-apis-devicerun_v1alpha gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.3.0"
|
|
20
20
|
|
|
21
21
|
# Version of the code generator used to generate this client
|
|
22
|
-
GENERATOR_VERSION = "0.19.
|
|
22
|
+
GENERATOR_VERSION = "0.19.1"
|
|
23
23
|
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
|
25
|
-
REVISION = "
|
|
25
|
+
REVISION = "20261019"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -58,18 +58,6 @@ module Google
|
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class AndroidInstrumentationTestSmartSharding
|
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
-
|
|
64
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
class AndroidInstrumentationTestUniformSharding
|
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
-
|
|
70
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
71
|
-
end
|
|
72
|
-
|
|
73
61
|
class AndroidLogcatDeviceAction
|
|
74
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
63
|
|
|
@@ -124,6 +112,12 @@ module Google
|
|
|
124
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
125
113
|
end
|
|
126
114
|
|
|
115
|
+
class BatchGetSessionsResponse
|
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
|
+
|
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
119
|
+
end
|
|
120
|
+
|
|
127
121
|
class CancelSessionRequest
|
|
128
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
129
123
|
|
|
@@ -472,12 +466,24 @@ module Google
|
|
|
472
466
|
include Google::Apis::Core::JsonObjectSupport
|
|
473
467
|
end
|
|
474
468
|
|
|
469
|
+
class SmartSharding
|
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
471
|
+
|
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
473
|
+
end
|
|
474
|
+
|
|
475
475
|
class Status
|
|
476
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
477
477
|
|
|
478
478
|
include Google::Apis::Core::JsonObjectSupport
|
|
479
479
|
end
|
|
480
480
|
|
|
481
|
+
class UniformSharding
|
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
483
|
+
|
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
|
485
|
+
end
|
|
486
|
+
|
|
481
487
|
class Warning
|
|
482
488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
483
489
|
|
|
@@ -535,34 +541,17 @@ module Google
|
|
|
535
541
|
property :enable_code_coverage, as: 'enableCodeCoverage'
|
|
536
542
|
property :instrumentation_timeout, as: 'instrumentationTimeout'
|
|
537
543
|
property :orchestrator_version, as: 'orchestratorVersion'
|
|
538
|
-
property :smart_sharding, as: 'smartSharding', class: Google::Apis::DevicerunV1alpha::
|
|
544
|
+
property :smart_sharding, as: 'smartSharding', class: Google::Apis::DevicerunV1alpha::SmartSharding, decorator: Google::Apis::DevicerunV1alpha::SmartSharding::Representation
|
|
539
545
|
|
|
540
546
|
property :test_installable, as: 'testInstallable', class: Google::Apis::DevicerunV1alpha::AndroidInstallable, decorator: Google::Apis::DevicerunV1alpha::AndroidInstallable::Representation
|
|
541
547
|
|
|
542
548
|
property :test_runner_class, as: 'testRunnerClass'
|
|
543
549
|
collection :test_targets, as: 'testTargets'
|
|
544
|
-
property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::DevicerunV1alpha::
|
|
545
|
-
|
|
546
|
-
end
|
|
547
|
-
end
|
|
548
|
-
|
|
549
|
-
class AndroidInstrumentationTestSmartSharding
|
|
550
|
-
# @private
|
|
551
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
552
|
-
property :max_shard_count, as: 'maxShardCount'
|
|
553
|
-
property :targeted_shard_duration, as: 'targetedShardDuration'
|
|
554
|
-
property :timing_record, as: 'timingRecord', class: Google::Apis::DevicerunV1alpha::InputFile, decorator: Google::Apis::DevicerunV1alpha::InputFile::Representation
|
|
550
|
+
property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::DevicerunV1alpha::UniformSharding, decorator: Google::Apis::DevicerunV1alpha::UniformSharding::Representation
|
|
555
551
|
|
|
556
552
|
end
|
|
557
553
|
end
|
|
558
554
|
|
|
559
|
-
class AndroidInstrumentationTestUniformSharding
|
|
560
|
-
# @private
|
|
561
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
562
|
-
property :shard_count, as: 'shardCount'
|
|
563
|
-
end
|
|
564
|
-
end
|
|
565
|
-
|
|
566
555
|
class AndroidLogcatDeviceAction
|
|
567
556
|
# @private
|
|
568
557
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -633,6 +622,14 @@ module Google
|
|
|
633
622
|
end
|
|
634
623
|
end
|
|
635
624
|
|
|
625
|
+
class BatchGetSessionsResponse
|
|
626
|
+
# @private
|
|
627
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
628
|
+
collection :sessions, as: 'sessions', class: Google::Apis::DevicerunV1alpha::Session, decorator: Google::Apis::DevicerunV1alpha::Session::Representation
|
|
629
|
+
|
|
630
|
+
end
|
|
631
|
+
end
|
|
632
|
+
|
|
636
633
|
class CancelSessionRequest
|
|
637
634
|
# @private
|
|
638
635
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1000,8 +997,12 @@ module Google
|
|
|
1000
997
|
class IosXcTest
|
|
1001
998
|
# @private
|
|
1002
999
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1000
|
+
property :smart_sharding, as: 'smartSharding', class: Google::Apis::DevicerunV1alpha::SmartSharding, decorator: Google::Apis::DevicerunV1alpha::SmartSharding::Representation
|
|
1001
|
+
|
|
1003
1002
|
property :tests_zip, as: 'testsZip', class: Google::Apis::DevicerunV1alpha::InputFile, decorator: Google::Apis::DevicerunV1alpha::InputFile::Representation
|
|
1004
1003
|
|
|
1004
|
+
property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::DevicerunV1alpha::UniformSharding, decorator: Google::Apis::DevicerunV1alpha::UniformSharding::Representation
|
|
1005
|
+
|
|
1005
1006
|
property :xc_test_timeout, as: 'xcTestTimeout'
|
|
1006
1007
|
property :xcode_version, as: 'xcodeVersion'
|
|
1007
1008
|
property :xctestrun, as: 'xctestrun', class: Google::Apis::DevicerunV1alpha::InputFile, decorator: Google::Apis::DevicerunV1alpha::InputFile::Representation
|
|
@@ -1013,6 +1014,7 @@ module Google
|
|
|
1013
1014
|
# @private
|
|
1014
1015
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1015
1016
|
property :message, as: 'message'
|
|
1017
|
+
hash :metadata, as: 'metadata'
|
|
1016
1018
|
property :reason, as: 'reason'
|
|
1017
1019
|
property :type, as: 'type'
|
|
1018
1020
|
end
|
|
@@ -1169,6 +1171,7 @@ module Google
|
|
|
1169
1171
|
class Session
|
|
1170
1172
|
# @private
|
|
1171
1173
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1174
|
+
property :create_time, as: 'createTime'
|
|
1172
1175
|
property :name, as: 'name'
|
|
1173
1176
|
property :session_config, as: 'sessionConfig', class: Google::Apis::DevicerunV1alpha::SessionConfig, decorator: Google::Apis::DevicerunV1alpha::SessionConfig::Representation
|
|
1174
1177
|
|
|
@@ -1221,6 +1224,16 @@ module Google
|
|
|
1221
1224
|
end
|
|
1222
1225
|
end
|
|
1223
1226
|
|
|
1227
|
+
class SmartSharding
|
|
1228
|
+
# @private
|
|
1229
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1230
|
+
property :max_shard_count, as: 'maxShardCount'
|
|
1231
|
+
property :targeted_shard_duration, as: 'targetedShardDuration'
|
|
1232
|
+
property :timing_record, as: 'timingRecord', class: Google::Apis::DevicerunV1alpha::InputFile, decorator: Google::Apis::DevicerunV1alpha::InputFile::Representation
|
|
1233
|
+
|
|
1234
|
+
end
|
|
1235
|
+
end
|
|
1236
|
+
|
|
1224
1237
|
class Status
|
|
1225
1238
|
# @private
|
|
1226
1239
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -1229,6 +1242,13 @@ module Google
|
|
|
1229
1242
|
end
|
|
1230
1243
|
end
|
|
1231
1244
|
|
|
1245
|
+
class UniformSharding
|
|
1246
|
+
# @private
|
|
1247
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
1248
|
+
property :shard_count, as: 'shardCount'
|
|
1249
|
+
end
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1232
1252
|
class Warning
|
|
1233
1253
|
# @private
|
|
1234
1254
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -371,6 +371,53 @@ module Google
|
|
|
371
371
|
execute_or_queue_command(command, &block)
|
|
372
372
|
end
|
|
373
373
|
|
|
374
|
+
# Retrieves multiple automation sessions in a single batch request. Sessions are
|
|
375
|
+
# returned in the same order as the `names` in the request. If any of the
|
|
376
|
+
# requested sessions does not exist, the whole request fails with `NOT_FOUND`
|
|
377
|
+
# and no sessions are returned. When calling this method over HTTP/REST with a
|
|
378
|
+
# large number of `names`, the request URL may exceed the maximum URL length (
|
|
379
|
+
# about 16 KB) and be rejected. In that case, send a `POST` request to the same
|
|
380
|
+
# URL with the `X-HTTP-Method-Override: GET` header and pass the request
|
|
381
|
+
# parameters in a JSON (`application/json`) or form-encoded (`application/x-www-
|
|
382
|
+
# form-urlencoded`) body. See https://cloud.google.com/apis/docs/http#
|
|
383
|
+
# long_request_urls.
|
|
384
|
+
# @param [String] parent
|
|
385
|
+
# Required. The parent resource shared by all sessions being retrieved. Format: `
|
|
386
|
+
# projects/`project`/locations/`location``. The `parent` field in the `
|
|
387
|
+
# BatchGetSessionsRequest` message must match the `parent` of all `Session`
|
|
388
|
+
# resource names in `names`.
|
|
389
|
+
# @param [Array<String>, String] names
|
|
390
|
+
# Required. The names of the sessions to retrieve. A maximum of 500 sessions can
|
|
391
|
+
# be retrieved in a batch. Format: `projects/`project`/locations/`location`/
|
|
392
|
+
# sessions/`session``.
|
|
393
|
+
# @param [String] fields
|
|
394
|
+
# Selector specifying which fields to include in a partial response.
|
|
395
|
+
# @param [String] quota_user
|
|
396
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
397
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
398
|
+
# @param [Google::Apis::RequestOptions] options
|
|
399
|
+
# Request-specific options
|
|
400
|
+
#
|
|
401
|
+
# @yield [result, err] Result & error if block supplied
|
|
402
|
+
# @yieldparam result [Google::Apis::DevicerunV1alpha::BatchGetSessionsResponse] parsed result object
|
|
403
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
404
|
+
#
|
|
405
|
+
# @return [Google::Apis::DevicerunV1alpha::BatchGetSessionsResponse]
|
|
406
|
+
#
|
|
407
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
408
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
409
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
410
|
+
def batch_project_location_session_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
411
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/sessions:batchGet', options)
|
|
412
|
+
command.response_representation = Google::Apis::DevicerunV1alpha::BatchGetSessionsResponse::Representation
|
|
413
|
+
command.response_class = Google::Apis::DevicerunV1alpha::BatchGetSessionsResponse
|
|
414
|
+
command.params['parent'] = parent unless parent.nil?
|
|
415
|
+
command.query['names'] = names unless names.nil?
|
|
416
|
+
command.query['fields'] = fields unless fields.nil?
|
|
417
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
418
|
+
execute_or_queue_command(command, &block)
|
|
419
|
+
end
|
|
420
|
+
|
|
374
421
|
# Cancels an in-progress automation session. This RPC returns immediately and
|
|
375
422
|
# cancellation proceeds asynchronously. If the session is already finished, this
|
|
376
423
|
# RPC will have no effect.
|
|
@@ -502,8 +549,8 @@ module Google
|
|
|
502
549
|
# Required. The name of the session. Format: `projects/`project`/locations/`
|
|
503
550
|
# location`/sessions/`session``.
|
|
504
551
|
# @param [String] view
|
|
505
|
-
# Optional. The view of the session to return. If not set, the
|
|
506
|
-
#
|
|
552
|
+
# Optional. The view of the session to return. If not set, the `FULL` view will
|
|
553
|
+
# be returned.
|
|
507
554
|
# @param [String] fields
|
|
508
555
|
# Selector specifying which fields to include in a partial response.
|
|
509
556
|
# @param [String] quota_user
|
|
@@ -554,8 +601,8 @@ module Google
|
|
|
554
601
|
# this to receive the subsequent page. When paginating, all other parameters
|
|
555
602
|
# provided to `ListSessions` must match the call that provided the page token.
|
|
556
603
|
# @param [String] view
|
|
557
|
-
# Optional. The view of the sessions to return. If not set, the `
|
|
558
|
-
#
|
|
604
|
+
# Optional. The view of the sessions to return. If not set, the `FULL` view will
|
|
605
|
+
# be returned.
|
|
559
606
|
# @param [String] fields
|
|
560
607
|
# Selector specifying which fields to include in a partial response.
|
|
561
608
|
# @param [String] quota_user
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-devicerun_v1alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-devicerun_v1alpha/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-devicerun_v1alpha/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-devicerun_v1alpha/v0.3.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-devicerun_v1alpha
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|