mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Uping version to v1beta15
This commit is contained in:
parent
30dd43f1e8
commit
eaaabf9f62
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue