AUTHENTICATION.md in google-cloud-security-private_ca-v1-0.2.1 vs AUTHENTICATION.md in google-cloud-security-private_ca-v1-0.3.0
- old
+ new
@@ -23,11 +23,11 @@
```
3. Initialize the client.
```ruby
-require "google/cloud/location"
+require "google/cloud/security/private_ca/v1"
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
```
## Credential Lookup
@@ -71,11 +71,11 @@
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
```ruby
-require "google/cloud/location"
+require "google/cloud/security/private_ca/v1"
ENV["PRIVATE_CA_CREDENTIALS"] = "path/to/keyfile.json"
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new
```
@@ -84,20 +84,20 @@
The path to the **Credentials JSON** file can be configured instead of storing
it in an environment variable. Either on an individual client initialization:
```ruby
-require "google/cloud/location"
+require "google/cloud/security/private_ca/v1"
client = ::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.new do |config|
config.credentials = "path/to/keyfile.json"
end
```
Or globally for all clients:
```ruby
-require "google/cloud/location"
+require "google/cloud/security/private_ca/v1"
::Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client.configure do |config|
config.credentials = "path/to/keyfile.json"
end