1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

15 commits

Author SHA1 Message Date
Paul Thornthwaite
330a351ade Remove trailing blank lines
Done with `rubocop --auto-correct --only TrailingBlankLines`
2014-05-26 14:35:26 +01:00
Paul Thornthwaite
2e0b7e545a Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
2014-05-26 14:20:02 +01:00
Daniel Lobato
7ba3f79224 [Openstack|Volumes] available? check method
available? simply returns whether the volume is being used or its
available. This is convenient for applications using the Fog API to
check if they can use a Volume by calling
```openstack.volumes.select(&:available)```

Renamed to ready?
2014-03-03 20:57:45 +01:00
Grzesiek Kolodziejczyk
95e5356dda [OS|Volume] Add listing/showing volume types 2013-11-01 16:05:29 +01:00
Dan Prince
96d63790f7 Merge pull request #1845 from cloudbau/volume_filters
Pass on filters to volume endpoint
2013-10-01 03:48:52 -07:00
Grzesiek Kolodziejczyk
c3278a1cc9 [Openstack|Volumes] alias type to volume_type
This makes the changes consistent with how it previously worked.
2013-07-18 17:32:20 +02:00
Grzesiek Kolodziejczyk
3f81b28a43 [Openstack|volume] create volumes from other vol. 2013-07-10 09:48:46 +02:00
Grzesiek Kolodziejczyk
9111f7aba7 [Openstack|volume] fix key name for volume_type
The cinder API uses volume_type instead of type.
2013-07-05 15:41:01 +02:00
Grzesiek Kolodziejczyk
3970ab5797 [Openstack|volume] Add #get to volumes collection
This fixes reloading Volume objects and makes it consistent with other
collections.

Keeping find_by_id as an alias for compatibility.
2013-07-03 12:25:05 +02:00
Grzesiek Kolodziejczyk
f53fc98ff2 [openstack|volume] support imageRef option
Volumes can be created with the imageRef option, which dictates which
image to base the volume off.
2013-06-27 13:16:09 +02:00
Hendrik Volkmer
2a9b278c2e Adds backwards compatibility comment 2013-06-04 10:59:49 +03:00
Thomas Kadauke
b45e0508c7 Pass on filters to volume endpoint, mainly to allow admin to get volumes from all tenants. 2013-05-30 17:16:13 +02:00
Paul Thornthwaite
9d3a27f10a [openstack] Updates reference to service 2013-01-07 21:01:18 +00:00
Paul Thornthwaite
7961ad6508 [core] Deprecates 'connection' accessor
The 'connection' accessor in collections and models actually refered to
a subclassed instance of Fog::Service which creates confusion in the
code.

References to 'connection' could have meant the service or the
Fog::Connection held within that service.

This deprecates the connection accessor and replaces it with `#service`
as a read only value. When a collection or model is initalised then
service should be passed.

This commit also updates all the changes to @connection made by
providers in model initialisers since these depending on the presence of
the 'connection' key. The key is still accepted by outputs a warning.
2013-01-07 20:53:24 +00:00
Philip Mark M. Deazeta
e4cf9e3db9 [openstack|volume] Added volume model 2012-05-14 14:46:36 +08:00