Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273872,6 +273872,9 @@
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/languageCode": language_code
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/latestVerificationResult": latest_verification_result
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo/username": username
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest": google_cloud_recaptchaenterprise_v1_add_ip_override_request
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest/ipOverrideData": ip_override_data
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse": google_cloud_recaptchaenterprise_v1_add_ip_override_response
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings": google_cloud_recaptchaenterprise_v1_android_key_settings
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings/allowAllPackageNames": allow_all_package_names
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1AndroidKeySettings/allowedPackageNames": allowed_package_names
Expand Down Expand Up @@ -273980,6 +273983,9 @@
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/allowedBundleIds": allowed_bundle_ids
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/allowedBundleIds/allowed_bundle_id": allowed_bundle_id
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IOSKeySettings/appleDeveloperId": apple_developer_id
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData": google_cloud_recaptchaenterprise_v1_ip_override_data
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData/ip": ip
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1IpOverrideData/overrideType": override_type
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key": google_cloud_recaptchaenterprise_v1_key
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key/androidSettings": android_settings
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Key/createTime": create_time
Expand Down Expand Up @@ -274174,6 +274180,8 @@
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.patch/updateMask": update_mask
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.reorder": reorder_project_firewallpolicy
"/recaptchaenterprise:v1/recaptchaenterprise.projects.firewallpolicies.reorder/parent": parent
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.addIpOverride": add_project_key_ip_override
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.addIpOverride/name": name
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.create": create_project_key
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.create/parent": parent
"/recaptchaenterprise:v1/recaptchaenterprise.projects.keys.delete": delete_project_key
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-recaptchaenterprise_v1

### v0.51.0 (2024-07-25)

* Regenerated from discovery document revision 20240721

### v0.50.0 (2024-07-25)

* Regenerated from discovery document revision 20240713
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,38 @@ def update!(**args)
end
end

# The AddIpOverride request message.
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
include Google::Apis::Core::Hashable

# Information about the IP or IP range override.
# Corresponds to the JSON property `ipOverrideData`
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData]
attr_accessor :ip_override_data

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@ip_override_data = args[:ip_override_data] if args.key?(:ip_override_data)
end
end

# Response for AddIpOverride.
class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
include Google::Apis::Core::Hashable

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
end
end

# Settings specific to keys that can be used by Android apps.
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -965,6 +997,35 @@ def update!(**args)
end
end

# Information about the IP or IP range override.
class GoogleCloudRecaptchaenterpriseV1IpOverrideData
include Google::Apis::Core::Hashable

# Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP
# override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP
# override must be a public IP address. Example of IPv4: 168.192.5.6 Example of
# IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.
# 192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48
# Corresponds to the JSON property `ip`
# @return [String]
attr_accessor :ip

# Required. Describes the type of IP override.
# Corresponds to the JSON property `overrideType`
# @return [String]
attr_accessor :override_type

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@ip = args[:ip] if args.key?(:ip)
@override_type = args[:override_type] if args.key?(:override_type)
end
end

# A key used to identify and configure applications (web and/or mobile) that use
# reCAPTCHA Enterprise.
class GoogleCloudRecaptchaenterpriseV1Key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module RecaptchaenterpriseV1
# Version of the google-apis-recaptchaenterprise_v1 gem
GEM_VERSION = "0.50.0"
GEM_VERSION = "0.51.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240713"
REVISION = "20240721"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -190,6 +202,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1IpOverrideData
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1Key
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -412,6 +430,20 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation

end
end

class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -672,6 +704,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRecaptchaenterpriseV1IpOverrideData
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ip, as: 'ip'
property :override_type, as: 'overrideType'
end
end

class GoogleCloudRecaptchaenterpriseV1Key
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,42 @@ def reorder_project_firewallpolicy(parent, google_cloud_recaptchaenterprise_v1_r
execute_or_queue_command(command, &block)
end

# Adds an IP override to a key. The following restrictions hold: * The maximum
# number of IP overrides per key is 100. * For any conflict (such as IP already
# exists or IP part of an existing IP range), an error will be returned.
# @param [String] name
# Required. The name of the key to which the IP override is added, in the format
# `projects/`project`/keys/`key``.
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest] google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
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)
command = make_simple_command(:post, 'v1/{+name}:addIpOverride', options)
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest::Representation
command.request_object = google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse::Representation
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end

# Creates a new reCAPTCHA Enterprise key.
# @param [String] parent
# Required. The name of the project in which the key will be created, in the
Expand Down