From f7614b8a05488101243685002b0c6ea2c2f1843f Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 23 Oct 2019 00:36:47 +0000 Subject: [PATCH] Autogenerated update (2019-10-23) Update: - accesscontextmanager_v1beta - testing_v1 --- .../apis/accesscontextmanager_v1beta.rb | 2 +- .../accesscontextmanager_v1beta/classes.rb | 72 --------- .../representations.rb | 32 ---- generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 141 ++++++++++++++++++ .../google/apis/testing_v1/representations.rb | 76 ++++++++++ 6 files changed, 219 insertions(+), 106 deletions(-) diff --git a/generated/google/apis/accesscontextmanager_v1beta.rb b/generated/google/apis/accesscontextmanager_v1beta.rb index a6978ed01..54d92e7ce 100644 --- a/generated/google/apis/accesscontextmanager_v1beta.rb +++ b/generated/google/apis/accesscontextmanager_v1beta.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/access-context-manager/docs/reference/rest/ module AccesscontextmanagerV1beta VERSION = 'V1beta' - REVISION = '20191012' + REVISION = '20191018' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/accesscontextmanager_v1beta/classes.rb b/generated/google/apis/accesscontextmanager_v1beta/classes.rb index c0c6e1644..e3bb23858 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/classes.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/classes.rb @@ -153,35 +153,6 @@ module Google end end - # Alpha. Specifies which services are granted access via this Bridge Service - # Perimeter. - class BridgeServiceRestriction - include Google::Apis::Core::Hashable - - # The list of APIs usable through the Bridge Perimeter. Must be empty - # unless 'enable_restriction' is True. - # Corresponds to the JSON property `allowedServices` - # @return [Array] - attr_accessor :allowed_services - - # Whether to restrict the set of APIs callable through the Bridge Service - # Perimeter. - # Corresponds to the JSON property `enableRestriction` - # @return [Boolean] - attr_accessor :enable_restriction - alias_method :enable_restriction?, :enable_restriction - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @allowed_services = args[:allowed_services] if args.key?(:allowed_services) - @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) - end - end - # A condition necessary for an `AccessLevel` to be granted. The Condition is an # AND over its fields. So a Condition is true if: 1) the request IP is from one # of the listed subnetworks AND 2) the originating device complies with the @@ -325,35 +296,6 @@ module Google end end - # Alpha. Specifies how Access Levels are to be used for accessing the Service - # Perimeter. - class IngressServiceRestriction - include Google::Apis::Core::Hashable - - # The list of APIs usable with a valid Access Level. Must be empty unless - # 'enable_restriction' is True. - # Corresponds to the JSON property `allowedServices` - # @return [Array] - attr_accessor :allowed_services - - # Whether to restrict the set of APIs callable outside the Service - # Perimeter via Access Levels. - # Corresponds to the JSON property `enableRestriction` - # @return [Boolean] - attr_accessor :enable_restriction - alias_method :enable_restriction?, :enable_restriction - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @allowed_services = args[:allowed_services] if args.key?(:allowed_services) - @enable_restriction = args[:enable_restriction] if args.key?(:enable_restriction) - end - end - # A response to `ListAccessLevelsRequest`. class ListAccessLevelsResponse include Google::Apis::Core::Hashable @@ -622,18 +564,6 @@ module Google # @return [Array] attr_accessor :access_levels - # Alpha. Specifies which services are granted access via this Bridge Service - # Perimeter. - # Corresponds to the JSON property `bridgeServiceRestriction` - # @return [Google::Apis::AccesscontextmanagerV1beta::BridgeServiceRestriction] - attr_accessor :bridge_service_restriction - - # Alpha. Specifies how Access Levels are to be used for accessing the Service - # Perimeter. - # Corresponds to the JSON property `ingressServiceRestriction` - # @return [Google::Apis::AccesscontextmanagerV1beta::IngressServiceRestriction] - attr_accessor :ingress_service_restriction - # A list of GCP resources that are inside of the service perimeter. # Currently only projects are allowed. Format: `projects/`project_number`` # Corresponds to the JSON property `resources` @@ -669,8 +599,6 @@ module Google # Update properties of this object def update!(**args) @access_levels = args[:access_levels] if args.key?(:access_levels) - @bridge_service_restriction = args[:bridge_service_restriction] if args.key?(:bridge_service_restriction) - @ingress_service_restriction = args[:ingress_service_restriction] if args.key?(:ingress_service_restriction) @resources = args[:resources] if args.key?(:resources) @restricted_services = args[:restricted_services] if args.key?(:restricted_services) @unrestricted_services = args[:unrestricted_services] if args.key?(:unrestricted_services) diff --git a/generated/google/apis/accesscontextmanager_v1beta/representations.rb b/generated/google/apis/accesscontextmanager_v1beta/representations.rb index 78f7dfc24..82904bb52 100644 --- a/generated/google/apis/accesscontextmanager_v1beta/representations.rb +++ b/generated/google/apis/accesscontextmanager_v1beta/representations.rb @@ -40,12 +40,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class BridgeServiceRestriction - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Condition class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,12 +52,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class IngressServiceRestriction - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ListAccessLevelsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -151,14 +139,6 @@ module Google end end - class BridgeServiceRestriction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :allowed_services, as: 'allowedServices' - property :enable_restriction, as: 'enableRestriction' - end - end - class Condition # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -185,14 +165,6 @@ module Google end end - class IngressServiceRestriction - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :allowed_services, as: 'allowedServices' - property :enable_restriction, as: 'enableRestriction' - end - end - class ListAccessLevelsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -259,10 +231,6 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :access_levels, as: 'accessLevels' - property :bridge_service_restriction, as: 'bridgeServiceRestriction', class: Google::Apis::AccesscontextmanagerV1beta::BridgeServiceRestriction, decorator: Google::Apis::AccesscontextmanagerV1beta::BridgeServiceRestriction::Representation - - property :ingress_service_restriction, as: 'ingressServiceRestriction', class: Google::Apis::AccesscontextmanagerV1beta::IngressServiceRestriction, decorator: Google::Apis::AccesscontextmanagerV1beta::IngressServiceRestriction::Representation - collection :resources, as: 'resources' collection :restricted_services, as: 'restrictedServices' collection :unrestricted_services, as: 'unrestrictedServices' diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 0f9f1ab3c..a9e71a875 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20191013' + REVISION = '20191021' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index 3b4338f15..527068bfe 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -185,6 +185,11 @@ module Google # @return [String] attr_accessor :orchestrator_option + # Options for enabling sharding. + # Corresponds to the JSON property `shardingOption` + # @return [Google::Apis::TestingV1::ShardingOption] + attr_accessor :sharding_option + # A reference to a file, used for user inputs. # Corresponds to the JSON property `testApk` # @return [Google::Apis::TestingV1::FileReference] @@ -222,6 +227,7 @@ module Google @app_bundle = args[:app_bundle] if args.key?(:app_bundle) @app_package_id = args[:app_package_id] if args.key?(:app_package_id) @orchestrator_option = args[:orchestrator_option] if args.key?(:orchestrator_option) + @sharding_option = args[:sharding_option] if args.key?(:sharding_option) @test_apk = args[:test_apk] if args.key?(:test_apk) @test_package_id = args[:test_package_id] if args.key?(:test_package_id) @test_runner_class = args[:test_runner_class] if args.key?(:test_runner_class) @@ -1497,6 +1503,29 @@ module Google end end + # Shards test cases into the specified groups of packages, classes, and/or + # methods. + # With manual sharding enabled, specifying test targets via + # environment_variables or in InstrumentationTest is invalid. + class ManualSharding + include Google::Apis::Core::Hashable + + # Required. Group of packages, classes, and/or test methods to be run for + # each shard. The number of shard_test_targets must be > 1, and <= 50. + # Corresponds to the JSON property `testTargetsForShard` + # @return [Array] + attr_accessor :test_targets_for_shard + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard) + end + end + # class NetworkConfiguration include Google::Apis::Core::Hashable @@ -1780,6 +1809,68 @@ module Google end end + # Output only. Details about the shard. + class Shard + include Google::Apis::Core::Hashable + + # Output only. The total number of shards. + # Corresponds to the JSON property `numShards` + # @return [Fixnum] + attr_accessor :num_shards + + # Output only. The index of the shard among all the shards. + # Corresponds to the JSON property `shardIndex` + # @return [Fixnum] + attr_accessor :shard_index + + # Test targets for a shard. + # Corresponds to the JSON property `testTargetsForShard` + # @return [Google::Apis::TestingV1::TestTargetsForShard] + attr_accessor :test_targets_for_shard + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_shards = args[:num_shards] if args.key?(:num_shards) + @shard_index = args[:shard_index] if args.key?(:shard_index) + @test_targets_for_shard = args[:test_targets_for_shard] if args.key?(:test_targets_for_shard) + end + end + + # Options for enabling sharding. + class ShardingOption + include Google::Apis::Core::Hashable + + # Shards test cases into the specified groups of packages, classes, and/or + # methods. + # With manual sharding enabled, specifying test targets via + # environment_variables or in InstrumentationTest is invalid. + # Corresponds to the JSON property `manualSharding` + # @return [Google::Apis::TestingV1::ManualSharding] + attr_accessor :manual_sharding + + # Uniformly shards test cases given a total number of shards. + # For Instrumentation test, it will be translated to “-e numShard” “-e + # shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, + # specifying these sharding arguments via environment_variables is invalid. + # Corresponds to the JSON property `uniformSharding` + # @return [Google::Apis::TestingV1::UniformSharding] + attr_accessor :uniform_sharding + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @manual_sharding = args[:manual_sharding] if args.key?(:manual_sharding) + @uniform_sharding = args[:uniform_sharding] if args.key?(:uniform_sharding) + end + end + # A starting intent specified by an action, uri, and categories. class StartActivityIntent include Google::Apis::Core::Hashable @@ -1902,6 +1993,11 @@ module Google # @return [String] attr_accessor :project_id + # Output only. Details about the shard. + # Corresponds to the JSON property `shard` + # @return [Google::Apis::TestingV1::Shard] + attr_accessor :shard + # Output only. Indicates the current progress of the test execution # (e.g., FINISHED). # Corresponds to the JSON property `state` @@ -1939,6 +2035,7 @@ module Google @id = args[:id] if args.key?(:id) @matrix_id = args[:matrix_id] if args.key?(:matrix_id) @project_id = args[:project_id] if args.key?(:project_id) + @shard = args[:shard] if args.key?(:shard) @state = args[:state] if args.key?(:state) @test_details = args[:test_details] if args.key?(:test_details) @test_specification = args[:test_specification] if args.key?(:test_specification) @@ -2194,6 +2291,28 @@ module Google end end + # Test targets for a shard. + class TestTargetsForShard + include Google::Apis::Core::Hashable + + # Group of packages, classes, and/or test methods to be run for each shard. + # The targets need to be specified in AndroidJUnitRunner argument format. For + # example, “package com.my.packages” “class com.my.package.MyClass”. + # The number of shard_test_targets must be greater than 0. + # Corresponds to the JSON property `testTargets` + # @return [Array] + attr_accessor :test_targets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_targets = args[:test_targets] if args.key?(:test_targets) + end + end + # Represents a tool results execution resource. # This has the results of a TestMatrix. class ToolResultsExecution @@ -2332,6 +2451,28 @@ module Google end end + # Uniformly shards test cases given a total number of shards. + # For Instrumentation test, it will be translated to “-e numShard” “-e + # shardIndex” AndroidJUnitRunner arguments. With uniform sharding enabled, + # specifying these sharding arguments via environment_variables is invalid. + class UniformSharding + include Google::Apis::Core::Hashable + + # Required. Total number of shards. The number must be > 1, and <= 50. + # Corresponds to the JSON property `numShards` + # @return [Fixnum] + attr_accessor :num_shards + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @num_shards = args[:num_shards] if args.key?(:num_shards) + end + end + # An Xcode version that an iOS version is compatible with. class XcodeVersion include Google::Apis::Core::Hashable diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index a44a46998..a9bfd815d 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -262,6 +262,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ManualSharding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NetworkConfiguration class Representation < Google::Apis::Core::JsonRepresentation; end @@ -316,6 +322,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class Shard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ShardingOption + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class StartActivityIntent class Representation < Google::Apis::Core::JsonRepresentation; end @@ -358,6 +376,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class TestTargetsForShard + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ToolResultsExecution class Representation < Google::Apis::Core::JsonRepresentation; end @@ -382,6 +406,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UniformSharding + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class XcodeVersion class Representation < Google::Apis::Core::JsonRepresentation; end @@ -435,6 +465,8 @@ module Google property :app_package_id, as: 'appPackageId' property :orchestrator_option, as: 'orchestratorOption' + property :sharding_option, as: 'shardingOption', class: Google::Apis::TestingV1::ShardingOption, decorator: Google::Apis::TestingV1::ShardingOption::Representation + property :test_apk, as: 'testApk', class: Google::Apis::TestingV1::FileReference, decorator: Google::Apis::TestingV1::FileReference::Representation property :test_package_id, as: 'testPackageId' @@ -800,6 +832,14 @@ module Google end end + class ManualSharding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :test_targets_for_shard, as: 'testTargetsForShard', class: Google::Apis::TestingV1::TestTargetsForShard, decorator: Google::Apis::TestingV1::TestTargetsForShard::Representation + + end + end + class NetworkConfiguration # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -886,6 +926,26 @@ module Google end end + class Shard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_shards, as: 'numShards' + property :shard_index, as: 'shardIndex' + property :test_targets_for_shard, as: 'testTargetsForShard', class: Google::Apis::TestingV1::TestTargetsForShard, decorator: Google::Apis::TestingV1::TestTargetsForShard::Representation + + end + end + + class ShardingOption + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :manual_sharding, as: 'manualSharding', class: Google::Apis::TestingV1::ManualSharding, decorator: Google::Apis::TestingV1::ManualSharding::Representation + + property :uniform_sharding, as: 'uniformSharding', class: Google::Apis::TestingV1::UniformSharding, decorator: Google::Apis::TestingV1::UniformSharding::Representation + + end + end + class StartActivityIntent # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -925,6 +985,8 @@ module Google property :id, as: 'id' property :matrix_id, as: 'matrixId' property :project_id, as: 'projectId' + property :shard, as: 'shard', class: Google::Apis::TestingV1::Shard, decorator: Google::Apis::TestingV1::Shard::Representation + property :state, as: 'state' property :test_details, as: 'testDetails', class: Google::Apis::TestingV1::TestDetails, decorator: Google::Apis::TestingV1::TestDetails::Representation @@ -998,6 +1060,13 @@ module Google end end + class TestTargetsForShard + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :test_targets, as: 'testTargets' + end + end + class ToolResultsExecution # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1036,6 +1105,13 @@ module Google end end + class UniformSharding + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :num_shards, as: 'numShards' + end + end + class XcodeVersion # @private class Representation < Google::Apis::Core::JsonRepresentation