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

[compute|brightbox] Added missing requests

* reset_secret_api_client - hopefully people won't lock themselves out with this
* update_cloud_ip - request added
This commit is contained in:
Paul Thornthwaite 2011-09-16 13:08:48 +01:00
parent 387f374d2c
commit 842f1b6e50
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,14 @@
module Fog
module Compute
class Brightbox
class Real
def reset_secret_api_client(identifier)
return nil if identifier.nil? || identifier == ""
request("post", "/1.0/api_clients/#{identifier}/reset_secret", [200])
end
end
end
end
end

View file

@ -0,0 +1,15 @@
module Fog
module Compute
class Brightbox
class Real
def update_cloud_ip(identifier, options)
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request("put", "/1.0/cloud_ips/#{identifier}", [200], options)
end
end
end
end
end