google-apis-recaptchaenterprise_v1 0.14.0 → 0.15.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: 5bec9c269f94534e15a45e02f13365933f4caf5908f9adeff5a4334245c32e2c
4
- data.tar.gz: efbe562cec9434b31f0b5dceba7aeab7726d7d06d9afa7c8375e202facd1697a
3
+ metadata.gz: 29feda13dd2a4b475aafddc0aa602061d1e14f8e521216ce084a4fed388aa0dc
4
+ data.tar.gz: 1f15caef4b1eb864d24dd3cd9666da092e0d3923473744d447e2d2a298da9a49
5
5
  SHA512:
6
- metadata.gz: 26fc41316219f4a9c6550f3529062f9e8c021cf9ef3b65c78082d04da9284385b18231c294eb033d14e7e21f5c7c16eadbc7bfae4b8b12da8f69c990e77f1a07
7
- data.tar.gz: 32c66ea50477191ea746ae834f6213a67b0759dce031b230229183917a5b5fe368a632ed76767f7a16bff1bc40a0057eec649228a382b77ed15eddb6d128a0eb
6
+ metadata.gz: 8a8411d709726759233172967b5cc93732566ff840cf59e40df4a3c18a869ea5f517d7c7e58a2210d4738a81e9c31f6b314de873a107a2243a1cb3d97fc716d1
7
+ data.tar.gz: 70d23d5ab5c4859c0521a99f9ef0b5b53bf6f9d386cec781046afbdde55b79a6fc03331406b228d173da63be415659fa4918d46c90daa0bbc4a54504427c7d0f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.15.0 (2022-05-10)
4
+
5
+ * Regenerated from discovery document revision 20220505
6
+
3
7
  ### v0.14.0 (2022-03-22)
4
8
 
5
9
  * Regenerated from discovery document revision 20220319
@@ -537,6 +537,28 @@ module Google
537
537
  end
538
538
  end
539
539
 
540
+ # Secret key used in legacy reCAPTCHA only. Should be used when integrating with
541
+ # a 3rd party which is still using legacy reCAPTCHA.
542
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
543
+ include Google::Apis::Core::Hashable
544
+
545
+ # The secret key (also known as shared secret) authorizes communication between
546
+ # your application backend and the reCAPTCHA Enterprise server to create an
547
+ # assessment. The secret key needs to be kept safe for security purposes.
548
+ # Corresponds to the JSON property `legacySecretKey`
549
+ # @return [String]
550
+ attr_accessor :legacy_secret_key
551
+
552
+ def initialize(**args)
553
+ update!(**args)
554
+ end
555
+
556
+ # Update properties of this object
557
+ def update!(**args)
558
+ @legacy_secret_key = args[:legacy_secret_key] if args.key?(:legacy_secret_key)
559
+ end
560
+ end
561
+
540
562
  # Risk analysis result for an event.
541
563
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
542
564
  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.14.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220319"
25
+ REVISION = "20220505"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -333,6 +339,13 @@ module Google
333
339
  end
334
340
  end
335
341
 
342
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ property :legacy_secret_key, as: 'legacySecretKey'
346
+ end
347
+ end
348
+
336
349
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
337
350
  # @private
338
351
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -360,6 +360,39 @@ module Google
360
360
  execute_or_queue_command(command, &block)
361
361
  end
362
362
 
363
+ # Returns the secret key related to the specified public key. You should use the
364
+ # legacy secret key only if you are integrating with a 3rd party using the
365
+ # legacy reCAPTCHA instead of reCAPTCHA Enterprise.
366
+ # @param [String] key
367
+ # Required. The public key name linked to the requested secret key , in the
368
+ # format "projects/`project`/keys/`key`".
369
+ # @param [String] fields
370
+ # Selector specifying which fields to include in a partial response.
371
+ # @param [String] quota_user
372
+ # Available to use for quota purposes for server-side applications. Can be any
373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [Google::Apis::RequestOptions] options
375
+ # Request-specific options
376
+ #
377
+ # @yield [result, err] Result & error if block supplied
378
+ # @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse] parsed result object
379
+ # @yieldparam err [StandardError] error object if request failed
380
+ #
381
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse]
382
+ #
383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386
+ def retrieve_project_key_legacy_secret_key(key, fields: nil, quota_user: nil, options: nil, &block)
387
+ command = make_simple_command(:get, 'v1/{+key}:retrieveLegacySecretKey', options)
388
+ command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse::Representation
389
+ command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
390
+ command.params['key'] = key unless key.nil?
391
+ command.query['fields'] = fields unless fields.nil?
392
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
393
+ execute_or_queue_command(command, &block)
394
+ end
395
+
363
396
  # Search group memberships related to a given account.
364
397
  # @param [String] project
365
398
  # Required. The name of the project to search related account group memberships
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.14.0
4
+ version: 0.15.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: 2022-03-28 00:00:00.000000000 Z
11
+ date: 2022-05-16 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.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.15.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: []