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

24 commits

Author SHA1 Message Date
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
Ferran Rodenas
0a9884adfd [google|compute] Improve Disks support
- Add missing "Disk" properties
- Remove unnecessary property aliases
- Use "Operation" instead of the "backoff_if_unfound" method when
  inserting a "Disk" or "Snapshot"
- When destroying a "Disk" asyncronous return the "Operation" model instead
  of the raw operation response
- Add "list_aggregatted_disks" request
- If zone is not set on "all" and "get" methods, use the list aggregated
  disks request (1 API call) instead of fetching all zones
- Fix a bug when inserting a snapshot (description was not merged at the
  body request)
- Fix tests
2014-04-20 21:42:46 -07:00
Benson Kalahar
8c3a4a2342 Makes disk delete optionally async 2014-04-10 12:57:13 -07:00
Benson Kalahar
a6e4535309 Merge remote-tracking branch 'fog/master' 2014-04-07 09:29:05 -07:00
Eric Johnson
9380dc3a4f fix destroy and add ready?, other little cleanups 2014-04-05 22:56:18 +00:00
Eric Johnson
3834726134 [google|compute] allow user to set disk description 2014-04-02 22:06:14 +00:00
Eric Johnson
03fadf2c72 fix mismatched variable names in disk.create_snapshot 2014-03-13 13:17:02 +00:00
kbockmanrs
64edb7e009 [google|compute] disk model: Default get_object auto_delete to false 2014-03-08 01:02:45 +00:00
kbockmanrs
0065c8ba6b [google|compute] disk model: Add auto_delete option to get_as_boot_disk 2014-03-08 01:02:45 +00:00
kbockmanrs
0c07637cb8 [google|compute] disk model: get_object fix for Ruby 1.8 2014-03-06 18:55:24 +00:00
Carlos Sanchez
4988947b4b [google] Disk.ready? should not reload the data 2014-01-07 20:13:21 +01:00
Doug Henderson
dd72a93633 [google][compute] Add support for blank disks (i.e. remove code that required only image or snapshot based disks to be created) 2013-12-19 21:37:46 +01:00
Carlos Sanchez
fafebc13f1 [google] Handle 500 errors from GCE 2013-12-19 21:37:46 +01:00
Carlos Sanchez
4c2736d0c2 [google][compute] Update to API v1
Simplify attachment of boot disk, get_as_boot_disk no longer needed
Add missing Disk.get_object method
Allow setting deviceName when attaching a disk
Add disks mocks
2013-12-19 21:37:46 +01:00
Carlos Sanchez
8db39e3637 [google] Implement operation model
Check that server and disk destroy operation starts successfully
Implement get and delete requests
Handle 204 responses without body
Return excon response with same status as the api returned
Delete delete_operation api method that doesn't exist
Add mocks for operations and use them in disk and server
2013-12-06 12:55:16 +01:00
Nat Welch
2acdfeb9fd expand variable names 2013-10-27 08:00:25 -07:00
Akshay Moghe
dd175d9f94 Create a Snapshot based on a Disk 2013-10-25 16:03:07 -07:00
Nat Welch
31a4333323 [google|compute] Make sure we always set disk image size. 2013-10-10 21:08:17 -07:00
Akshay Moghe
7ad7183dc0 Align the disk interface more closely with the API.
The caller need only specify either image_name OR snapshot + size
when creating a disk in a given zone.

This patch also removes the @default_zone variable being referenced
in several places (because it is not actually defined anywhere).
2013-08-12 18:24:34 -07:00
jordangbull
3eaf8f42b5 Added destroy method to disk and zone method 2013-07-12 14:36:41 -07:00
jordangbull
a3368acb13 Cleaned code and fixed issue with getting a resource too soon after request for creation. 2013-07-11 10:30:54 -07:00
jordangbull
50f54278d7 Rebased and cleaned up google fog. Changed insert_server to allow all options (not backwards compatible, but throws an informative error 2013-07-09 14:34:09 -07:00
jordangbull
3d2c383816 cleaned out print statements. Refactored disk(s) to be created the same way as other models. Fixed wait_for on disks to properly work. 2013-07-09 11:36:12 -07:00
jordangbull
54ca80e015 Added Disk and Disks to Google compute. Created new insert server request method that is backward compatible with the old request method, but also allows all insert server options to be used rather than a subset. 2013-07-09 11:33:15 -07:00