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:
parent
2fb1ea7d64
commit
21680fb2e0
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue