google-apis-recaptchaenterprise_v1 0.50.0 → 0.51.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: bdb527f549d76d29293fb395e9a0e0575f71aaea3531183b3197e5c3e64e2d65
4
- data.tar.gz: ac1a26139710b7d5c02129450c4c40e25e3345d796ea51c1a54511d9a5fa7964
3
+ metadata.gz: e5b86b64b55218836a3efb8d52d5689088765e64104585d51b37ab0d2fe219a4
4
+ data.tar.gz: 8a0fac359d6e2bf556fa7c6b757b3d80251f38ef94dc658e5443b8fac702a08a
5
5
  SHA512:
6
- metadata.gz: a198e4bda1df9abf4efe8de762a41e0a1cdbf155c85e2af2ceeb568d56f3efcfb67cc9acd180c689df7bfb5851ad8cc56ec1f22608e4dabf5ba8c98a3dcb1874
7
- data.tar.gz: a4b5f7ef2eb795bb07d03906f3781f93e8d7397898906976a3598a60f147a54c490cce6ed3bf43cd1286de628a44f188ca33f19c0b42dd9db1c564f8500ffc22
6
+ metadata.gz: 5513868133c5357bc804326c8c25ee65057c5253777c6c2d503bc99b72e1b57609b070de60947b07b02625abe0f20bc396aab6f3e0554920d06c1d9844a91cde
7
+ data.tar.gz: 10d4d045a4aa61333d7c71612cb420711e0ba5f2c88cef52bbb4b8b44a5161aed4ea0b1a5f2225942a190dd4220bee4e83f99597024e5a881e6649c5b5ebec26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.51.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240721
6
+
3
7
  ### v0.50.0 (2024-07-25)
4
8
 
5
9
  * Regenerated from discovery document revision 20240713
@@ -80,6 +80,38 @@ module Google
80
80
  end
81
81
  end
82
82
 
83
+ # The AddIpOverride request message.
84
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # Information about the IP or IP range override.
88
+ # Corresponds to the JSON property `ipOverrideData`
89
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData]
90
+ attr_accessor :ip_override_data
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @ip_override_data = args[:ip_override_data] if args.key?(:ip_override_data)
99
+ end
100
+ end
101
+
102
+ # Response for AddIpOverride.
103
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
104
+ include Google::Apis::Core::Hashable
105
+
106
+ def initialize(**args)
107
+ update!(**args)
108
+ end
109
+
110
+ # Update properties of this object
111
+ def update!(**args)
112
+ end
113
+ end
114
+
83
115
  # Settings specific to keys that can be used by Android apps.
84
116
  class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
85
117
  include Google::Apis::Core::Hashable
@@ -965,6 +997,35 @@ module Google
965
997
  end
966
998
  end
967
999
 
1000
+ # Information about the IP or IP range override.
1001
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
1002
+ include Google::Apis::Core::Hashable
1003
+
1004
+ # Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP
1005
+ # override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP
1006
+ # override must be a public IP address. Example of IPv4: 168.192.5.6 Example of
1007
+ # IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.
1008
+ # 192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48
1009
+ # Corresponds to the JSON property `ip`
1010
+ # @return [String]
1011
+ attr_accessor :ip
1012
+
1013
+ # Required. Describes the type of IP override.
1014
+ # Corresponds to the JSON property `overrideType`
1015
+ # @return [String]
1016
+ attr_accessor :override_type
1017
+
1018
+ def initialize(**args)
1019
+ update!(**args)
1020
+ end
1021
+
1022
+ # Update properties of this object
1023
+ def update!(**args)
1024
+ @ip = args[:ip] if args.key?(:ip)
1025
+ @override_type = args[:override_type] if args.key?(:override_type)
1026
+ end
1027
+ end
1028
+
968
1029
  # A key used to identify and configure applications (web and/or mobile) that use
969
1030
  # reCAPTCHA Enterprise.
970
1031
  class GoogleCloudRecaptchaenterpriseV1Key
@@ -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.50.0"
19
+ GEM_VERSION = "0.51.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240713"
25
+ REVISION = "20240721"
26
26
  end
27
27
  end
28
28
  end
@@ -34,6 +34,18 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
@@ -190,6 +202,12 @@ module Google
190
202
  include Google::Apis::Core::JsonObjectSupport
191
203
  end
192
204
 
205
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
193
211
  class GoogleCloudRecaptchaenterpriseV1Key
194
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
213
 
@@ -412,6 +430,20 @@ module Google
412
430
  end
413
431
  end
414
432
 
433
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
437
+
438
+ end
439
+ end
440
+
441
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ end
445
+ end
446
+
415
447
  class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
416
448
  # @private
417
449
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -672,6 +704,14 @@ module Google
672
704
  end
673
705
  end
674
706
 
707
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
708
+ # @private
709
+ class Representation < Google::Apis::Core::JsonRepresentation
710
+ property :ip, as: 'ip'
711
+ property :override_type, as: 'overrideType'
712
+ end
713
+ end
714
+
675
715
  class GoogleCloudRecaptchaenterpriseV1Key
676
716
  # @private
677
717
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -330,6 +330,42 @@ module Google
330
330
  execute_or_queue_command(command, &block)
331
331
  end
332
332
 
333
+ # Adds an IP override to a key. The following restrictions hold: * The maximum
334
+ # number of IP overrides per key is 100. * For any conflict (such as IP already
335
+ # exists or IP part of an existing IP range), an error will be returned.
336
+ # @param [String] name
337
+ # Required. The name of the key to which the IP override is added, in the format
338
+ # `projects/`project`/keys/`key``.
339
+ # @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest] google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
340
+ # @param [String] fields
341
+ # Selector specifying which fields to include in a partial response.
342
+ # @param [String] quota_user
343
+ # Available to use for quota purposes for server-side applications. Can be any
344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
345
+ # @param [Google::Apis::RequestOptions] options
346
+ # Request-specific options
347
+ #
348
+ # @yield [result, err] Result & error if block supplied
349
+ # @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse] parsed result object
350
+ # @yieldparam err [StandardError] error object if request failed
351
+ #
352
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse]
353
+ #
354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
357
+ def add_project_key_ip_override(name, google_cloud_recaptchaenterprise_v1_add_ip_override_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
358
+ command = make_simple_command(:post, 'v1/{+name}:addIpOverride', options)
359
+ command.request_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest::Representation
360
+ command.request_object = google_cloud_recaptchaenterprise_v1_add_ip_override_request_object
361
+ command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse::Representation
362
+ command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
363
+ command.params['name'] = name unless name.nil?
364
+ command.query['fields'] = fields unless fields.nil?
365
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
366
+ execute_or_queue_command(command, &block)
367
+ end
368
+
333
369
  # Creates a new reCAPTCHA Enterprise key.
334
370
  # @param [String] parent
335
371
  # Required. The name of the project in which the key will be created, in the
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-recaptchaenterprise_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.0
4
+ version: 0.51.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -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.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.51.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: []