google-apis-recaptchaenterprise_v1 0.52.0 → 0.54.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eabda2bae72ba1b1692f2f0a00cc062a13159f1eb8864418379423fd2aee21ae
4
- data.tar.gz: af1beb3945c0a3580f0b6e3ba077bfad2c346dfec59056a6153cd278c17c4f76
3
+ metadata.gz: 58c96194deed3999d87072b6be7f37bb4c6943580f49b2c7103f15a82a402044
4
+ data.tar.gz: 231121c702a07bcb509d880b6218d8558ae93bd585b858ebc1a561af3ffd4a34
5
5
  SHA512:
6
- metadata.gz: 50872634a53cec89dc0861a1747c707f92c0f9ba997adb7451ec10e43fb43cb90e64468a73b46dbc95d20f61937e39d228a397bfec768f4974d380e50ca74bc7
7
- data.tar.gz: ad29ea9b4a3412f12bd908c53d8cc529a1b27e4b31cb58925438cdfff299eb389067c4345fb0a4cab83a522c063fc678593d992a3c7165961351d46d7cecf6f2
6
+ metadata.gz: 428e41008d56b0340b95407f70fb8fa628a1508104e7dc8a9d0c2ec7d34f71dab440e4965b76f1ab8b8249d94ee5b316903880d40231267c70ec7df6b33b7eef
7
+ data.tar.gz: 181f0a97de0618b4a0fc3c039fac9fe2d75991bcf3395d2433808ad5901302ae4428873fd279f3930dfb2900c6ce9f905fdaaec36e814c9b5882d7d8ac6fa7bc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ### v0.53.0 (2024-08-11)
8
+
9
+ * Regenerated from discovery document revision 20240804
10
+
3
11
  ### v0.52.0 (2024-08-04)
4
12
 
5
13
  * Regenerated from discovery document revision 20240728
@@ -455,7 +455,8 @@ 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 an Express site key.
458
+ # token. If enabled, `site_key` must reference a SCORE key with WAF feature set
459
+ # to EXPRESS.
459
460
  # Corresponds to the JSON property `express`
460
461
  # @return [Boolean]
461
462
  attr_accessor :express
@@ -562,19 +563,6 @@ module Google
562
563
  end
563
564
  end
564
565
 
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
-
578
566
  # An individual action. Each action represents what to do if a policy matches.
579
567
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
580
568
  include Google::Apis::Core::Hashable
@@ -1084,11 +1072,6 @@ module Google
1084
1072
  # @return [String]
1085
1073
  attr_accessor :display_name
1086
1074
 
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
-
1092
1075
  # Settings specific to keys that can be used by iOS apps.
1093
1076
  # Corresponds to the JSON property `iosSettings`
1094
1077
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings]
@@ -1130,7 +1113,6 @@ module Google
1130
1113
  @android_settings = args[:android_settings] if args.key?(:android_settings)
1131
1114
  @create_time = args[:create_time] if args.key?(:create_time)
1132
1115
  @display_name = args[:display_name] if args.key?(:display_name)
1133
- @express_settings = args[:express_settings] if args.key?(:express_settings)
1134
1116
  @ios_settings = args[:ios_settings] if args.key?(:ios_settings)
1135
1117
  @labels = args[:labels] if args.key?(:labels)
1136
1118
  @name = args[:name] if args.key?(:name)
@@ -1166,6 +1148,32 @@ module Google
1166
1148
  end
1167
1149
  end
1168
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
+
1169
1177
  # Response to request to list keys in a project.
1170
1178
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
1171
1179
  include Google::Apis::Core::Hashable
@@ -1436,6 +1444,38 @@ module Google
1436
1444
  end
1437
1445
  end
1438
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
+
1439
1479
  # The reorder firewall policies request message.
1440
1480
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
1441
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.52.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 = "20240728"
25
+ REVISION = "20240811"
26
26
  end
27
27
  end
28
28
  end
@@ -100,12 +100,6 @@ 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
-
109
103
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
110
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
105
 
@@ -226,6 +220,12 @@ module Google
226
220
  include Google::Apis::Core::JsonObjectSupport
227
221
  end
228
222
 
223
+ class GoogleCloudRecaptchaenterpriseV1ListIpOverridesResponse
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
229
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
230
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
231
 
@@ -280,6 +280,18 @@ module Google
280
280
  include Google::Apis::Core::JsonObjectSupport
281
281
  end
282
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
+
283
295
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
284
296
  class Representation < Google::Apis::Core::JsonRepresentation; end
285
297
 
@@ -566,12 +578,6 @@ module Google
566
578
  end
567
579
  end
568
580
 
569
- class GoogleCloudRecaptchaenterpriseV1ExpressKeySettings
570
- # @private
571
- class Representation < Google::Apis::Core::JsonRepresentation
572
- end
573
- end
574
-
575
581
  class GoogleCloudRecaptchaenterpriseV1FirewallAction
576
582
  # @private
577
583
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -735,8 +741,6 @@ module Google
735
741
 
736
742
  property :create_time, as: 'createTime'
737
743
  property :display_name, as: 'displayName'
738
- property :express_settings, as: 'expressSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ExpressKeySettings::Representation
739
-
740
744
  property :ios_settings, as: 'iosSettings', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IosKeySettings::Representation
741
745
 
742
746
  hash :labels, as: 'labels'
@@ -759,6 +763,15 @@ module Google
759
763
  end
760
764
  end
761
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
+
762
775
  class GoogleCloudRecaptchaenterpriseV1ListKeysResponse
763
776
  # @private
764
777
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -839,6 +852,20 @@ module Google
839
852
  end
840
853
  end
841
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
+
842
869
  class GoogleCloudRecaptchaenterpriseV1ReorderFirewallPoliciesRequest
843
870
  # @private
844
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.52.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-04 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.52.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: []