google-apis-recaptchaenterprise_v1 0.50.0 → 0.52.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: eabda2bae72ba1b1692f2f0a00cc062a13159f1eb8864418379423fd2aee21ae
4
+ data.tar.gz: af1beb3945c0a3580f0b6e3ba077bfad2c346dfec59056a6153cd278c17c4f76
5
5
  SHA512:
6
- metadata.gz: a198e4bda1df9abf4efe8de762a41e0a1cdbf155c85e2af2ceeb568d56f3efcfb67cc9acd180c689df7bfb5851ad8cc56ec1f22608e4dabf5ba8c98a3dcb1874
7
- data.tar.gz: a4b5f7ef2eb795bb07d03906f3781f93e8d7397898906976a3598a60f147a54c490cce6ed3bf43cd1286de628a44f188ca33f19c0b42dd9db1c564f8500ffc22
6
+ metadata.gz: 50872634a53cec89dc0861a1747c707f92c0f9ba997adb7451ec10e43fb43cb90e64468a73b46dbc95d20f61937e39d228a397bfec768f4974d380e50ca74bc7
7
+ data.tar.gz: ad29ea9b4a3412f12bd908c53d8cc529a1b27e4b31cb58925438cdfff299eb389067c4345fb0a4cab83a522c063fc678593d992a3c7165961351d46d7cecf6f2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.52.0 (2024-08-04)
4
+
5
+ * Regenerated from discovery document revision 20240728
6
+ * Regenerated using generator version 0.15.1
7
+
8
+ ### v0.51.0 (2024-07-25)
9
+
10
+ * Regenerated from discovery document revision 20240721
11
+
3
12
  ### v0.50.0 (2024-07-25)
4
13
 
5
14
  * 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
@@ -227,6 +259,12 @@ module Google
227
259
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo]
228
260
  attr_accessor :account_verification
229
261
 
262
+ # The environment creating the assessment. This describes your environment (the
263
+ # system invoking CreateAssessment), NOT the environment of your user.
264
+ # Corresponds to the JSON property `assessmentEnvironment`
265
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment]
266
+ attr_accessor :assessment_environment
267
+
230
268
  # The event being assessed.
231
269
  # Corresponds to the JSON property `event`
232
270
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event]
@@ -281,6 +319,7 @@ module Google
281
319
  def update!(**args)
282
320
  @account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
283
321
  @account_verification = args[:account_verification] if args.key?(:account_verification)
322
+ @assessment_environment = args[:assessment_environment] if args.key?(:assessment_environment)
284
323
  @event = args[:event] if args.key?(:event)
285
324
  @firewall_policy_assessment = args[:firewall_policy_assessment] if args.key?(:firewall_policy_assessment)
286
325
  @fraud_prevention_assessment = args[:fraud_prevention_assessment] if args.key?(:fraud_prevention_assessment)
@@ -293,6 +332,37 @@ module Google
293
332
  end
294
333
  end
295
334
 
335
+ # The environment creating the assessment. This describes your environment (the
336
+ # system invoking CreateAssessment), NOT the environment of your user.
337
+ class GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment
338
+ include Google::Apis::Core::Hashable
339
+
340
+ # Optional. Identifies the client module initiating the CreateAssessment request.
341
+ # This can be the link to the client module's project. Examples include: - "
342
+ # github.com/GoogleCloudPlatform/recaptcha-enterprise-google-tag-manager" - "
343
+ # cloud.google.com/recaptcha/docs/implement-waf-akamai" - "cloud.google.com/
344
+ # recaptcha/docs/implement-waf-cloudflare" - "wordpress.org/plugins/recaptcha-
345
+ # something"
346
+ # Corresponds to the JSON property `client`
347
+ # @return [String]
348
+ attr_accessor :client
349
+
350
+ # Optional. The version of the client module. For example, "1.0.0".
351
+ # Corresponds to the JSON property `version`
352
+ # @return [String]
353
+ attr_accessor :version
354
+
355
+ def initialize(**args)
356
+ update!(**args)
357
+ end
358
+
359
+ # Update properties of this object
360
+ def update!(**args)
361
+ @client = args[:client] if args.key?(:client)
362
+ @version = args[:version] if args.key?(:version)
363
+ end
364
+ end
365
+
296
366
  # Metrics related to challenges.
297
367
  class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
298
368
  include Google::Apis::Core::Hashable
@@ -965,6 +1035,35 @@ module Google
965
1035
  end
966
1036
  end
967
1037
 
1038
+ # Information about the IP or IP range override.
1039
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
1040
+ include Google::Apis::Core::Hashable
1041
+
1042
+ # Required. The IP address to override (can be IPv4, IPv6 or CIDR). The IP
1043
+ # override must be a valid IPv4 or IPv6 address, or a CIDR range. The IP
1044
+ # override must be a public IP address. Example of IPv4: 168.192.5.6 Example of
1045
+ # IPv6: 2001:0000:130F:0000:0000:09C0:876A:130B Example of IPv4 with CIDR: 168.
1046
+ # 192.5.0/24 Example of IPv6 with CIDR: 2001:0DB8:1234::/48
1047
+ # Corresponds to the JSON property `ip`
1048
+ # @return [String]
1049
+ attr_accessor :ip
1050
+
1051
+ # Required. Describes the type of IP override.
1052
+ # Corresponds to the JSON property `overrideType`
1053
+ # @return [String]
1054
+ attr_accessor :override_type
1055
+
1056
+ def initialize(**args)
1057
+ update!(**args)
1058
+ end
1059
+
1060
+ # Update properties of this object
1061
+ def update!(**args)
1062
+ @ip = args[:ip] if args.key?(:ip)
1063
+ @override_type = args[:override_type] if args.key?(:override_type)
1064
+ end
1065
+ end
1066
+
968
1067
  # A key used to identify and configure applications (web and/or mobile) that use
969
1068
  # reCAPTCHA Enterprise.
970
1069
  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.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.0"
22
+ GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240713"
25
+ REVISION = "20240728"
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
 
@@ -64,6 +76,12 @@ module Google
64
76
  include Google::Apis::Core::JsonObjectSupport
65
77
  end
66
78
 
79
+ class GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
67
85
  class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
68
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
87
 
@@ -190,6 +208,12 @@ module Google
190
208
  include Google::Apis::Core::JsonObjectSupport
191
209
  end
192
210
 
211
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
212
+ class Representation < Google::Apis::Core::JsonRepresentation; end
213
+
214
+ include Google::Apis::Core::JsonObjectSupport
215
+ end
216
+
193
217
  class GoogleCloudRecaptchaenterpriseV1Key
194
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
195
219
 
@@ -412,6 +436,20 @@ module Google
412
436
  end
413
437
  end
414
438
 
439
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideRequest
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :ip_override_data, as: 'ipOverrideData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1IpOverrideData::Representation
443
+
444
+ end
445
+ end
446
+
447
+ class GoogleCloudRecaptchaenterpriseV1AddIpOverrideResponse
448
+ # @private
449
+ class Representation < Google::Apis::Core::JsonRepresentation
450
+ end
451
+ end
452
+
415
453
  class GoogleCloudRecaptchaenterpriseV1AndroidKeySettings
416
454
  # @private
417
455
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -455,6 +493,8 @@ module Google
455
493
 
456
494
  property :account_verification, as: 'accountVerification', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountVerificationInfo::Representation
457
495
 
496
+ property :assessment_environment, as: 'assessmentEnvironment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment::Representation
497
+
458
498
  property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
459
499
 
460
500
  property :firewall_policy_assessment, as: 'firewallPolicyAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicyAssessment::Representation
@@ -475,6 +515,14 @@ module Google
475
515
  end
476
516
  end
477
517
 
518
+ class GoogleCloudRecaptchaenterpriseV1AssessmentEnvironment
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :client, as: 'client'
522
+ property :version, as: 'version'
523
+ end
524
+ end
525
+
478
526
  class GoogleCloudRecaptchaenterpriseV1ChallengeMetrics
479
527
  # @private
480
528
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -672,6 +720,14 @@ module Google
672
720
  end
673
721
  end
674
722
 
723
+ class GoogleCloudRecaptchaenterpriseV1IpOverrideData
724
+ # @private
725
+ class Representation < Google::Apis::Core::JsonRepresentation
726
+ property :ip, as: 'ip'
727
+ property :override_type, as: 'overrideType'
728
+ end
729
+ end
730
+
675
731
  class GoogleCloudRecaptchaenterpriseV1Key
676
732
  # @private
677
733
  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,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.50.0
4
+ version: 0.52.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-07-25 00:00:00.000000000 Z
11
+ date: 2024-08-04 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.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.52.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: []