google-apis-recaptchaenterprise_v1 0.29.0 → 0.30.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 +4 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +326 -5
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +154 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +175 -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: d425d7da767de18b0e4b89c235a951362d90f049054b43442f5b31e24a876f13
|
4
|
+
data.tar.gz: 80e4d111d46f693360eeaabb9b4991280d89e2f533ef98bf632e9818538b6692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3278aa873cb4c96e04c4948e7dab569aec291c51d44d5248e4f5b5a26b3a665cba9fe4d59f40a9b0dc00b695aedd131c767c54a6955b70eda30a133b540f0783
|
7
|
+
data.tar.gz: a81443d54b8e52ae303cbfefb02747d5dd3fc85901c198dfbf606377a1b2b2531f7c33e216359a3b10a5cb3a95fc5ab33d6f3776723da348e8b5cf1a17df6100
|
data/CHANGELOG.md
CHANGED
@@ -96,6 +96,13 @@ module Google
|
|
96
96
|
# @return [Array<String>]
|
97
97
|
attr_accessor :allowed_package_names
|
98
98
|
|
99
|
+
# Set to true for keys that are used in an Android application that is available
|
100
|
+
# for download in app stores in addition to the Google Play Store.
|
101
|
+
# Corresponds to the JSON property `supportNonGoogleAppStoreDistribution`
|
102
|
+
# @return [Boolean]
|
103
|
+
attr_accessor :support_non_google_app_store_distribution
|
104
|
+
alias_method :support_non_google_app_store_distribution?, :support_non_google_app_store_distribution
|
105
|
+
|
99
106
|
def initialize(**args)
|
100
107
|
update!(**args)
|
101
108
|
end
|
@@ -104,6 +111,7 @@ module Google
|
|
104
111
|
def update!(**args)
|
105
112
|
@allow_all_package_names = args[:allow_all_package_names] if args.key?(:allow_all_package_names)
|
106
113
|
@allowed_package_names = args[:allowed_package_names] if args.key?(:allowed_package_names)
|
114
|
+
@support_non_google_app_store_distribution = args[:support_non_google_app_store_distribution] if args.key?(:support_non_google_app_store_distribution)
|
107
115
|
end
|
108
116
|
end
|
109
117
|
|
@@ -184,6 +192,11 @@ module Google
|
|
184
192
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
|
185
193
|
attr_accessor :event
|
186
194
|
|
195
|
+
# Policy config assessment.
|
196
|
+
# Corresponds to the JSON property `firewallPolicyAssessment`
|
197
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment]
|
198
|
+
attr_accessor :firewall_policy_assessment
|
199
|
+
|
187
200
|
# Assessment for Fraud Prevention.
|
188
201
|
# Corresponds to the JSON property `fraudPreventionAssessment`
|
189
202
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment]
|
@@ -219,6 +232,7 @@ module Google
|
|
219
232
|
@account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
|
220
233
|
@account_verification = args[:account_verification] if args.key?(:account_verification)
|
221
234
|
@event = args[:event] if args.key?(:event)
|
235
|
+
@firewall_policy_assessment = args[:firewall_policy_assessment] if args.key?(:firewall_policy_assessment)
|
222
236
|
@fraud_prevention_assessment = args[:fraud_prevention_assessment] if args.key?(:fraud_prevention_assessment)
|
223
237
|
@name = args[:name] if args.key?(:name)
|
224
238
|
@private_password_leak_verification = args[:private_password_leak_verification] if args.key?(:private_password_leak_verification)
|
@@ -318,14 +332,22 @@ module Google
|
|
318
332
|
# @return [String]
|
319
333
|
attr_accessor :expected_action
|
320
334
|
|
321
|
-
# Optional.
|
322
|
-
#
|
323
|
-
#
|
335
|
+
# Optional. Flag for a reCAPTCHA express request for an assessment without a
|
336
|
+
# token. If enabled, `site_key` must reference a SCORE key with WAF feature set
|
337
|
+
# to EXPRESS.
|
324
338
|
# Corresponds to the JSON property `express`
|
325
339
|
# @return [Boolean]
|
326
340
|
attr_accessor :express
|
327
341
|
alias_method :express?, :express
|
328
342
|
|
343
|
+
# Optional. Flag for enabling firewall policy config assessment. If this flag is
|
344
|
+
# enabled, the firewall policy will be evaluated and a suggested firewall action
|
345
|
+
# will be returned in the response.
|
346
|
+
# Corresponds to the JSON property `firewallPolicyEvaluation`
|
347
|
+
# @return [Boolean]
|
348
|
+
attr_accessor :firewall_policy_evaluation
|
349
|
+
alias_method :firewall_policy_evaluation?, :firewall_policy_evaluation
|
350
|
+
|
329
351
|
# Optional. Unique stable hashed user identifier for the request. The identifier
|
330
352
|
# must be hashed using hmac-sha256 with stable secret.
|
331
353
|
# Corresponds to the JSON property `hashedAccountId`
|
@@ -333,7 +355,7 @@ module Google
|
|
333
355
|
# @return [String]
|
334
356
|
attr_accessor :hashed_account_id
|
335
357
|
|
336
|
-
# Optional.
|
358
|
+
# Optional. HTTP header information about the request.
|
337
359
|
# Corresponds to the JSON property `headers`
|
338
360
|
# @return [Array<String>]
|
339
361
|
attr_accessor :headers
|
@@ -378,6 +400,13 @@ module Google
|
|
378
400
|
# @return [String]
|
379
401
|
attr_accessor :user_ip_address
|
380
402
|
|
403
|
+
# Optional. Flag for running WAF token assessment. If enabled, the token must be
|
404
|
+
# specified, and have been created by a WAF-enabled key.
|
405
|
+
# Corresponds to the JSON property `wafTokenAssessment`
|
406
|
+
# @return [Boolean]
|
407
|
+
attr_accessor :waf_token_assessment
|
408
|
+
alias_method :waf_token_assessment?, :waf_token_assessment
|
409
|
+
|
381
410
|
def initialize(**args)
|
382
411
|
update!(**args)
|
383
412
|
end
|
@@ -386,6 +415,7 @@ module Google
|
|
386
415
|
def update!(**args)
|
387
416
|
@expected_action = args[:expected_action] if args.key?(:expected_action)
|
388
417
|
@express = args[:express] if args.key?(:express)
|
418
|
+
@firewall_policy_evaluation = args[:firewall_policy_evaluation] if args.key?(:firewall_policy_evaluation)
|
389
419
|
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
390
420
|
@headers = args[:headers] if args.key?(:headers)
|
391
421
|
@ja3 = args[:ja3] if args.key?(:ja3)
|
@@ -395,6 +425,232 @@ module Google
|
|
395
425
|
@transaction_data = args[:transaction_data] if args.key?(:transaction_data)
|
396
426
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
397
427
|
@user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address)
|
428
|
+
@waf_token_assessment = args[:waf_token_assessment] if args.key?(:waf_token_assessment)
|
429
|
+
end
|
430
|
+
end
|
431
|
+
|
432
|
+
# An individual action. Each action represents what to do if a policy matches.
|
433
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
434
|
+
include Google::Apis::Core::Hashable
|
435
|
+
|
436
|
+
# An allow action continues processing a request unimpeded.
|
437
|
+
# Corresponds to the JSON property `allow`
|
438
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction]
|
439
|
+
attr_accessor :allow
|
440
|
+
|
441
|
+
# A block action serves an HTTP error code a prevents the request from hitting
|
442
|
+
# the backend.
|
443
|
+
# Corresponds to the JSON property `block`
|
444
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction]
|
445
|
+
attr_accessor :block
|
446
|
+
|
447
|
+
# A redirect action returns a 307 (temporary redirect) response, pointing the
|
448
|
+
# user to a ReCaptcha interstitial page to attach a token.
|
449
|
+
# Corresponds to the JSON property `redirect`
|
450
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction]
|
451
|
+
attr_accessor :redirect
|
452
|
+
|
453
|
+
# A set header action sets a header and forwards the request to the backend.
|
454
|
+
# This can be used to trigger custom protection implemented on the backend.
|
455
|
+
# Corresponds to the JSON property `setHeader`
|
456
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction]
|
457
|
+
attr_accessor :set_header
|
458
|
+
|
459
|
+
# A substitute action transparently serves a different page than the one
|
460
|
+
# requested.
|
461
|
+
# Corresponds to the JSON property `substitute`
|
462
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction]
|
463
|
+
attr_accessor :substitute
|
464
|
+
|
465
|
+
def initialize(**args)
|
466
|
+
update!(**args)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Update properties of this object
|
470
|
+
def update!(**args)
|
471
|
+
@allow = args[:allow] if args.key?(:allow)
|
472
|
+
@block = args[:block] if args.key?(:block)
|
473
|
+
@redirect = args[:redirect] if args.key?(:redirect)
|
474
|
+
@set_header = args[:set_header] if args.key?(:set_header)
|
475
|
+
@substitute = args[:substitute] if args.key?(:substitute)
|
476
|
+
end
|
477
|
+
end
|
478
|
+
|
479
|
+
# An allow action continues processing a request unimpeded.
|
480
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction
|
481
|
+
include Google::Apis::Core::Hashable
|
482
|
+
|
483
|
+
def initialize(**args)
|
484
|
+
update!(**args)
|
485
|
+
end
|
486
|
+
|
487
|
+
# Update properties of this object
|
488
|
+
def update!(**args)
|
489
|
+
end
|
490
|
+
end
|
491
|
+
|
492
|
+
# A block action serves an HTTP error code a prevents the request from hitting
|
493
|
+
# the backend.
|
494
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction
|
495
|
+
include Google::Apis::Core::Hashable
|
496
|
+
|
497
|
+
def initialize(**args)
|
498
|
+
update!(**args)
|
499
|
+
end
|
500
|
+
|
501
|
+
# Update properties of this object
|
502
|
+
def update!(**args)
|
503
|
+
end
|
504
|
+
end
|
505
|
+
|
506
|
+
# A redirect action returns a 307 (temporary redirect) response, pointing the
|
507
|
+
# user to a ReCaptcha interstitial page to attach a token.
|
508
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
509
|
+
include Google::Apis::Core::Hashable
|
510
|
+
|
511
|
+
def initialize(**args)
|
512
|
+
update!(**args)
|
513
|
+
end
|
514
|
+
|
515
|
+
# Update properties of this object
|
516
|
+
def update!(**args)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
# A set header action sets a header and forwards the request to the backend.
|
521
|
+
# This can be used to trigger custom protection implemented on the backend.
|
522
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
|
523
|
+
include Google::Apis::Core::Hashable
|
524
|
+
|
525
|
+
# The header key to set in the request to the backend server.
|
526
|
+
# Corresponds to the JSON property `key`
|
527
|
+
# @return [String]
|
528
|
+
attr_accessor :key
|
529
|
+
|
530
|
+
# The header value to set in the request to the backend server.
|
531
|
+
# Corresponds to the JSON property `value`
|
532
|
+
# @return [String]
|
533
|
+
attr_accessor :value
|
534
|
+
|
535
|
+
def initialize(**args)
|
536
|
+
update!(**args)
|
537
|
+
end
|
538
|
+
|
539
|
+
# Update properties of this object
|
540
|
+
def update!(**args)
|
541
|
+
@key = args[:key] if args.key?(:key)
|
542
|
+
@value = args[:value] if args.key?(:value)
|
543
|
+
end
|
544
|
+
end
|
545
|
+
|
546
|
+
# A substitute action transparently serves a different page than the one
|
547
|
+
# requested.
|
548
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
|
549
|
+
include Google::Apis::Core::Hashable
|
550
|
+
|
551
|
+
# The address to redirect to. The target is a relative path in the current host.
|
552
|
+
# Example: "/blog/404.html".
|
553
|
+
# Corresponds to the JSON property `path`
|
554
|
+
# @return [String]
|
555
|
+
attr_accessor :path
|
556
|
+
|
557
|
+
def initialize(**args)
|
558
|
+
update!(**args)
|
559
|
+
end
|
560
|
+
|
561
|
+
# Update properties of this object
|
562
|
+
def update!(**args)
|
563
|
+
@path = args[:path] if args.key?(:path)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
# A FirewallPolicy represents a single matching pattern and resulting actions to
|
568
|
+
# take.
|
569
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
570
|
+
include Google::Apis::Core::Hashable
|
571
|
+
|
572
|
+
# The actions that the caller should take regarding user access. There should be
|
573
|
+
# at most one terminal action. A terminal action is any action that forces a
|
574
|
+
# response, such as AllowAction, BlockAction or SubstituteAction. Zero or more
|
575
|
+
# non-terminal actions such as SetHeader might be specified. A single policy can
|
576
|
+
# contain up to 16 actions.
|
577
|
+
# Corresponds to the JSON property `actions`
|
578
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallAction>]
|
579
|
+
attr_accessor :actions
|
580
|
+
|
581
|
+
# A CEL (Common Expression Language) conditional expression that specifies if
|
582
|
+
# this policy applies to an incoming user request. If this condition evaluates
|
583
|
+
# to true and the requested path matched the path pattern, the associated
|
584
|
+
# actions should be executed by the caller. The condition string is checked for
|
585
|
+
# CEL syntax correctness on creation. For more information, see the [CEL spec](
|
586
|
+
# https://github.com/google/cel-spec) and its [language definition](https://
|
587
|
+
# github.com/google/cel-spec/blob/master/doc/langdef.md). A condition has a max
|
588
|
+
# length of 500 characters.
|
589
|
+
# Corresponds to the JSON property `condition`
|
590
|
+
# @return [String]
|
591
|
+
attr_accessor :condition
|
592
|
+
|
593
|
+
# A description of what this policy aims to achieve, for convenience purposes.
|
594
|
+
# The description can at most include 256 UTF-8 characters.
|
595
|
+
# Corresponds to the JSON property `description`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :description
|
598
|
+
|
599
|
+
# The resource name for the FirewallPolicy in the format "projects/`project`/
|
600
|
+
# firewallpolicies/`firewallpolicy`".
|
601
|
+
# Corresponds to the JSON property `name`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :name
|
604
|
+
|
605
|
+
# The path for which this policy applies, specified as a glob pattern. For more
|
606
|
+
# information on glob, see the [manual page](https://man7.org/linux/man-pages/
|
607
|
+
# man7/glob.7.html). A path has a max length of 200 characters.
|
608
|
+
# Corresponds to the JSON property `path`
|
609
|
+
# @return [String]
|
610
|
+
attr_accessor :path
|
611
|
+
|
612
|
+
def initialize(**args)
|
613
|
+
update!(**args)
|
614
|
+
end
|
615
|
+
|
616
|
+
# Update properties of this object
|
617
|
+
def update!(**args)
|
618
|
+
@actions = args[:actions] if args.key?(:actions)
|
619
|
+
@condition = args[:condition] if args.key?(:condition)
|
620
|
+
@description = args[:description] if args.key?(:description)
|
621
|
+
@name = args[:name] if args.key?(:name)
|
622
|
+
@path = args[:path] if args.key?(:path)
|
623
|
+
end
|
624
|
+
end
|
625
|
+
|
626
|
+
# Policy config assessment.
|
627
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment
|
628
|
+
include Google::Apis::Core::Hashable
|
629
|
+
|
630
|
+
# The `Status` type defines a logical error model that is suitable for different
|
631
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
632
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
633
|
+
# data: error code, error message, and error details. You can find out more
|
634
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
635
|
+
# //cloud.google.com/apis/design/errors).
|
636
|
+
# Corresponds to the JSON property `error`
|
637
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleRpcStatus]
|
638
|
+
attr_accessor :error
|
639
|
+
|
640
|
+
# A FirewallPolicy represents a single matching pattern and resulting actions to
|
641
|
+
# take.
|
642
|
+
# Corresponds to the JSON property `firewallPolicy`
|
643
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy]
|
644
|
+
attr_accessor :firewall_policy
|
645
|
+
|
646
|
+
def initialize(**args)
|
647
|
+
update!(**args)
|
648
|
+
end
|
649
|
+
|
650
|
+
# Update properties of this object
|
651
|
+
def update!(**args)
|
652
|
+
@error = args[:error] if args.key?(:error)
|
653
|
+
@firewall_policy = args[:firewall_policy] if args.key?(:firewall_policy)
|
398
654
|
end
|
399
655
|
end
|
400
656
|
|
@@ -510,7 +766,7 @@ module Google
|
|
510
766
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AndroidKeySettings]
|
511
767
|
attr_accessor :android_settings
|
512
768
|
|
513
|
-
# Output only. The timestamp corresponding to the creation of this
|
769
|
+
# Output only. The timestamp corresponding to the creation of this key.
|
514
770
|
# Corresponds to the JSON property `createTime`
|
515
771
|
# @return [String]
|
516
772
|
attr_accessor :create_time
|
@@ -568,6 +824,32 @@ module Google
|
|
568
824
|
end
|
569
825
|
end
|
570
826
|
|
827
|
+
# Response to request to list firewall policies belonging to a key.
|
828
|
+
class GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse
|
829
|
+
include Google::Apis::Core::Hashable
|
830
|
+
|
831
|
+
# Policy details.
|
832
|
+
# Corresponds to the JSON property `firewallPolicies`
|
833
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy>]
|
834
|
+
attr_accessor :firewall_policies
|
835
|
+
|
836
|
+
# Token to retrieve the next page of results. It is set to empty if no policies
|
837
|
+
# remain in results.
|
838
|
+
# Corresponds to the JSON property `nextPageToken`
|
839
|
+
# @return [String]
|
840
|
+
attr_accessor :next_page_token
|
841
|
+
|
842
|
+
def initialize(**args)
|
843
|
+
update!(**args)
|
844
|
+
end
|
845
|
+
|
846
|
+
# Update properties of this object
|
847
|
+
def update!(**args)
|
848
|
+
@firewall_policies = args[:firewall_policies] if args.key?(:firewall_policies)
|
849
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
850
|
+
end
|
851
|
+
end
|
852
|
+
|
571
853
|
# Response to request to list keys in a project.
|
572
854
|
class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
|
573
855
|
include Google::Apis::Core::Hashable
|
@@ -1475,6 +1757,45 @@ module Google
|
|
1475
1757
|
def update!(**args)
|
1476
1758
|
end
|
1477
1759
|
end
|
1760
|
+
|
1761
|
+
# The `Status` type defines a logical error model that is suitable for different
|
1762
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1763
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
1764
|
+
# data: error code, error message, and error details. You can find out more
|
1765
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
1766
|
+
# //cloud.google.com/apis/design/errors).
|
1767
|
+
class GoogleRpcStatus
|
1768
|
+
include Google::Apis::Core::Hashable
|
1769
|
+
|
1770
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
1771
|
+
# Corresponds to the JSON property `code`
|
1772
|
+
# @return [Fixnum]
|
1773
|
+
attr_accessor :code
|
1774
|
+
|
1775
|
+
# A list of messages that carry the error details. There is a common set of
|
1776
|
+
# message types for APIs to use.
|
1777
|
+
# Corresponds to the JSON property `details`
|
1778
|
+
# @return [Array<Hash<String,Object>>]
|
1779
|
+
attr_accessor :details
|
1780
|
+
|
1781
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
1782
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
1783
|
+
# field, or localized by the client.
|
1784
|
+
# Corresponds to the JSON property `message`
|
1785
|
+
# @return [String]
|
1786
|
+
attr_accessor :message
|
1787
|
+
|
1788
|
+
def initialize(**args)
|
1789
|
+
update!(**args)
|
1790
|
+
end
|
1791
|
+
|
1792
|
+
# Update properties of this object
|
1793
|
+
def update!(**args)
|
1794
|
+
@code = args[:code] if args.key?(:code)
|
1795
|
+
@details = args[:details] if args.key?(:details)
|
1796
|
+
@message = args[:message] if args.key?(:message)
|
1797
|
+
end
|
1798
|
+
end
|
1478
1799
|
end
|
1479
1800
|
end
|
1480
1801
|
end
|
@@ -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.30.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230319"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -76,6 +76,54 @@ module Google
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
|
82
|
+
include Google::Apis::Core::JsonObjectSupport
|
83
|
+
end
|
84
|
+
|
85
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
|
88
|
+
include Google::Apis::Core::JsonObjectSupport
|
89
|
+
end
|
90
|
+
|
91
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
|
+
|
94
|
+
include Google::Apis::Core::JsonObjectSupport
|
95
|
+
end
|
96
|
+
|
97
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
|
100
|
+
include Google::Apis::Core::JsonObjectSupport
|
101
|
+
end
|
102
|
+
|
103
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
109
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
|
112
|
+
include Google::Apis::Core::JsonObjectSupport
|
113
|
+
end
|
114
|
+
|
115
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
116
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
|
+
|
118
|
+
include Google::Apis::Core::JsonObjectSupport
|
119
|
+
end
|
120
|
+
|
121
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
79
127
|
class GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment
|
80
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
129
|
|
@@ -106,6 +154,12 @@ module Google
|
|
106
154
|
include Google::Apis::Core::JsonObjectSupport
|
107
155
|
end
|
108
156
|
|
157
|
+
class GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
159
|
+
|
160
|
+
include Google::Apis::Core::JsonObjectSupport
|
161
|
+
end
|
162
|
+
|
109
163
|
class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
|
110
164
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
165
|
|
@@ -256,6 +310,12 @@ module Google
|
|
256
310
|
include Google::Apis::Core::JsonObjectSupport
|
257
311
|
end
|
258
312
|
|
313
|
+
class GoogleRpcStatus
|
314
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
315
|
+
|
316
|
+
include Google::Apis::Core::JsonObjectSupport
|
317
|
+
end
|
318
|
+
|
259
319
|
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
260
320
|
# @private
|
261
321
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -279,6 +339,7 @@ module Google
|
|
279
339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
280
340
|
property :allow_all_package_names, as: 'allowAllPackageNames'
|
281
341
|
collection :allowed_package_names, as: 'allowedPackageNames'
|
342
|
+
property :support_non_google_app_store_distribution, as: 'supportNonGoogleAppStoreDistribution'
|
282
343
|
end
|
283
344
|
end
|
284
345
|
|
@@ -308,6 +369,8 @@ module Google
|
|
308
369
|
|
309
370
|
property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
|
310
371
|
|
372
|
+
property :firewall_policy_assessment, as: 'firewallPolicyAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment::Representation
|
373
|
+
|
311
374
|
property :fraud_prevention_assessment, as: 'fraudPreventionAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment::Representation
|
312
375
|
|
313
376
|
property :name, as: 'name'
|
@@ -345,6 +408,7 @@ module Google
|
|
345
408
|
class Representation < Google::Apis::Core::JsonRepresentation
|
346
409
|
property :expected_action, as: 'expectedAction'
|
347
410
|
property :express, as: 'express'
|
411
|
+
property :firewall_policy_evaluation, as: 'firewallPolicyEvaluation'
|
348
412
|
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
349
413
|
collection :headers, as: 'headers'
|
350
414
|
property :ja3, as: 'ja3'
|
@@ -355,6 +419,78 @@ module Google
|
|
355
419
|
|
356
420
|
property :user_agent, as: 'userAgent'
|
357
421
|
property :user_ip_address, as: 'userIpAddress'
|
422
|
+
property :waf_token_assessment, as: 'wafTokenAssessment'
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallAction
|
427
|
+
# @private
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
429
|
+
property :allow, as: 'allow', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction::Representation
|
430
|
+
|
431
|
+
property :block, as: 'block', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction::Representation
|
432
|
+
|
433
|
+
property :redirect, as: 'redirect', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction::Representation
|
434
|
+
|
435
|
+
property :set_header, as: 'setHeader', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction::Representation
|
436
|
+
|
437
|
+
property :substitute, as: 'substitute', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction::Representation
|
438
|
+
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionAllowAction
|
443
|
+
# @private
|
444
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
445
|
+
end
|
446
|
+
end
|
447
|
+
|
448
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionBlockAction
|
449
|
+
# @private
|
450
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionRedirectAction
|
455
|
+
# @private
|
456
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
457
|
+
end
|
458
|
+
end
|
459
|
+
|
460
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSetHeaderAction
|
461
|
+
# @private
|
462
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
463
|
+
property :key, as: 'key'
|
464
|
+
property :value, as: 'value'
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallActionSubstituteAction
|
469
|
+
# @private
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
471
|
+
property :path, as: 'path'
|
472
|
+
end
|
473
|
+
end
|
474
|
+
|
475
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
476
|
+
# @private
|
477
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
478
|
+
collection :actions, as: 'actions', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallAction, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallAction::Representation
|
479
|
+
|
480
|
+
property :condition, as: 'condition'
|
481
|
+
property :description, as: 'description'
|
482
|
+
property :name, as: 'name'
|
483
|
+
property :path, as: 'path'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
class GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment
|
488
|
+
# @private
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
490
|
+
property :error, as: 'error', class: Google::Apis::RecaptchaenterpriseV1::GoogleRpcStatus, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleRpcStatus::Representation
|
491
|
+
|
492
|
+
property :firewall_policy, as: 'firewallPolicy', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
493
|
+
|
358
494
|
end
|
359
495
|
end
|
360
496
|
|
@@ -411,6 +547,15 @@ module Google
|
|
411
547
|
end
|
412
548
|
end
|
413
549
|
|
550
|
+
class GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse
|
551
|
+
# @private
|
552
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
553
|
+
collection :firewall_policies, as: 'firewallPolicies', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
554
|
+
|
555
|
+
property :next_page_token, as: 'nextPageToken'
|
556
|
+
end
|
557
|
+
end
|
558
|
+
|
414
559
|
class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
|
415
560
|
# @private
|
416
561
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -656,6 +801,15 @@ module Google
|
|
656
801
|
class Representation < Google::Apis::Core::JsonRepresentation
|
657
802
|
end
|
658
803
|
end
|
804
|
+
|
805
|
+
class GoogleRpcStatus
|
806
|
+
# @private
|
807
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
808
|
+
property :code, as: 'code'
|
809
|
+
collection :details, as: 'details'
|
810
|
+
property :message, as: 'message'
|
811
|
+
end
|
812
|
+
end
|
659
813
|
end
|
660
814
|
end
|
661
815
|
end
|
@@ -119,6 +119,181 @@ module Google
|
|
119
119
|
execute_or_queue_command(command, &block)
|
120
120
|
end
|
121
121
|
|
122
|
+
# Creates a new FirewallPolicy, specifying conditions at which reCAPTCHA
|
123
|
+
# Enterprise actions can be executed. A project may have a maximum of 1000
|
124
|
+
# policies.
|
125
|
+
# @param [String] parent
|
126
|
+
# Required. The name of the project this policy will apply to, in the format "
|
127
|
+
# projects/`project`".
|
128
|
+
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] google_cloud_recaptchaenterprise_v1_firewall_policy_object
|
129
|
+
# @param [String] fields
|
130
|
+
# Selector specifying which fields to include in a partial response.
|
131
|
+
# @param [String] quota_user
|
132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
134
|
+
# @param [Google::Apis::RequestOptions] options
|
135
|
+
# Request-specific options
|
136
|
+
#
|
137
|
+
# @yield [result, err] Result & error if block supplied
|
138
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] parsed result object
|
139
|
+
# @yieldparam err [StandardError] error object if request failed
|
140
|
+
#
|
141
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy]
|
142
|
+
#
|
143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
146
|
+
def create_project_firewallpolicy(parent, google_cloud_recaptchaenterprise_v1_firewall_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
147
|
+
command = make_simple_command(:post, 'v1/{+parent}/firewallpolicies', options)
|
148
|
+
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
149
|
+
command.request_object = google_cloud_recaptchaenterprise_v1_firewall_policy_object
|
150
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
151
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
152
|
+
command.params['parent'] = parent unless parent.nil?
|
153
|
+
command.query['fields'] = fields unless fields.nil?
|
154
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
155
|
+
execute_or_queue_command(command, &block)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Deletes the specified firewall policy.
|
159
|
+
# @param [String] name
|
160
|
+
# Required. The name of the policy to be deleted, in the format "projects/`
|
161
|
+
# project`/firewallpolicies/`firewallpolicy`".
|
162
|
+
# @param [String] fields
|
163
|
+
# Selector specifying which fields to include in a partial response.
|
164
|
+
# @param [String] quota_user
|
165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
167
|
+
# @param [Google::Apis::RequestOptions] options
|
168
|
+
# Request-specific options
|
169
|
+
#
|
170
|
+
# @yield [result, err] Result & error if block supplied
|
171
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleProtobufEmpty] parsed result object
|
172
|
+
# @yieldparam err [StandardError] error object if request failed
|
173
|
+
#
|
174
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleProtobufEmpty]
|
175
|
+
#
|
176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
179
|
+
def delete_project_firewallpolicy(name, fields: nil, quota_user: nil, options: nil, &block)
|
180
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
181
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleProtobufEmpty::Representation
|
182
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleProtobufEmpty
|
183
|
+
command.params['name'] = name unless name.nil?
|
184
|
+
command.query['fields'] = fields unless fields.nil?
|
185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
186
|
+
execute_or_queue_command(command, &block)
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the specified firewall policy.
|
190
|
+
# @param [String] name
|
191
|
+
# Required. The name of the requested policy, in the format "projects/`project`/
|
192
|
+
# firewallpolicies/`firewallpolicy`".
|
193
|
+
# @param [String] fields
|
194
|
+
# Selector specifying which fields to include in a partial response.
|
195
|
+
# @param [String] quota_user
|
196
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
197
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
198
|
+
# @param [Google::Apis::RequestOptions] options
|
199
|
+
# Request-specific options
|
200
|
+
#
|
201
|
+
# @yield [result, err] Result & error if block supplied
|
202
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] parsed result object
|
203
|
+
# @yieldparam err [StandardError] error object if request failed
|
204
|
+
#
|
205
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy]
|
206
|
+
#
|
207
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
208
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
209
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
210
|
+
def get_project_firewallpolicy(name, fields: nil, quota_user: nil, options: nil, &block)
|
211
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
212
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
213
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
214
|
+
command.params['name'] = name unless name.nil?
|
215
|
+
command.query['fields'] = fields unless fields.nil?
|
216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the list of all firewall policies that belong to a project.
|
221
|
+
# @param [String] parent
|
222
|
+
# Required. The name of the project to list the policies for, in the format "
|
223
|
+
# projects/`project`".
|
224
|
+
# @param [Fixnum] page_size
|
225
|
+
# Optional. The maximum number of policies to return. Default is 10. Max limit
|
226
|
+
# is 1000.
|
227
|
+
# @param [String] page_token
|
228
|
+
# Optional. The next_page_token value returned from a previous.
|
229
|
+
# ListFirewallPoliciesRequest, if any.
|
230
|
+
# @param [String] fields
|
231
|
+
# Selector specifying which fields to include in a partial response.
|
232
|
+
# @param [String] quota_user
|
233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
235
|
+
# @param [Google::Apis::RequestOptions] options
|
236
|
+
# Request-specific options
|
237
|
+
#
|
238
|
+
# @yield [result, err] Result & error if block supplied
|
239
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse] parsed result object
|
240
|
+
# @yieldparam err [StandardError] error object if request failed
|
241
|
+
#
|
242
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse]
|
243
|
+
#
|
244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
247
|
+
def list_project_firewallpolicies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
248
|
+
command = make_simple_command(:get, 'v1/{+parent}/firewallpolicies', options)
|
249
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse::Representation
|
250
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListFirewallPoliciesResponse
|
251
|
+
command.params['parent'] = parent unless parent.nil?
|
252
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
253
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
254
|
+
command.query['fields'] = fields unless fields.nil?
|
255
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
256
|
+
execute_or_queue_command(command, &block)
|
257
|
+
end
|
258
|
+
|
259
|
+
# Updates the specified firewall policy.
|
260
|
+
# @param [String] name
|
261
|
+
# The resource name for the FirewallPolicy in the format "projects/`project`/
|
262
|
+
# firewallpolicies/`firewallpolicy`".
|
263
|
+
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] google_cloud_recaptchaenterprise_v1_firewall_policy_object
|
264
|
+
# @param [String] update_mask
|
265
|
+
# Optional. The mask to control which fields of the policy get updated. If the
|
266
|
+
# mask is not present, all fields will be updated.
|
267
|
+
# @param [String] fields
|
268
|
+
# Selector specifying which fields to include in a partial response.
|
269
|
+
# @param [String] quota_user
|
270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
272
|
+
# @param [Google::Apis::RequestOptions] options
|
273
|
+
# Request-specific options
|
274
|
+
#
|
275
|
+
# @yield [result, err] Result & error if block supplied
|
276
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] parsed result object
|
277
|
+
# @yieldparam err [StandardError] error object if request failed
|
278
|
+
#
|
279
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy]
|
280
|
+
#
|
281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
284
|
+
def patch_project_firewallpolicy(name, google_cloud_recaptchaenterprise_v1_firewall_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
285
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
286
|
+
command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
287
|
+
command.request_object = google_cloud_recaptchaenterprise_v1_firewall_policy_object
|
288
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy::Representation
|
289
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy
|
290
|
+
command.params['name'] = name unless name.nil?
|
291
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
292
|
+
command.query['fields'] = fields unless fields.nil?
|
293
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
294
|
+
execute_or_queue_command(command, &block)
|
295
|
+
end
|
296
|
+
|
122
297
|
# Creates a new reCAPTCHA Enterprise key.
|
123
298
|
# @param [String] parent
|
124
299
|
# 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.30.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: 2023-03-
|
11
|
+
date: 2023-03-26 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.30.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: []
|