google-cloud-recaptcha_enterprise-v1 0.4.1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/client.rb +742 -67
- data/lib/google/cloud/recaptcha_enterprise/v1/recaptcha_enterprise_service/paths.rb +34 -0
- data/lib/google/cloud/recaptcha_enterprise/v1/version.rb +1 -1
- data/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_pb.rb +118 -2
- data/lib/google/cloud/recaptchaenterprise/v1/recaptchaenterprise_services_pb.rb +17 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.rb +387 -9
- 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: 9f256800fdd81e93e4045ae4b13e2b9219e17eeb9d4937b942fea2c86712d027
|
4
|
+
data.tar.gz: 804b44cf983a6d02548124ddf2f082d7320a66f4a1389bb885c446b09b565926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee31985432275b2f8f4b610ea09c3eba05cd910bcdcd29048234c36a02571ec1400407df0b28427d15f24aeb7b4d5ec1ea032069a7da4535ce0b080594bed5f4
|
7
|
+
data.tar.gz: a50764572d48829d53018192b80db86aa0fd0dcb86e3aee1103459665e1d4616adc9ab58aaa32bb07fcbac39f3d7d721893d19031c9fc23c42ff959f2952f169
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-recaptcha_enterprise-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `RECAPTCHA_ENTERPRISE_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `RECAPTCHA_ENTERPRISE_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/recaptcha_enterprise/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::C
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/recaptcha_enterprise/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::C
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/recaptcha_enterprise/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/recaptcha_enterprise/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::RecaptchaEnterprise::V1::CreateAssessmentRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.create_assessment request
|
38
38
|
```
|
39
39
|
|