From eaaabf9f62385a104c12abdd96f1cfdf74752e14 Mon Sep 17 00:00:00 2001 From: Nat Welch Date: Tue, 4 Jun 2013 14:27:14 -0700 Subject: [PATCH] Uping version to v1beta15 --- lib/fog/google/compute.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/fog/google/compute.rb b/lib/fog/google/compute.rb index 714e64602..f64b9844a 100644 --- a/lib/fog/google/compute.rb +++ b/lib/fog/google/compute.rb @@ -69,13 +69,13 @@ module Fog base_url = 'https://www.googleapis.com/compute/' - api_version = 'v1beta14' + api_version = 'v1beta15' api_scope_url = 'https://www.googleapis.com/auth/compute' @project = options[:google_project] google_client_email = options[:google_client_email] @api_url = base_url + api_version + '/projects/' - #NOTE: loaded here to avoid requiring this as a core Fog dependency + # NOTE: loaded here to avoid requiring this as a core Fog dependency begin require 'google/api_client' rescue LoadError @@ -87,6 +87,7 @@ module Fog :application_name => "fog", :application_version => Fog::VERSION, }) + @client.authorization = Signet::OAuth2::Client.new({ :audience => 'https://accounts.google.com/o/oauth2/token', :auth_provider_x509_cert_url => "https://www.googleapis.com/oauth2/v1/certs", @@ -96,8 +97,8 @@ module Fog :signing_key => key, :token_credential_uri => 'https://accounts.google.com/o/oauth2/token', }) - @client.authorization.fetch_access_token! + @client.authorization.fetch_access_token! @compute = @client.discovered_api('compute', api_version) @default_network = 'default' end