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:
parent
387f374d2c
commit
842f1b6e50
2 changed files with 29 additions and 0 deletions
|
@ -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
lib/fog/brightbox/requests/compute/update_cloud_ip.rb
Normal file
15
lib/fog/brightbox/requests/compute/update_cloud_ip.rb
Normal 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
|
Loading…
Add table
Reference in a new issue