Module | Fog::Brightbox::Compute::Shared |
In: |
lib/fog/brightbox/compute/shared.rb
|
The Shared module consists of code that was duplicated between the Real and Mock implementations.
API_URL | = | "https://api.gb1.brightbox.com/" |
scoped_account | [W] |
Creates a new instance of the Brightbox Compute service
@note If you create service using just a refresh token when it
expires the service will no longer be able to authenticate.
@see Fog::Brightbox::Config#initialize Config object for possible configuration options
@param [Brightbox::Config, Hash] config
Any configuration to be used for this service. This ideally should be in the newer form of a {Brightbox::Config} object but may be a Hash.
Returns the scoped account being used for requests
@return [Fog::Compute::Brightbox::Account]
Returns an identifier for the default image for use
Currently tries to find the latest version of Ubuntu (i686) from Brightbox.
Highly recommended that you actually select the image you want to run on your servers yourself!
@return [String] if image is found, returns the identifier @return [NilClass] if no image is found or an error occurs
Requests a new access token and raises if there is a problem
@return [String] New access token @raise [Excon::Errors::BadRequest] The credentials are expired or incorrect