lib/google/ads/google_ads/v0/services/credentials.rb in google-ads-googleads-0.7.0 vs lib/google/ads/google_ads/v0/services/credentials.rb in google-ads-googleads-0.8.0

- old
+ new

@@ -1,6 +1,6 @@ -# Copyright 2018 Google LLC +# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # @@ -20,16 +20,16 @@ module V0 module Services class Credentials < Google::Auth::Credentials SCOPE = [ ].freeze - PATH_ENV_VARS = %w(GOOGLEADS_KEYFILE - GOOGLEADS_CREDENTIALS + PATH_ENV_VARS = %w(GOOGLEADS_CREDENTIALS + GOOGLEADS_KEYFILE GOOGLE_CLOUD_CREDENTIALS GOOGLE_CLOUD_KEYFILE GCLOUD_KEYFILE) - JSON_ENV_VARS = %w(GOOGLEADS_KEYFILE_JSON - GOOGLEADS_CREDENTIALS_JSON + JSON_ENV_VARS = %w(GOOGLEADS_CREDENTIALS_JSON + GOOGLEADS_KEYFILE_JSON GOOGLE_CLOUD_CREDENTIALS_JSON GOOGLE_CLOUD_KEYFILE_JSON GCLOUD_KEYFILE_JSON) DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"] end