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

[Brightbox] Updates to requests

Replaces deprecated use of `request` with `wrapped_request` and also
updates documentation with latest version from API
This commit is contained in:
Paul Thornthwaite 2013-01-21 13:12:59 +00:00
parent 2fb1ea7d64
commit 21680fb2e0
3 changed files with 3 additions and 1 deletions

View file

@ -9,6 +9,7 @@ module Fog
# @param [Hash] options
# @option options [String] :server_group
# @option options [String] :name Editable label
# @option options [String] :description Longer editable description
#
# @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
#

View file

@ -16,7 +16,7 @@ module Fog
def update_firewall_policy(identifier, options)
return nil if identifier.nil? || identifier == ""
return nil if options.empty? || options.nil?
request("put", "/1.0/firewall_policies/#{identifier}", [200], options)
wrapped_request("put", "/1.0/firewall_policies/#{identifier}", [200], options)
end
end

View file

@ -8,6 +8,7 @@ module Fog
# @param [Hash] options
# @option options [String] :name Editable label
# @option options [String] :user_data User defined metadata
# @option options [Boolean] :compatibility_mode Server needs to be shutdown and restarted for changes to this to take effect
#
# @return [Hash, nil] The JSON response parsed to a Hash or nil if no options passed
#