google-apis-recaptchaenterprise_v1 0.49.0 → 0.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +87 -9
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +54 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +36 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5b86b64b55218836a3efb8d52d5689088765e64104585d51b37ab0d2fe219a4
|
4
|
+
data.tar.gz: 8a0fac359d6e2bf556fa7c6b757b3d80251f38ef94dc658e5443b8fac702a08a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5513868133c5357bc804326c8c25ee65057c5253777c6c2d503bc99b72e1b57609b070de60947b07b02625abe0f20bc396aab6f3e0554920d06c1d9844a91cde
|
7
|
+
data.tar.gz: 10d4d045a4aa61333d7c71612cb420711e0ba5f2c88cef52bbb4b8b44a5161aed4ea0b1a5f2225942a190dd4220bee4e83f99597024e5a881e6649c5b5ebec26
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-recaptchaenterprise_v1
|
2
2
|
|
3
|
+
### v0.51.0 (2024-07-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240721
|
6
|
+
|
7
|
+
### v0.50.0 (2024-07-25)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240713
|
10
|
+
|
3
11
|
### v0.49.0 (2024-06-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240526
|
@@ -80,6 +80,38 @@ module Google
|
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
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
|
+
|
83
115
|
# Settings specific to keys that can be used by Android apps.
|
84
116
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
85
117
|
include Google::Apis::Core::Hashable
|
@@ -385,8 +417,7 @@ module Google
|
|
385
417
|
attr_accessor :expected_action
|
386
418
|
|
387
419
|
# Optional. Flag for a reCAPTCHA express request for an assessment without a
|
388
|
-
# token. If enabled, `site_key` must reference
|
389
|
-
# to EXPRESS.
|
420
|
+
# token. If enabled, `site_key` must reference an Express site key.
|
390
421
|
# Corresponds to the JSON property `express`
|
391
422
|
# @return [Boolean]
|
392
423
|
attr_accessor :express
|
@@ -493,6 +524,19 @@ module Google
|
|
493
524
|
end
|
494
525
|
end
|
495
526
|
|
527
|
+
# Settings specific to keys that can be used for reCAPTCHA Express.
|
528
|
+
class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
|
529
|
+
include Google::Apis::Core::Hashable
|
530
|
+
|
531
|
+
def initialize(**args)
|
532
|
+
update!(**args)
|
533
|
+
end
|
534
|
+
|
535
|
+
# Update properties of this object
|
536
|
+
def update!(**args)
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
496
540
|
# An individual action. Each action represents what to do if a policy matches.
|
497
541
|
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
498
542
|
include Google::Apis::Core::Hashable
|
@@ -953,6 +997,35 @@ module Google
|
|
953
997
|
end
|
954
998
|
end
|
955
999
|
|
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
|
+
|
956
1029
|
# A key used to identify and configure applications (web and/or mobile) that use
|
957
1030
|
# reCAPTCHA Enterprise.
|
958
1031
|
class GoogleCloudRecaptchaenterpriseV1Key
|
@@ -973,13 +1046,18 @@ module Google
|
|
973
1046
|
# @return [String]
|
974
1047
|
attr_accessor :display_name
|
975
1048
|
|
1049
|
+
# Settings specific to keys that can be used for reCAPTCHA Express.
|
1050
|
+
# Corresponds to the JSON property `expressSettings`
|
1051
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings]
|
1052
|
+
attr_accessor :express_settings
|
1053
|
+
|
976
1054
|
# Settings specific to keys that can be used by iOS apps.
|
977
1055
|
# Corresponds to the JSON property `iosSettings`
|
978
1056
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings]
|
979
1057
|
attr_accessor :ios_settings
|
980
1058
|
|
981
1059
|
# Optional. See [Creating and managing labels] (https://cloud.google.com/
|
982
|
-
# recaptcha
|
1060
|
+
# recaptcha/docs/labels).
|
983
1061
|
# Corresponds to the JSON property `labels`
|
984
1062
|
# @return [Hash<String,String>]
|
985
1063
|
attr_accessor :labels
|
@@ -1014,6 +1092,7 @@ module Google
|
|
1014
1092
|
@android_settings = args[:android_settings] if args.key?(:android_settings)
|
1015
1093
|
@create_time = args[:create_time] if args.key?(:create_time)
|
1016
1094
|
@display_name = args[:display_name] if args.key?(:display_name)
|
1095
|
+
@express_settings = args[:express_settings] if args.key?(:express_settings)
|
1017
1096
|
@ios_settings = args[:ios_settings] if args.key?(:ios_settings)
|
1018
1097
|
@labels = args[:labels] if args.key?(:labels)
|
1019
1098
|
@name = args[:name] if args.key?(:name)
|
@@ -1174,12 +1253,11 @@ module Google
|
|
1174
1253
|
|
1175
1254
|
# Optional. If true, skips the billing check. A reCAPTCHA Enterprise key or
|
1176
1255
|
# migrated key behaves differently than a reCAPTCHA (non-Enterprise version) key
|
1177
|
-
# when you reach a quota limit (see https://cloud.google.com/recaptcha
|
1178
|
-
#
|
1179
|
-
#
|
1180
|
-
#
|
1181
|
-
#
|
1182
|
-
# information.
|
1256
|
+
# when you reach a quota limit (see https://cloud.google.com/recaptcha/quotas#
|
1257
|
+
# quota_limit). To avoid any disruption of your usage, we check that a billing
|
1258
|
+
# account is present. If your usage of reCAPTCHA is under the free quota, you
|
1259
|
+
# can safely skip the billing check and proceed with the migration. See https://
|
1260
|
+
# cloud.google.com/recaptcha/docs/billing-information.
|
1183
1261
|
# Corresponds to the JSON property `skipBillingCheck`
|
1184
1262
|
# @return [Boolean]
|
1185
1263
|
attr_accessor :skip_billing_check
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RecaptchaenterpriseV1
|
18
18
|
# Version of the google-apis-recaptchaenterprise_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.51.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240721"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -34,6 +34,18 @@ module Google
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
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
|
+
|
37
49
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
38
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
51
|
|
@@ -82,6 +94,12 @@ module Google
|
|
82
94
|
include Google::Apis::Core::JsonObjectSupport
|
83
95
|
end
|
84
96
|
|
97
|
+
class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
85
103
|
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
86
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
105
|
|
@@ -184,6 +202,12 @@ module Google
|
|
184
202
|
include Google::Apis::Core::JsonObjectSupport
|
185
203
|
end
|
186
204
|
|
205
|
+
class GoogleCloudRecaptchaenterpriseV1IpOverrideData
|
206
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
207
|
+
|
208
|
+
include Google::Apis::Core::JsonObjectSupport
|
209
|
+
end
|
210
|
+
|
187
211
|
class GoogleCloudRecaptchaenterpriseV1Key
|
188
212
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
213
|
|
@@ -406,6 +430,20 @@ module Google
|
|
406
430
|
end
|
407
431
|
end
|
408
432
|
|
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
|
+
|
409
447
|
class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
|
410
448
|
# @private
|
411
449
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -512,6 +550,12 @@ module Google
|
|
512
550
|
end
|
513
551
|
end
|
514
552
|
|
553
|
+
class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
|
554
|
+
# @private
|
555
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
515
559
|
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
516
560
|
# @private
|
517
561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -660,6 +704,14 @@ module Google
|
|
660
704
|
end
|
661
705
|
end
|
662
706
|
|
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
|
+
|
663
715
|
class GoogleCloudRecaptchaenterpriseV1Key
|
664
716
|
# @private
|
665
717
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -667,6 +719,8 @@ module Google
|
|
667
719
|
|
668
720
|
property :create_time, as: 'createTime'
|
669
721
|
property :display_name, as: 'displayName'
|
722
|
+
property :express_settings, as: 'expressSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings::Representation
|
723
|
+
|
670
724
|
property :ios_settings, as: 'iosSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings::Representation
|
671
725
|
|
672
726
|
hash :labels, as: 'labels'
|
@@ -330,6 +330,42 @@ module Google
|
|
330
330
|
execute_or_queue_command(command, &block)
|
331
331
|
end
|
332
332
|
|
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
|
+
|
333
369
|
# Creates a new reCAPTCHA Enterprise key.
|
334
370
|
# @param [String] parent
|
335
371
|
# Required. The name of the project in which the key will be created, in the
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-recaptchaenterprise_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.51.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.51.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|