google-cloud-recaptcha_enterprise 0.2.1 → 0.3.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -28
- data/README.md +2 -2
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/doc/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise.rb +19 -15
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/doc/google/protobuf/timestamp.rb +6 -4
- data/lib/google/cloud/recaptcha_enterprise/v1beta1/recaptcha_enterprise_client.rb +2 -2
- data/lib/google/cloud/recaptcha_enterprise/version.rb +1 -1
- data/lib/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterprise_pb.rb +5 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 665bd41ca264cf1cff5bd550ab40b83d9a561c01e103324d2d6ece18d26510f8
|
4
|
+
data.tar.gz: 954cd785e437310d095b35c2d6a5eaef0a80859f941985d0cf0d4ff6a164cc7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948391f3c6cf5d4cf833fb4c20d0d60d2ff8b606a8765eb18408bcfa09ef2476cb13a20bf925f1718bb4b054ecd23d058107b0e9066d3cc99fe32ad1b5ceb75b
|
7
|
+
data.tar.gz: 1d3acb5f25c75ddf5a2b8b2bfeec65b1ae44575d2d63823fd12b511bc9be86066a878a7b18f7536d9612cd069a5d09a2755e17bf100b41f092ff68a710f12f58
|
data/AUTHENTICATION.md
CHANGED
@@ -41,7 +41,7 @@ code.
|
|
41
41
|
1. Specify project ID in method arguments
|
42
42
|
2. Specify project ID in configuration
|
43
43
|
3. Discover project ID in environment variables
|
44
|
-
4. Discover
|
44
|
+
4. Discover GCP project ID
|
45
45
|
5. Discover project ID in credentials JSON
|
46
46
|
|
47
47
|
**Credentials** are discovered in the following order:
|
@@ -51,36 +51,14 @@ code.
|
|
51
51
|
3. Discover credentials path in environment variables
|
52
52
|
4. Discover credentials JSON in environment variables
|
53
53
|
5. Discover credentials file in the Cloud SDK's path
|
54
|
-
6. Discover
|
54
|
+
6. Discover GCP credentials
|
55
55
|
|
56
56
|
### Google Cloud Platform environments
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
should be written as if already authenticated.
|
62
|
-
GCE instance][gce-how-to], you add the correct scopes for the APIs you want to
|
63
|
-
access. For example:
|
64
|
-
|
65
|
-
* **All APIs**
|
66
|
-
* `https://www.googleapis.com/auth/cloud-platform`
|
67
|
-
* `https://www.googleapis.com/auth/cloud-platform.read-only`
|
68
|
-
* **BigQuery**
|
69
|
-
* `https://www.googleapis.com/auth/bigquery`
|
70
|
-
* `https://www.googleapis.com/auth/bigquery.insertdata`
|
71
|
-
* **Compute Engine**
|
72
|
-
* `https://www.googleapis.com/auth/compute`
|
73
|
-
* **Datastore**
|
74
|
-
* `https://www.googleapis.com/auth/datastore`
|
75
|
-
* `https://www.googleapis.com/auth/userinfo.email`
|
76
|
-
* **DNS**
|
77
|
-
* `https://www.googleapis.com/auth/ndev.clouddns.readwrite`
|
78
|
-
* **Pub/Sub**
|
79
|
-
* `https://www.googleapis.com/auth/pubsub`
|
80
|
-
* **Storage**
|
81
|
-
* `https://www.googleapis.com/auth/devstorage.full_control`
|
82
|
-
* `https://www.googleapis.com/auth/devstorage.read_only`
|
83
|
-
* `https://www.googleapis.com/auth/devstorage.read_write`
|
58
|
+
When running on Google Cloud Platform (GCP), including Google Compute Engine (GCE),
|
59
|
+
Google Kubernetes Engine (GKE), Google App Engine (GAE), Google Cloud Functions
|
60
|
+
(GCF) and Cloud Run, the **Project ID** and **Credentials** and are discovered
|
61
|
+
automatically. Code should be written as if already authenticated.
|
84
62
|
|
85
63
|
### Environment Variables
|
86
64
|
|
data/README.md
CHANGED
@@ -58,11 +58,11 @@ end
|
|
58
58
|
|
59
59
|
## Supported Ruby Versions
|
60
60
|
|
61
|
-
This library is supported on Ruby 2.
|
61
|
+
This library is supported on Ruby 2.4+.
|
62
62
|
|
63
63
|
Google provides official support for Ruby versions that are actively supported
|
64
64
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
65
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
65
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.4
|
66
66
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
67
67
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
68
68
|
about the Ruby support schedule.
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
# in the format "projects/\\{project_number}".
|
25
25
|
# @!attribute [rw] assessment
|
26
26
|
# @return [Google::Cloud::Recaptchaenterprise::V1beta1::Assessment]
|
27
|
-
# The
|
27
|
+
# Required. The assessment details.
|
28
28
|
class CreateAssessmentRequest; end
|
29
29
|
|
30
30
|
# The request message to annotate an Assessment.
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
# "projects/\\{project_number}/assessments/\\{assessment_id}".
|
35
35
|
# @!attribute [rw] annotation
|
36
36
|
# @return [Google::Cloud::Recaptchaenterprise::V1beta1::AnnotateAssessmentRequest::Annotation]
|
37
|
-
# The annotation that will be assigned to the Event.
|
37
|
+
# Required. The annotation that will be assigned to the Event.
|
38
38
|
class AnnotateAssessmentRequest
|
39
39
|
# Enum that reprensents the types of annotations.
|
40
40
|
module Annotation
|
@@ -78,48 +78,52 @@ module Google
|
|
78
78
|
# Default unspecified type.
|
79
79
|
CLASSIFICATION_REASON_UNSPECIFIED = 0
|
80
80
|
|
81
|
-
#
|
81
|
+
# Interactions matched the behavior of an automated agent.
|
82
82
|
AUTOMATION = 1
|
83
83
|
|
84
|
-
# The event
|
84
|
+
# The event originated from an illegitimate environment.
|
85
85
|
UNEXPECTED_ENVIRONMENT = 2
|
86
86
|
|
87
|
-
#
|
88
|
-
|
87
|
+
# Traffic volume from the event source is higher than normal.
|
88
|
+
TOO_MUCH_TRAFFIC = 3
|
89
|
+
|
90
|
+
# Interactions with the site were significantly different than expected
|
91
|
+
# patterns.
|
89
92
|
UNEXPECTED_USAGE_PATTERNS = 4
|
90
93
|
|
91
94
|
# Too little traffic has been received from this site thus far to generate
|
92
95
|
# quality risk analysis.
|
93
|
-
|
96
|
+
LOW_CONFIDENCE_SCORE = 5
|
94
97
|
end
|
95
98
|
end
|
96
99
|
|
97
100
|
# @!attribute [rw] token
|
98
101
|
# @return [String]
|
99
|
-
# The user response token provided by the reCAPTCHA client-side integration
|
102
|
+
# Required. The user response token provided by the reCAPTCHA client-side integration
|
100
103
|
# on your site.
|
101
104
|
# @!attribute [rw] site_key
|
102
105
|
# @return [String]
|
103
|
-
# The site key that was used to invoke reCAPTCHA on your site and generate
|
106
|
+
# Required. The site key that was used to invoke reCAPTCHA on your site and generate
|
104
107
|
# the token.
|
105
108
|
class Event; end
|
106
109
|
|
107
110
|
# @!attribute [rw] valid
|
108
111
|
# @return [true, false]
|
109
|
-
#
|
112
|
+
# Whether the provided user response token is valid.
|
110
113
|
# @!attribute [rw] invalid_reason
|
111
114
|
# @return [Google::Cloud::Recaptchaenterprise::V1beta1::TokenProperties::InvalidReason]
|
112
|
-
#
|
115
|
+
# Reason associated with the response when valid = false.
|
113
116
|
# @!attribute [rw] create_time
|
114
117
|
# @return [Google::Protobuf::Timestamp]
|
115
|
-
#
|
118
|
+
# The timestamp corresponding to the generation of the token.
|
116
119
|
# @!attribute [rw] hostname
|
117
120
|
# @return [String]
|
118
|
-
#
|
121
|
+
# The hostname of the page on which the token was generated.
|
119
122
|
# @!attribute [rw] action
|
120
123
|
# @return [String]
|
121
|
-
#
|
124
|
+
# Action name provided at token generation.
|
122
125
|
class TokenProperties
|
126
|
+
# LINT.IfChange
|
123
127
|
# Enum that represents the types of invalid token reasons.
|
124
128
|
module InvalidReason
|
125
129
|
# Default unspecified type.
|
@@ -137,7 +141,7 @@ module Google
|
|
137
141
|
# The user verification had already been seen.
|
138
142
|
DUPE = 4
|
139
143
|
|
140
|
-
# The user verification token did not match the provided site
|
144
|
+
# The user verification token did not match the provided site key.
|
141
145
|
# This may be a configuration error (e.g. development keys used in
|
142
146
|
# production) or end users trying to use verification tokens from other
|
143
147
|
# sites.
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
@@ -225,7 +225,7 @@ module Google
|
|
225
225
|
# Required. The name of the project in which the assessment will be created,
|
226
226
|
# in the format "projects/\\{project_number}".
|
227
227
|
# @param assessment [Google::Cloud::Recaptchaenterprise::V1beta1::Assessment | Hash]
|
228
|
-
# The
|
228
|
+
# Required. The assessment details.
|
229
229
|
# A hash of the same form as `Google::Cloud::Recaptchaenterprise::V1beta1::Assessment`
|
230
230
|
# can also be provided.
|
231
231
|
# @param options [Google::Gax::CallOptions]
|
@@ -266,7 +266,7 @@ module Google
|
|
266
266
|
# Required. The resource name of the Assessment, in the format
|
267
267
|
# "projects/\\{project_number}/assessments/\\{assessment_id}".
|
268
268
|
# @param annotation [Google::Cloud::Recaptchaenterprise::V1beta1::AnnotateAssessmentRequest::Annotation]
|
269
|
-
# The annotation that will be assigned to the Event.
|
269
|
+
# Required. The annotation that will be assigned to the Event.
|
270
270
|
# @param options [Google::Gax::CallOptions]
|
271
271
|
# Overrides the default settings for this call, e.g, timeout,
|
272
272
|
# retries, etc.
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
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'
|
8
11
|
require 'google/protobuf/timestamp_pb'
|
9
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
13
|
add_message "google.cloud.recaptchaenterprise.v1beta1.CreateAssessmentRequest" do
|
@@ -33,8 +36,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
33
36
|
value :CLASSIFICATION_REASON_UNSPECIFIED, 0
|
34
37
|
value :AUTOMATION, 1
|
35
38
|
value :UNEXPECTED_ENVIRONMENT, 2
|
39
|
+
value :TOO_MUCH_TRAFFIC, 3
|
36
40
|
value :UNEXPECTED_USAGE_PATTERNS, 4
|
37
|
-
value :
|
41
|
+
value :LOW_CONFIDENCE_SCORE, 5
|
38
42
|
end
|
39
43
|
add_message "google.cloud.recaptchaenterprise.v1beta1.Event" do
|
40
44
|
optional :token, :string, 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-recaptcha_enterprise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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: 2019-
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.8'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: grpc-google-iam-v1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,19 +67,19 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: google-style
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 1.24.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 1.24.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 2.
|
145
|
+
version: '2.4'
|
146
146
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
150
|
version: '0'
|
151
151
|
requirements: []
|
152
|
-
rubygems_version: 3.0.
|
152
|
+
rubygems_version: 3.0.6
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: API Client library for reCAPTCHA Enterprise API
|