Class | DeltaCloud::API |
In: |
lib/base_object.rb
lib/deltacloud.rb |
Parent: | Object |
api_driver | [R] | |
api_provider | [R] | |
api_uri | [R] | |
api_version | [R] | |
driver_name | [R] | |
entry_points | [R] | |
features | [R] |
Define methods based on ‘rel’ attribute in entry point Two methods are declared: ‘images’ and ‘image‘
This method will retrieve API documentation for given collection
This method can be used to switch back-end cloud for API instance using HTTP headers. Options must include: {
:driver => 'rhevm|ec2|gogrid|...', :username => 'API key for backend', :password => 'API secret key for backend',
} Optionally you can pass also :provider option to change provider entry-point
Example usage: client = Deltacloud::new(‘url’, ‘username’, ‘password’) … client.with_config(:driver => ‘ec2’, :username => ’’, :password => ’’) do |ec2|
ec2.realms
end
Note: After this block finish client instance will be set back to default state
@param [Hash, opts] New provider configuration