google-apis-recaptchaenterprise_v1 0.53.0 → 0.54.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: 58c96194deed3999d87072b6be7f37bb4c6943580f49b2c7103f15a82a402044
4
+ data.tar.gz: 231121c702a07bcb509d880b6218d8558ae93bd585b858ebc1a561af3ffd4a34
5
5
  SHA512:
6
- metadata.gz: 81af08213248bf50256f8a1bff45ec5478ad7b5f49bb8c7c46c04cfe03ce2faa893ed25debe350783ae61f531c29dc606afbbe4463c56b317e20c26fd3cb5515
7
- data.tar.gz: ffc1271592dc2d8ffa3daae8308590d2b60000ca902db577723d1ef1da46b4fad56d283818288ed0f7dc8b8cff12b4f4a373efd0c88a11eb43c15c7b86dd39e6
6
+ metadata.gz: 428e41008d56b0340b95407f70fb8fa628a1508104e7dc8a9d0c2ec7d34f71dab440e4965b76f1ab8b8249d94ee5b316903880d40231267c70ec7df6b33b7eef
7
+ data.tar.gz: 181f0a97de0618b4a0fc3c039fac9fe2d75991bcf3395d2433808ad5901302ae4428873fd279f3930dfb2900c6ce9f905fdaaec36e814c9b5882d7d8ac6fa7bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.54.0 (2024-08-18)
4
+
5
+ * Regenerated from discovery document revision 20240811
6
+
3
7
  ### v0.53.0 (2024-08-11)
4
8
 
5
9
  * Regenerated from discovery document revision 20240804
@@ -1148,6 +1148,32 @@ module Google
1148
1148
  end
1149
1149
  end
1150
1150
 
1151
+ # Response for ListIpOverrides.
1152
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
1153
+ include Google::Apis::Core::Hashable
1154
+
1155
+ # IP Overrides details.
1156
+ # Corresponds to the JSON property `ipOverrides`
1157
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData>]
1158
+ attr_accessor :ip_overrides
1159
+
1160
+ # Token to retrieve the next page of results. If this field is empty, no keys
1161
+ # remain in the results.
1162
+ # Corresponds to the JSON property `nextPageToken`
1163
+ # @return [String]
1164
+ attr_accessor :next_page_token
1165
+
1166
+ def initialize(**args)
1167
+ update!(**args)
1168
+ end
1169
+
1170
+ # Update properties of this object
1171
+ def update!(**args)
1172
+ @ip_overrides = args[:ip_overrides] if args.key?(:ip_overrides)
1173
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1174
+ end
1175
+ end
1176
+
1151
1177
  # Response to request to list keys in a project.
1152
1178
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
1153
1179
  include Google::Apis::Core::Hashable
@@ -1418,6 +1444,38 @@ module Google
1418
1444
  end
1419
1445
  end
1420
1446
 
1447
+ # The removeIpOverride request message.
1448
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
1449
+ include Google::Apis::Core::Hashable
1450
+
1451
+ # Information about the IP or IP range override.
1452
+ # Corresponds to the JSON property `ipOverrideData`
1453
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData]
1454
+ attr_accessor :ip_override_data
1455
+
1456
+ def initialize(**args)
1457
+ update!(**args)
1458
+ end
1459
+
1460
+ # Update properties of this object
1461
+ def update!(**args)
1462
+ @ip_override_data = args[:ip_override_data] if args.key?(:ip_override_data)
1463
+ end
1464
+ end
1465
+
1466
+ # Response for RemoveIpOverride.
1467
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
1468
+ include Google::Apis::Core::Hashable
1469
+
1470
+ def initialize(**args)
1471
+ update!(**args)
1472
+ end
1473
+
1474
+ # Update properties of this object
1475
+ def update!(**args)
1476
+ end
1477
+ end
1478
+
1421
1479
  # The reorder firewall policies request message.
1422
1480
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
1423
1481
  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.54.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 = "20240811"
26
26
  end
27
27
  end
28
28
  end
@@ -220,6 +220,12 @@ module Google
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
223
229
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
224
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
231
 
@@ -274,6 +280,18 @@ module Google
274
280
  include Google::Apis::Core::JsonObjectSupport
275
281
  end
276
282
 
283
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
289
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+
292
+ include Google::Apis::Core::JsonObjectSupport
293
+ end
294
+
277
295
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
278
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
279
297
 
@@ -745,6 +763,15 @@ module Google
745
763
  end
746
764
  end
747
765
 
766
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
767
+ # @private
768
+ class Representation < Google::Apis::Core::JsonRepresentation
769
+ collection :ip_overrides, as: 'ipOverrides', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
770
+
771
+ property :next_page_token, as: 'nextPageToken'
772
+ end
773
+ end
774
+
748
775
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
749
776
  # @private
750
777
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -825,6 +852,20 @@ module Google
825
852
  end
826
853
  end
827
854
 
855
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideRequest
856
+ # @private
857
+ class Representation < Google::Apis::Core::JsonRepresentation
858
+ property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
859
+
860
+ end
861
+ end
862
+
863
+ class GoogleCloudRecaptchaenterpriseV1RemoveIpOverrideResponse
864
+ # @private
865
+ class Representation < Google::Apis::Core::JsonRepresentation
866
+ end
867
+ end
868
+
828
869
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
829
870
  # @private
830
871
  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.54.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-08-18 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.54.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: []