Skip to content

Commit a7f46be

Browse files
feat: Automated regeneration of recaptchaenterprise v1 client (#19960)
Auto-created at 2024-07-25 20:32:53 +0000 using the toys pull request generator.
1 parent 06bcfb0 commit a7f46be

6 files changed

Lines changed: 151 additions & 2 deletions

File tree

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273884,6 +273884,9 @@
273884273884
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/languageCode": language_code
273885273885
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/latestVerificationResult": latest_verification_result
273886273886
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/username": username
273887+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest": google_cloud_recaptchaenterprise_v1_add_ip_override_request
273888+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest/ipOverrideData": ip_override_data
273889+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse": google_cloud_recaptchaenterprise_v1_add_ip_override_response
273887273890
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings": google_cloud_recaptchaenterprise_v1_android_key_settings
273888273891
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings/allowAllPackageNames": allow_all_package_names
273889273892
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings/allowedPackageNames": allowed_package_names
@@ -273992,6 +273995,9 @@
273992273995
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/allowedBundleIds": allowed_bundle_ids
273993273996
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/allowedBundleIds/allowed_bundle_id": allowed_bundle_id
273994273997
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/appleDeveloperId": apple_developer_id
273998+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData": google_cloud_recaptchaenterprise_v1_ip_override_data
273999+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData/ip": ip
274000+
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData/overrideType": override_type
273995274001
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key": google_cloud_recaptchaenterprise_v1_key
273996274002
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key/androidSettings": android_settings
273997274003
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key/createTime": create_time
@@ -274186,6 +274192,8 @@
274186274192
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.patch/updateMask": update_mask
274187274193
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.reorder": reorder_project_firewallpolicy
274188274194
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.reorder/parent": parent
274195+
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.addIpOverride": add_project_key_ip_override
274196+
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.addIpOverride/name": name
274189274197
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.create": create_project_key
274190274198
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.create/parent": parent
274191274199
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.delete": delete_project_key

generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md

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

3+
### v0.51.0 (2024-07-25)
4+
5+
* Regenerated from discovery document revision 20240721
6+
37
### v0.50.0 (2024-07-25)
48

59
* Regenerated from discovery document revision 20240713

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,38 @@ def update!(**args)
8080
end
8181
end
8282

83+
# The AddIpOverride request message.
84+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
85+
include Google::Apis::Core::Hashable
86+
87+
# Information about the IP or IP range override.
88+
# Corresponds to the JSON property `ipOverrideData`
89+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData]
90+
attr_accessor :ip_override_data
91+
92+
def initialize(**args)
93+
update!(**args)
94+
end
95+
96+
# Update properties of this object
97+
def update!(**args)
98+
@ip_override_data = args[:ip_override_data] if args.key?(:ip_override_data)
99+
end
100+
end
101+
102+
# Response for AddIpOverride.
103+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
104+
include Google::Apis::Core::Hashable
105+
106+
def initialize(**args)
107+
update!(**args)
108+
end
109+
110+
# Update properties of this object
111+
def update!(**args)
112+
end
113+
end
114+
83115
# Settings specific to keys that can be used by Android apps.
84116
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
85117
include Google::Apis::Core::Hashable
@@ -965,6 +997,35 @@ def update!(**args)
965997
end
966998
end
967999

1000+
# Information about the IP or IP range override.
1001+
class GoogleCloudRecaptchaenterpriseV1IpOverrideData
1002+
include Google::Apis::Core::Hashable
1003+
1004+
# Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP
1005+
# override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP
1006+
# override must be a public IP address. Example of IPv4: 168.192.5.6 Example of
1007+
# IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.
1008+
# 192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48
1009+
# Corresponds to the JSON property `ip`
1010+
# @return [String]
1011+
attr_accessor :ip
1012+
1013+
# Required. Describes the type of IP override.
1014+
# Corresponds to the JSON property `overrideType`
1015+
# @return [String]
1016+
attr_accessor :override_type
1017+
1018+
def initialize(**args)
1019+
update!(**args)
1020+
end
1021+
1022+
# Update properties of this object
1023+
def update!(**args)
1024+
@ip = args[:ip] if args.key?(:ip)
1025+
@override_type = args[:override_type] if args.key?(:override_type)
1026+
end
1027+
end
1028+
9681029
# A key used to identify and configure applications (web and/or mobile) that use
9691030
# reCAPTCHA Enterprise.
9701031
class GoogleCloudRecaptchaenterpriseV1Key

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

Lines changed: 2 additions & 2 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.50.0"
19+
GEM_VERSION = "0.51.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.0"
2323

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

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
3434
include Google::Apis::Core::JsonObjectSupport
3535
end
3636

37+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
38+
class Representation < Google::Apis::Core::JsonRepresentation; end
39+
40+
include Google::Apis::Core::JsonObjectSupport
41+
end
42+
43+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
44+
class Representation < Google::Apis::Core::JsonRepresentation; end
45+
46+
include Google::Apis::Core::JsonObjectSupport
47+
end
48+
3749
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
3850
class Representation < Google::Apis::Core::JsonRepresentation; end
3951

@@ -190,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
190202
include Google::Apis::Core::JsonObjectSupport
191203
end
192204

205+
class GoogleCloudRecaptchaenterpriseV1IpOverrideData
206+
class Representation < Google::Apis::Core::JsonRepresentation; end
207+
208+
include Google::Apis::Core::JsonObjectSupport
209+
end
210+
193211
class GoogleCloudRecaptchaenterpriseV1Key
194212
class Representation < Google::Apis::Core::JsonRepresentation; end
195213

@@ -412,6 +430,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
412430
end
413431
end
414432

433+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
434+
# @private
435+
class Representation < Google::Apis::Core::JsonRepresentation
436+
property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
437+
438+
end
439+
end
440+
441+
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
442+
# @private
443+
class Representation < Google::Apis::Core::JsonRepresentation
444+
end
445+
end
446+
415447
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
416448
# @private
417449
class Representation < Google::Apis::Core::JsonRepresentation
@@ -672,6 +704,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
672704
end
673705
end
674706

707+
class GoogleCloudRecaptchaenterpriseV1IpOverrideData
708+
# @private
709+
class Representation < Google::Apis::Core::JsonRepresentation
710+
property :ip, as: 'ip'
711+
property :override_type, as: 'overrideType'
712+
end
713+
end
714+
675715
class GoogleCloudRecaptchaenterpriseV1Key
676716
# @private
677717
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,42 @@ def reorder_project_firewallpolicy(parent, google_cloud_recaptchaenterprise_v1_r
330330
execute_or_queue_command(command, &block)
331331
end
332332

333+
# Adds an IP override to a key. The following restrictions hold: * The maximum
334+
# number of IP overrides per key is 100. * For any conflict (such as IP already
335+
# exists or IP part of an existing IP range), an error will be returned.
336+
# @param [String] name
337+
# Required. The name of the key to which the IP override is added, in the format
338+
# `projects/`project`/keys/`key``.
339+
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest] google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
340+
# @param [String] fields
341+
# Selector specifying which fields to include in a partial response.
342+
# @param [String] quota_user
343+
# Available to use for quota purposes for server-side applications. Can be any
344+
# arbitrary string assigned to a user, but should not exceed 40 characters.
345+
# @param [Google::Apis::RequestOptions] options
346+
# Request-specific options
347+
#
348+
# @yield [result, err] Result & error if block supplied
349+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse] parsed result object
350+
# @yieldparam err [StandardError] error object if request failed
351+
#
352+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse]
353+
#
354+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356+
# @raise [Google::Apis::AuthorizationError] Authorization is required
357+
def add_project_key_ip_override(name, google_cloud_recaptchaenterprise_v1_add_ip_override_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
358+
command = make_simple_command(:post, 'v1/{+name}:addIpOverride', options)
359+
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest::Representation
360+
command.request_object = google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
361+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse::Representation
362+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
363+
command.params['name'] = name unless name.nil?
364+
command.query['fields'] = fields unless fields.nil?
365+
command.query['quotaUser'] = quota_user unless quota_user.nil?
366+
execute_or_queue_command(command, &block)
367+
end
368+
333369
# Creates a new reCAPTCHA Enterprise key.
334370
# @param [String] parent
335371
# Required. The name of the project in which the key will be created, in the

0 commit comments

Comments
 (0)