class Google::Cloud::Translate::V2::Credentials
Represents the authentication and authorization used to connect to the Cloud
Translation
API.
@example
require "google/cloud/translate/v2" keyfile = "/path/to/keyfile.json" creds = Google::Cloud::Translate::V2::Credentials.new keyfile translate = Google::Cloud::Translate.new( version: :v2, project_id: "my-todo-project", credentials: creds ) translate.project_id #=> "my-todo-project"
Constants
- DEFAULT_PATHS
- JSON_ENV_VARS
- PATH_ENV_VARS
- SCOPE