AUTHENTICATION.md in google-cloud-dataplex-v1-0.1.0 vs AUTHENTICATION.md in google-cloud-dataplex-v1-0.2.0

- old
+ new

@@ -25,11 +25,11 @@ 3. Initialize the client. ```ruby require "google/cloud/dataplex/v1" -client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new +client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new ``` ## Credential Lookup The google-cloud-dataplex-v1 library aims to make authentication @@ -62,46 +62,46 @@ **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-dataplex-v1 checks for credentials are configured on the service Credentials class (such as -{::Google::Cloud::Dataplex::V1::MetadataService::Credentials}): +{::Google::Cloud::Dataplex::V1::ContentService::Credentials}): * `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/dataplex/v1" ENV["GOOGLE_CLOUD_CREDENTIALS"] = "path/to/keyfile.json" -client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new +client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new ``` ### Configuration 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/dataplex/v1" -client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new do |config| +client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new do |config| config.credentials = "path/to/keyfile.json" end ``` Or globally for all clients: ```ruby require "google/cloud/dataplex/v1" -::Google::Cloud::Dataplex::V1::MetadataService::Client.configure do |config| +::Google::Cloud::Dataplex::V1::ContentService::Client.configure do |config| config.credentials = "path/to/keyfile.json" end -client = ::Google::Cloud::Dataplex::V1::MetadataService::Client.new +client = ::Google::Cloud::Dataplex::V1::ContentService::Client.new ``` ### Cloud SDK This option allows for an easy way to authenticate during development. If