google-apis-recaptchaenterprise_v1 0.42.0 → 0.44.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +60 -0
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +3 -3
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +39 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +37 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d6c5f3d48e2df5199a1b24862c1ef417de278898e58177bac74643018aa97d6
|
4
|
+
data.tar.gz: e86d0cebc8aae703ce95e4d3ccc643945ce70b176de4726dbb56eea9d29b4742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aef5f3348bb0b495e96c9bdb2ac4d1d838be6e32af3b39f6245e094da5affad6605f8c262196aa78fa7d92d13fbfa455bc0376f5e62bea297f268e0c942ff86
|
7
|
+
data.tar.gz: 67c04174e158bebb81f2aba00d56f03acec4156434eaa34e9dc838da6394982a7557043d8ef86ea11e72659536e5c91a52878f4542c96916660b9ef54a6ddf90
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-recaptchaenterprise_v1
|
2
2
|
|
3
|
+
### v0.44.0 (2024-02-11)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240204
|
6
|
+
* Regenerated using generator version 0.13.1
|
7
|
+
|
8
|
+
### v0.43.0 (2024-01-23)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20240113
|
11
|
+
* Regenerated using generator version 0.13.0
|
12
|
+
|
3
13
|
### v0.42.0 (2024-01-07)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20240101
|
@@ -496,6 +496,15 @@ module Google
|
|
496
496
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction]
|
497
497
|
attr_accessor :block
|
498
498
|
|
499
|
+
# An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
|
500
|
+
# code into the HTML returned by the site backend. This reCAPTCHA script is
|
501
|
+
# tasked with collecting user signals on the requested web page, issuing tokens
|
502
|
+
# as a cookie within the site domain, and enabling their utilization in
|
503
|
+
# subsequent page requests.
|
504
|
+
# Corresponds to the JSON property `includeRecaptchaScript`
|
505
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction]
|
506
|
+
attr_accessor :include_recaptcha_script
|
507
|
+
|
499
508
|
# A redirect action returns a 307 (temporary redirect) response, pointing the
|
500
509
|
# user to a ReCaptcha interstitial page to attach a token.
|
501
510
|
# Corresponds to the JSON property `redirect`
|
@@ -522,6 +531,7 @@ module Google
|
|
522
531
|
def update!(**args)
|
523
532
|
@allow = args[:allow] if args.key?(:allow)
|
524
533
|
@block = args[:block] if args.key?(:block)
|
534
|
+
@include_recaptcha_script = args[:include_recaptcha_script] if args.key?(:include_recaptcha_script)
|
525
535
|
@redirect = args[:redirect] if args.key?(:redirect)
|
526
536
|
@set_header = args[:set_header] if args.key?(:set_header)
|
527
537
|
@substitute = args[:substitute] if args.key?(:substitute)
|
@@ -555,6 +565,23 @@ module Google
|
|
555
565
|
end
|
556
566
|
end
|
557
567
|
|
568
|
+
# An include reCAPTCHA script action involves injecting reCAPTCHA JavaScript
|
569
|
+
# code into the HTML returned by the site backend. This reCAPTCHA script is
|
570
|
+
# tasked with collecting user signals on the requested web page, issuing tokens
|
571
|
+
# as a cookie within the site domain, and enabling their utilization in
|
572
|
+
# subsequent page requests.
|
573
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction
|
574
|
+
include Google::Apis::Core::Hashable
|
575
|
+
|
576
|
+
def initialize(**args)
|
577
|
+
update!(**args)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Update properties of this object
|
581
|
+
def update!(**args)
|
582
|
+
end
|
583
|
+
end
|
584
|
+
|
558
585
|
# A redirect action returns a 307 (temporary redirect) response, pointing the
|
559
586
|
# user to a ReCaptcha interstitial page to attach a token.
|
560
587
|
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
@@ -1262,6 +1289,39 @@ module Google
|
|
1262
1289
|
end
|
1263
1290
|
end
|
1264
1291
|
|
1292
|
+
# The reorder firewall policies request message.
|
1293
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
|
1294
|
+
include Google::Apis::Core::Hashable
|
1295
|
+
|
1296
|
+
# Required. A list containing all policy names, in the new order. Each name is
|
1297
|
+
# in the format `projects/`project`/firewallpolicies/`firewallpolicy``.
|
1298
|
+
# Corresponds to the JSON property `names`
|
1299
|
+
# @return [Array<String>]
|
1300
|
+
attr_accessor :names
|
1301
|
+
|
1302
|
+
def initialize(**args)
|
1303
|
+
update!(**args)
|
1304
|
+
end
|
1305
|
+
|
1306
|
+
# Update properties of this object
|
1307
|
+
def update!(**args)
|
1308
|
+
@names = args[:names] if args.key?(:names)
|
1309
|
+
end
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
# The reorder firewall policies response message.
|
1313
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse
|
1314
|
+
include Google::Apis::Core::Hashable
|
1315
|
+
|
1316
|
+
def initialize(**args)
|
1317
|
+
update!(**args)
|
1318
|
+
end
|
1319
|
+
|
1320
|
+
# Update properties of this object
|
1321
|
+
def update!(**args)
|
1322
|
+
end
|
1323
|
+
end
|
1324
|
+
|
1265
1325
|
# Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
|
1266
1326
|
# integration with legacy reCAPTCHA.
|
1267
1327
|
class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
|
@@ -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.44.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.13.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240204"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -238,6 +244,18 @@ module Google
|
|
238
244
|
include Google::Apis::Core::JsonObjectSupport
|
239
245
|
end
|
240
246
|
|
247
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
|
248
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
249
|
+
|
250
|
+
include Google::Apis::Core::JsonObjectSupport
|
251
|
+
end
|
252
|
+
|
253
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse
|
254
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
255
|
+
|
256
|
+
include Google::Apis::Core::JsonObjectSupport
|
257
|
+
end
|
258
|
+
|
241
259
|
class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
|
242
260
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
261
|
|
@@ -486,6 +504,8 @@ module Google
|
|
486
504
|
|
487
505
|
property :block, as: 'block', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction::Representation
|
488
506
|
|
507
|
+
property :include_recaptcha_script, as: 'includeRecaptchaScript', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction::Representation
|
508
|
+
|
489
509
|
property :redirect, as: 'redirect', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction::Representation
|
490
510
|
|
491
511
|
property :set_header, as: 'setHeader', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction::Representation
|
@@ -507,6 +527,12 @@ module Google
|
|
507
527
|
end
|
508
528
|
end
|
509
529
|
|
530
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionIncludeRecaptchaScriptAction
|
531
|
+
# @private
|
532
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
510
536
|
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
511
537
|
# @private
|
512
538
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -720,6 +746,19 @@ module Google
|
|
720
746
|
end
|
721
747
|
end
|
722
748
|
|
749
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
|
750
|
+
# @private
|
751
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
752
|
+
collection :names, as: 'names'
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
756
|
+
class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse
|
757
|
+
# @private
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
759
|
+
end
|
760
|
+
end
|
761
|
+
|
723
762
|
class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
|
724
763
|
# @private
|
725
764
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -33,6 +33,8 @@ module Google
|
|
33
33
|
#
|
34
34
|
# @see https://cloud.google.com/recaptcha-enterprise/
|
35
35
|
class RecaptchaEnterpriseService < Google::Apis::Core::BaseService
|
36
|
+
DEFAULT_ENDPOINT_TEMPLATE = "https://recaptchaenterprise.$UNIVERSE_DOMAIN$/"
|
37
|
+
|
36
38
|
# @return [String]
|
37
39
|
# API key. Your API key identifies your project and provides you with API access,
|
38
40
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
@@ -44,7 +46,7 @@ module Google
|
|
44
46
|
attr_accessor :quota_user
|
45
47
|
|
46
48
|
def initialize
|
47
|
-
super(
|
49
|
+
super(DEFAULT_ENDPOINT_TEMPLATE, '',
|
48
50
|
client_name: 'google-apis-recaptchaenterprise_v1',
|
49
51
|
client_version: Google::Apis::RecaptchaenterpriseV1::GEM_VERSION)
|
50
52
|
@batch_path = 'batch'
|
@@ -294,6 +296,40 @@ module Google
|
|
294
296
|
execute_or_queue_command(command, &block)
|
295
297
|
end
|
296
298
|
|
299
|
+
# Reorders all firewall policies.
|
300
|
+
# @param [String] parent
|
301
|
+
# Required. The name of the project to list the policies for, in the format `
|
302
|
+
# projects/`project``.
|
303
|
+
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest] google_cloud_recaptchaenterprise_v1_reorder_firewall_policies_request_object
|
304
|
+
# @param [String] fields
|
305
|
+
# Selector specifying which fields to include in a partial response.
|
306
|
+
# @param [String] quota_user
|
307
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
308
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
309
|
+
# @param [Google::Apis::RequestOptions] options
|
310
|
+
# Request-specific options
|
311
|
+
#
|
312
|
+
# @yield [result, err] Result & error if block supplied
|
313
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse] parsed result object
|
314
|
+
# @yieldparam err [StandardError] error object if request failed
|
315
|
+
#
|
316
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse]
|
317
|
+
#
|
318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
321
|
+
def reorder_project_firewallpolicy(parent, google_cloud_recaptchaenterprise_v1_reorder_firewall_policies_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
322
|
+
command = make_simple_command(:post, 'v1/{+parent}/firewallpolicies:reorder', options)
|
323
|
+
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest::Representation
|
324
|
+
command.request_object = google_cloud_recaptchaenterprise_v1_reorder_firewall_policies_request_object
|
325
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse::Representation
|
326
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesResponse
|
327
|
+
command.params['parent'] = parent unless parent.nil?
|
328
|
+
command.query['fields'] = fields unless fields.nil?
|
329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
330
|
+
execute_or_queue_command(command, &block)
|
331
|
+
end
|
332
|
+
|
297
333
|
# Creates a new reCAPTCHA Enterprise key.
|
298
334
|
# @param [String] parent
|
299
335
|
# 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.44.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-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.12.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.12.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.44.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: []
|