google-apis-devicerun_v1alpha 0.2.0 → 0.4.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 +153 -94
- 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 +63 -11
- 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: 8d6ceb97d73cba3d2450426455789cc8e77fd95e21680cb65e15d99a2d00493d
|
|
4
|
+
data.tar.gz: d235f01442010c4827d5001937a54e9f09f4bdb7c3e75c6a87b559f3682fdf88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7b02769167a7064cf1462ccadbd2d3e228601505b43b5d23ba55c3893ff5dd1c71d47e4d335ae613516085fca036c9e9ac4990f4ccd4a48d02d050d540dcda3
|
|
7
|
+
data.tar.gz: 9cd19509dba25358e2cf11e5b2f32f347addad72a61dfc588b417278c26c157b4bb72ac344835362ce1632c8ebc919d4ebc62463f343b1a9d2a4039d4f528a37
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Release history for google-apis-devicerun_v1alpha
|
|
2
2
|
|
|
3
|
+
### v0.4.0 (2026-11-01)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20261028
|
|
6
|
+
|
|
7
|
+
### v0.3.0 (2026-10-21)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20261019
|
|
10
|
+
* Regenerated using generator version 0.19.1
|
|
11
|
+
|
|
3
12
|
### v0.2.0 (2026-10-04)
|
|
4
13
|
|
|
5
14
|
* Regenerated from discovery document revision 20261001
|
|
@@ -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
|
|
@@ -511,7 +438,7 @@ module Google
|
|
|
511
438
|
include Google::Apis::Core::Hashable
|
|
512
439
|
|
|
513
440
|
# Optional. Whether to discard and not upload the recording when the test passes.
|
|
514
|
-
# Default is false
|
|
441
|
+
# Default is `false`.
|
|
515
442
|
# Corresponds to the JSON property `discardOnPass`
|
|
516
443
|
# @return [Boolean]
|
|
517
444
|
attr_accessor :discard_on_pass
|
|
@@ -549,6 +476,25 @@ module Google
|
|
|
549
476
|
end
|
|
550
477
|
end
|
|
551
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
|
+
|
|
552
498
|
# Request to cancel a session.
|
|
553
499
|
class CancelSessionRequest
|
|
554
500
|
include Google::Apis::Core::Hashable
|
|
@@ -1220,8 +1166,11 @@ module Google
|
|
|
1220
1166
|
# @return [Google::Apis::DevicerunV1alpha::IosPushFilesDeviceAction]
|
|
1221
1167
|
attr_accessor :ios_push_files
|
|
1222
1168
|
|
|
1223
|
-
# Records
|
|
1224
|
-
#
|
|
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.
|
|
1225
1174
|
# Corresponds to the JSON property `iosRecordVideo`
|
|
1226
1175
|
# @return [Google::Apis::DevicerunV1alpha::IosRecordVideoDeviceAction]
|
|
1227
1176
|
attr_accessor :ios_record_video
|
|
@@ -1681,7 +1630,12 @@ module Google
|
|
|
1681
1630
|
attr_accessor :bundle_id
|
|
1682
1631
|
|
|
1683
1632
|
# Required. The destination path relative to the app sandbox, e.g. "/Documents/
|
|
1684
|
-
# file.txt".
|
|
1633
|
+
# file.txt". It must be in the app's "/Documents" directory or under "/private/
|
|
1634
|
+
# var/mobile/Media/". This is the path of the pushed file, and missing parent
|
|
1635
|
+
# directories are created. If the path is an existing directory, such as "/
|
|
1636
|
+
# Documents", the file is placed in it under the file name of `source_file`. A
|
|
1637
|
+
# trailing "/" does not create a directory: "/Documents/foo/" pushes the file to
|
|
1638
|
+
# "/Documents/foo" unless that directory already exists.
|
|
1685
1639
|
# Corresponds to the JSON property `destinationPath`
|
|
1686
1640
|
# @return [String]
|
|
1687
1641
|
attr_accessor :destination_path
|
|
@@ -1703,13 +1657,16 @@ module Google
|
|
|
1703
1657
|
end
|
|
1704
1658
|
end
|
|
1705
1659
|
|
|
1706
|
-
# Records
|
|
1707
|
-
#
|
|
1660
|
+
# Records videos of the iOS device screen, one per UI test case. Each video
|
|
1661
|
+
# covers only the execution of its test case, and will be written to `testcases/`
|
|
1662
|
+
# test_class`/`test_method`/video.mp4` in the execution output directory. No
|
|
1663
|
+
# video is recorded for unit tests, or on devices running a version earlier than
|
|
1664
|
+
# iOS 17.
|
|
1708
1665
|
class IosRecordVideoDeviceAction
|
|
1709
1666
|
include Google::Apis::Core::Hashable
|
|
1710
1667
|
|
|
1711
|
-
# Optional. Whether to discard the video
|
|
1712
|
-
# the default is false (
|
|
1668
|
+
# Optional. Whether to discard the video of a test case when it passes. If not
|
|
1669
|
+
# specified, the default is `false` (videos of all test cases are kept).
|
|
1713
1670
|
# Corresponds to the JSON property `discardOnPass`
|
|
1714
1671
|
# @return [Boolean]
|
|
1715
1672
|
attr_accessor :discard_on_pass
|
|
@@ -1749,11 +1706,27 @@ module Google
|
|
|
1749
1706
|
class IosXcTest
|
|
1750
1707
|
include Google::Apis::Core::Hashable
|
|
1751
1708
|
|
|
1709
|
+
# The smart sharding strategy to split the job into multiple shards based on the
|
|
1710
|
+
# test methods and their recorded execution time.
|
|
1711
|
+
# Corresponds to the JSON property `smartSharding`
|
|
1712
|
+
# @return [Google::Apis::DevicerunV1alpha::SmartSharding]
|
|
1713
|
+
attr_accessor :smart_sharding
|
|
1714
|
+
|
|
1752
1715
|
# Input file.
|
|
1753
1716
|
# Corresponds to the JSON property `testsZip`
|
|
1754
1717
|
# @return [Google::Apis::DevicerunV1alpha::InputFile]
|
|
1755
1718
|
attr_accessor :tests_zip
|
|
1756
1719
|
|
|
1720
|
+
# Uniformly shards test cases given a total number of shards. For Android
|
|
1721
|
+
# instrumentation tests, it will be translated to `-e numShard` and `-e
|
|
1722
|
+
# shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
|
|
1723
|
+
# specifying either of these sharding arguments via `environment_variables` is
|
|
1724
|
+
# invalid. There is no guarantee that test cases will be distributed uniformly
|
|
1725
|
+
# across all shards.
|
|
1726
|
+
# Corresponds to the JSON property `uniformSharding`
|
|
1727
|
+
# @return [Google::Apis::DevicerunV1alpha::UniformSharding]
|
|
1728
|
+
attr_accessor :uniform_sharding
|
|
1729
|
+
|
|
1757
1730
|
# Optional. The timeout of the test. Default value: 5 min. Range: [1 min, 3
|
|
1758
1731
|
# hours].
|
|
1759
1732
|
# Corresponds to the JSON property `xcTestTimeout`
|
|
@@ -1778,7 +1751,9 @@ module Google
|
|
|
1778
1751
|
|
|
1779
1752
|
# Update properties of this object
|
|
1780
1753
|
def update!(**args)
|
|
1754
|
+
@smart_sharding = args[:smart_sharding] if args.key?(:smart_sharding)
|
|
1781
1755
|
@tests_zip = args[:tests_zip] if args.key?(:tests_zip)
|
|
1756
|
+
@uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding)
|
|
1782
1757
|
@xc_test_timeout = args[:xc_test_timeout] if args.key?(:xc_test_timeout)
|
|
1783
1758
|
@xcode_version = args[:xcode_version] if args.key?(:xcode_version)
|
|
1784
1759
|
@xctestrun = args[:xctestrun] if args.key?(:xctestrun)
|
|
@@ -1794,6 +1769,11 @@ module Google
|
|
|
1794
1769
|
# @return [String]
|
|
1795
1770
|
attr_accessor :message
|
|
1796
1771
|
|
|
1772
|
+
# Output only. Additional metadata about the issue.
|
|
1773
|
+
# Corresponds to the JSON property `metadata`
|
|
1774
|
+
# @return [Hash<String,String>]
|
|
1775
|
+
attr_accessor :metadata
|
|
1776
|
+
|
|
1797
1777
|
# Output only. The reason of the issue. This is a constant value that identifies
|
|
1798
1778
|
# the proximate cause of the issue. This should be at most 63 characters and
|
|
1799
1779
|
# match a regular expression of `A-Z*[A-Z0-9]`, which represents
|
|
@@ -1814,6 +1794,7 @@ module Google
|
|
|
1814
1794
|
# Update properties of this object
|
|
1815
1795
|
def update!(**args)
|
|
1816
1796
|
@message = args[:message] if args.key?(:message)
|
|
1797
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1817
1798
|
@reason = args[:reason] if args.key?(:reason)
|
|
1818
1799
|
@type = args[:type] if args.key?(:type)
|
|
1819
1800
|
end
|
|
@@ -2317,6 +2298,11 @@ module Google
|
|
|
2317
2298
|
class Session
|
|
2318
2299
|
include Google::Apis::Core::Hashable
|
|
2319
2300
|
|
|
2301
|
+
# Output only. The time when the session was created.
|
|
2302
|
+
# Corresponds to the JSON property `createTime`
|
|
2303
|
+
# @return [String]
|
|
2304
|
+
attr_accessor :create_time
|
|
2305
|
+
|
|
2320
2306
|
# Identifier. The resource name of the session. Format: `projects/`project`/
|
|
2321
2307
|
# locations/`location`/sessions/`session``.
|
|
2322
2308
|
# Corresponds to the JSON property `name`
|
|
@@ -2339,6 +2325,7 @@ module Google
|
|
|
2339
2325
|
|
|
2340
2326
|
# Update properties of this object
|
|
2341
2327
|
def update!(**args)
|
|
2328
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
|
2342
2329
|
@name = args[:name] if args.key?(:name)
|
|
2343
2330
|
@session_config = args[:session_config] if args.key?(:session_config)
|
|
2344
2331
|
@session_report = args[:session_report] if args.key?(:session_report)
|
|
@@ -2487,6 +2474,51 @@ module Google
|
|
|
2487
2474
|
end
|
|
2488
2475
|
end
|
|
2489
2476
|
|
|
2477
|
+
# The smart sharding strategy to split the job into multiple shards based on the
|
|
2478
|
+
# test methods and their recorded execution time.
|
|
2479
|
+
class SmartSharding
|
|
2480
|
+
include Google::Apis::Core::Hashable
|
|
2481
|
+
|
|
2482
|
+
# Optional. The maximum number of shards to create. If unset or less than 1,
|
|
2483
|
+
# system-defined max limits are used. This limit takes precedence if the
|
|
2484
|
+
# targeted_shard_duration cannot be satisfied. Limits: - For physical devices,
|
|
2485
|
+
# the number of shards must be <= 20. - For virtual devices, the number of
|
|
2486
|
+
# shards must be <= 200.
|
|
2487
|
+
# Corresponds to the JSON property `maxShardCount`
|
|
2488
|
+
# @return [Fixnum]
|
|
2489
|
+
attr_accessor :max_shard_count
|
|
2490
|
+
|
|
2491
|
+
# Required. The targeted duration of each shard. Limits: - Must be at least 2
|
|
2492
|
+
# minutes. - Must be at most 3 hours. Shard duration is not guaranteed because
|
|
2493
|
+
# smart sharding uses test case history and default durations which may not be
|
|
2494
|
+
# accurate. Durations are calculated based on the following inputs: - Timing
|
|
2495
|
+
# records from previous runs of the same test case. - For new test cases, the
|
|
2496
|
+
# average duration of other known test cases. - A system-chosen, default
|
|
2497
|
+
# duration if there are no previous timing records available. Because the actual
|
|
2498
|
+
# shard duration can exceed the targeted shard duration, we recommend that you
|
|
2499
|
+
# set the targeted value at least 5 minutes less than the maximum allowed test
|
|
2500
|
+
# timeout. This approach avoids cancelling the shard before all tests can finish.
|
|
2501
|
+
# Corresponds to the JSON property `targetedShardDuration`
|
|
2502
|
+
# @return [String]
|
|
2503
|
+
attr_accessor :targeted_shard_duration
|
|
2504
|
+
|
|
2505
|
+
# Input file.
|
|
2506
|
+
# Corresponds to the JSON property `timingRecord`
|
|
2507
|
+
# @return [Google::Apis::DevicerunV1alpha::InputFile]
|
|
2508
|
+
attr_accessor :timing_record
|
|
2509
|
+
|
|
2510
|
+
def initialize(**args)
|
|
2511
|
+
update!(**args)
|
|
2512
|
+
end
|
|
2513
|
+
|
|
2514
|
+
# Update properties of this object
|
|
2515
|
+
def update!(**args)
|
|
2516
|
+
@max_shard_count = args[:max_shard_count] if args.key?(:max_shard_count)
|
|
2517
|
+
@targeted_shard_duration = args[:targeted_shard_duration] if args.key?(:targeted_shard_duration)
|
|
2518
|
+
@timing_record = args[:timing_record] if args.key?(:timing_record)
|
|
2519
|
+
end
|
|
2520
|
+
end
|
|
2521
|
+
|
|
2490
2522
|
# The status of a session/job/execution.
|
|
2491
2523
|
class Status
|
|
2492
2524
|
include Google::Apis::Core::Hashable
|
|
@@ -2515,6 +2547,33 @@ module Google
|
|
|
2515
2547
|
end
|
|
2516
2548
|
end
|
|
2517
2549
|
|
|
2550
|
+
# Uniformly shards test cases given a total number of shards. For Android
|
|
2551
|
+
# instrumentation tests, it will be translated to `-e numShard` and `-e
|
|
2552
|
+
# shardIndex` AndroidJUnitRunner arguments. With uniform sharding enabled,
|
|
2553
|
+
# specifying either of these sharding arguments via `environment_variables` is
|
|
2554
|
+
# invalid. There is no guarantee that test cases will be distributed uniformly
|
|
2555
|
+
# across all shards.
|
|
2556
|
+
class UniformSharding
|
|
2557
|
+
include Google::Apis::Core::Hashable
|
|
2558
|
+
|
|
2559
|
+
# Required. The total number of shards to create. This must always be a positive
|
|
2560
|
+
# number that is no greater than the total number of test cases. Limits: - For
|
|
2561
|
+
# physical devices, the number of shards must be <= 20. - For virtual devices,
|
|
2562
|
+
# the number of shards must be <= 200.
|
|
2563
|
+
# Corresponds to the JSON property `shardCount`
|
|
2564
|
+
# @return [Fixnum]
|
|
2565
|
+
attr_accessor :shard_count
|
|
2566
|
+
|
|
2567
|
+
def initialize(**args)
|
|
2568
|
+
update!(**args)
|
|
2569
|
+
end
|
|
2570
|
+
|
|
2571
|
+
# Update properties of this object
|
|
2572
|
+
def update!(**args)
|
|
2573
|
+
@shard_count = args[:shard_count] if args.key?(:shard_count)
|
|
2574
|
+
end
|
|
2575
|
+
end
|
|
2576
|
+
|
|
2518
2577
|
# Non-fatal operational anomaly, lint observation, or execution insight.
|
|
2519
2578
|
class Warning
|
|
2520
2579
|
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.4.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 = "20261028"
|
|
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.
|
|
@@ -416,16 +463,21 @@ module Google
|
|
|
416
463
|
# @param [Google::Apis::DevicerunV1alpha::Session] session_object
|
|
417
464
|
# @param [String] request_id
|
|
418
465
|
# Optional. A unique identifier for this request. This request is only
|
|
419
|
-
# idempotent if
|
|
420
|
-
# request_id` is received, then the previous result
|
|
421
|
-
# will guarantee that for at least 60 minutes after
|
|
422
|
-
#
|
|
423
|
-
#
|
|
466
|
+
# idempotent if both `request_id` and `session_id` are provided. If a retry with
|
|
467
|
+
# the same `request_id` and `session_id` is received, then the previous result
|
|
468
|
+
# will be returned. The server will guarantee that for at least 60 minutes after
|
|
469
|
+
# the first request. If `request_id` is provided without `session_id`, the
|
|
470
|
+
# server generates a new `session_id` on each attempt, and retries with the same
|
|
471
|
+
# `request_id` will fail with `INVALID_ARGUMENT`. The value must be a UUID (e.g.,
|
|
472
|
+
# 123e4567-e89b-12d3-a456-426655440000). See github.com/google/uuid for more
|
|
473
|
+
# details.
|
|
424
474
|
# @param [String] session_id
|
|
425
475
|
# Optional. The ID to use for the session, which will become the final component
|
|
426
476
|
# of the resource name. If not provided, the server will generate a value for
|
|
427
|
-
# this field.
|
|
428
|
-
#
|
|
477
|
+
# this field. To make the request idempotent when `request_id` is specified,
|
|
478
|
+
# callers must also provide `session_id` so that retries target the same
|
|
479
|
+
# resource name. When provided, this value must be between 4 and 63 characters,
|
|
480
|
+
# and match the following regex: ^a-z`2,61`[a-z0-9]$.
|
|
429
481
|
# @param [String] fields
|
|
430
482
|
# Selector specifying which fields to include in a partial response.
|
|
431
483
|
# @param [String] quota_user
|
|
@@ -502,8 +554,8 @@ module Google
|
|
|
502
554
|
# Required. The name of the session. Format: `projects/`project`/locations/`
|
|
503
555
|
# location`/sessions/`session``.
|
|
504
556
|
# @param [String] view
|
|
505
|
-
# Optional. The view of the session to return. If not set, the
|
|
506
|
-
#
|
|
557
|
+
# Optional. The view of the session to return. If not set, the `FULL` view will
|
|
558
|
+
# be returned.
|
|
507
559
|
# @param [String] fields
|
|
508
560
|
# Selector specifying which fields to include in a partial response.
|
|
509
561
|
# @param [String] quota_user
|
|
@@ -554,8 +606,8 @@ module Google
|
|
|
554
606
|
# this to receive the subsequent page. When paginating, all other parameters
|
|
555
607
|
# provided to `ListSessions` must match the call that provided the page token.
|
|
556
608
|
# @param [String] view
|
|
557
|
-
# Optional. The view of the sessions to return. If not set, the `
|
|
558
|
-
#
|
|
609
|
+
# Optional. The view of the sessions to return. If not set, the `FULL` view will
|
|
610
|
+
# be returned.
|
|
559
611
|
# @param [String] fields
|
|
560
612
|
# Selector specifying which fields to include in a partial response.
|
|
561
613
|
# @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.4.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.4.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:
|