google-cloud-recaptcha_enterprise 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,77 @@
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/protobuf/timestamp_pb'
9
+ Google::Protobuf::DescriptorPool.generated_pool.build do
10
+ add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do
11
+ optional :parent, :string, 1
12
+ optional :assessment, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Assessment"
13
+ end
14
+ add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest" do
15
+ optional :name, :string, 1
16
+ optional :annotation, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation"
17
+ end
18
+ add_enum "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation" do
19
+ value :ANNOTATION_UNSPECIFIED, 0
20
+ value :LEGITIMATE, 1
21
+ value :FRAUDULENT, 2
22
+ end
23
+ add_message "google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse" do
24
+ end
25
+ add_message "google.cloud.recaptchaenterprise.v1beta1.Assessment" do
26
+ optional :name, :string, 1
27
+ optional :event, :message, 2, "google.cloud.recaptchaenterprise.v1beta1.Event"
28
+ optional :score, :float, 3
29
+ optional :token_properties, :message, 4, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties"
30
+ repeated :reasons, :enum, 5, "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason"
31
+ end
32
+ add_enum "google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason" do
33
+ value :CLASSIFICATION_REASON_UNSPECIFIED, 0
34
+ value :AUTOMATION, 1
35
+ value :UNEXPECTED_ENVIRONMENT, 2
36
+ value :UNEXPECTED_USAGE_PATTERNS, 4
37
+ value :PROVISIONAL_RISK_ANALYSIS, 5
38
+ end
39
+ add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do
40
+ optional :token, :string, 1
41
+ optional :site_key, :string, 2
42
+ end
43
+ add_message "google.cloud.recaptchaenterprise.v1beta1.TokenProperties" do
44
+ optional :valid, :bool, 1
45
+ optional :invalid_reason, :enum, 2, "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason"
46
+ optional :create_time, :message, 3, "google.protobuf.Timestamp"
47
+ optional :hostname, :string, 4
48
+ optional :action, :string, 5
49
+ end
50
+ add_enum "google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason" do
51
+ value :INVALID_REASON_UNSPECIFIED, 0
52
+ value :UNKNOWN_INVALID_REASON, 1
53
+ value :MALFORMED, 2
54
+ value :EXPIRED, 3
55
+ value :DUPE, 4
56
+ value :SITE_MISMATCH, 5
57
+ value :MISSING, 6
58
+ end
59
+ end
60
+
61
+ module Google
62
+ module Cloud
63
+ module Recaptchaenterprise
64
+ module V1beta1
65
+ CreateAssessmentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest").msgclass
66
+ AnnotateAssessmentRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest").msgclass
67
+ AnnotateAssessmentRequest::Annotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentRequest.Annotation").enummodule
68
+ AnnotateAssessmentResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.AnnotateAssessmentResponse").msgclass
69
+ Assessment = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment").msgclass
70
+ Assessment::ClassificationReason = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Assessment.ClassificationReason").enummodule
71
+ Event = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.Event").msgclass
72
+ TokenProperties = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties").msgclass
73
+ TokenProperties::InvalidReason = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1beta1.TokenProperties.InvalidReason").enummodule
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,50 @@
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
+ end
44
+
45
+ Stub = Service.rpc_stub_class
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
metadata ADDED
@@ -0,0 +1,155 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: google-cloud-recaptcha_enterprise
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Google LLC
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-gax
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: grpc-google-iam-v1
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.6.9
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.6.9
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.10'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.10'
55
+ - !ruby/object:Gem::Dependency
56
+ name: redcarpet
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.64.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.64.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.9'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.9'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.9'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.9'
111
+ description: google-cloud-recaptcha_enterprise is the official library for reCAPTCHA
112
+ Enterprise API.
113
+ email: googleapis-packages@google.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".yardopts"
119
+ - AUTHENTICATION.md
120
+ - LICENSE
121
+ - README.md
122
+ - lib/google/cloud/recaptcha_enterprise.rb
123
+ - lib/google/cloud/recaptcha_enterprise/v1beta1.rb
124
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/credentials.rb
125
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/doc/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.rb
126
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/doc/google/protobuf/timestamp.rb
127
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/helpers.rb
128
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_client.rb
129
+ - lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_client_config.json
130
+ - lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_pb.rb
131
+ - lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_services_pb.rb
132
+ homepage: https://github.com/googleapis/googleapis
133
+ licenses:
134
+ - Apache-2.0
135
+ metadata: {}
136
+ post_install_message:
137
+ rdoc_options: []
138
+ require_paths:
139
+ - lib
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 2.0.0
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - ">="
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ requirements: []
151
+ rubygems_version: 3.0.3
152
+ signing_key:
153
+ specification_version: 4
154
+ summary: API Client library for reCAPTCHA Enterprise API
155
+ test_files: []