google-apis-recaptchaenterprise_v1 0.18.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +40 -18
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +3 -3
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +13 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +40 -8
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b2d47727b3a0759965d0d6441f3c7cca4efc05e0446953d694cf9e39438095b
|
4
|
+
data.tar.gz: 5376b1568446ae30a0c65a81a1b2dd480e9315571c587007da889939fc57bde1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2f537e3d274d8721431c4b6bd8c5ffa65fabcbeaeb7c6b576850ee58660f5e74ff42f9b64bc987b39371f8e2d555a764add1eed4a66ccdceb71afc22dc22b09
|
7
|
+
data.tar.gz: aa65430e987d84c5cd1ea0707239ce3edac3a058f1878bfbe3ac3a6be4670d381ca8ac775016c5c40d438f5dc291546fe88cb202f7571db07acfa879f61dd86b
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Release history for google-apis-recaptchaenterprise_v1
|
2
2
|
|
3
|
+
### v0.21.0 (2022-08-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220730
|
6
|
+
* Regenerated using generator version 0.9.0
|
7
|
+
|
8
|
+
### v0.20.0 (2022-07-01)
|
9
|
+
|
10
|
+
* Regenerated using generator version 0.8.0
|
11
|
+
* Regenerated from discovery document revision 20220625
|
12
|
+
|
13
|
+
### v0.19.0 (2022-06-18)
|
14
|
+
|
15
|
+
* Regenerated using generator version 0.7.0
|
16
|
+
|
3
17
|
### v0.18.0 (2022-06-07)
|
4
18
|
|
5
19
|
* Regenerated using generator version 0.5.0
|
@@ -22,7 +22,7 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module RecaptchaenterpriseV1
|
24
24
|
|
25
|
-
# Account
|
25
|
+
# Account defender risk assessment.
|
26
26
|
class GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
@@ -79,11 +79,11 @@ module Google
|
|
79
79
|
# @return [String]
|
80
80
|
attr_accessor :annotation
|
81
81
|
|
82
|
-
# Optional.
|
83
|
-
#
|
84
|
-
#
|
85
|
-
#
|
86
|
-
#
|
82
|
+
# Optional. Unique stable hashed user identifier to apply to the assessment.
|
83
|
+
# This is an alternative to setting the hashed_account_id in CreateAssessment,
|
84
|
+
# for example when the account identifier is not yet known in the initial
|
85
|
+
# request. It is recommended that the identifier is hashed using hmac-sha256
|
86
|
+
# with stable secret.
|
87
87
|
# Corresponds to the JSON property `hashedAccountId`
|
88
88
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
89
89
|
# @return [String]
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
class GoogleCloudRecaptchaenterpriseV1Assessment
|
125
125
|
include Google::Apis::Core::Hashable
|
126
126
|
|
127
|
-
# Account
|
127
|
+
# Account defender risk assessment.
|
128
128
|
# Corresponds to the JSON property `accountDefenderAssessment`
|
129
129
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1AccountDefenderAssessment]
|
130
130
|
attr_accessor :account_defender_assessment
|
@@ -221,8 +221,8 @@ module Google
|
|
221
221
|
# @return [String]
|
222
222
|
attr_accessor :expected_action
|
223
223
|
|
224
|
-
# Optional.
|
225
|
-
#
|
224
|
+
# Optional. Unique stable hashed user identifier for the request. The identifier
|
225
|
+
# must be hashed using hmac-sha256 with stable secret.
|
226
226
|
# Corresponds to the JSON property `hashedAccountId`
|
227
227
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
228
228
|
# @return [String]
|
@@ -499,7 +499,7 @@ module Google
|
|
499
499
|
include Google::Apis::Core::Hashable
|
500
500
|
|
501
501
|
# Output only. List of prefixes of the encrypted potential password leaks that
|
502
|
-
# matched the given parameters. They
|
502
|
+
# matched the given parameters. They must be compared with the client-side
|
503
503
|
# decryption prefix of `reencrypted_user_credentials_hash`
|
504
504
|
# Corresponds to the JSON property `encryptedLeakMatchPrefixes`
|
505
505
|
# @return [Array<String>]
|
@@ -522,8 +522,8 @@ module Google
|
|
522
522
|
attr_accessor :lookup_hash_prefix
|
523
523
|
|
524
524
|
# Output only. Corresponds to the re-encryption of the `
|
525
|
-
# encrypted_user_credentials_hash` field.
|
526
|
-
# within `encrypted_leak_match_prefixes`.
|
525
|
+
# encrypted_user_credentials_hash` field. It is used to match potential password
|
526
|
+
# leaks within `encrypted_leak_match_prefixes`.
|
527
527
|
# Corresponds to the JSON property `reencryptedUserCredentialsHash`
|
528
528
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
529
529
|
# @return [String]
|
@@ -567,8 +567,8 @@ module Google
|
|
567
567
|
include Google::Apis::Core::Hashable
|
568
568
|
|
569
569
|
# The unique stable hashed user identifier of the member. The identifier
|
570
|
-
# corresponds to a `hashed_account_id` provided in a previous CreateAssessment
|
571
|
-
# or AnnotateAssessment call.
|
570
|
+
# corresponds to a `hashed_account_id` provided in a previous `CreateAssessment`
|
571
|
+
# or `AnnotateAssessment` call.
|
572
572
|
# Corresponds to the JSON property `hashedAccountId`
|
573
573
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
574
574
|
# @return [String]
|
@@ -591,6 +591,28 @@ module Google
|
|
591
591
|
end
|
592
592
|
end
|
593
593
|
|
594
|
+
# Secret key is used only in legacy reCAPTCHA. It must be used in a 3rd party
|
595
|
+
# integration with 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
|
@@ -671,15 +693,15 @@ module Google
|
|
671
693
|
|
672
694
|
# Optional. The unique stable hashed user identifier we should search
|
673
695
|
# connections to. The identifier should correspond to a `hashed_account_id`
|
674
|
-
# provided in a previous CreateAssessment or AnnotateAssessment call.
|
696
|
+
# provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
|
675
697
|
# Corresponds to the JSON property `hashedAccountId`
|
676
698
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
677
699
|
# @return [String]
|
678
700
|
attr_accessor :hashed_account_id
|
679
701
|
|
680
|
-
# Optional. The maximum number of groups to return. The service
|
681
|
-
# than this value. If unspecified, at most 50 groups
|
682
|
-
# maximum value is 1000; values above 1000
|
702
|
+
# Optional. The maximum number of groups to return. The service might return
|
703
|
+
# fewer than this value. If unspecified, at most 50 groups are returned. The
|
704
|
+
# maximum value is 1000; values above 1000 are coerced to 1000.
|
683
705
|
# Corresponds to the JSON property `pageSize`
|
684
706
|
# @return [Fixnum]
|
685
707
|
attr_accessor :page_size
|
@@ -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
|
+
GEM_VERSION = "0.21.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220730"
|
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,10 +360,42 @@ 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 must use the
|
364
|
+
# legacy secret key only in a 3rd party integration with legacy reCAPTCHA.
|
365
|
+
# @param [String] key
|
366
|
+
# Required. The public key name linked to the requested secret key in the format
|
367
|
+
# "projects/`project`/keys/`key`".
|
368
|
+
# @param [String] fields
|
369
|
+
# Selector specifying which fields to include in a partial response.
|
370
|
+
# @param [String] quota_user
|
371
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
372
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
373
|
+
# @param [Google::Apis::RequestOptions] options
|
374
|
+
# Request-specific options
|
375
|
+
#
|
376
|
+
# @yield [result, err] Result & error if block supplied
|
377
|
+
# @yieldparam result [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse] parsed result object
|
378
|
+
# @yieldparam err [StandardError] error object if request failed
|
379
|
+
#
|
380
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse]
|
381
|
+
#
|
382
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
383
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
384
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
385
|
+
def retrieve_project_key_legacy_secret_key(key, fields: nil, quota_user: nil, options: nil, &block)
|
386
|
+
command = make_simple_command(:get, 'v1/{+key}:retrieveLegacySecretKey', options)
|
387
|
+
command.response_representation = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse::Representation
|
388
|
+
command.response_class = Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RetrieveLegacySecretKeyResponse
|
389
|
+
command.params['key'] = key unless key.nil?
|
390
|
+
command.query['fields'] = fields unless fields.nil?
|
391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
392
|
+
execute_or_queue_command(command, &block)
|
393
|
+
end
|
394
|
+
|
363
395
|
# Search group memberships related to a given account.
|
364
396
|
# @param [String] project
|
365
397
|
# Required. The name of the project to search related account group memberships
|
366
|
-
# from
|
398
|
+
# from. Specify the project name in the following format: "projects/`project`".
|
367
399
|
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsRequest] google_cloud_recaptchaenterprise_v1_search_related_account_group_memberships_request_object
|
368
400
|
# @param [String] fields
|
369
401
|
# Selector specifying which fields to include in a partial response.
|
@@ -399,9 +431,9 @@ module Google
|
|
399
431
|
# Required. The name of the project to list related account groups from, in the
|
400
432
|
# format "projects/`project`".
|
401
433
|
# @param [Fixnum] page_size
|
402
|
-
# Optional. The maximum number of groups to return. The service
|
403
|
-
# than this value. If unspecified, at most 50 groups
|
404
|
-
# maximum value is 1000; values above 1000
|
434
|
+
# Optional. The maximum number of groups to return. The service might return
|
435
|
+
# fewer than this value. If unspecified, at most 50 groups are returned. The
|
436
|
+
# maximum value is 1000; values above 1000 are coerced to 1000.
|
405
437
|
# @param [String] page_token
|
406
438
|
# Optional. A page token, received from a previous `ListRelatedAccountGroups`
|
407
439
|
# call. Provide this to retrieve the subsequent page. When paginating, all other
|
@@ -436,14 +468,14 @@ module Google
|
|
436
468
|
execute_or_queue_command(command, &block)
|
437
469
|
end
|
438
470
|
|
439
|
-
# Get
|
471
|
+
# Get memberships in a group of related accounts.
|
440
472
|
# @param [String] parent
|
441
473
|
# Required. The resource name for the related account group in the format `
|
442
474
|
# projects/`project`/relatedaccountgroups/`relatedaccountgroup``.
|
443
475
|
# @param [Fixnum] page_size
|
444
|
-
# Optional. The maximum number of accounts to return. The service
|
445
|
-
# fewer than this value. If unspecified, at most 50 accounts
|
446
|
-
#
|
476
|
+
# Optional. The maximum number of accounts to return. The service might return
|
477
|
+
# fewer than this value. If unspecified, at most 50 accounts are returned. The
|
478
|
+
# maximum value is 1000; values above 1000 are coerced to 1000.
|
447
479
|
# @param [String] page_token
|
448
480
|
# Optional. A page token, received from a previous `
|
449
481
|
# ListRelatedAccountGroupMemberships` call. When paginating, all other
|
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.
|
4
|
+
version: 0.21.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-
|
11
|
+
date: 2022-08-08 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.
|
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.
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.21.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: []
|