google-cloud-recaptcha_enterprise-v1 0.10.0 → 0.12.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: 221e03d16a4262691e7ef6c40c92a8ebed53ce3329ad866f7e22fe3cd974ba86
4
- data.tar.gz: 8096928aab4e5b1b79f1583075b614555bd40a9b6aa26f295ec442caf5925275
3
+ metadata.gz: 9cb553d077ccc71cb034e2fb0ff624aabf5fb6298c0ebcccd700b3df74a537f3
4
+ data.tar.gz: c8fda32169b5a4a491bcfff8f3fa23f0a349d2fe13962466148491eb724ad220
5
5
  SHA512:
6
- metadata.gz: 021c0a662790f95d3a9eb2d1e3dfed6ff980523a731a05bd8af77fceb5ac3f2b1143ea2fb2b3b08bc12bfb0fe2e5ba85f034e0fd6dec91cd095eb39840e1ae5e
7
- data.tar.gz: 83d6aa911387c483070c013a24ef817fde09a755674a8096776c50d5286b969af590cc908d3d7094d0d072592305c23b3e59390e35611ae84a6b45245b65362e
6
+ metadata.gz: 68c5f54671922f909bdf340b4446abee0c48270cc06d85ae0245a6998e5317221364f3254bca80365080160ea51f19e4504fcc6f39539ab109d89c2a388db3e2
7
+ data.tar.gz: 5245bcdff7ab73ca97db012172bcd0b77f8abcc4d4d29dabec8f752fb2e1c692ad6d89edbd90e22d16c95ae720b15dee28b425cbc8bd273569a4a3b59f04bf12
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -276,8 +276,8 @@ module Google
276
276
  # Optional. Optional reasons for the annotation that will be assigned to the
277
277
  # Event.
278
278
  # @param hashed_account_id [::String]
279
- # Optional. Optional unique stable hashed user identifier to apply to the
280
- # assessment. This is an alternative to setting the hashed_account_id in
279
+ # Optional. Unique stable hashed user identifier to apply to the assessment.
280
+ # This is an alternative to setting the hashed_account_id in
281
281
  # CreateAssessment, for example when the account identifier is not yet known
282
282
  # in the initial request. It is recommended that the identifier is hashed
283
283
  # using hmac-sha256 with stable secret.
@@ -533,6 +533,94 @@ module Google
533
533
  raise ::Google::Cloud::Error.from_error(e)
534
534
  end
535
535
 
536
+ ##
537
+ # Returns the secret key related to the specified public key.
538
+ # You must use the legacy secret key only in a 3rd party integration with
539
+ # legacy reCAPTCHA.
540
+ #
541
+ # @overload retrieve_legacy_secret_key(request, options = nil)
542
+ # Pass arguments to `retrieve_legacy_secret_key` via a request object, either of type
543
+ # {::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyRequest} or an equivalent Hash.
544
+ #
545
+ # @param request [::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyRequest, ::Hash]
546
+ # A request object representing the call parameters. Required. To specify no
547
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
548
+ # @param options [::Gapic::CallOptions, ::Hash]
549
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
550
+ #
551
+ # @overload retrieve_legacy_secret_key(key: nil)
552
+ # Pass arguments to `retrieve_legacy_secret_key` via keyword arguments. Note that at
553
+ # least one keyword argument is required. To specify no parameters, or to keep all
554
+ # the default parameter values, pass an empty Hash as a request object (see above).
555
+ #
556
+ # @param key [::String]
557
+ # Required. The public key name linked to the requested secret key in the
558
+ # format "projects/\\{project}/keys/\\{key}".
559
+ #
560
+ # @yield [response, operation] Access the result along with the RPC operation
561
+ # @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyResponse]
562
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
563
+ #
564
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyResponse]
565
+ #
566
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
567
+ #
568
+ # @example Basic example
569
+ # require "google/cloud/recaptcha_enterprise/v1"
570
+ #
571
+ # # Create a client object. The client can be reused for multiple calls.
572
+ # client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
573
+ #
574
+ # # Create a request. To set request fields, pass in keyword arguments.
575
+ # request = Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyRequest.new
576
+ #
577
+ # # Call the retrieve_legacy_secret_key method.
578
+ # result = client.retrieve_legacy_secret_key request
579
+ #
580
+ # # The returned object is of type Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyResponse.
581
+ # p result
582
+ #
583
+ def retrieve_legacy_secret_key request, options = nil
584
+ raise ::ArgumentError, "request must be provided" if request.nil?
585
+
586
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyRequest
587
+
588
+ # Converts hash and nil to an options object
589
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
590
+
591
+ # Customize the options with defaults
592
+ metadata = @config.rpcs.retrieve_legacy_secret_key.metadata.to_h
593
+
594
+ # Set x-goog-api-client and x-goog-user-project headers
595
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
596
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
597
+ gapic_version: ::Google::Cloud::RecaptchaEnterprise::V1::VERSION
598
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
599
+
600
+ header_params = {}
601
+ if request.key
602
+ header_params["key"] = request.key
603
+ end
604
+
605
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
606
+ metadata[:"x-goog-request-params"] ||= request_params_header
607
+
608
+ options.apply_defaults timeout: @config.rpcs.retrieve_legacy_secret_key.timeout,
609
+ metadata: metadata,
610
+ retry_policy: @config.rpcs.retrieve_legacy_secret_key.retry_policy
611
+
612
+ options.apply_defaults timeout: @config.timeout,
613
+ metadata: @config.metadata,
614
+ retry_policy: @config.retry_policy
615
+
616
+ @recaptcha_enterprise_service_stub.call_rpc :retrieve_legacy_secret_key, request, options: options do |response, operation|
617
+ yield response, operation if block_given?
618
+ return response
619
+ end
620
+ rescue ::GRPC::BadStatus => e
621
+ raise ::Google::Cloud::Error.from_error(e)
622
+ end
623
+
536
624
  ##
537
625
  # Returns the specified key.
538
626
  #
@@ -811,7 +899,7 @@ module Google
811
899
  # @param options [::Gapic::CallOptions, ::Hash]
812
900
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
813
901
  #
814
- # @overload migrate_key(name: nil)
902
+ # @overload migrate_key(name: nil, skip_billing_check: nil)
815
903
  # Pass arguments to `migrate_key` via keyword arguments. Note that at
816
904
  # least one keyword argument is required. To specify no parameters, or to keep all
817
905
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -819,6 +907,15 @@ module Google
819
907
  # @param name [::String]
820
908
  # Required. The name of the key to be migrated, in the format
821
909
  # "projects/\\{project}/keys/\\{key}".
910
+ # @param skip_billing_check [::Boolean]
911
+ # Optional. If true, skips the billing check.
912
+ # A reCAPTCHA Enterprise key or migrated key behaves differently than a
913
+ # reCAPTCHA (non-Enterprise version) key when you reach a quota limit (see
914
+ # https://cloud.google.com/recaptcha-enterprise/quotas#quota_limit). To avoid
915
+ # any disruption of your usage, we check that a billing account is present.
916
+ # If your usage of reCAPTCHA is under the free quota, you can safely skip the
917
+ # billing check and proceed with the migration. See
918
+ # https://cloud.google.com/recaptcha-enterprise/docs/billing-information.
822
919
  #
823
920
  # @yield [response, operation] Access the result along with the RPC operation
824
921
  # @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::Key]
@@ -993,9 +1090,9 @@ module Google
993
1090
  # Required. The name of the project to list related account groups from, in
994
1091
  # the format "projects/\\{project}".
995
1092
  # @param page_size [::Integer]
996
- # Optional. The maximum number of groups to return. The service may return
997
- # fewer than this value. If unspecified, at most 50 groups will be returned.
998
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
1093
+ # Optional. The maximum number of groups to return. The service might return
1094
+ # fewer than this value. If unspecified, at most 50 groups are returned. The
1095
+ # maximum value is 1000; values above 1000 are coerced to 1000.
999
1096
  # @param page_token [::String]
1000
1097
  # Optional. A page token, received from a previous `ListRelatedAccountGroups`
1001
1098
  # call. Provide this to retrieve the subsequent page.
@@ -1076,7 +1173,7 @@ module Google
1076
1173
  end
1077
1174
 
1078
1175
  ##
1079
- # Get the memberships in a group of related accounts.
1176
+ # Get memberships in a group of related accounts.
1080
1177
  #
1081
1178
  # @overload list_related_account_group_memberships(request, options = nil)
1082
1179
  # Pass arguments to `list_related_account_group_memberships` via a request object, either of type
@@ -1097,10 +1194,9 @@ module Google
1097
1194
  # Required. The resource name for the related account group in the format
1098
1195
  # `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
1099
1196
  # @param page_size [::Integer]
1100
- # Optional. The maximum number of accounts to return. The service may return
1101
- # fewer than this value. If unspecified, at most 50 accounts will be
1102
- # returned. The maximum value is 1000; values above 1000 will be coerced to
1103
- # 1000.
1197
+ # Optional. The maximum number of accounts to return. The service might
1198
+ # return fewer than this value. If unspecified, at most 50 accounts are
1199
+ # returned. The maximum value is 1000; values above 1000 are coerced to 1000.
1104
1200
  # @param page_token [::String]
1105
1201
  # Optional. A page token, received from a previous
1106
1202
  # `ListRelatedAccountGroupMemberships` call.
@@ -1200,15 +1296,16 @@ module Google
1200
1296
  #
1201
1297
  # @param project [::String]
1202
1298
  # Required. The name of the project to search related account group
1203
- # memberships from, in the format "projects/\\{project}".
1299
+ # memberships from. Specify the project name in the following format:
1300
+ # "projects/\\{project}".
1204
1301
  # @param hashed_account_id [::String]
1205
1302
  # Optional. The unique stable hashed user identifier we should search
1206
1303
  # connections to. The identifier should correspond to a `hashed_account_id`
1207
- # provided in a previous CreateAssessment or AnnotateAssessment call.
1304
+ # provided in a previous `CreateAssessment` or `AnnotateAssessment` call.
1208
1305
  # @param page_size [::Integer]
1209
- # Optional. The maximum number of groups to return. The service may return
1210
- # fewer than this value. If unspecified, at most 50 groups will be returned.
1211
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
1306
+ # Optional. The maximum number of groups to return. The service might return
1307
+ # fewer than this value. If unspecified, at most 50 groups are returned. The
1308
+ # maximum value is 1000; values above 1000 are coerced to 1000.
1212
1309
  # @param page_token [::String]
1213
1310
  # Optional. A page token, received from a previous
1214
1311
  # `SearchRelatedAccountGroupMemberships` call. Provide this to retrieve the
@@ -1445,6 +1542,11 @@ module Google
1445
1542
  #
1446
1543
  attr_reader :list_keys
1447
1544
  ##
1545
+ # RPC-specific configuration for `retrieve_legacy_secret_key`
1546
+ # @return [::Gapic::Config::Method]
1547
+ #
1548
+ attr_reader :retrieve_legacy_secret_key
1549
+ ##
1448
1550
  # RPC-specific configuration for `get_key`
1449
1551
  # @return [::Gapic::Config::Method]
1450
1552
  #
@@ -1495,6 +1597,8 @@ module Google
1495
1597
  @create_key = ::Gapic::Config::Method.new create_key_config
1496
1598
  list_keys_config = parent_rpcs.list_keys if parent_rpcs.respond_to? :list_keys
1497
1599
  @list_keys = ::Gapic::Config::Method.new list_keys_config
1600
+ retrieve_legacy_secret_key_config = parent_rpcs.retrieve_legacy_secret_key if parent_rpcs.respond_to? :retrieve_legacy_secret_key
1601
+ @retrieve_legacy_secret_key = ::Gapic::Config::Method.new retrieve_legacy_secret_key_config
1498
1602
  get_key_config = parent_rpcs.get_key if parent_rpcs.respond_to? :get_key
1499
1603
  @get_key = ::Gapic::Config::Method.new get_key_config
1500
1604
  update_key_config = parent_rpcs.update_key if parent_rpcs.respond_to? :update_key
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.12.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,20 +35,58 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
35
35
  value :CHARGEBACK, 1
36
36
  value :CHARGEBACK_FRAUD, 8
37
37
  value :CHARGEBACK_DISPUTE, 9
38
+ value :REFUND, 10
39
+ value :REFUND_FRAUD, 11
40
+ value :TRANSACTION_ACCEPTED, 12
41
+ value :TRANSACTION_DECLINED, 13
38
42
  value :PAYMENT_HEURISTICS, 2
39
43
  value :INITIATED_TWO_FACTOR, 7
40
44
  value :PASSED_TWO_FACTOR, 3
41
45
  value :FAILED_TWO_FACTOR, 4
42
46
  value :CORRECT_PASSWORD, 5
43
47
  value :INCORRECT_PASSWORD, 6
48
+ value :SOCIAL_SPAM, 14
44
49
  end
45
50
  add_message "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse" do
46
51
  end
52
+ add_message "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo" do
53
+ optional :request_token, :string, 3
54
+ optional :last_verification_time, :message, 4, "google.protobuf.Timestamp"
55
+ oneof :endpoint do
56
+ optional :email_address, :string, 1
57
+ optional :phone_number, :string, 2
58
+ end
59
+ end
60
+ add_message "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo" do
61
+ repeated :endpoints, :message, 1, "google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo"
62
+ optional :language_code, :string, 3
63
+ optional :latest_verification_result, :enum, 7, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result"
64
+ optional :username, :string, 2
65
+ end
66
+ add_enum "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result" do
67
+ value :RESULT_UNSPECIFIED, 0
68
+ value :SUCCESS_USER_VERIFIED, 1
69
+ value :ERROR_USER_NOT_VERIFIED, 2
70
+ value :ERROR_SITE_ONBOARDING_INCOMPLETE, 3
71
+ value :ERROR_RECIPIENT_NOT_ALLOWED, 4
72
+ value :ERROR_RECIPIENT_ABUSE_LIMIT_EXHAUSTED, 5
73
+ value :ERROR_CRITICAL_INTERNAL, 6
74
+ value :ERROR_CUSTOMER_QUOTA_EXHAUSTED, 7
75
+ value :ERROR_VERIFICATION_BYPASSED, 8
76
+ value :ERROR_VERDICT_MISMATCH, 9
77
+ end
78
+ add_message "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification" do
79
+ optional :lookup_hash_prefix, :bytes, 1
80
+ optional :encrypted_user_credentials_hash, :bytes, 2
81
+ repeated :encrypted_leak_match_prefixes, :bytes, 3
82
+ optional :reencrypted_user_credentials_hash, :bytes, 4
83
+ end
47
84
  add_message "google.cloud.recaptchaenterprise.v1.Assessment" do
48
85
  optional :name, :string, 1
49
86
  optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1.Event"
50
87
  optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis"
51
88
  optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties"
89
+ optional :account_verification, :message, 5, "google.cloud.recaptchaenterprise.v1.AccountVerificationInfo"
52
90
  optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment"
53
91
  optional :private_password_leak_verification, :message, 8, "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification"
54
92
  end
@@ -77,6 +115,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
77
115
  optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason"
78
116
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
79
117
  optional :hostname, :string, 4
118
+ optional :android_package_name, :string, 8
119
+ optional :ios_bundle_id, :string, 9
80
120
  optional :action, :string, 5
81
121
  end
82
122
  add_enum "google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason" do
@@ -98,12 +138,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
98
138
  value :SUSPICIOUS_ACCOUNT_CREATION, 3
99
139
  value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
100
140
  end
101
- add_message "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification" do
102
- optional :lookup_hash_prefix, :bytes, 1
103
- optional :encrypted_user_credentials_hash, :bytes, 2
104
- repeated :encrypted_leak_match_prefixes, :bytes, 3
105
- optional :reencrypted_user_credentials_hash, :bytes, 4
106
- end
107
141
  add_message "google.cloud.recaptchaenterprise.v1.CreateKeyRequest" do
108
142
  optional :parent, :string, 1
109
143
  optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1.Key"
@@ -117,6 +151,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
117
151
  repeated :keys, :message, 1, "google.cloud.recaptchaenterprise.v1.Key"
118
152
  optional :next_page_token, :string, 2
119
153
  end
154
+ add_message "google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest" do
155
+ optional :key, :string, 1
156
+ end
120
157
  add_message "google.cloud.recaptchaenterprise.v1.GetKeyRequest" do
121
158
  optional :name, :string, 1
122
159
  end
@@ -129,6 +166,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
129
166
  end
130
167
  add_message "google.cloud.recaptchaenterprise.v1.MigrateKeyRequest" do
131
168
  optional :name, :string, 1
169
+ optional :skip_billing_check, :bool, 2
132
170
  end
133
171
  add_message "google.cloud.recaptchaenterprise.v1.GetMetricsRequest" do
134
172
  optional :name, :string, 1
@@ -139,6 +177,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
139
177
  repeated :score_metrics, :message, 2, "google.cloud.recaptchaenterprise.v1.ScoreMetrics"
140
178
  repeated :challenge_metrics, :message, 3, "google.cloud.recaptchaenterprise.v1.ChallengeMetrics"
141
179
  end
180
+ add_message "google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse" do
181
+ optional :legacy_secret_key, :string, 1
182
+ end
142
183
  add_message "google.cloud.recaptchaenterprise.v1.Key" do
143
184
  optional :name, :string, 1
144
185
  optional :display_name, :string, 2
@@ -262,6 +303,10 @@ module Google
262
303
  AnnotateAssessmentRequest::Annotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Annotation").enummodule
263
304
  AnnotateAssessmentRequest::Reason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason").enummodule
264
305
  AnnotateAssessmentResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AnnotateAssessmentResponse").msgclass
306
+ EndpointVerificationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.EndpointVerificationInfo").msgclass
307
+ AccountVerificationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountVerificationInfo").msgclass
308
+ AccountVerificationInfo::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountVerificationInfo.Result").enummodule
309
+ PrivatePasswordLeakVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification").msgclass
265
310
  Assessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Assessment").msgclass
266
311
  Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Event").msgclass
267
312
  RiskAnalysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RiskAnalysis").msgclass
@@ -270,16 +315,17 @@ module Google
270
315
  TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule
271
316
  AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass
272
317
  AccountDefenderAssessment::AccountDefenderLabel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment.AccountDefenderLabel").enummodule
273
- PrivatePasswordLeakVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification").msgclass
274
318
  CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass
275
319
  ListKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysRequest").msgclass
276
320
  ListKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysResponse").msgclass
321
+ RetrieveLegacySecretKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyRequest").msgclass
277
322
  GetKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.GetKeyRequest").msgclass
278
323
  UpdateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.UpdateKeyRequest").msgclass
279
324
  DeleteKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.DeleteKeyRequest").msgclass
280
325
  MigrateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.MigrateKeyRequest").msgclass
281
326
  GetMetricsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.GetMetricsRequest").msgclass
282
327
  Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Metrics").msgclass
328
+ RetrieveLegacySecretKeyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RetrieveLegacySecretKeyResponse").msgclass
283
329
  Key = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.Key").msgclass
284
330
  TestingOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TestingOptions").msgclass
285
331
  TestingOptions::TestingChallenge = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TestingOptions.TestingChallenge").enummodule
@@ -42,6 +42,10 @@ module Google
42
42
  rpc :CreateKey, ::Google::Cloud::RecaptchaEnterprise::V1::CreateKeyRequest, ::Google::Cloud::RecaptchaEnterprise::V1::Key
43
43
  # Returns the list of all keys that belong to a project.
44
44
  rpc :ListKeys, ::Google::Cloud::RecaptchaEnterprise::V1::ListKeysRequest, ::Google::Cloud::RecaptchaEnterprise::V1::ListKeysResponse
45
+ # Returns the secret key related to the specified public key.
46
+ # You must use the legacy secret key only in a 3rd party integration with
47
+ # legacy reCAPTCHA.
48
+ rpc :RetrieveLegacySecretKey, ::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyRequest, ::Google::Cloud::RecaptchaEnterprise::V1::RetrieveLegacySecretKeyResponse
45
49
  # Returns the specified key.
46
50
  rpc :GetKey, ::Google::Cloud::RecaptchaEnterprise::V1::GetKeyRequest, ::Google::Cloud::RecaptchaEnterprise::V1::Key
47
51
  # Updates the specified key.
@@ -60,7 +64,7 @@ module Google
60
64
  rpc :GetMetrics, ::Google::Cloud::RecaptchaEnterprise::V1::GetMetricsRequest, ::Google::Cloud::RecaptchaEnterprise::V1::Metrics
61
65
  # List groups of related accounts.
62
66
  rpc :ListRelatedAccountGroups, ::Google::Cloud::RecaptchaEnterprise::V1::ListRelatedAccountGroupsRequest, ::Google::Cloud::RecaptchaEnterprise::V1::ListRelatedAccountGroupsResponse
63
- # Get the memberships in a group of related accounts.
67
+ # Get memberships in a group of related accounts.
64
68
  rpc :ListRelatedAccountGroupMemberships, ::Google::Cloud::RecaptchaEnterprise::V1::ListRelatedAccountGroupMembershipsRequest, ::Google::Cloud::RecaptchaEnterprise::V1::ListRelatedAccountGroupMembershipsResponse
65
69
  # Search group memberships related to a given account.
66
70
  rpc :SearchRelatedAccountGroupMemberships, ::Google::Cloud::RecaptchaEnterprise::V1::SearchRelatedAccountGroupMembershipsRequest, ::Google::Cloud::RecaptchaEnterprise::V1::SearchRelatedAccountGroupMembershipsResponse