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

45 commits

Author SHA1 Message Date
Hemant Kumar
23c1e414d8 [Brightbox] Adds ApiClient Model
* Add api client model for Brightbox
* Also map relevant requests to model methods
* Add ApiClient declaration to compute.rb
2012-11-01 17:49:54 +00:00
Hemant Kumar
2b8e54c826 [Brightbox] Change code to return Single user 2012-11-01 17:49:54 +00:00
Steve Smith
7a4c0440a4 [Brightbox] add support for User Applications 2012-11-01 17:49:54 +00:00
Steve Smith
da46fd27f6 [Brightbox] Allow users to lists all accounts associated with the current credentials 2012-11-01 17:49:53 +00:00
Paul Thornthwaite
a80fa7c32a [Brightbox] Reuses connection for image selection
Fixes  - Server initialisation failed unless you had a configuration
file because it tried to create a second connection directly using the
config details.

We now get access to the 'connection' that exists and use that so it is
already configured and authenticated.
2012-10-19 10:20:26 +01:00
Paul Thornthwaite
b221b97ba6 [brightbox|compute] Helper to get default image from API
* First will look for a configuration value brightbox_default_image
* Second will query the API for latest Ubuntu (ideally LTS)
2012-08-15 15:48:23 +01:00
Paul Thornthwaite
deb2ca830e [brightbox|compute] Implemented reboot using available API commands 2012-08-15 12:01:31 +01:00
Hemant Kumar
d91edcbb29 Merge remote-tracking branch 'upstream/master'
Conflicts:
	tests/brightbox/requests/compute/helper.rb
2012-07-25 17:09:19 +05:30
Paul Thornthwaite
4c21314b24 [brightbox|compute] Update format tests for "fqdn" attribute 2012-05-09 12:05:21 +01:00
Paul Thornthwaite
814e1f58e3 [brightbox|compute] Updated image reference where unfortunately hardcoded 2012-05-08 16:51:24 +01:00
Hemant Kumar
62f1757ead Add support for port translators 2012-04-11 15:47:26 +05:30
Hemant Kumar
776df93db2 Brightbox : Include licence_name in Image
Also update test helper
2012-03-07 14:52:20 +05:30
Hemant Kumar
809a097523 Add fqdn to server attributes 2012-02-08 19:00:35 +05:30
Paul Thornthwaite
e7af149bb7 [brightbox] ServerGroup association to Servers 2011-11-17 16:41:59 +00:00
Paul Thornthwaite
4577a80010 [brightbox] Correctly get Server's IP addresses as strings 2011-11-17 16:41:31 +00:00
Paul Thornthwaite
bea5bfe80a [brightbox] Make Cloud IP model's map nicer to use
* API accepts a load balancer or interface ID
* Model accepts a Server and figures out a suitable interface
2011-11-17 16:41:31 +00:00
Paul Thornthwaite
6fb4247c07 [brightbox] Updated default Ubuntu image 2011-11-17 16:41:30 +00:00
Hemant Kumar
f70605cebc [Brightbox]Protocol is no longer required parameter for firewall 2011-10-27 18:58:03 +05:30
Hemant Kumar
c642dd9076 [Brightbox] Add created_at attribute for server_group,policy and firewall rule 2011-10-27 15:27:27 +05:30
Hemant Kumar
5cd31eb9a0 [Brightbox] Remove name as mandatory parameter for creating server group 2011-10-25 16:54:22 +05:30
Hemant Kumar
3f221ba83b [Brightbox] Change logic of fetching zone and flavour_id 2011-10-24 16:12:37 +05:30
Hemant Kumar
b7091ce648 [Brightbox] Add model method for remove 2011-10-20 18:21:47 +05:30
Hemant Kumar
cddae88809 [Brightbox] Add username to Image 2011-10-19 19:15:50 +05:30
Hemant Kumar
1af384fb9e [Brightbox] Add zone/server_type attribute for Server 2011-10-14 16:02:01 +05:30
Hemant Kumar
60a3f4585f [Brightbox] Fix zone_id/flavour_id getter/setter for Server 2011-10-14 16:01:23 +05:30
Paul Thornthwaite
63a204cae0 Merge branch 'master' into brightbox 2011-10-13 10:11:43 +01:00
Paul Thornthwaite
709c8b807f [brightbox] Fixed incorrect call to reset_ftp_password 2011-10-13 10:08:06 +01:00
Paul Thornthwaite
d2ba72ab15 [brightbox] Added missing requirement and request arg 2011-10-06 11:33:44 +02:00
Paul Thornthwaite
298d1a9192 [brightbox] Firewall models 2011-10-05 11:57:34 +01:00
Caius Durling
43846aef5f [brightbox] Pass along server_groups when creating a server 2011-09-30 11:08:12 +01:00
Caius Durling
6f32c0a38f [brightbox] Adding *_server actions to ServerGroup model
* ServerGroup#add_servers
* ServerGroup#remove_servers
* ServerGroup#move_servers
2011-09-30 11:08:06 +01:00
Paul Thornthwaite
9596bea466 [compute|brightbox] Fixed server_groups.get
Helps to use the correct request.
2011-09-21 09:45:31 +01:00
Paul Thornthwaite
8bd540938b [compute|brightbox] Added ServerGroup model and collections 2011-09-20 17:15:58 +01:00
Paul Thornthwaite
440bbc30f5 [compute|brightbox] Reset times to the correct type so not string attributes 2011-09-09 17:56:44 +01:00
geemus
4002c9ff89 [compute|brightbox] move brightbox compute to its own shared area (namespacing should probably be corrected) 2011-08-24 20:31:12 -05:00
geemus
3be53104be [compute] consolidate 2011-01-07 16:52:09 -08:00
Paul Thornthwaite
734fbfaf43 Updated to match other tests
Conflicts:
	tests/brightbox/helper.rb
2010-12-09 16:01:38 +00:00
Paul Thornthwaite
6500fa46bf [brightbox] Tests for remaining API requests
* Request tests for accounts, api_clients, cloud_ips, images, interfaces, server types, user and zones
* Added 'ready?' methods to CloudIp and Image models
* Reworked brightbox helper to include Format patterns for all of the
* Added "hack" to allow select objects to be one class OR NilClass for fields that may be a JSON string or null if unset
* Some tests are not enabled (commented out) because they need manual steps (such as uploading Image to your account before registration)
2010-12-09 13:28:51 +00:00
Paul Thornthwaite
e355a5ccb4 [brightbox] Rough LoadBalancer model in place 2010-12-03 16:07:52 +00:00
geemus
5854e249aa more consistent attribute storage/usage 2010-11-19 13:45:45 -08:00
Paul Thornthwaite
bc91f00f63 [brightbox] Removed Server description (obsolete field) 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
418e057650 [brightbox] Added type to Account's created_at attribute 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
42d8ba33cd [brightbox] Removed reboot action and request due to API change 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
07bbc05951 [brightbox] Moved JSON parsing to request method to DRY up models, make requests easier to use 2010-11-16 11:11:53 -08:00
Paul Thornthwaite
0ec77fc5a5 [brightbox] Added support for Brightbox cloud API beta (http://beta.brightbox.com) 2010-11-16 11:11:53 -08:00