google-cloud-recaptcha_enterprise-v1 0.8.0 → 0.9.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: e26602537b99c63017e5c48ae60e3dbd7dd26061aea474f4375febcf454e6ae6
4
- data.tar.gz: a637690ab153550fa621ee4118b58354b1adbb2607fc5acc60ebdeca6fbc7d08
3
+ metadata.gz: f8c1f595c61e911de1f30f731946826eec5b70449ef625026b1df5f0707bdc60
4
+ data.tar.gz: 48822ec2c98a4807a37158ace2b6c313a907a79d19c16f85c88d7d6eb437f73c
5
5
  SHA512:
6
- metadata.gz: 8773c5677b44236627da8ea377a7e038c324d490d864fea750a8d2646fc2d98e2268f6a6f0974185d673f938d5cde503c80db4005ebea19c65c8c55d7fcededd
7
- data.tar.gz: a90c47a18b028da33c162f01d4fa5b17a9365fc2c481f8d7d7776854d7c154b0830a1d9c65f5559a4ce5e7c26826576464afc767340cd07cd978e1e20797ec6e
6
+ metadata.gz: 452737da7153655994867b40aec6cb6239862fb0c0eed202c4f06850ecabf98b96b4c565e91e083e896cfe04a2701ff816b77b927bf911464d671f93f60b103c
7
+ data.tar.gz: d53947d81edc5df5e6623c3890780f2c53922f2444e7fc31d63ab2af6bea71dfa5a1e2970dae79f50b9eb58c3c62031cc79a4373356433a5d6d6bb612042bb92
data/README.md CHANGED
@@ -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
@@ -1199,16 +1199,15 @@ module Google
1199
1199
  # the default parameter values, pass an empty Hash as a request object (see above).
1200
1200
  #
1201
1201
  # @param project [::String]
1202
- # Required. The name of the project to search related account group memberships from,
1203
- # in the format "projects/\\{project}".
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -50,6 +50,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
50
  optional :risk_analysis, :message, 3, "google.cloud.recaptchaenterprise.v1.RiskAnalysis"
51
51
  optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1.TokenProperties"
52
52
  optional :account_defender_assessment, :message, 6, "google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment"
53
+ optional :private_password_leak_verification, :message, 7, "google.cloud.recaptchaenterprise.v1.PrivatePasswordLeakVerification"
53
54
  end
54
55
  add_message "google.cloud.recaptchaenterprise.v1.Event" do
55
56
  optional :token, :string, 1
@@ -97,6 +98,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
97
98
  value :SUSPICIOUS_ACCOUNT_CREATION, 3
98
99
  value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
99
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
100
107
  add_message "google.cloud.recaptchaenterprise.v1.CreateKeyRequest" do
101
108
  optional :parent, :string, 1
102
109
  optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1.Key"
@@ -263,6 +270,7 @@ module Google
263
270
  TokenProperties::InvalidReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason").enummodule
264
271
  AccountDefenderAssessment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.AccountDefenderAssessment").msgclass
265
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
266
274
  CreateKeyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.CreateKeyRequest").msgclass
267
275
  ListKeysRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysRequest").msgclass
268
276
  ListKeysResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.ListKeysResponse").msgclass
@@ -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.
@@ -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
@@ -656,14 +686,14 @@ module Google
656
686
  # `projects/{project}/relatedaccountgroups/{relatedaccountgroup}`.
657
687
  # @!attribute [rw] page_size
658
688
  # @return [::Integer]
659
- # Optional. The maximum number of accounts to return. The service may return fewer than
660
- # this value.
661
- # If unspecified, at most 50 accounts will be returned.
662
- # 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.
663
693
  # @!attribute [rw] page_token
664
694
  # @return [::String]
665
- # Optional. A page token, received from a previous `ListRelatedAccountGroupMemberships`
666
- # call.
695
+ # Optional. A page token, received from a previous
696
+ # `ListRelatedAccountGroupMemberships` call.
667
697
  #
668
698
  # When paginating, all other parameters provided to
669
699
  # `ListRelatedAccountGroupMemberships` must match the call that provided the
@@ -689,18 +719,17 @@ module Google
689
719
  # The request message to list related account groups.
690
720
  # @!attribute [rw] parent
691
721
  # @return [::String]
692
- # Required. The name of the project to list related account groups from, in the format
693
- # "projects/\\{project}".
722
+ # Required. The name of the project to list related account groups from, in
723
+ # the format "projects/\\{project}".
694
724
  # @!attribute [rw] page_size
695
725
  # @return [::Integer]
696
- # Optional. The maximum number of groups to return. The service may return fewer than
697
- # this value.
698
- # 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.
699
728
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
700
729
  # @!attribute [rw] page_token
701
730
  # @return [::String]
702
- # Optional. A page token, received from a previous `ListRelatedAccountGroups` call.
703
- # 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.
704
733
  #
705
734
  # When paginating, all other parameters provided to
706
735
  # `ListRelatedAccountGroups` must match the call that provided the page
@@ -726,18 +755,17 @@ module Google
726
755
  # The request message to search related account group memberships.
727
756
  # @!attribute [rw] project
728
757
  # @return [::String]
729
- # Required. The name of the project to search related account group memberships from,
730
- # 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}".
731
760
  # @!attribute [rw] hashed_account_id
732
761
  # @return [::String]
733
- # Optional. The unique stable hashed user identifier we should search connections to.
734
- # The identifier should correspond to a `hashed_account_id` provided in a
735
- # 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.
736
765
  # @!attribute [rw] page_size
737
766
  # @return [::Integer]
738
- # Optional. The maximum number of groups to return. The service may return fewer than
739
- # this value.
740
- # 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.
741
769
  # The maximum value is 1000; values above 1000 will be coerced to 1000.
742
770
  # @!attribute [rw] page_token
743
771
  # @return [::String]
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.8.0
4
+ version: 0.9.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-05 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common