google-apis-recaptchaenterprise_v1 0.15.0 → 0.18.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: 29feda13dd2a4b475aafddc0aa602061d1e14f8e521216ce084a4fed388aa0dc
4
- data.tar.gz: 1f15caef4b1eb864d24dd3cd9666da092e0d3923473744d447e2d2a298da9a49
3
+ metadata.gz: b89be5a999de559b89e37ea3efae37cf1a717b120eaa6fef5cafcc10a150b592
4
+ data.tar.gz: 5b13286c7f614974c300c59a065d4790f1b191592b5c68b25a6353be8e267944
5
5
  SHA512:
6
- metadata.gz: 8a8411d709726759233172967b5cc93732566ff840cf59e40df4a3c18a869ea5f517d7c7e58a2210d4738a81e9c31f6b314de873a107a2243a1cb3d97fc716d1
7
- data.tar.gz: 70d23d5ab5c4859c0521a99f9ef0b5b53bf6f9d386cec781046afbdde55b79a6fc03331406b228d173da63be415659fa4918d46c90daa0bbc4a54504427c7d0f
6
+ metadata.gz: 8aef4d2cdc4421a9a23f880b5410d019a7df431f445cd4cb75a581a6c99900e97dc7dcab4efc79c0133ea25b959a46a6c0c8538418cfd9e1b329cd50d4969459
7
+ data.tar.gz: e364f139d29fb21b784e15dd884fc9be0e7185a8ee58ed7ee575ff41f7389d8b265df386d218b62a2fd0da82325722ee8ec59c20400ba15fdddef626a9611f0c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.18.0 (2022-06-07)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+
7
+ ### v0.17.0 (2022-05-25)
8
+
9
+ * Regenerated from discovery document revision 20220522
10
+
11
+ ### v0.16.0 (2022-05-17)
12
+
13
+ * Regenerated from discovery document revision 20220513
14
+
3
15
  ### v0.15.0 (2022-05-10)
4
16
 
5
17
  * Regenerated from discovery document revision 20220505
@@ -140,6 +140,11 @@ module Google
140
140
  # @return [String]
141
141
  attr_accessor :name
142
142
 
143
+ # Private password leak verification info.
144
+ # Corresponds to the JSON property `privatePasswordLeakVerification`
145
+ # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification]
146
+ attr_accessor :private_password_leak_verification
147
+
143
148
  # Risk analysis result for an event.
144
149
  # Corresponds to the JSON property `riskAnalysis`
145
150
  # @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis]
@@ -159,6 +164,7 @@ module Google
159
164
  @account_defender_assessment = args[:account_defender_assessment] if args.key?(:account_defender_assessment)
160
165
  @event = args[:event] if args.key?(:event)
161
166
  @name = args[:name] if args.key?(:name)
167
+ @private_password_leak_verification = args[:private_password_leak_verification] if args.key?(:private_password_leak_verification)
162
168
  @risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
163
169
  @token_properties = args[:token_properties] if args.key?(:token_properties)
164
170
  end
@@ -488,6 +494,54 @@ module Google
488
494
  end
489
495
  end
490
496
 
497
+ # Private password leak verification info.
498
+ class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
499
+ include Google::Apis::Core::Hashable
500
+
501
+ # Output only. List of prefixes of the encrypted potential password leaks that
502
+ # matched the given parameters. They should be compared with the client-side
503
+ # decryption prefix of `reencrypted_user_credentials_hash`
504
+ # Corresponds to the JSON property `encryptedLeakMatchPrefixes`
505
+ # @return [Array<String>]
506
+ attr_accessor :encrypted_leak_match_prefixes
507
+
508
+ # Optional. Encrypted Scrypt hash of the canonicalized username+password. It is
509
+ # re-encrypted by the server and returned through `
510
+ # reencrypted_user_credentials_hash`.
511
+ # Corresponds to the JSON property `encryptedUserCredentialsHash`
512
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
513
+ # @return [String]
514
+ attr_accessor :encrypted_user_credentials_hash
515
+
516
+ # Optional. Exactly 26-bit prefix of the SHA-256 hash of the canonicalized
517
+ # username. It is used to look up password leaks associated with that hash
518
+ # prefix.
519
+ # Corresponds to the JSON property `lookupHashPrefix`
520
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
521
+ # @return [String]
522
+ attr_accessor :lookup_hash_prefix
523
+
524
+ # Output only. Corresponds to the re-encryption of the `
525
+ # encrypted_user_credentials_hash` field. Used to match potential password leaks
526
+ # within `encrypted_leak_match_prefixes`.
527
+ # Corresponds to the JSON property `reencryptedUserCredentialsHash`
528
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
529
+ # @return [String]
530
+ attr_accessor :reencrypted_user_credentials_hash
531
+
532
+ def initialize(**args)
533
+ update!(**args)
534
+ end
535
+
536
+ # Update properties of this object
537
+ def update!(**args)
538
+ @encrypted_leak_match_prefixes = args[:encrypted_leak_match_prefixes] if args.key?(:encrypted_leak_match_prefixes)
539
+ @encrypted_user_credentials_hash = args[:encrypted_user_credentials_hash] if args.key?(:encrypted_user_credentials_hash)
540
+ @lookup_hash_prefix = args[:lookup_hash_prefix] if args.key?(:lookup_hash_prefix)
541
+ @reencrypted_user_credentials_hash = args[:reencrypted_user_credentials_hash] if args.key?(:reencrypted_user_credentials_hash)
542
+ end
543
+ end
544
+
491
545
  # A group of related accounts.
492
546
  class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
493
547
  include Google::Apis::Core::Hashable
@@ -537,28 +591,6 @@ module Google
537
591
  end
538
592
  end
539
593
 
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
-
562
594
  # Risk analysis result for an event.
563
595
  class GoogleCloudRecaptchaenterpriseV1RiskAnalysis
564
596
  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.15.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220505"
25
+ REVISION = "20220522"
26
26
  end
27
27
  end
28
28
  end
@@ -106,19 +106,19 @@ module Google
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
109
+ class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
115
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
121
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
@@ -222,6 +222,8 @@ module Google
222
222
  property :event, as: 'event', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Event::Representation
223
223
 
224
224
  property :name, as: 'name'
225
+ property :private_password_leak_verification, as: 'privatePasswordLeakVerification', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification::Representation
226
+
225
227
  property :risk_analysis, as: 'riskAnalysis', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis::Representation
226
228
 
227
229
  property :token_properties, as: 'tokenProperties', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TokenProperties::Representation
@@ -324,25 +326,28 @@ module Google
324
326
  end
325
327
  end
326
328
 
327
- class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
329
+ class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
328
330
  # @private
329
331
  class Representation < Google::Apis::Core::JsonRepresentation
330
- property :name, as: 'name'
332
+ collection :encrypted_leak_match_prefixes, as: 'encryptedLeakMatchPrefixes'
333
+ property :encrypted_user_credentials_hash, :base64 => true, as: 'encryptedUserCredentialsHash'
334
+ property :lookup_hash_prefix, :base64 => true, as: 'lookupHashPrefix'
335
+ property :reencrypted_user_credentials_hash, :base64 => true, as: 'reencryptedUserCredentialsHash'
331
336
  end
332
337
  end
333
338
 
334
- class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
339
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
335
340
  # @private
336
341
  class Representation < Google::Apis::Core::JsonRepresentation
337
- property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
338
342
  property :name, as: 'name'
339
343
  end
340
344
  end
341
345
 
342
- class GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
346
+ class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroupMembership
343
347
  # @private
344
348
  class Representation < Google::Apis::Core::JsonRepresentation
345
- property :legacy_secret_key, as: 'legacySecretKey'
349
+ property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
350
+ property :name, as: 'name'
346
351
  end
347
352
  end
348
353
 
@@ -360,39 +360,6 @@ 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
-
396
363
  # Search group memberships related to a given account.
397
364
  # @param [String] project
398
365
  # 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.15.0
4
+ version: 0.18.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-05-16 00:00:00.000000000 Z
11
+ date: 2022-06-13 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.4'
19
+ version: '0.5'
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.4'
29
+ version: '0.5'
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.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.18.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for reCAPTCHA Enterprise API V1