google-cloud-recaptcha_enterprise-v1 0.7.1 → 0.9.1

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: e241eeb6c6a6297f0123627bb5a6a143a38e2287f191399e138f065f65667fc6
4
- data.tar.gz: c94bc7f92bd9f4f8cabece9404325007bd6c82bfa4ba850381c6e436aeba71fb
3
+ metadata.gz: 91ac04b04d9d2f2b3b069e790a17179fc035384b9200fad30e8111833964a8f4
4
+ data.tar.gz: a51129e1042859cc807ed94f43c5a057f0fc2e95496f7a241be9f362838a503a
5
5
  SHA512:
6
- metadata.gz: b4752c985fc90e0209e16d05a4f01479491b4657f164feb4f7286ceb807cf7b4053da15f0a745339255d9f16c32118f196fc99eb4e5695eee55a4d7d2f7e8b53
7
- data.tar.gz: 6e69af9ee931aec21fe54280f458294dadb4337e504d35afa1462ed0ea10a9cb8f7fded1bad319ceb1e7c901bdffb556c40fccc9cc2e7bc880cd15ff133f44b8
6
+ metadata.gz: 614acc500529148ab61acb9258ba8a796ccb7d956239a264347c72e5e88d54b6516358be755b8a38fd34da6e8dc67ad600f7710156446accd59f689e9af7e7e8
7
+ data.tar.gz: e2eee81c5276e6ccccbd6a23028bcfc9e2c48c5c31592f55fa933fd10130ded55237b9cfa4b5ddc553c95f56ea32f0ec8c853c0870b09404f5f200ba402732b7
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::RecaptchaEnterprise::V1::CreateAssessmentRequest.new
37
37
  response = client.create_assessment request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-recaptcha_enterprise-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/recaptcha-enterprise)
@@ -69,6 +69,11 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
79
  This library is supported on Ruby 2.5+.
@@ -269,14 +269,15 @@ module Google
269
269
  # Required. The resource name of the Assessment, in the format
270
270
  # "projects/\\{project}/assessments/\\{assessment}".
271
271
  # @param annotation [::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Annotation]
272
- # Optional. The annotation that will be assigned to the Event. This field can be left
273
- # empty to provide reasons that apply to an event without concluding whether
274
- # the event is legitimate or fraudulent.
272
+ # Optional. The annotation that will be assigned to the Event. This field can
273
+ # be left empty to provide reasons that apply to an event without concluding
274
+ # whether the event is legitimate or fraudulent.
275
275
  # @param reasons [::Array<::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Reason>]
276
- # Optional. Optional reasons for the annotation that will be assigned to the Event.
276
+ # Optional. Optional reasons for the annotation that will be assigned to the
277
+ # Event.
277
278
  # @param hashed_account_id [::String]
278
- # Optional. Optional unique stable hashed user identifier to apply to the assessment.
279
- # This is an alternative to setting the hashed_account_id in
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
280
281
  # CreateAssessment, for example when the account identifier is not yet known
281
282
  # in the initial request. It is recommended that the identifier is hashed
282
283
  # using hmac-sha256 with stable secret.
@@ -639,8 +640,8 @@ module Google
639
640
  # @param key [::Google::Cloud::RecaptchaEnterprise::V1::Key, ::Hash]
640
641
  # Required. The key to update.
641
642
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
642
- # Optional. The mask to control which fields of the key get updated. If the mask is not
643
- # present, all fields will be updated.
643
+ # Optional. The mask to control which fields of the key get updated. If the
644
+ # mask is not present, all fields will be updated.
644
645
  #
645
646
  # @yield [response, operation] Access the result along with the RPC operation
646
647
  # @yieldparam response [::Google::Cloud::RecaptchaEnterprise::V1::Key]
@@ -989,16 +990,15 @@ module Google
989
990
  # the default parameter values, pass an empty Hash as a request object (see above).
990
991
  #
991
992
  # @param parent [::String]
992
- # Required. The name of the project to list related account groups from, in the format
993
- # "projects/\\{project}".
993
+ # Required. The name of the project to list related account groups from, in
994
+ # the format "projects/\\{project}".
994
995
  # @param page_size [::Integer]
995
- # Optional. The maximum number of groups to return. The service may return fewer than
996
- # this value.
997
- # If unspecified, at most 50 groups will be returned.
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
998
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
999
999
  # @param page_token [::String]
1000
- # Optional. A page token, received from a previous `ListRelatedAccountGroups` call.
1001
- # Provide this to retrieve the subsequent page.
1000
+ # Optional. A page token, received from a previous `ListRelatedAccountGroups`
1001
+ # call. Provide this to retrieve the subsequent page.
1002
1002
  #
1003
1003
  # When paginating, all other parameters provided to
1004
1004
  # `ListRelatedAccountGroups` must match the call that provided the page
@@ -1097,13 +1097,13 @@ module Google
1097
1097
  # Required. The resource name for the related account group in the format
1098
1098
  # `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
1099
1099
  # @param page_size [::Integer]
1100
- # Optional. The maximum number of accounts to return. The service may return fewer than
1101
- # this value.
1102
- # If unspecified, at most 50 accounts will be returned.
1103
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
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.
1104
1104
  # @param page_token [::String]
1105
- # Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships`
1106
- # call.
1105
+ # Optional. A page token, received from a previous
1106
+ # `ListRelatedAccountGroupMemberships` call.
1107
1107
  #
1108
1108
  # When paginating, all other parameters provided to
1109
1109
  # `ListRelatedAccountGroupMemberships` must match the call that provided the
@@ -1193,22 +1193,21 @@ module Google
1193
1193
  # @param options [::Gapic::CallOptions, ::Hash]
1194
1194
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1195
1195
  #
1196
- # @overload search_related_account_group_memberships(parent: nil, hashed_account_id: nil, page_size: nil, page_token: nil)
1196
+ # @overload search_related_account_group_memberships(project: nil, hashed_account_id: nil, page_size: nil, page_token: nil)
1197
1197
  # Pass arguments to `search_related_account_group_memberships` via keyword arguments. Note that at
1198
1198
  # least one keyword argument is required. To specify no parameters, or to keep all
1199
1199
  # the default parameter values, pass an empty Hash as a request object (see above).
1200
1200
  #
1201
- # @param parent [::String]
1202
- # Required. The name of the project to search related account group memberships from,
1203
- # in the format "projects/\\{project}".
1201
+ # @param project [::String]
1202
+ # Required. The name of the project to search related account group
1203
+ # memberships from, in the format "projects/\\{project}".
1204
1204
  # @param hashed_account_id [::String]
1205
- # Optional. The unique stable hashed user identifier we should search connections to.
1206
- # The identifier should correspond to a `hashed_account_id` provided in a
1207
- # previous CreateAssessment or AnnotateAssessment call.
1205
+ # Optional. The unique stable hashed user identifier we should search
1206
+ # connections to. The identifier should correspond to a `hashed_account_id`
1207
+ # provided in a previous CreateAssessment or AnnotateAssessment call.
1208
1208
  # @param page_size [::Integer]
1209
- # Optional. The maximum number of groups to return. The service may return fewer than
1210
- # this value.
1211
- # If unspecified, at most 50 groups will be returned.
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.
1212
1211
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
1213
1212
  # @param page_token [::String]
1214
1213
  # Optional. A page token, received from a previous
@@ -1266,8 +1265,8 @@ module Google
1266
1265
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1267
1266
 
1268
1267
  header_params = {}
1269
- if request.parent
1270
- header_params["parent"] = request.parent
1268
+ if request.project
1269
+ header_params["project"] = request.project
1271
1270
  end
1272
1271
 
1273
1272
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.9.1"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/recaptcha_enterprise/v1"
29
31
  # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
30
32
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto", :syntax => :proto3) do
@@ -49,6 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
49
50
  optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis"
50
51
  optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties"
51
52
  optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment"
53
+ optional :private_password_leak_verification, :message, 8, "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification"
52
54
  end
53
55
  add_message "google.cloud.recaptchaenterprise.v1.Event" do
54
56
  optional :token, :string, 1
@@ -96,6 +98,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
96
98
  value :SUSPICIOUS_ACCOUNT_CREATION, 3
97
99
  value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
98
100
  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
99
107
  add_message "google.cloud.recaptchaenterprise.v1.CreateKeyRequest" do
100
108
  optional :parent, :string, 1
101
109
  optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1.Key"
@@ -137,6 +145,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
137
145
  map :labels, :string, :string, 6
138
146
  optional :create_time, :message, 7, "google.protobuf.Timestamp"
139
147
  optional :testing_options, :message, 9, "google.cloud.recaptchaenterprise.v1.TestingOptions"
148
+ optional :waf_settings, :message, 10, "google.cloud.recaptchaenterprise.v1.WafSettings"
140
149
  oneof :platform_settings do
141
150
  optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1.WebKeySettings"
142
151
  optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1.AndroidKeySettings"
@@ -211,7 +220,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
211
220
  optional :next_page_token, :string, 2
212
221
  end
213
222
  add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest" do
214
- optional :parent, :string, 1
223
+ optional :project, :string, 1
215
224
  optional :hashed_account_id, :bytes, 2
216
225
  optional :page_size, :int32, 3
217
226
  optional :page_token, :string, 4
@@ -227,6 +236,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
227
236
  add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" do
228
237
  optional :name, :string, 1
229
238
  end
239
+ add_message "google.cloud.recaptchaenterprise.v1.WafSettings" do
240
+ optional :waf_service, :enum, 1, "google.cloud.recaptchaenterprise.v1.WafSettings.WafService"
241
+ optional :waf_feature, :enum, 2, "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature"
242
+ end
243
+ add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature" do
244
+ value :WAF_FEATURE_UNSPECIFIED, 0
245
+ value :CHALLENGE_PAGE, 1
246
+ value :SESSION_TOKEN, 2
247
+ value :ACTION_TOKEN, 3
248
+ end
249
+ add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafService" do
250
+ value :WAF_SERVICE_UNSPECIFIED, 0
251
+ value :CA, 1
252
+ end
230
253
  end
231
254
  end
232
255
 
@@ -247,6 +270,7 @@ module Google
247
270
  TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule
248
271
  AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass
249
272
  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
250
274
  CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass
251
275
  ListKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysRequest").msgclass
252
276
  ListKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysResponse").msgclass
@@ -275,6 +299,9 @@ module Google
275
299
  SearchRelatedAccountGroupMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse").msgclass
276
300
  RelatedAccountGroupMembership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership").msgclass
277
301
  RelatedAccountGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroup").msgclass
302
+ WafSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings").msgclass
303
+ WafSettings::WafFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature").enummodule
304
+ WafSettings::WafService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings.WafService").enummodule
278
305
  end
279
306
  end
280
307
  end
@@ -41,16 +41,17 @@ module Google
41
41
  # "projects/\\{project}/assessments/\\{assessment}".
42
42
  # @!attribute [rw] annotation
43
43
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Annotation]
44
- # Optional. The annotation that will be assigned to the Event. This field can be left
45
- # empty to provide reasons that apply to an event without concluding whether
46
- # the event is legitimate or fraudulent.
44
+ # Optional. The annotation that will be assigned to the Event. This field can
45
+ # be left empty to provide reasons that apply to an event without concluding
46
+ # whether the event is legitimate or fraudulent.
47
47
  # @!attribute [rw] reasons
48
48
  # @return [::Array<::Google::Cloud::RecaptchaEnterprise::V1::AnnotateAssessmentRequest::Reason>]
49
- # Optional. Optional reasons for the annotation that will be assigned to the Event.
49
+ # Optional. Optional reasons for the annotation that will be assigned to the
50
+ # Event.
50
51
  # @!attribute [rw] hashed_account_id
51
52
  # @return [::String]
52
- # Optional. Optional unique stable hashed user identifier to apply to the assessment.
53
- # This is an alternative to setting the hashed_account_id in
53
+ # Optional. Optional unique stable hashed user identifier to apply to the
54
+ # assessment. This is an alternative to setting the hashed_account_id in
54
55
  # CreateAssessment, for example when the account identifier is not yet known
55
56
  # in the initial request. It is recommended that the identifier is hashed
56
57
  # using hmac-sha256 with stable secret.
@@ -85,18 +86,18 @@ module Google
85
86
  # Default unspecified reason.
86
87
  REASON_UNSPECIFIED = 0
87
88
 
88
- # Indicates a chargeback was issued for the transaction associated with the
89
- # assessment, with no other details. When possible, specify the type by
90
- # using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
89
+ # Indicates a chargeback issued for the transaction with no other details.
90
+ # When possible, specify the type by using CHARGEBACK_FRAUD or
91
+ # CHARGEBACK_DISPUTE instead.
91
92
  CHARGEBACK = 1
92
93
 
93
94
  # Indicates a chargeback related to an alleged unauthorized transaction
94
- # from the perspective of the cardholder (for example, the card number was
95
+ # from the cardholder's perspective (for example, the card number was
95
96
  # stolen).
96
97
  CHARGEBACK_FRAUD = 8
97
98
 
98
99
  # Indicates a chargeback related to the cardholder having provided their
99
- # card but allegedly not being satisfied with the purchase
100
+ # card details but allegedly not being satisfied with the purchase
100
101
  # (for example, misrepresentation, attempted cancellation).
101
102
  CHARGEBACK_DISPUTE = 9
102
103
 
@@ -149,6 +150,9 @@ module Google
149
150
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::AccountDefenderAssessment]
150
151
  # Assessment returned by Account Defender when a hashed_account_id is
151
152
  # provided.
153
+ # @!attribute [rw] private_password_leak_verification
154
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::PrivatePasswordLeakVerification]
155
+ # Password leak verification info.
152
156
  class Assessment
153
157
  include ::Google::Protobuf::MessageExts
154
158
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -156,28 +160,29 @@ module Google
156
160
 
157
161
  # @!attribute [rw] token
158
162
  # @return [::String]
159
- # Optional. The user response token provided by the reCAPTCHA client-side integration
160
- # on your site.
163
+ # Optional. The user response token provided by the reCAPTCHA client-side
164
+ # integration on your site.
161
165
  # @!attribute [rw] site_key
162
166
  # @return [::String]
163
- # Optional. The site key that was used to invoke reCAPTCHA on your site and generate
164
- # the token.
167
+ # Optional. The site key that was used to invoke reCAPTCHA on your site and
168
+ # generate the token.
165
169
  # @!attribute [rw] user_agent
166
170
  # @return [::String]
167
- # Optional. The user agent present in the request from the user's device related to
168
- # this event.
171
+ # Optional. The user agent present in the request from the user's device
172
+ # related to this event.
169
173
  # @!attribute [rw] user_ip_address
170
174
  # @return [::String]
171
- # Optional. The IP address in the request from the user's device related to this event.
175
+ # Optional. The IP address in the request from the user's device related to
176
+ # this event.
172
177
  # @!attribute [rw] expected_action
173
178
  # @return [::String]
174
- # Optional. The expected action for this type of event. This should be the same action
175
- # provided at token generation time on client-side platforms already
176
- # integrated with recaptcha enterprise.
179
+ # Optional. The expected action for this type of event. This should be the
180
+ # same action provided at token generation time on client-side platforms
181
+ # already integrated with recaptcha enterprise.
177
182
  # @!attribute [rw] hashed_account_id
178
183
  # @return [::String]
179
- # Optional. Optional unique stable hashed user identifier for the request. The
180
- # identifier should ideally be hashed using sha256 with stable secret.
184
+ # Optional. Optional unique stable hashed user identifier for the request.
185
+ # The identifier should ideally be hashed using sha256 with stable secret.
181
186
  class Event
182
187
  include ::Google::Protobuf::MessageExts
183
188
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -300,6 +305,31 @@ module Google
300
305
  end
301
306
  end
302
307
 
308
+ # Private password leak verification info.
309
+ # @!attribute [rw] lookup_hash_prefix
310
+ # @return [::String]
311
+ # Exactly 26-bit prefix of the SHA-256 hash of the canonicalized username. It
312
+ # is used to look up password leaks associated with that hash prefix.
313
+ # @!attribute [rw] encrypted_user_credentials_hash
314
+ # @return [::String]
315
+ # Encrypted Scrypt hash of the canonicalized username+password. It is
316
+ # re-encrypted by the server and returned through
317
+ # `reencrypted_user_credentials_hash`.
318
+ # @!attribute [r] encrypted_leak_match_prefixes
319
+ # @return [::Array<::String>]
320
+ # List of prefixes of the encrypted potential password leaks that matched the
321
+ # given parameters. They should be compared with the client-side decryption
322
+ # prefix of `reencrypted_user_credentials_hash`
323
+ # @!attribute [r] reencrypted_user_credentials_hash
324
+ # @return [::String]
325
+ # Corresponds to the re-encryption of the `encrypted_user_credentials_hash`
326
+ # field. Used to match potential password leaks within
327
+ # `encrypted_leak_match_prefixes`.
328
+ class PrivatePasswordLeakVerification
329
+ include ::Google::Protobuf::MessageExts
330
+ extend ::Google::Protobuf::MessageExts::ClassMethods
331
+ end
332
+
303
333
  # The create key request message.
304
334
  # @!attribute [rw] parent
305
335
  # @return [::String]
@@ -360,8 +390,8 @@ module Google
360
390
  # Required. The key to update.
361
391
  # @!attribute [rw] update_mask
362
392
  # @return [::Google::Protobuf::FieldMask]
363
- # Optional. The mask to control which fields of the key get updated. If the mask is not
364
- # present, all fields will be updated.
393
+ # Optional. The mask to control which fields of the key get updated. If the
394
+ # mask is not present, all fields will be updated.
365
395
  class UpdateKeyRequest
366
396
  include ::Google::Protobuf::MessageExts
367
397
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -447,6 +477,9 @@ module Google
447
477
  # @!attribute [rw] testing_options
448
478
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions]
449
479
  # Options for user acceptance testing.
480
+ # @!attribute [rw] waf_settings
481
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings]
482
+ # Settings for WAF
450
483
  class Key
451
484
  include ::Google::Protobuf::MessageExts
452
485
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -653,14 +686,14 @@ module Google
653
686
  # `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
654
687
  # @!attribute [rw] page_size
655
688
  # @return [::Integer]
656
- # Optional. The maximum number of accounts to return. The service may return fewer than
657
- # this value.
658
- # If unspecified, at most 50 accounts will be returned.
659
- # The maximum value is 1000; values above 1000 will be coerced to 1000.
689
+ # Optional. The maximum number of accounts to return. The service may return
690
+ # fewer than this value. If unspecified, at most 50 accounts will be
691
+ # returned. The maximum value is 1000; values above 1000 will be coerced to
692
+ # 1000.
660
693
  # @!attribute [rw] page_token
661
694
  # @return [::String]
662
- # Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships`
663
- # call.
695
+ # Optional. A page token, received from a previous
696
+ # `ListRelatedAccountGroupMemberships` call.
664
697
  #
665
698
  # When paginating, all other parameters provided to
666
699
  # `ListRelatedAccountGroupMemberships` must match the call that provided the
@@ -686,18 +719,17 @@ module Google
686
719
  # The request message to list related account groups.
687
720
  # @!attribute [rw] parent
688
721
  # @return [::String]
689
- # Required. The name of the project to list related account groups from, in the format
690
- # "projects/\\{project}".
722
+ # Required. The name of the project to list related account groups from, in
723
+ # the format "projects/\\{project}".
691
724
  # @!attribute [rw] page_size
692
725
  # @return [::Integer]
693
- # Optional. The maximum number of groups to return. The service may return fewer than
694
- # this value.
695
- # If unspecified, at most 50 groups will be returned.
726
+ # Optional. The maximum number of groups to return. The service may return
727
+ # fewer than this value. If unspecified, at most 50 groups will be returned.
696
728
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
697
729
  # @!attribute [rw] page_token
698
730
  # @return [::String]
699
- # Optional. A page token, received from a previous `ListRelatedAccountGroups` call.
700
- # Provide this to retrieve the subsequent page.
731
+ # Optional. A page token, received from a previous `ListRelatedAccountGroups`
732
+ # call. Provide this to retrieve the subsequent page.
701
733
  #
702
734
  # When paginating, all other parameters provided to
703
735
  # `ListRelatedAccountGroups` must match the call that provided the page
@@ -721,20 +753,19 @@ module Google
721
753
  end
722
754
 
723
755
  # The request message to search related account group memberships.
724
- # @!attribute [rw] parent
756
+ # @!attribute [rw] project
725
757
  # @return [::String]
726
- # Required. The name of the project to search related account group memberships from,
727
- # in the format "projects/\\{project}".
758
+ # Required. The name of the project to search related account group
759
+ # memberships from, in the format "projects/\\{project}".
728
760
  # @!attribute [rw] hashed_account_id
729
761
  # @return [::String]
730
- # Optional. The unique stable hashed user identifier we should search connections to.
731
- # The identifier should correspond to a `hashed_account_id` provided in a
732
- # previous CreateAssessment or AnnotateAssessment call.
762
+ # Optional. The unique stable hashed user identifier we should search
763
+ # connections to. The identifier should correspond to a `hashed_account_id`
764
+ # provided in a previous CreateAssessment or AnnotateAssessment call.
733
765
  # @!attribute [rw] page_size
734
766
  # @return [::Integer]
735
- # Optional. The maximum number of groups to return. The service may return fewer than
736
- # this value.
737
- # If unspecified, at most 50 groups will be returned.
767
+ # Optional. The maximum number of groups to return. The service may return
768
+ # fewer than this value. If unspecified, at most 50 groups will be returned.
738
769
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
739
770
  # @!attribute [rw] page_token
740
771
  # @return [::String]
@@ -787,6 +818,45 @@ module Google
787
818
  include ::Google::Protobuf::MessageExts
788
819
  extend ::Google::Protobuf::MessageExts::ClassMethods
789
820
  end
821
+
822
+ # Settings specific to keys that can be used for WAF (Web Application
823
+ # Firewall).
824
+ # @!attribute [rw] waf_service
825
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings::WafService]
826
+ # Required. The WAF service that uses this key.
827
+ # @!attribute [rw] waf_feature
828
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings::WafFeature]
829
+ # Required. The WAF feature for which this key is enabled.
830
+ class WafSettings
831
+ include ::Google::Protobuf::MessageExts
832
+ extend ::Google::Protobuf::MessageExts::ClassMethods
833
+
834
+ # Supported WAF features. For more information, see
835
+ # https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
836
+ module WafFeature
837
+ # Undefined feature.
838
+ WAF_FEATURE_UNSPECIFIED = 0
839
+
840
+ # Redirects suspicious traffic to reCAPTCHA.
841
+ CHALLENGE_PAGE = 1
842
+
843
+ # Use reCAPTCHA session-tokens to protect the whole user session on the
844
+ # site's domain.
845
+ SESSION_TOKEN = 2
846
+
847
+ # Use reCAPTCHA action-tokens to protect user actions.
848
+ ACTION_TOKEN = 3
849
+ end
850
+
851
+ # Web Application Firewalls supported by reCAPTCHA Enterprise.
852
+ module WafService
853
+ # Undefined WAF
854
+ WAF_SERVICE_UNSPECIFIED = 0
855
+
856
+ # Cloud Armor
857
+ CA = 1
858
+ end
859
+ end
790
860
  end
791
861
  end
792
862
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recaptcha_enterprise-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.9.1
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-01-11 00:00:00.000000000 Z
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.3.4
207
+ rubygems_version: 3.3.14
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: API Client library for the reCAPTCHA Enterprise V1 API