google-cloud-recaptcha_enterprise-v1 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +6 -1
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb +32 -33
- data/lib/google/cloud/recaptcha_enterprise/v1/version.rb +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1.rb +2 -0
- data/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb +29 -2
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.rb +117 -47
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8c1f595c61e911de1f30f731946826eec5b70449ef625026b1df5f0707bdc60
|
4
|
+
data.tar.gz: 48822ec2c98a4807a37158ace2b6c313a907a79d19c16f85c88d7d6eb437f73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 452737da7153655994867b40aec6cb6239862fb0c0eed202c4f06850ecabf98b96b4c565e91e083e896cfe04a2701ff816b77b927bf911464d671f93f60b103c
|
7
|
+
data.tar.gz: d53947d81edc5df5e6623c3890780f2c53922f2444e7fc31d63ab2af6bea71dfa5a1e2970dae79f50b9eb58c3c62031cc79a4373356433a5d6d6bb612042bb92
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
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://
|
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
|
273
|
-
# empty to provide reasons that apply to an event without concluding
|
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
|
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
|
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
|
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
|
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
|
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`
|
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
|
1101
|
-
# this value.
|
1102
|
-
#
|
1103
|
-
#
|
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
|
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(
|
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
|
1202
|
-
# Required. The name of the project to search related account group
|
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
|
1206
|
-
# The identifier should correspond to a `hashed_account_id`
|
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
|
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.
|
1270
|
-
header_params["
|
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("&")
|
@@ -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, 7, "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 :
|
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
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -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
|
45
|
-
# empty to provide reasons that apply to an event without concluding
|
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
|
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
|
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
|
89
|
-
#
|
90
|
-
#
|
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
|
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
|
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
|
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
|
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
|
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
|
175
|
-
# provided at token generation time on client-side platforms
|
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.
|
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
|
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
|
657
|
-
# this value.
|
658
|
-
#
|
659
|
-
#
|
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
|
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
|
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
|
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`
|
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]
|
756
|
+
# @!attribute [rw] project
|
725
757
|
# @return [::String]
|
726
|
-
# Required. The name of the project to search related account group
|
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
|
731
|
-
# The identifier should correspond to a `hashed_account_id`
|
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
|
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.
|
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:
|
11
|
+
date: 2022-05-19 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.
|
207
|
+
rubygems_version: 3.3.5
|
208
208
|
signing_key:
|
209
209
|
specification_version: 4
|
210
210
|
summary: API Client library for the reCAPTCHA Enterprise V1 API
|