google-apis-recaptchaenterprise_v1 0.19.0 → 0.20.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: 0fae6dade0653f180f2edfcfd42740c39686b5b150354a4c97068138f4ac997d
4
- data.tar.gz: 0cbb21563a31907b09660b2f8cbd25599001817517956215d75abdf6934a3d84
3
+ metadata.gz: 10e728de67fac4dac2ca0314252b284416de3225b99e5f2c025a84aee87d4f7f
4
+ data.tar.gz: ad096c190e3eff84ea68001445c3e665aad9f25f185a825b5a1befe654dbc19c
5
5
  SHA512:
6
- metadata.gz: bd2a225f32f66ed2db8c913c16305da89a9eb74cac0f1f90fb9185713d6ae43c33b606c44b28eef4c3a5405fffb3c8704b4e39a6999fa8428303e893db146aa3
7
- data.tar.gz: 6f79ce88bfb10e01a46b178462a0352a9c65a71abdf53c1ad00e85c812ac362b46977c666f1f470dec0bc054019a9e740f0c3d2dffa6d8ad528c4361a68372cb
6
+ metadata.gz: 23b90050e71e4affc738adbacd55758ca93f14d6614f87c9cbf1efd28447793be9ad0ba724f0c0fead9cc4d8cf13f282c1c0ccf750e08583342c47e4f0c33ce1
7
+ data.tar.gz: b3ae774f6fe4604064034d7922aff960e534b882ef28cfd2ccb31f5ba7703d7e2b054d90e5337131794ec3106620541f168a7b8a71127023da8ae3e4824966c0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.20.0 (2022-07-01)
4
+
5
+ * Regenerated using generator version 0.8.0
6
+ * Regenerated from discovery document revision 20220625
7
+
3
8
  ### v0.19.0 (2022-06-18)
4
9
 
5
10
  * Regenerated using generator version 0.7.0
@@ -591,6 +591,28 @@ module Google
591
591
  end
592
592
  end
593
593
 
594
+ # Secret key used in legacy reCAPTCHA only. Should be used when integrating with
595
+ # a 3rd party which is still using legacy reCAPTCHA.
596
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
597
+ include Google::Apis::Core::Hashable
598
+
599
+ # The secret key (also known as shared secret) authorizes communication between
600
+ # your application backend and the reCAPTCHA Enterprise server to create an
601
+ # assessment. The secret key needs to be kept safe for security purposes.
602
+ # Corresponds to the JSON property `legacySecretKey`
603
+ # @return [String]
604
+ attr_accessor :legacy_secret_key
605
+
606
+ def initialize(**args)
607
+ update!(**args)
608
+ end
609
+
610
+ # Update properties of this object
611
+ def update!(**args)
612
+ @legacy_secret_key = args[:legacy_secret_key] if args.key?(:legacy_secret_key)
613
+ end
614
+ end
615
+
594
616
  # Risk analysis result for an event.
595
617
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
596
618
  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.19.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.0"
22
+ GENERATOR_VERSION = "0.8.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220522"
25
+ REVISION = "20220625"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,12 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
127
133
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
128
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
135
 
@@ -351,6 +357,13 @@ module Google
351
357
  end
352
358
  end
353
359
 
360
+ class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
361
+ # @private
362
+ class Representation < Google::Apis::Core::JsonRepresentation
363
+ property :legacy_secret_key, as: 'legacySecretKey'
364
+ end
365
+ end
366
+
354
367
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
355
368
  # @private
356
369
  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.19.0
4
+ version: 0.20.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-06-20 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.20.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: []