module Google::Cloud::Storage::Convert
def storage_class_for str
-
str
(String, Symbol, Array
) --
def storage_class_for str return nil if str.nil? return str.map { |s| storage_class_for s } if str.is_a? Array { "archive" => "ARCHIVE", "coldline" => "COLDLINE", "dra" => "DURABLE_REDUCED_AVAILABILITY", "durable" => "DURABLE_REDUCED_AVAILABILITY", "durable_reduced_availability" => "DURABLE_REDUCED_AVAILABILITY", "multi_regional" => "MULTI_REGIONAL", "nearline" => "NEARLINE", "regional" => "REGIONAL", "standard" => "STANDARD" }[str.to_s.downcase] || str.to_s end