Module | Fog::Compute::Brightbox::Shared |
In: |
lib/fog/brightbox/compute.rb
|
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.
@param [Hash] options @option options [String] :brightbox_api_url Override the default (or configured) API endpoint @option options [String] :brightbox_auth_url Override the default (or configured) API authentication endpoint @option options [String] :brightbox_client_id Client identifier to authenticate with (overrides configured) @option options [String] :brightbox_secret Client secret to authenticate with (overrides configured) @option options [String] :brightbox_username Email or user identifier for user based authentication @option options [String] :brightbox_password Password for user based authentication @option options [String] :brightbox_account Account identifier to scope this connection to @option options [String] :connection_options Settings to pass to underlying {Fog::Connection} @option options [Boolean] :persistent Sets a persistent HTTP {Fog::Connection} @option options [String] :brightbox_access_token Sets the OAuth access token to use rather than requesting a new token @option options [String] :brightbox_refresh_token Sets the refresh token to use when requesting a newer access token @option options [String] :brightbox_token_management Overide the existing behaviour to request access tokens if expired (default is `true`)
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 Ubuntu LTS (i686) widening up to the latest, official version of Ubuntu available.
Highly recommended that you actually select the image you want to run on your servers yourself!
@return [String, nil]
Sets the scoped account for future requests @param [String] scoped_account Identifier of the account to scope request to