Skip to content

Commit

Permalink
[compute|brightbox] Added missing requests
Browse files Browse the repository at this point in the history
* reset_secret_api_client - hopefully people won't lock themselves out with this
* update_cloud_ip - request added
  • Loading branch information
tokengeek committed Sep 20, 2011
1 parent 387f374 commit 842f1b6
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/fog/brightbox/requests/compute/reset_secret_api_client.rb
Original file line number Diff line number Diff line change
@@ -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
15 changes: 15 additions & 0 deletions lib/fog/brightbox/requests/compute/update_cloud_ip.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 842f1b6

Please sign in to comment.