module Aws::Google::GoogleSharedCredentials
Public Instance Methods
google_credentials_from_config(opts = {})
click to toggle source
# File lib/aws/google/credential_provider.rb, line 24 def google_credentials_from_config(opts = {}) google_opts = {} if @config_enabled && @parsed_config p = opts[:profile] || @profile_name google_opts.merge!(@parsed_config. fetch(p, {}).fetch('google', {}). transform_keys(&:to_sym) ) end google_opts.merge!(::Aws::Google.config) if google_opts.has_key?(:role_arn) Google.new(google_opts) end end