AUTHENTICATION.md in google-cloud-talent-0.20.0 vs AUTHENTICATION.md in google-cloud-talent-1.0.0
- old
+ new
@@ -25,11 +25,11 @@
3. Initialize the client.
```ruby
require "google/cloud/talent"
-client = Google::Cloud::Talent.application_service
+client = Google::Cloud::Talent.company_service
```
## Credential Lookup
The google-cloud-talent 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-talent
checks for credentials are configured on the service Credentials class (such as
-`::Google::Cloud::Talent::V4beta1::ApplicationService::Credentials`):
+`::Google::Cloud::Talent::V4::CompanyService::Credentials`):
1. `TALENT_CREDENTIALS` - Path to JSON file, or JSON contents
2. `TALENT_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,22 +75,22 @@
```ruby
require "google/cloud/talent"
ENV["TALENT_CREDENTIALS"] = "path/to/keyfile.json"
-client = Google::Cloud::Talent.application_service
+client = Google::Cloud::Talent.company_service
```
### Configuration
The **Credentials JSON** can be configured instead of placing them in
environment variables. Either on an individual client initialization:
```ruby
require "google/cloud/talent"
-client = Google::Cloud::Talent.application_service do |config|
+client = Google::Cloud::Talent.company_service do |config|
config.credentials = "path/to/keyfile.json"
end
```
Or configured globally for all clients:
@@ -100,10 +100,10 @@
Google::Cloud::Talent.configure do |config|
config.credentials = "path/to/keyfile.json"
end
-client = Google::Cloud::Talent.application_service
+client = Google::Cloud::Talent.company_service
```
### Cloud SDK
This option allows for an easy way to authenticate during development. If