Skip to content

Commit 1b04c5c

Browse files
feat: Automated regeneration of recaptchaenterprise v1 client (googleapis#22958)
Auto-created at 2025-05-04 11:38:29 +0000 using the toys pull request generator.
1 parent 79d35a8 commit 1b04c5c

File tree

7 files changed

+64
-5
lines changed

7 files changed

+64
-5
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304807,6 +304807,9 @@
304807304807
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment": google_cloud_recaptchaenterprise_v1_assessment_environment
304808304808
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment/client": client
304809304809
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment/version": version
304810+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Bot": google_cloud_recaptchaenterprise_v1_bot
304811+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Bot/botType": bot_type
304812+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Bot/name": name
304810304813
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ChallengeMetrics": google_cloud_recaptchaenterprise_v1_challenge_metrics
304811304814
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ChallengeMetrics/failedCount": failed_count
304812304815
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ChallengeMetrics/nocaptchaCount": nocaptcha_count
@@ -304965,6 +304968,8 @@
304965304968
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1RiskAnalysis/reasons": reasons
304966304969
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1RiskAnalysis/reasons/reason": reason
304967304970
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1RiskAnalysis/score": score
304971+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1RiskAnalysis/verifiedBots": verified_bots
304972+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1RiskAnalysis/verifiedBots/verified_bot": verified_bot
304968304973
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ScoreDistribution": google_cloud_recaptchaenterprise_v1_score_distribution
304969304974
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ScoreDistribution/scoreBuckets": score_buckets
304970304975
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1ScoreDistribution/scoreBuckets/score_bucket": score_bucket

generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-recaptchaenterprise_v1
22

3+
### v0.60.0 (2025-05-04)
4+
5+
* Regenerated from discovery document revision 20250427
6+
* Regenerated using generator version 0.17.0
7+
38
### v0.59.0 (2025-02-26)
49

510
* Regenerated from discovery document revision 20250209

generated/google-apis-recaptchaenterprise_v1/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/recaptcha-enterprise/) may
8383

8484
## Supported Ruby versions
8585

86-
This library is supported on Ruby 2.7+.
86+
This library is supported on Ruby 3.1+.
8787

8888
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
8989

generated/google-apis-recaptchaenterprise_v1/google-apis-recaptchaenterprise_v1.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ Gem::Specification.new do |gem|
2828
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
2929
gem.require_paths = ["lib"]
3030

31-
gem.required_ruby_version = '>= 2.7'
31+
gem.required_ruby_version = '>= 3.1'
3232
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
3333
end

generated/google-apis-recaptchaenterprise_v1/lib/google/apis/recaptchaenterprise_v1/classes.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,32 @@ def update!(**args)
363363
end
364364
end
365365

366+
# Bot information and metadata.
367+
class GoogleCloudRecaptchaenterpriseV1Bot
368+
include Google::Apis::Core::Hashable
369+
370+
# Optional. Enumerated field representing the type of bot.
371+
# Corresponds to the JSON property `botType`
372+
# @return [String]
373+
attr_accessor :bot_type
374+
375+
# Optional. Enumerated string value that indicates the identity of the bot,
376+
# formatted in kebab-case.
377+
# Corresponds to the JSON property `name`
378+
# @return [String]
379+
attr_accessor :name
380+
381+
def initialize(**args)
382+
update!(**args)
383+
end
384+
385+
# Update properties of this object
386+
def update!(**args)
387+
@bot_type = args[:bot_type] if args.key?(:bot_type)
388+
@name = args[:name] if args.key?(:name)
389+
end
390+
end
391+
366392
# Metrics related to challenges.
367393
class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
368394
include Google::Apis::Core::Hashable
@@ -1583,6 +1609,12 @@ class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
15831609
# @return [Float]
15841610
attr_accessor :score
15851611

1612+
# Output only. Bots with identities that have been verified by reCAPTCHA and
1613+
# detected in the event.
1614+
# Corresponds to the JSON property `verifiedBots`
1615+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Bot>]
1616+
attr_accessor :verified_bots
1617+
15861618
def initialize(**args)
15871619
update!(**args)
15881620
end
@@ -1593,6 +1625,7 @@ def update!(**args)
15931625
@extended_verdict_reasons = args[:extended_verdict_reasons] if args.key?(:extended_verdict_reasons)
15941626
@reasons = args[:reasons] if args.key?(:reasons)
15951627
@score = args[:score] if args.key?(:score)
1628+
@verified_bots = args[:verified_bots] if args.key?(:verified_bots)
15961629
end
15971630
end
15981631

generated/google-apis-recaptchaenterprise_v1/lib/google/apis/recaptchaenterprise_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RecaptchaenterpriseV1
1818
# Version of the google-apis-recaptchaenterprise_v1 gem
19-
GEM_VERSION = "0.59.0"
19+
GEM_VERSION = "0.60.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.16.0"
22+
GENERATOR_VERSION = "0.17.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250209"
25+
REVISION = "20250427"
2626
end
2727
end
2828
end

generated/google-apis-recaptchaenterprise_v1/lib/google/apis/recaptchaenterprise_v1/representations.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
8282
include Google::Apis::Core::JsonObjectSupport
8383
end
8484

85+
class GoogleCloudRecaptchaenterpriseV1Bot
86+
class Representation < Google::Apis::Core::JsonRepresentation; end
87+
88+
include Google::Apis::Core::JsonObjectSupport
89+
end
90+
8591
class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
8692
class Representation < Google::Apis::Core::JsonRepresentation; end
8793

@@ -541,6 +547,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
541547
end
542548
end
543549

550+
class GoogleCloudRecaptchaenterpriseV1Bot
551+
# @private
552+
class Representation < Google::Apis::Core::JsonRepresentation
553+
property :bot_type, as: 'botType'
554+
property :name, as: 'name'
555+
end
556+
end
557+
544558
class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
545559
# @private
546560
class Representation < Google::Apis::Core::JsonRepresentation
@@ -908,6 +922,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
908922
collection :extended_verdict_reasons, as: 'extendedVerdictReasons'
909923
collection :reasons, as: 'reasons'
910924
property :score, as: 'score'
925+
collection :verified_bots, as: 'verifiedBots', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Bot, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Bot::Representation
926+
911927
end
912928
end
913929

0 commit comments

Comments
 (0)