class TencentCloud::Common::AbstractModel
def self.format_params(prefix = nil, params)
def self.format_params(prefix = nil, params) d = {} case params when Hash params.each do |k, v| key = prefix ? "#{prefix}.#{k}" : k.to_s d.update(format_params(key, v)) end when Array params.each_with_index do |v, i| key = prefix ? "#{prefix}.#{i}" : i.to_s d.update(format_params(key, v)) end else d[prefix] = params end d end