From 9cafca077a75829d52d06c5802e76f781883c895 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 21 Oct 2020 09:19:50 -0700 Subject: [PATCH] feat: Automated regeneration of testing v1 client --- api_names_out.yaml | 1 + generated/google/apis/testing_v1.rb | 2 +- generated/google/apis/testing_v1/classes.rb | 78 +++++++++++-------- .../google/apis/testing_v1/representations.rb | 1 + generated/google/apis/testing_v1/service.rb | 8 +- .../google/apis/testing_v1/synth.metadata | 2 +- 6 files changed, 53 insertions(+), 39 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index da576d250..ab789ae76 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -143136,6 +143136,7 @@ "/testing:v1/TestMatrix": test_matrix "/testing:v1/TestMatrix/clientInfo": client_info "/testing:v1/TestMatrix/environmentMatrix": environment_matrix +"/testing:v1/TestMatrix/failFast": fail_fast "/testing:v1/TestMatrix/flakyTestAttempts": flaky_test_attempts "/testing:v1/TestMatrix/invalidMatrixDetails": invalid_matrix_details "/testing:v1/TestMatrix/outcomeSummary": outcome_summary diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index a5ce7a027..9bcbac195 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 = '20201001' + REVISION = '20201019' # 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 12dacf1d4..a0ea0eea1 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -382,7 +382,7 @@ module Google end # A test of an android application that explores the application on a virtual or - # physical Android Device, finding culprits and crashes as it goes. Next tag: 29 + # physical Android Device, finding culprits and crashes as it goes. Next tag: 30 class AndroidRoboTest include Google::Apis::Core::Hashable @@ -562,14 +562,14 @@ module Google # @return [String] attr_accessor :id - # Represents a whole or partial calendar date, e.g. a birthday. The time of day - # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * A year and month value, with a zero day, e.g. a credit card - # expiration date Related types are google.type.TimeOfDay and `google.protobuf. - # Timestamp`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. # Corresponds to the JSON property `releaseDate` # @return [Google::Apis::TestingV1::Date] attr_accessor :release_date @@ -790,31 +790,31 @@ module Google end end - # Represents a whole or partial calendar date, e.g. a birthday. The time of day - # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * A year and month value, with a zero day, e.g. a credit card - # expiration date Related types are google.type.TimeOfDay and `google.protobuf. - # Timestamp`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. class Date include Google::Apis::Core::Hashable - # Day of month. Must be from 1 to 31 and valid for the year and month, or 0 if - # specifying a year by itself or a year and month where the day is not - # significant. + # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to + # specify a year by itself or a year and month where the day isn't significant. # Corresponds to the JSON property `day` # @return [Fixnum] attr_accessor :day - # Month of year. Must be from 1 to 12, or 0 if specifying a year without a month + # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month # and day. # Corresponds to the JSON property `month` # @return [Fixnum] attr_accessor :month - # Year of date. Must be from 1 to 9999, or 0 if specifying a date without a year. + # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a + # year. # Corresponds to the JSON property `year` # @return [Fixnum] attr_accessor :year @@ -860,14 +860,14 @@ module Google class DeviceIpBlock include Google::Apis::Core::Hashable - # Represents a whole or partial calendar date, e.g. a birthday. The time of day - # and time zone are either specified elsewhere or are not significant. The date - # is relative to the Proleptic Gregorian Calendar. This can represent: * A full - # date, with non-zero year, month and day values * A month and day value, with a - # zero year, e.g. an anniversary * A year on its own, with zero month and day - # values * A year and month value, with a zero day, e.g. a credit card - # expiration date Related types are google.type.TimeOfDay and `google.protobuf. - # Timestamp`. + # Represents a whole or partial calendar date, such as a birthday. The time of + # day and time zone are either specified elsewhere or are insignificant. The + # date is relative to the Gregorian Calendar. This can represent one of the + # following: * A full date, with non-zero year, month, and day values * A month + # and day value, with a zero year, such as an anniversary * A year on its own, + # with zero month and day values * A year and month value, with a zero day, such + # as a credit card expiration date Related types are google.type.TimeOfDay and ` + # google.protobuf.Timestamp`. # Corresponds to the JSON property `addedDate` # @return [Google::Apis::TestingV1::Date] attr_accessor :added_date @@ -1595,7 +1595,7 @@ module Google # Required. Group of packages, classes, and/or test methods to be run for each # shard. When any physical devices are selected, the number of # test_targets_for_shard must be >= 1 and <= 50. When no physical devices are - # selected, the number must be >= 1 and <= 250. + # selected, the number must be >= 1 and <= 500. # Corresponds to the JSON property `testTargetsForShard` # @return [Array] attr_accessor :test_targets_for_shard @@ -2152,6 +2152,17 @@ module Google # @return [Google::Apis::TestingV1::EnvironmentMatrix] attr_accessor :environment_matrix + # If true, only a single attempt at most will be made to run each execution/ + # shard in the matrix. Flaky test attempts are not affected. Normally, 2 or more + # attempts are made if a potential infrastructure issue is detected. This + # feature is for latency sensitive workloads. The incidence of execution + # failures may be significantly greater for fail-fast matrices and support is + # more limited because of that expectation. + # Corresponds to the JSON property `failFast` + # @return [Boolean] + attr_accessor :fail_fast + alias_method :fail_fast?, :fail_fast + # The number of times a TestExecution should be re-attempted if one or more of # its test cases fail for any reason. The maximum number of reruns allowed is 10. # Default is 0, which implies no reruns. @@ -2215,6 +2226,7 @@ module Google def update!(**args) @client_info = args[:client_info] if args.key?(:client_info) @environment_matrix = args[:environment_matrix] if args.key?(:environment_matrix) + @fail_fast = args[:fail_fast] if args.key?(:fail_fast) @flaky_test_attempts = args[:flaky_test_attempts] if args.key?(:flaky_test_attempts) @invalid_matrix_details = args[:invalid_matrix_details] if args.key?(:invalid_matrix_details) @outcome_summary = args[:outcome_summary] if args.key?(:outcome_summary) @@ -2318,7 +2330,7 @@ module Google attr_accessor :android_instrumentation_test # A test of an android application that explores the application on a virtual or - # physical Android Device, finding culprits and crashes as it goes. Next tag: 29 + # physical Android Device, finding culprits and crashes as it goes. Next tag: 30 # Corresponds to the JSON property `androidRoboTest` # @return [Google::Apis::TestingV1::AndroidRoboTest] attr_accessor :android_robo_test @@ -2562,7 +2574,7 @@ module Google # Required. Total number of shards. When any physical devices are selected, the # number must be >= 1 and <= 50. When no physical devices are selected, the - # number must be >= 1 and <= 250. + # number must be >= 1 and <= 500. # Corresponds to the JSON property `numShards` # @return [Fixnum] attr_accessor :num_shards diff --git a/generated/google/apis/testing_v1/representations.rb b/generated/google/apis/testing_v1/representations.rb index b769205a1..d0f6d59aa 100644 --- a/generated/google/apis/testing_v1/representations.rb +++ b/generated/google/apis/testing_v1/representations.rb @@ -1074,6 +1074,7 @@ module Google property :environment_matrix, as: 'environmentMatrix', class: Google::Apis::TestingV1::EnvironmentMatrix, decorator: Google::Apis::TestingV1::EnvironmentMatrix::Representation + property :fail_fast, as: 'failFast' property :flaky_test_attempts, as: 'flakyTestAttempts' property :invalid_matrix_details, as: 'invalidMatrixDetails' property :outcome_summary, as: 'outcomeSummary' diff --git a/generated/google/apis/testing_v1/service.rb b/generated/google/apis/testing_v1/service.rb index e1421ce99..43e983dbd 100644 --- a/generated/google/apis/testing_v1/service.rb +++ b/generated/google/apis/testing_v1/service.rb @@ -117,11 +117,11 @@ module Google end # Creates and runs a matrix of tests according to the given specifications. - # Unsupported environments will be returned in the state UNSUPPORTED. Matrices - # are limited to at most 200 supported executions. May return any of the - # following canonical error codes: - PERMISSION_DENIED - if the user is not + # Unsupported environments will be returned in the state UNSUPPORTED. A test + # matrix is limited to use at most 2000 devices in parallel. May return any of + # the following canonical error codes: - PERMISSION_DENIED - if the user is not # authorized to write to project - INVALID_ARGUMENT - if the request is - # malformed or if the matrix expands to more than 200 supported executions + # malformed or if the matrix tries to use too many simultaneous devices. # @param [String] project_id # The GCE project under which this job will run. # @param [Google::Apis::TestingV1::TestMatrix] test_matrix_object diff --git a/generated/google/apis/testing_v1/synth.metadata b/generated/google/apis/testing_v1/synth.metadata index 429012f74..8ba18e27d 100644 --- a/generated/google/apis/testing_v1/synth.metadata +++ b/generated/google/apis/testing_v1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "cb0c5bf94e2b1c915107eec83041d4409c900155" } } ]