AUTHENTICATION.md in google-cloud-recaptcha_enterprise-v1-0.1.0 vs AUTHENTICATION.md in google-cloud-recaptcha_enterprise-v1-0.1.1
- old
+ new
@@ -25,11 +25,11 @@
3. Initialize the client.
```ruby
require "google/cloud/recaptcha_enterprise/v1"
-client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
+client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
```
## Credential Lookup
The google-cloud-recaptcha_enterprise-v1 library aims to make authentication
@@ -62,11 +62,11 @@
**Credentials JSON** itself can be stored for environments such as Docker
containers where writing files is difficult or not encouraged.
The environment variables that google-cloud-recaptcha_enterprise-v1
checks for credentials are configured on the service Credentials class (such as
-{Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Credentials}):
+{::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Credentials}):
1. `RECAPTCHA_ENTERPRISE_CREDENTIALS` - Path to JSON file, or JSON contents
2. `RECAPTCHA_ENTERPRISE_KEYFILE` - Path to JSON file, or JSON contents
3. `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
4. `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
@@ -75,35 +75,35 @@
```ruby
require "google/cloud/recaptcha_enterprise/v1"
ENV["RECAPTCHA_ENTERPRISE_CREDENTIALS"] = "path/to/keyfile.json"
-client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
+client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
```
### Configuration
The **Credentials JSON** can be configured instead of placing them in
environment variables. Either on an individual client initialization:
```ruby
require "google/cloud/recaptcha_enterprise/v1"
-client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
+client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
config.credentials = "path/to/keyfile.json"
end
```
Or configured globally for all clients:
```ruby
require "google/cloud/recaptcha_enterprise/v1"
-Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
+::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
config.credentials = "path/to/keyfile.json"
end
-client = Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
+client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
```
### Cloud SDK
This option allows for an easy way to authenticate during development. If