def create_brand(attributes)
raise ArgumentError, "Fog::Account::Softlayer#create_brand expects argument of type Hash" unless attributes.kind_of?(Hash)
response = Excon::Response.new
required = %w{keyName longName name account}
if Fog::Softlayer.valid_request?(required, attributes)
response.status = 201
response.body = { :id => Fog::Softlayer.mock_vm_id.to_i, :catalogId => 14 }.merge(attributes)
@brands << response.body
else
response.status = 500
response.body = {
"code" => "SoftLayer_Exception_MissingCreationProperty",
"error" => "Properties #{required.join(', ')} ALL must be set to create an instance of 'SoftLayer_Brand'."
}
end
response
end