google-cloud-recaptcha_enterprise-v1beta1 0.8.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/client.rb +4 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/client.rb +4 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/version.rb +1 -1
- data/lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_pb.rb +25 -180
- data/proto_docs/google/api/client.rb +58 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf2951fb5cead84765bd71b02ee88c5ab1128d1db8c33520263dcab80c725c3b
|
4
|
+
data.tar.gz: 79b7b2699e3a5d67171a6310d5b3dab5b6296258525ca1d21c35a7b8635ecccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44fb1540449956b15ce058ce709bed258c540b1cb042ab4e6f0c5599dd9dab68d03603ad848d7fb1d35ecadb8aee7de9c3b09717af519a66c7087033afddc278
|
7
|
+
data.tar.gz: 87c62fcf2b6f2203fd0c8e608bed50122e3c5dd7f9f312713239a4c03082a929399ceeab8da3ff17229432299b13da7e9af7e9bc1c5912c6931e1e21874548eb
|
@@ -127,7 +127,7 @@ module Google
|
|
127
127
|
credentials = @config.credentials
|
128
128
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
129
129
|
# but only if the default endpoint does not have a region prefix.
|
130
|
-
enable_self_signed_jwt = @config.endpoint ==
|
130
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
131
131
|
!@config.endpoint.split(".").first.include?("-")
|
132
132
|
credentials ||= Credentials.default scope: @config.scope,
|
133
133
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -421,7 +421,9 @@ module Google
|
|
421
421
|
class Configuration
|
422
422
|
extend ::Gapic::Config
|
423
423
|
|
424
|
-
|
424
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
425
|
+
|
426
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
425
427
|
config_attr :credentials, nil do |value|
|
426
428
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
427
429
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/client.rb
CHANGED
@@ -123,7 +123,7 @@ module Google
|
|
123
123
|
credentials = @config.credentials
|
124
124
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
125
125
|
# but only if the default endpoint does not have a region prefix.
|
126
|
-
enable_self_signed_jwt = @config.endpoint ==
|
126
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
127
127
|
!@config.endpoint.split(".").first.include?("-")
|
128
128
|
credentials ||= Credentials.default scope: @config.scope,
|
129
129
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -357,7 +357,9 @@ module Google
|
|
357
357
|
class Configuration
|
358
358
|
extend ::Gapic::Config
|
359
359
|
|
360
|
-
|
360
|
+
DEFAULT_ENDPOINT = "recaptchaenterprise.googleapis.com"
|
361
|
+
|
362
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
361
363
|
config_attr :credentials, nil do |value|
|
362
364
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
363
365
|
allowed.any? { |klass| klass === value }
|
data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_service/rest/service_stub.rb
CHANGED
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_assessment_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_annotate_assessment_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
|
3
4
|
|
@@ -9,188 +10,32 @@ require 'google/api/field_behavior_pb'
|
|
9
10
|
require 'google/api/resource_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
add_file("google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto", :syntax => :proto3) do
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
value :CHARGEBACK_INQUIRY, 9
|
35
|
-
value :CHARGEBACK_ALERT, 10
|
36
|
-
value :FRAUD_NOTIFICATION, 11
|
37
|
-
value :CHARGEBACK, 12
|
38
|
-
value :CHARGEBACK_REPRESENTMENT, 13
|
39
|
-
value :CHARGEBACK_REVERSE, 14
|
40
|
-
value :REFUND_REQUEST, 15
|
41
|
-
value :REFUND_DECLINE, 16
|
42
|
-
value :REFUND, 17
|
43
|
-
value :REFUND_REVERSE, 18
|
44
|
-
end
|
45
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest" do
|
46
|
-
optional :name, :string, 1
|
47
|
-
optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
|
48
|
-
repeated :reasons, :enum, 3, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason"
|
49
|
-
optional :hashed_account_id, :bytes, 4
|
50
|
-
optional :transaction_event, :message, 5, "google.cloud.recaptchaenterprise.v1beta1.TransactionEvent"
|
51
|
-
end
|
52
|
-
add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" do
|
53
|
-
value :ANNOTATION_UNSPECIFIED, 0
|
54
|
-
value :LEGITIMATE, 1
|
55
|
-
value :FRAUDULENT, 2
|
56
|
-
value :PASSWORD_CORRECT, 3
|
57
|
-
value :PASSWORD_INCORRECT, 4
|
58
|
-
end
|
59
|
-
add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Reason" do
|
60
|
-
value :REASON_UNSPECIFIED, 0
|
61
|
-
value :CHARGEBACK, 1
|
62
|
-
value :CHARGEBACK_FRAUD, 8
|
63
|
-
value :CHARGEBACK_DISPUTE, 9
|
64
|
-
value :REFUND, 10
|
65
|
-
value :REFUND_FRAUD, 11
|
66
|
-
value :TRANSACTION_ACCEPTED, 12
|
67
|
-
value :TRANSACTION_DECLINED, 13
|
68
|
-
value :PAYMENT_HEURISTICS, 2
|
69
|
-
value :INITIATED_TWO_FACTOR, 7
|
70
|
-
value :PASSED_TWO_FACTOR, 3
|
71
|
-
value :FAILED_TWO_FACTOR, 4
|
72
|
-
value :CORRECT_PASSWORD, 5
|
73
|
-
value :INCORRECT_PASSWORD, 6
|
74
|
-
value :SOCIAL_SPAM, 14
|
75
|
-
end
|
76
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse" do
|
77
|
-
end
|
78
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification" do
|
79
|
-
optional :hashed_user_credentials, :bytes, 1
|
80
|
-
optional :credentials_leaked, :bool, 2
|
81
|
-
optional :canonicalized_username, :string, 3
|
82
|
-
end
|
83
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.Assessment" do
|
84
|
-
optional :name, :string, 1
|
85
|
-
optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Event"
|
86
|
-
optional :score, :float, 3
|
87
|
-
optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties"
|
88
|
-
repeated :reasons, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason"
|
89
|
-
optional :password_leak_verification, :message, 7, "google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification"
|
90
|
-
optional :account_defender_assessment, :message, 8, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment"
|
91
|
-
optional :fraud_prevention_assessment, :message, 11, "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment"
|
92
|
-
end
|
93
|
-
add_enum "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" do
|
94
|
-
value :CLASSIFICATION_REASON_UNSPECIFIED, 0
|
95
|
-
value :AUTOMATION, 1
|
96
|
-
value :UNEXPECTED_ENVIRONMENT, 2
|
97
|
-
value :TOO_MUCH_TRAFFIC, 3
|
98
|
-
value :UNEXPECTED_USAGE_PATTERNS, 4
|
99
|
-
value :LOW_CONFIDENCE_SCORE, 5
|
100
|
-
value :SUSPECTED_CARDING, 6
|
101
|
-
value :SUSPECTED_CHARGEBACK, 7
|
102
|
-
end
|
103
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do
|
104
|
-
optional :token, :string, 1
|
105
|
-
optional :site_key, :string, 2
|
106
|
-
optional :user_agent, :string, 3
|
107
|
-
optional :user_ip_address, :string, 4
|
108
|
-
optional :expected_action, :string, 5
|
109
|
-
optional :hashed_account_id, :bytes, 6
|
110
|
-
optional :transaction_data, :message, 13, "google.cloud.recaptchaenterprise.v1beta1.TransactionData"
|
111
|
-
end
|
112
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TransactionData" do
|
113
|
-
proto3_optional :transaction_id, :string, 11
|
114
|
-
optional :payment_method, :string, 1
|
115
|
-
optional :card_bin, :string, 2
|
116
|
-
optional :card_last_four, :string, 3
|
117
|
-
optional :currency_code, :string, 4
|
118
|
-
optional :value, :double, 5
|
119
|
-
optional :shipping_value, :double, 12
|
120
|
-
optional :shipping_address, :message, 6, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address"
|
121
|
-
optional :billing_address, :message, 7, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address"
|
122
|
-
optional :user, :message, 8, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.User"
|
123
|
-
repeated :merchants, :message, 13, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.User"
|
124
|
-
repeated :items, :message, 14, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item"
|
125
|
-
optional :gateway_info, :message, 10, "google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo"
|
126
|
-
end
|
127
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address" do
|
128
|
-
optional :recipient, :string, 1
|
129
|
-
repeated :address, :string, 2
|
130
|
-
optional :locality, :string, 3
|
131
|
-
optional :administrative_area, :string, 4
|
132
|
-
optional :region_code, :string, 5
|
133
|
-
optional :postal_code, :string, 6
|
134
|
-
end
|
135
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TransactionData.User" do
|
136
|
-
optional :account_id, :string, 6
|
137
|
-
optional :creation_ms, :int64, 1
|
138
|
-
optional :email, :string, 2
|
139
|
-
optional :email_verified, :bool, 3
|
140
|
-
optional :phone_number, :string, 4
|
141
|
-
optional :phone_verified, :bool, 5
|
142
|
-
end
|
143
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item" do
|
144
|
-
optional :name, :string, 1
|
145
|
-
optional :value, :double, 2
|
146
|
-
optional :quantity, :int64, 3
|
147
|
-
optional :merchant_account_id, :string, 4
|
148
|
-
end
|
149
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo" do
|
150
|
-
optional :name, :string, 1
|
151
|
-
optional :gateway_response_code, :string, 2
|
152
|
-
optional :avs_response_code, :string, 3
|
153
|
-
optional :cvv_response_code, :string, 4
|
154
|
-
end
|
155
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" do
|
156
|
-
optional :valid, :bool, 1
|
157
|
-
optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason"
|
158
|
-
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
159
|
-
optional :hostname, :string, 4
|
160
|
-
optional :action, :string, 5
|
161
|
-
end
|
162
|
-
add_enum "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" do
|
163
|
-
value :INVALID_REASON_UNSPECIFIED, 0
|
164
|
-
value :UNKNOWN_INVALID_REASON, 1
|
165
|
-
value :MALFORMED, 2
|
166
|
-
value :EXPIRED, 3
|
167
|
-
value :DUPE, 4
|
168
|
-
value :SITE_MISMATCH, 5
|
169
|
-
value :MISSING, 6
|
170
|
-
value :BROWSER_ERROR, 7
|
171
|
-
end
|
172
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment" do
|
173
|
-
optional :transaction_risk, :float, 1
|
174
|
-
optional :stolen_instrument_verdict, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict"
|
175
|
-
optional :card_testing_verdict, :message, 3, "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict"
|
176
|
-
end
|
177
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict" do
|
178
|
-
optional :risk, :float, 1
|
179
|
-
end
|
180
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict" do
|
181
|
-
optional :risk, :float, 1
|
182
|
-
end
|
183
|
-
add_message "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment" do
|
184
|
-
repeated :labels, :enum, 1, "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel"
|
185
|
-
end
|
186
|
-
add_enum "google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel" do
|
187
|
-
value :ACCOUNT_DEFENDER_LABEL_UNSPECIFIED, 0
|
188
|
-
value :PROFILE_MATCH, 1
|
189
|
-
value :SUSPICIOUS_LOGIN_ACTIVITY, 2
|
190
|
-
value :SUSPICIOUS_ACCOUNT_CREATION, 3
|
191
|
-
value :RELATED_ACCOUNTS_NUMBER_HIGH, 4
|
13
|
+
|
14
|
+
descriptor_data = "\nBgoogle/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto\x12(google.cloud.recaptchaenterprise.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xad\x01\n\x17\x43reateAssessmentRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12M\n\nassessment\x18\x02 \x01(\x0b\x32\x34.google.cloud.recaptchaenterprise.v1beta1.AssessmentB\x03\xe0\x41\x02\"\x97\x05\n\x10TransactionEvent\x12h\n\nevent_type\x18\x01 \x01(\x0e\x32O.google.cloud.recaptchaenterprise.v1beta1.TransactionEvent.TransactionEventTypeB\x03\xe0\x41\x01\x12\x13\n\x06reason\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x12\n\x05value\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x33\n\nevent_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xba\x03\n\x14TransactionEventType\x12&\n\"TRANSACTION_EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10MERCHANT_APPROVE\x10\x01\x12\x11\n\rMERCHANT_DENY\x10\x02\x12\x11\n\rMANUAL_REVIEW\x10\x03\x12\x11\n\rAUTHORIZATION\x10\x04\x12\x19\n\x15\x41UTHORIZATION_DECLINE\x10\x05\x12\x13\n\x0fPAYMENT_CAPTURE\x10\x06\x12\x1b\n\x17PAYMENT_CAPTURE_DECLINE\x10\x07\x12\n\n\x06\x43\x41NCEL\x10\x08\x12\x16\n\x12\x43HARGEBACK_INQUIRY\x10\t\x12\x14\n\x10\x43HARGEBACK_ALERT\x10\n\x12\x16\n\x12\x46RAUD_NOTIFICATION\x10\x0b\x12\x0e\n\nCHARGEBACK\x10\x0c\x12\x1c\n\x18\x43HARGEBACK_REPRESENTMENT\x10\r\x12\x16\n\x12\x43HARGEBACK_REVERSE\x10\x0e\x12\x12\n\x0eREFUND_REQUEST\x10\x0f\x12\x12\n\x0eREFUND_DECLINE\x10\x10\x12\n\n\x06REFUND\x10\x11\x12\x12\n\x0eREFUND_REVERSE\x10\x12\"\xf9\x06\n\x19\x41nnotateAssessmentRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-recaptchaenterprise.googleapis.com/Assessment\x12g\n\nannotation\x18\x02 \x01(\x0e\x32N.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.AnnotationB\x03\xe0\x41\x01\x12`\n\x07reasons\x18\x03 \x03(\x0e\x32J.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.ReasonB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x04 \x01(\x0c\x42\x03\xe0\x41\x01\x12Z\n\x11transaction_event\x18\x05 \x01(\x0b\x32:.google.cloud.recaptchaenterprise.v1beta1.TransactionEventB\x03\xe0\x41\x01\"~\n\nAnnotation\x12\x1a\n\x16\x41NNOTATION_UNSPECIFIED\x10\x00\x12\x0e\n\nLEGITIMATE\x10\x01\x12\x0e\n\nFRAUDULENT\x10\x02\x12\x18\n\x10PASSWORD_CORRECT\x10\x03\x1a\x02\x08\x01\x12\x1a\n\x12PASSWORD_INCORRECT\x10\x04\x1a\x02\x08\x01\"\xcf\x02\n\x06Reason\x12\x16\n\x12REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nCHARGEBACK\x10\x01\x12\x14\n\x10\x43HARGEBACK_FRAUD\x10\x08\x12\x16\n\x12\x43HARGEBACK_DISPUTE\x10\t\x12\n\n\x06REFUND\x10\n\x12\x10\n\x0cREFUND_FRAUD\x10\x0b\x12\x18\n\x14TRANSACTION_ACCEPTED\x10\x0c\x12\x18\n\x14TRANSACTION_DECLINED\x10\r\x12\x16\n\x12PAYMENT_HEURISTICS\x10\x02\x12\x18\n\x14INITIATED_TWO_FACTOR\x10\x07\x12\x15\n\x11PASSED_TWO_FACTOR\x10\x03\x12\x15\n\x11\x46\x41ILED_TWO_FACTOR\x10\x04\x12\x14\n\x10\x43ORRECT_PASSWORD\x10\x05\x12\x16\n\x12INCORRECT_PASSWORD\x10\x06\x12\x0f\n\x0bSOCIAL_SPAM\x10\x0e\"\x1c\n\x1a\x41nnotateAssessmentResponse\"\x86\x01\n\x18PasswordLeakVerification\x12$\n\x17hashed_user_credentials\x18\x01 \x01(\x0c\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x63redentials_leaked\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x12#\n\x16\x63\x61nonicalized_username\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xb7\x07\n\nAssessment\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12>\n\x05\x65vent\x18\x02 \x01(\x0b\x32/.google.cloud.recaptchaenterprise.v1beta1.Event\x12\x12\n\x05score\x18\x03 \x01(\x02\x42\x03\xe0\x41\x03\x12X\n\x10token_properties\x18\x04 \x01(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1beta1.TokenPropertiesB\x03\xe0\x41\x03\x12_\n\x07reasons\x18\x05 \x03(\x0e\x32I.google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReasonB\x03\xe0\x41\x03\x12\x66\n\x1apassword_leak_verification\x18\x07 \x01(\x0b\x32\x42.google.cloud.recaptchaenterprise.v1beta1.PasswordLeakVerification\x12h\n\x1b\x61\x63\x63ount_defender_assessment\x18\x08 \x01(\x0b\x32\x43.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment\x12h\n\x1b\x66raud_prevention_assessment\x18\x0b \x01(\x0b\x32\x43.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment\"\xe9\x01\n\x14\x43lassificationReason\x12%\n!CLASSIFICATION_REASON_UNSPECIFIED\x10\x00\x12\x0e\n\nAUTOMATION\x10\x01\x12\x1a\n\x16UNEXPECTED_ENVIRONMENT\x10\x02\x12\x14\n\x10TOO_MUCH_TRAFFIC\x10\x03\x12\x1d\n\x19UNEXPECTED_USAGE_PATTERNS\x10\x04\x12\x18\n\x14LOW_CONFIDENCE_SCORE\x10\x05\x12\x15\n\x11SUSPECTED_CARDING\x10\x06\x12\x18\n\x14SUSPECTED_CHARGEBACK\x10\x07:_\xea\x41\\\n-recaptchaenterprise.googleapis.com/Assessment\x12+projects/{project}/assessments/{assessment}\"\x81\x02\n\x05\x45vent\x12\x12\n\x05token\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08site_key\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nuser_agent\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0fuser_ip_address\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x65xpected_action\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1e\n\x11hashed_account_id\x18\x06 \x01(\x0c\x42\x03\xe0\x41\x01\x12X\n\x10transaction_data\x18\r \x01(\x0b\x32\x39.google.cloud.recaptchaenterprise.v1beta1.TransactionDataB\x03\xe0\x41\x01\"\x9d\t\n\x0fTransactionData\x12\x1b\n\x0etransaction_id\x18\x0b \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0epayment_method\x18\x01 \x01(\t\x12\x10\n\x08\x63\x61rd_bin\x18\x02 \x01(\t\x12\x16\n\x0e\x63\x61rd_last_four\x18\x03 \x01(\t\x12\x15\n\rcurrency_code\x18\x04 \x01(\t\x12\r\n\x05value\x18\x05 \x01(\x01\x12\x16\n\x0eshipping_value\x18\x0c \x01(\x01\x12[\n\x10shipping_address\x18\x06 \x01(\x0b\x32\x41.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address\x12Z\n\x0f\x62illing_address\x18\x07 \x01(\x0b\x32\x41.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Address\x12L\n\x04user\x18\x08 \x01(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User\x12Q\n\tmerchants\x18\r \x03(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.User\x12M\n\x05items\x18\x0e \x03(\x0b\x32>.google.cloud.recaptchaenterprise.v1beta1.TransactionData.Item\x12[\n\x0cgateway_info\x18\n \x01(\x0b\x32\x45.google.cloud.recaptchaenterprise.v1beta1.TransactionData.GatewayInfo\x1a\x86\x01\n\x07\x41\x64\x64ress\x12\x11\n\trecipient\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x03(\t\x12\x10\n\x08locality\x18\x03 \x01(\t\x12\x1b\n\x13\x61\x64ministrative_area\x18\x04 \x01(\t\x12\x13\n\x0bregion_code\x18\x05 \x01(\t\x12\x13\n\x0bpostal_code\x18\x06 \x01(\t\x1a\x84\x01\n\x04User\x12\x12\n\naccount_id\x18\x06 \x01(\t\x12\x13\n\x0b\x63reation_ms\x18\x01 \x01(\x03\x12\r\n\x05\x65mail\x18\x02 \x01(\t\x12\x16\n\x0e\x65mail_verified\x18\x03 \x01(\x08\x12\x14\n\x0cphone_number\x18\x04 \x01(\t\x12\x16\n\x0ephone_verified\x18\x05 \x01(\x08\x1aR\n\x04Item\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01\x12\x10\n\x08quantity\x18\x03 \x01(\x03\x12\x1b\n\x13merchant_account_id\x18\x04 \x01(\t\x1ap\n\x0bGatewayInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1d\n\x15gateway_response_code\x18\x02 \x01(\t\x12\x19\n\x11\x61vs_response_code\x18\x03 \x01(\t\x12\x19\n\x11\x63vv_response_code\x18\x04 \x01(\tB\x11\n\x0f_transaction_id\"\xff\x02\n\x0fTokenProperties\x12\r\n\x05valid\x18\x01 \x01(\x08\x12_\n\x0einvalid_reason\x18\x02 \x01(\x0e\x32G.google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08hostname\x18\x04 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x05 \x01(\t\"\xa8\x01\n\rInvalidReason\x12\x1e\n\x1aINVALID_REASON_UNSPECIFIED\x10\x00\x12\x1a\n\x16UNKNOWN_INVALID_REASON\x10\x01\x12\r\n\tMALFORMED\x10\x02\x12\x0b\n\x07\x45XPIRED\x10\x03\x12\x08\n\x04\x44UPE\x10\x04\x12\x15\n\rSITE_MISMATCH\x10\x05\x1a\x02\x08\x01\x12\x0b\n\x07MISSING\x10\x06\x12\x11\n\rBROWSER_ERROR\x10\x07\"\xf8\x02\n\x19\x46raudPreventionAssessment\x12\x18\n\x10transaction_risk\x18\x01 \x01(\x02\x12~\n\x19stolen_instrument_verdict\x18\x02 \x01(\x0b\x32[.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.StolenInstrumentVerdict\x12t\n\x14\x63\x61rd_testing_verdict\x18\x03 \x01(\x0b\x32V.google.cloud.recaptchaenterprise.v1beta1.FraudPreventionAssessment.CardTestingVerdict\x1a\'\n\x17StolenInstrumentVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\x1a\"\n\x12\x43\x61rdTestingVerdict\x12\x0c\n\x04risk\x18\x01 \x01(\x02\"\xbb\x02\n\x19\x41\x63\x63ountDefenderAssessment\x12h\n\x06labels\x18\x01 \x03(\x0e\x32X.google.cloud.recaptchaenterprise.v1beta1.AccountDefenderAssessment.AccountDefenderLabel\"\xb3\x01\n\x14\x41\x63\x63ountDefenderLabel\x12&\n\"ACCOUNT_DEFENDER_LABEL_UNSPECIFIED\x10\x00\x12\x11\n\rPROFILE_MATCH\x10\x01\x12\x1d\n\x19SUSPICIOUS_LOGIN_ACTIVITY\x10\x02\x12\x1f\n\x1bSUSPICIOUS_ACCOUNT_CREATION\x10\x03\x12 \n\x1cRELATED_ACCOUNTS_NUMBER_HIGH\x10\x04\x32\xcd\x04\n!RecaptchaEnterpriseServiceV1Beta1\x12\xdd\x01\n\x10\x43reateAssessment\x12\x41.google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest\x1a\x34.google.cloud.recaptchaenterprise.v1beta1.Assessment\"P\x82\xd3\xe4\x93\x02\x36\"(/v1beta1/{parent=projects/*}/assessments:\nassessment\xda\x41\x11parent,assessment\x12\xef\x01\n\x12\x41nnotateAssessment\x12\x43.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest\x1a\x44.google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse\"N\x82\xd3\xe4\x93\x02\x36\"1/v1beta1/{name=projects/*/assessments/*}:annotate:\x01*\xda\x41\x0fname,annotation\x1aV\xca\x41\"recaptchaenterprise.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xb2\x02\n&com.google.recaptchaenterprise.v1beta1B\x18RecaptchaEnterpriseProtoP\x01Zacloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb;recaptchaenterprisepb\xa2\x02\x04GCRE\xaa\x02(Google.Cloud.RecaptchaEnterprise.V1Beta1\xca\x02(Google\\Cloud\\RecaptchaEnterprise\\V1beta1\xea\x02+Google::Cloud::RecaptchaEnterprise::V1beta1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
192
35
|
end
|
193
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
194
39
|
end
|
195
40
|
|
196
41
|
module Google
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# long-running operation pattern.
|
84
84
|
# @!attribute [rw] new_issue_uri
|
85
85
|
# @return [::String]
|
86
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
88
88
|
# @!attribute [rw] documentation_uri
|
89
89
|
# @return [::String]
|
@@ -209,9 +209,57 @@ module Google
|
|
209
209
|
# @!attribute [rw] common
|
210
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
211
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
212
242
|
class DotnetSettings
|
213
243
|
include ::Google::Protobuf::MessageExts
|
214
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
215
263
|
end
|
216
264
|
|
217
265
|
# Settings for Ruby client libraries.
|
@@ -305,6 +353,15 @@ module Google
|
|
305
353
|
|
306
354
|
# Street View Org.
|
307
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
308
365
|
end
|
309
366
|
|
310
367
|
# To where should client libraries be published?
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recaptcha_enterprise-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
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: 2023-
|
11
|
+
date: 2023-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.1
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.19.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|