def update_account(*args)
if args.size == 2
identifier = args[0]
options = args[1]
elsif args.size == 1
options = args[0]
else
raise ArgumentError, "wrong number of arguments (0 for 2)"
end
return nil if options.empty? || options.nil?
if identifier.nil? || identifier.empty?
Fog::Logger.deprecation("update_account() without a parameter is deprecated, use update_scoped_account instead [light_black](#{caller.first})[/]")
update_scoped_account(options)
else
wrapped_request("put", "/1.0/accounts/#{identifier}", [200], options)
end
end