google-cloud-recaptcha_enterprise 0.5.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,61 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterpriseServiceV1Beta1": {
4
- "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
10
- },
11
- "retry_params": {
12
- "default": {
13
- "initial_retry_delay_millis": 100,
14
- "retry_delay_multiplier": 1.3,
15
- "max_retry_delay_millis": 60000,
16
- "initial_rpc_timeout_millis": 20000,
17
- "rpc_timeout_multiplier": 1.0,
18
- "max_rpc_timeout_millis": 20000,
19
- "total_timeout_millis": 600000
20
- }
21
- },
22
- "methods": {
23
- "CreateAssessment": {
24
- "timeout_millis": 60000,
25
- "retry_codes_name": "non_idempotent",
26
- "retry_params_name": "default"
27
- },
28
- "AnnotateAssessment": {
29
- "timeout_millis": 60000,
30
- "retry_codes_name": "non_idempotent",
31
- "retry_params_name": "default"
32
- },
33
- "CreateKey": {
34
- "timeout_millis": 60000,
35
- "retry_codes_name": "non_idempotent",
36
- "retry_params_name": "default"
37
- },
38
- "ListKeys": {
39
- "timeout_millis": 60000,
40
- "retry_codes_name": "idempotent",
41
- "retry_params_name": "default"
42
- },
43
- "GetKey": {
44
- "timeout_millis": 60000,
45
- "retry_codes_name": "idempotent",
46
- "retry_params_name": "default"
47
- },
48
- "UpdateKey": {
49
- "timeout_millis": 60000,
50
- "retry_codes_name": "non_idempotent",
51
- "retry_params_name": "default"
52
- },
53
- "DeleteKey": {
54
- "timeout_millis": 60000,
55
- "retry_codes_name": "non_idempotent",
56
- "retry_params_name": "default"
57
- }
58
- }
59
- }
60
- }
61
- }
@@ -1,155 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto
3
-
4
-
5
- require 'google/protobuf'
6
-
7
- require 'google/api/annotations_pb'
8
- require 'google/api/client_pb'
9
- require 'google/api/field_behavior_pb'
10
- require 'google/api/resource_pb'
11
- require 'google/protobuf/empty_pb'
12
- require 'google/protobuf/field_mask_pb'
13
- require 'google/protobuf/timestamp_pb'
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do
16
- optional :parent, :string, 1
17
- optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Assessment"
18
- end
19
- add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest" do
20
- optional :name, :string, 1
21
- optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
22
- end
23
- add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" do
24
- value :ANNOTATION_UNSPECIFIED, 0
25
- value :LEGITIMATE, 1
26
- value :FRAUDULENT, 2
27
- end
28
- add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse" do
29
- end
30
- add_message "google.cloud.recaptchaenterprise.v1beta1.Assessment" do
31
- optional :name, :string, 1
32
- optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Event"
33
- optional :score, :float, 3
34
- optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties"
35
- repeated :reasons, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason"
36
- end
37
- add_enum "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" do
38
- value :CLASSIFICATION_REASON_UNSPECIFIED, 0
39
- value :AUTOMATION, 1
40
- value :UNEXPECTED_ENVIRONMENT, 2
41
- value :TOO_MUCH_TRAFFIC, 3
42
- value :UNEXPECTED_USAGE_PATTERNS, 4
43
- value :LOW_CONFIDENCE_SCORE, 5
44
- end
45
- add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do
46
- optional :token, :string, 1
47
- optional :site_key, :string, 2
48
- optional :user_agent, :string, 3
49
- optional :user_ip_address, :string, 4
50
- optional :expected_action, :string, 5
51
- end
52
- add_message "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" do
53
- optional :valid, :bool, 1
54
- optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason"
55
- optional :create_time, :message, 3, "google.protobuf.Timestamp"
56
- optional :hostname, :string, 4
57
- optional :action, :string, 5
58
- end
59
- add_enum "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" do
60
- value :INVALID_REASON_UNSPECIFIED, 0
61
- value :UNKNOWN_INVALID_REASON, 1
62
- value :MALFORMED, 2
63
- value :EXPIRED, 3
64
- value :DUPE, 4
65
- value :SITE_MISMATCH, 5
66
- value :MISSING, 6
67
- end
68
- add_message "google.cloud.recaptchaenterprise.v1beta1.CreateKeyRequest" do
69
- optional :parent, :string, 1
70
- optional :key, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Key"
71
- end
72
- add_message "google.cloud.recaptchaenterprise.v1beta1.ListKeysRequest" do
73
- optional :parent, :string, 1
74
- optional :page_size, :int32, 2
75
- optional :page_token, :string, 3
76
- end
77
- add_message "google.cloud.recaptchaenterprise.v1beta1.ListKeysResponse" do
78
- repeated :keys, :message, 1, "google.cloud.recaptchaenterprise.v1beta1.Key"
79
- optional :next_page_token, :string, 2
80
- end
81
- add_message "google.cloud.recaptchaenterprise.v1beta1.GetKeyRequest" do
82
- optional :name, :string, 1
83
- end
84
- add_message "google.cloud.recaptchaenterprise.v1beta1.UpdateKeyRequest" do
85
- optional :key, :message, 1, "google.cloud.recaptchaenterprise.v1beta1.Key"
86
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
87
- end
88
- add_message "google.cloud.recaptchaenterprise.v1beta1.DeleteKeyRequest" do
89
- optional :name, :string, 1
90
- end
91
- add_message "google.cloud.recaptchaenterprise.v1beta1.Key" do
92
- optional :name, :string, 1
93
- optional :display_name, :string, 2
94
- oneof :platform_settings do
95
- optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings"
96
- optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings"
97
- optional :ios_settings, :message, 5, "google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings"
98
- end
99
- end
100
- add_message "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings" do
101
- optional :enforce_allowed_domains, :bool, 3
102
- repeated :allowed_domains, :string, 1
103
- optional :allow_amp_traffic, :bool, 2
104
- optional :integration_type, :enum, 4, "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType"
105
- optional :challenge_security_preference, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference"
106
- end
107
- add_enum "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType" do
108
- value :INTEGRATION_TYPE_UNSPECIFIED, 0
109
- value :SCORE_ONLY, 1
110
- value :CHECKBOX_CHALLENGE, 2
111
- value :INVISIBLE_CHALLENGE, 3
112
- end
113
- add_enum "google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference" do
114
- value :CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, 0
115
- value :USABILITY, 1
116
- value :BALANCED, 2
117
- value :SECURITY, 3
118
- end
119
- add_message "google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings" do
120
- repeated :allowed_package_names, :string, 1
121
- end
122
- add_message "google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings" do
123
- repeated :allowed_bundle_ids, :string, 1
124
- end
125
- end
126
-
127
- module Google
128
- module Cloud
129
- module Recaptchaenterprise
130
- module V1beta1
131
- CreateAssessmentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest").msgclass
132
- AnnotateAssessmentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest").msgclass
133
- AnnotateAssessmentRequest::Annotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation").enummodule
134
- AnnotateAssessmentResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse").msgclass
135
- Assessment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment").msgclass
136
- Assessment::ClassificationReason = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason").enummodule
137
- Event = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Event").msgclass
138
- TokenProperties = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties").msgclass
139
- TokenProperties::InvalidReason = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason").enummodule
140
- CreateKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.CreateKeyRequest").msgclass
141
- ListKeysRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.ListKeysRequest").msgclass
142
- ListKeysResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.ListKeysResponse").msgclass
143
- GetKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.GetKeyRequest").msgclass
144
- UpdateKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.UpdateKeyRequest").msgclass
145
- DeleteKeyRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.DeleteKeyRequest").msgclass
146
- Key = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Key").msgclass
147
- WebKeySettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.WebKeySettings").msgclass
148
- WebKeySettings::IntegrationType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.IntegrationType").enummodule
149
- WebKeySettings::ChallengeSecurityPreference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.WebKeySettings.ChallengeSecurityPreference").enummodule
150
- AndroidKeySettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AndroidKeySettings").msgclass
151
- IOSKeySettings = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.IOSKeySettings").msgclass
152
- end
153
- end
154
- end
155
- end
@@ -1,60 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # Source: google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.proto for package 'google.cloud.recaptchaenterprise.v1beta1'
3
- # Original file comments:
4
- # Copyright 2019 Google LLC.
5
- #
6
- # Licensed under the Apache License, Version 2.0 (the "License");
7
- # you may not use this file except in compliance with the License.
8
- # You may obtain a copy of the License at
9
- #
10
- # http://www.apache.org/licenses/LICENSE-2.0
11
- #
12
- # Unless required by applicable law or agreed to in writing, software
13
- # distributed under the License is distributed on an "AS IS" BASIS,
14
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- # See the License for the specific language governing permissions and
16
- # limitations under the License.
17
- #
18
- #
19
-
20
-
21
- require 'grpc'
22
- require 'google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_pb'
23
-
24
- module Google
25
- module Cloud
26
- module Recaptchaenterprise
27
- module V1beta1
28
- module RecaptchaEnterprise
29
- # Service to determine the likelihood an event is legitimate.
30
- class Service
31
-
32
- include GRPC::GenericService
33
-
34
- self.marshal_class_method = :encode
35
- self.unmarshal_class_method = :decode
36
- self.service_name = 'google.cloud.recaptchaenterprise.v1beta1.RecaptchaEnterprise'
37
-
38
- # Creates an Assessment of the likelihood an event is legitimate.
39
- rpc :CreateAssessment, CreateAssessmentRequest, Assessment
40
- # Annotates a previously created Assessment to provide additional information
41
- # on whether the event turned out to be authentic or fradulent.
42
- rpc :AnnotateAssessment, AnnotateAssessmentRequest, AnnotateAssessmentResponse
43
- # Creates a new reCAPTCHA Enterprise key.
44
- rpc :CreateKey, CreateKeyRequest, Key
45
- # Returns the list of all keys that belong to a project.
46
- rpc :ListKeys, ListKeysRequest, ListKeysResponse
47
- # Returns the specified key.
48
- rpc :GetKey, GetKeyRequest, Key
49
- # Updates the specified key.
50
- rpc :UpdateKey, UpdateKeyRequest, Key
51
- # Deletes the specified key.
52
- rpc :DeleteKey, DeleteKeyRequest, Google::Protobuf::Empty
53
- end
54
-
55
- Stub = Service.rpc_stub_class
56
- end
57
- end
58
- end
59
- end
60
- end