google-apis-recaptchaenterprise_v1 0.53.0 → 0.55.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5de2846e4b30514fc2f63a3a0599ddcbcbab5d0acd449850a4a050cedfba6ba
4
- data.tar.gz: 461cd8f40a565350fe3a414c32875c9dd7ed93f2308aca20d18cb1e9206dc42c
3
+ metadata.gz: a3a812d833786b6b38a2471d74ec8e4a5d241b239e72ba2dc3272c8372cb3400
4
+ data.tar.gz: 11cc6c91850d902c583acdd39d2f4dd6cb2c22c9241e74efd180190ea8166ee1
5
5
  SHA512:
6
- metadata.gz: 81af08213248bf50256f8a1bff45ec5478ad7b5f49bb8c7c46c04cfe03ce2faa893ed25debe350783ae61f531c29dc606afbbe4463c56b317e20c26fd3cb5515
7
- data.tar.gz: ffc1271592dc2d8ffa3daae8308590d2b60000ca902db577723d1ef1da46b4fad56d283818288ed0f7dc8b8cff12b4f4a373efd0c88a11eb43c15c7b86dd39e6
6
+ metadata.gz: 9ec59a554ee1f6628f13829abca7044de4a49d512ae4cfb7ed82460060b063cebb0a551efe6555d936e3dff50cb37a779ccf3e2e18362cc5171beb9396409549
7
+ data.tar.gz: 4ac9db22d2692dd6b117e6c0aea101fdd9272bddf0076921e4f71ff59d5d13faaa4bf8ff0f5e5aaa9e648de3eac2c1a39f2e88a528381ef64d8d7a3378077eac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.55.0 (2024-09-01)
4
+
5
+ * Regenerated from discovery document revision 20240825
6
+
7
+ ### v0.54.0 (2024-08-18)
8
+
9
+ * Regenerated from discovery document revision 20240811
10
+
3
11
  ### v0.53.0 (2024-08-11)
4
12
 
5
13
  * Regenerated from discovery document revision 20240804
@@ -455,8 +455,7 @@ module Google
455
455
  attr_accessor :expected_action
456
456
 
457
457
  # Optional. Flag for a reCAPTCHA express request for an assessment without a
458
- # token. If enabled, `site_key` must reference a SCORE key with WAF feature set
459
- # to EXPRESS.
458
+ # token. If enabled, `site_key` must reference an Express site key.
460
459
  # Corresponds to the JSON property `express`
461
460
  # @return [Boolean]
462
461
  attr_accessor :express
@@ -563,6 +562,19 @@ module Google
563
562
  end
564
563
  end
565
564
 
565
+ # Settings specific to keys that can be used for reCAPTCHA Express.
566
+ class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
567
+ include Google::Apis::Core::Hashable
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ end
576
+ end
577
+
566
578
  # An individual action. Each action represents what to do if a policy matches.
567
579
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
568
580
  include Google::Apis::Core::Hashable
@@ -1072,6 +1084,11 @@ module Google
1072
1084
  # @return [String]
1073
1085
  attr_accessor :display_name
1074
1086
 
1087
+ # Settings specific to keys that can be used for reCAPTCHA Express.
1088
+ # Corresponds to the JSON property `expressSettings`
1089
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings]
1090
+ attr_accessor :express_settings
1091
+
1075
1092
  # Settings specific to keys that can be used by iOS apps.
1076
1093
  # Corresponds to the JSON property `iosSettings`
1077
1094
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings]
@@ -1113,6 +1130,7 @@ module Google
1113
1130
  @android_settings = args[:android_settings] if args.key?(:android_settings)
1114
1131
  @create_time = args[:create_time] if args.key?(:create_time)
1115
1132
  @display_name = args[:display_name] if args.key?(:display_name)
1133
+ @express_settings = args[:express_settings] if args.key?(:express_settings)
1116
1134
  @ios_settings = args[:ios_settings] if args.key?(:ios_settings)
1117
1135
  @labels = args[:labels] if args.key?(:labels)
1118
1136
  @name = args[:name] if args.key?(:name)
@@ -1148,6 +1166,32 @@ module Google
1148
1166
  end
1149
1167
  end
1150
1168
 
1169
+ # Response for ListIpOverrides.
1170
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
1171
+ include Google::Apis::Core::Hashable
1172
+
1173
+ # IP Overrides details.
1174
+ # Corresponds to the JSON property `ipOverrides`
1175
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData>]
1176
+ attr_accessor :ip_overrides
1177
+
1178
+ # Token to retrieve the next page of results. If this field is empty, no keys
1179
+ # remain in the results.
1180
+ # Corresponds to the JSON property `nextPageToken`
1181
+ # @return [String]
1182
+ attr_accessor :next_page_token
1183
+
1184
+ def initialize(**args)
1185
+ update!(**args)
1186
+ end
1187
+
1188
+ # Update properties of this object
1189
+ def update!(**args)
1190
+ @ip_overrides = args[:ip_overrides] if args.key?(:ip_overrides)
1191
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1192
+ end
1193
+ end
1194
+
1151
1195
  # Response to request to list keys in a project.
1152
1196
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
1153
1197
  include Google::Apis::Core::Hashable
@@ -1418,6 +1462,38 @@ module Google
1418
1462
  end
1419
1463
  end
1420
1464
 
1465
+ # The removeIpOverride request message.
1466
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
1467
+ include Google::Apis::Core::Hashable
1468
+
1469
+ # Information about the IP or IP range override.
1470
+ # Corresponds to the JSON property `ipOverrideData`
1471
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData]
1472
+ attr_accessor :ip_override_data
1473
+
1474
+ def initialize(**args)
1475
+ update!(**args)
1476
+ end
1477
+
1478
+ # Update properties of this object
1479
+ def update!(**args)
1480
+ @ip_override_data = args[:ip_override_data] if args.key?(:ip_override_data)
1481
+ end
1482
+ end
1483
+
1484
+ # Response for RemoveIpOverride.
1485
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
1486
+ include Google::Apis::Core::Hashable
1487
+
1488
+ def initialize(**args)
1489
+ update!(**args)
1490
+ end
1491
+
1492
+ # Update properties of this object
1493
+ def update!(**args)
1494
+ end
1495
+ end
1496
+
1421
1497
  # The reorder firewall policies request message.
1422
1498
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
1423
1499
  include Google::Apis::Core::Hashable
@@ -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.53.0"
19
+ GEM_VERSION = "0.55.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240804"
25
+ REVISION = "20240825"
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 GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
103
109
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
104
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
111
 
@@ -220,6 +226,12 @@ module Google
220
226
  include Google::Apis::Core::JsonObjectSupport
221
227
  end
222
228
 
229
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
223
235
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
224
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
237
 
@@ -274,6 +286,18 @@ module Google
274
286
  include Google::Apis::Core::JsonObjectSupport
275
287
  end
276
288
 
289
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
295
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
277
301
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
278
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
303
 
@@ -560,6 +584,12 @@ module Google
560
584
  end
561
585
  end
562
586
 
587
+ class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
588
+ # @private
589
+ class Representation < Google::Apis::Core::JsonRepresentation
590
+ end
591
+ end
592
+
563
593
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
564
594
  # @private
565
595
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -723,6 +753,8 @@ module Google
723
753
 
724
754
  property :create_time, as: 'createTime'
725
755
  property :display_name, as: 'displayName'
756
+ property :express_settings, as: 'expressSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings::Representation
757
+
726
758
  property :ios_settings, as: 'iosSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings::Representation
727
759
 
728
760
  hash :labels, as: 'labels'
@@ -745,6 +777,15 @@ module Google
745
777
  end
746
778
  end
747
779
 
780
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
781
+ # @private
782
+ class Representation < Google::Apis::Core::JsonRepresentation
783
+ collection :ip_overrides, as: 'ipOverrides', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
784
+
785
+ property :next_page_token, as: 'nextPageToken'
786
+ end
787
+ end
788
+
748
789
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
749
790
  # @private
750
791
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -825,6 +866,20 @@ module Google
825
866
  end
826
867
  end
827
868
 
869
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
870
+ # @private
871
+ class Representation < Google::Apis::Core::JsonRepresentation
872
+ property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
873
+
874
+ end
875
+ end
876
+
877
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
878
+ # @private
879
+ class Representation < Google::Apis::Core::JsonRepresentation
880
+ end
881
+ end
882
+
828
883
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
829
884
  # @private
830
885
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -533,6 +533,46 @@ module Google
533
533
  execute_or_queue_command(command, &block)
534
534
  end
535
535
 
536
+ # Lists all IP overrides for a key.
537
+ # @param [String] parent
538
+ # Required. The parent key for which the IP overrides are listed, in the format `
539
+ # projects/`project`/keys/`key``.
540
+ # @param [Fixnum] page_size
541
+ # Optional. The maximum number of overrides to return. Default is 10. Max limit
542
+ # is 100. If the number of overrides is less than the page_size, all overrides
543
+ # are returned. If the page size is more than 100, it is coerced to 100.
544
+ # @param [String] page_token
545
+ # Optional. The next_page_token value returned from a previous
546
+ # ListIpOverridesRequest, if any.
547
+ # @param [String] fields
548
+ # Selector specifying which fields to include in a partial response.
549
+ # @param [String] quota_user
550
+ # Available to use for quota purposes for server-side applications. Can be any
551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
552
+ # @param [Google::Apis::RequestOptions] options
553
+ # Request-specific options
554
+ #
555
+ # @yield [result, err] Result & error if block supplied
556
+ # @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse] parsed result object
557
+ # @yieldparam err [StandardError] error object if request failed
558
+ #
559
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse]
560
+ #
561
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
562
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
563
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
564
+ def list_project_key_ip_overrides(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
565
+ command = make_simple_command(:get, 'v1/{+parent}:listIpOverrides', options)
566
+ command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse::Representation
567
+ command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
568
+ command.params['parent'] = parent unless parent.nil?
569
+ command.query['pageSize'] = page_size unless page_size.nil?
570
+ command.query['pageToken'] = page_token unless page_token.nil?
571
+ command.query['fields'] = fields unless fields.nil?
572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
573
+ execute_or_queue_command(command, &block)
574
+ end
575
+
536
576
  # Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. Once a key is
537
577
  # migrated, it can be used from either product. SiteVerify requests are billed
538
578
  # as CreateAssessment calls. You must be authenticated as one of the current
@@ -609,6 +649,43 @@ module Google
609
649
  execute_or_queue_command(command, &block)
610
650
  end
611
651
 
652
+ # Removes an IP override from a key. The following restrictions hold: * If the
653
+ # IP isn't found in an existing IP override, a `NOT_FOUND` error will be
654
+ # returned. * If the IP is found in an existing IP override, but the override
655
+ # type does not match, a `NOT_FOUND` error will be returned.
656
+ # @param [String] name
657
+ # Required. The name of the key from which the IP override is removed, in the
658
+ # format `projects/`project`/keys/`key``.
659
+ # @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest] google_cloud_recaptchaenterprise_v1_remove_ip_override_request_object
660
+ # @param [String] fields
661
+ # Selector specifying which fields to include in a partial response.
662
+ # @param [String] quota_user
663
+ # Available to use for quota purposes for server-side applications. Can be any
664
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
665
+ # @param [Google::Apis::RequestOptions] options
666
+ # Request-specific options
667
+ #
668
+ # @yield [result, err] Result & error if block supplied
669
+ # @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse] parsed result object
670
+ # @yieldparam err [StandardError] error object if request failed
671
+ #
672
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse]
673
+ #
674
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
675
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
676
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
677
+ def remove_project_key_ip_override(name, google_cloud_recaptchaenterprise_v1_remove_ip_override_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
678
+ command = make_simple_command(:post, 'v1/{+name}:removeIpOverride', options)
679
+ command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest::Representation
680
+ command.request_object = google_cloud_recaptchaenterprise_v1_remove_ip_override_request_object
681
+ command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse::Representation
682
+ command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
683
+ command.params['name'] = name unless name.nil?
684
+ command.query['fields'] = fields unless fields.nil?
685
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
686
+ execute_or_queue_command(command, &block)
687
+ end
688
+
612
689
  # Returns the secret key related to the specified public key. You must use the
613
690
  # legacy secret key only in a 3rd party integration with legacy reCAPTCHA.
614
691
  # @param [String] key
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.53.0
4
+ version: 0.55.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-08-11 00:00:00.000000000 Z
11
+ date: 2024-09-01 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.53.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.55.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: []