google-apis-testing_v1 0.32.0 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1638d5a24838c7e9a819d399ed8c7bc1c49183121b719cf4dcceff20362c868c
4
- data.tar.gz: 62a10a318fe2836ae403af5c5eddac6e6425eaf65c19df99a9caaad6d74e8bf5
3
+ metadata.gz: 6270f72bf6b64c710aa766b0cd4ac33266158e39d34fb64d61b6014aaefc71bf
4
+ data.tar.gz: a83bf4ab465dc5e310111ceee89454eb177986faaa0e5ab63dca3e6c3a702b08
5
5
  SHA512:
6
- metadata.gz: b65aa332009c2a5cd46a45683aee697f908e76a1896a8b1a09f3930174e5221e5be1dc6e07fbaef60f403b7bf96e1bd715563f61ab957c38105e4e0117225f40
7
- data.tar.gz: d5cbe2768c228bfa0cc5fa73cca55ac12ceea72ca3243a32d8f340b261ad08678d06c9f914430667a4896ec980a7432771ea917c17bf4b1bed3899765d2c4bf4
6
+ metadata.gz: 1b39816aae38428bbde94ace7204020a121816881f1a0d6bdc09f1775365edba4188dad4284a965076be373f5a81e7342c4ed9d9f0aed464c731cd7acc638e74
7
+ data.tar.gz: 445ceadd0c0ee6a43e263dcf8ca4a799461a93ba540d395ca974bd8774c4339dd356c4d093a2994a9f8aa53e28b73abab3b8d9531452d7316909dc89c74ef21d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-testing_v1
2
2
 
3
+ ### v0.34.0 (2023-05-21)
4
+
5
+ * Regenerated from discovery document revision 20230512
6
+
7
+ ### v0.33.0 (2023-05-07)
8
+
9
+ * Regenerated from discovery document revision 20230503
10
+
3
11
  ### v0.32.0 (2023-04-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20230411
@@ -694,6 +694,11 @@ module Google
694
694
  # @return [String]
695
695
  attr_accessor :package_name
696
696
 
697
+ # Services contained in the tag.
698
+ # Corresponds to the JSON property `services`
699
+ # @return [Array<Google::Apis::TestingV1::Service>]
700
+ attr_accessor :services
701
+
697
702
  # Specifies the API Level on which the application is designed to run.
698
703
  # Corresponds to the JSON property `targetSdkVersion`
699
704
  # @return [Fixnum]
@@ -731,6 +736,7 @@ module Google
731
736
  @metadata = args[:metadata] if args.key?(:metadata)
732
737
  @min_sdk_version = args[:min_sdk_version] if args.key?(:min_sdk_version)
733
738
  @package_name = args[:package_name] if args.key?(:package_name)
739
+ @services = args[:services] if args.key?(:services)
734
740
  @target_sdk_version = args[:target_sdk_version] if args.key?(:target_sdk_version)
735
741
  @uses_feature = args[:uses_feature] if args.key?(:uses_feature)
736
742
  @uses_permission = args[:uses_permission] if args.key?(:uses_permission)
@@ -2014,6 +2020,32 @@ module Google
2014
2020
  end
2015
2021
  end
2016
2022
 
2023
+ # The section of an tag. https://developer.android.com/guide/topics/manifest/
2024
+ # service-element
2025
+ class Service
2026
+ include Google::Apis::Core::Hashable
2027
+
2028
+ # Intent filters in the service
2029
+ # Corresponds to the JSON property `intentFilter`
2030
+ # @return [Array<Google::Apis::TestingV1::IntentFilter>]
2031
+ attr_accessor :intent_filter
2032
+
2033
+ # The android:name value
2034
+ # Corresponds to the JSON property `name`
2035
+ # @return [String]
2036
+ attr_accessor :name
2037
+
2038
+ def initialize(**args)
2039
+ update!(**args)
2040
+ end
2041
+
2042
+ # Update properties of this object
2043
+ def update!(**args)
2044
+ @intent_filter = args[:intent_filter] if args.key?(:intent_filter)
2045
+ @name = args[:name] if args.key?(:name)
2046
+ end
2047
+ end
2048
+
2017
2049
  # Output only. Details about the shard.
2018
2050
  class Shard
2019
2051
  include Google::Apis::Core::Hashable
@@ -2056,6 +2088,11 @@ module Google
2056
2088
  # @return [Google::Apis::TestingV1::ManualSharding]
2057
2089
  attr_accessor :manual_sharding
2058
2090
 
2091
+ # Shards test based on previous test case timing records.
2092
+ # Corresponds to the JSON property `smartSharding`
2093
+ # @return [Google::Apis::TestingV1::SmartSharding]
2094
+ attr_accessor :smart_sharding
2095
+
2059
2096
  # Uniformly shards test cases given a total number of shards. For
2060
2097
  # instrumentation tests, it will be translated to "-e numShard" and "-e
2061
2098
  # shardIndex" AndroidJUnitRunner arguments. With uniform sharding enabled,
@@ -2073,10 +2110,54 @@ module Google
2073
2110
  # Update properties of this object
2074
2111
  def update!(**args)
2075
2112
  @manual_sharding = args[:manual_sharding] if args.key?(:manual_sharding)
2113
+ @smart_sharding = args[:smart_sharding] if args.key?(:smart_sharding)
2076
2114
  @uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding)
2077
2115
  end
2078
2116
  end
2079
2117
 
2118
+ # Shards test based on previous test case timing records.
2119
+ class SmartSharding
2120
+ include Google::Apis::Core::Hashable
2121
+
2122
+ # The amount of time tests within a shard should take. Default: 300 seconds (5
2123
+ # minutes). The minimum allowed: 120 seconds (2 minutes). The shard count is
2124
+ # dynamically set based on time, up to the maximum shard limit (described below).
2125
+ # To guarantee at least one test case for each shard, the number of shards will
2126
+ # not exceed the number of test cases. Shard duration will be exceeded if: - The
2127
+ # maximum shard limit is reached and there is more calculated test time
2128
+ # remaining to allocate into shards. - Any individual test is estimated to be
2129
+ # longer than the targeted shard duration. Shard duration is not guaranteed
2130
+ # because smart sharding uses test case history and default durations which may
2131
+ # not be accurate. The rules for finding the test case timing records are: - If
2132
+ # the service has seen a test case in the last 30 days, the record of the latest
2133
+ # successful one will be used. - For new test cases, the average duration of
2134
+ # other known test cases will be used. - If there are no previous test case
2135
+ # timing records available, the test case is considered to be 15 seconds long by
2136
+ # default. Because the actual shard duration can exceed the targeted shard
2137
+ # duration, we recommend setting the targeted value at least 5 minutes less than
2138
+ # the maximum allowed test timeout (45 minutes for physical devices and 60
2139
+ # minutes for virtual), or using the custom test timeout value you set. This
2140
+ # approach avoids cancelling the shard before all tests can finish. Note that
2141
+ # there is a limit for maximum number of shards. When you select one or more
2142
+ # physical devices, the number of shards must be <= 50. When you select one or
2143
+ # more ARM virtual devices, it must be <= 100. When you select only x86 virtual
2144
+ # devices, it must be <= 500. To guarantee at least one test case for per shard,
2145
+ # the number of shards will not exceed the number of test cases. Each shard
2146
+ # created will count toward daily test quota.
2147
+ # Corresponds to the JSON property `targetedShardDuration`
2148
+ # @return [String]
2149
+ attr_accessor :targeted_shard_duration
2150
+
2151
+ def initialize(**args)
2152
+ update!(**args)
2153
+ end
2154
+
2155
+ # Update properties of this object
2156
+ def update!(**args)
2157
+ @targeted_shard_duration = args[:targeted_shard_duration] if args.key?(:targeted_shard_duration)
2158
+ end
2159
+ end
2160
+
2080
2161
  # A starting intent specified by an action, uri, and categories.
2081
2162
  class StartActivityIntent
2082
2163
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module TestingV1
18
18
  # Version of the google-apis-testing_v1 gem
19
- GEM_VERSION = "0.32.0"
19
+ GEM_VERSION = "0.34.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230411"
25
+ REVISION = "20230512"
26
26
  end
27
27
  end
28
28
  end
@@ -358,6 +358,12 @@ module Google
358
358
  include Google::Apis::Core::JsonObjectSupport
359
359
  end
360
360
 
361
+ class Service
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
361
367
  class Shard
362
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
363
369
 
@@ -370,6 +376,12 @@ module Google
370
376
  include Google::Apis::Core::JsonObjectSupport
371
377
  end
372
378
 
379
+ class SmartSharding
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
373
385
  class StartActivityIntent
374
386
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
387
 
@@ -643,6 +655,8 @@ module Google
643
655
 
644
656
  property :min_sdk_version, as: 'minSdkVersion'
645
657
  property :package_name, as: 'packageName'
658
+ collection :services, as: 'services', class: Google::Apis::TestingV1::Service, decorator: Google::Apis::TestingV1::Service::Representation
659
+
646
660
  property :target_sdk_version, as: 'targetSdkVersion'
647
661
  collection :uses_feature, as: 'usesFeature', class: Google::Apis::TestingV1::UsesFeature, decorator: Google::Apis::TestingV1::UsesFeature::Representation
648
662
 
@@ -1047,6 +1061,15 @@ module Google
1047
1061
  end
1048
1062
  end
1049
1063
 
1064
+ class Service
1065
+ # @private
1066
+ class Representation < Google::Apis::Core::JsonRepresentation
1067
+ collection :intent_filter, as: 'intentFilter', class: Google::Apis::TestingV1::IntentFilter, decorator: Google::Apis::TestingV1::IntentFilter::Representation
1068
+
1069
+ property :name, as: 'name'
1070
+ end
1071
+ end
1072
+
1050
1073
  class Shard
1051
1074
  # @private
1052
1075
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1062,11 +1085,20 @@ module Google
1062
1085
  class Representation < Google::Apis::Core::JsonRepresentation
1063
1086
  property :manual_sharding, as: 'manualSharding', class: Google::Apis::TestingV1::ManualSharding, decorator: Google::Apis::TestingV1::ManualSharding::Representation
1064
1087
 
1088
+ property :smart_sharding, as: 'smartSharding', class: Google::Apis::TestingV1::SmartSharding, decorator: Google::Apis::TestingV1::SmartSharding::Representation
1089
+
1065
1090
  property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::TestingV1::UniformSharding, decorator: Google::Apis::TestingV1::UniformSharding::Representation
1066
1091
 
1067
1092
  end
1068
1093
  end
1069
1094
 
1095
+ class SmartSharding
1096
+ # @private
1097
+ class Representation < Google::Apis::Core::JsonRepresentation
1098
+ property :targeted_shard_duration, as: 'targetedShardDuration'
1099
+ end
1100
+ end
1101
+
1070
1102
  class StartActivityIntent
1071
1103
  # @private
1072
1104
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-testing_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.32.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-23 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-testing_v1/v0.34.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-testing_v1
63
63
  post_install_message:
64
64
  rdoc_options: []