=begin
#Billing API
#Automate your infrastructure billing with the Bare Metal Cloud Billing API. Reserve your server instances to ensure guaranteed resource availability for 12, 24, and 36 months. Retrieve your server’s rated usage for a given period and enable or disable auto-renewals.
Knowledge base articles to help you can be found here
All URLs are relative to (https://api.phoenixnap.com/billing/v1/)
The version of the OpenAPI document: 0.1
Contact: support@phoenixnap.com
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 7.2.0
=end
require 'date'
require 'time'
module BillingApi
class PriceUnitEnum
HOUR = "HOUR".freeze
MONTH = "MONTH".freeze
GB = "GB".freeze
UNIT = "UNIT".freeze
FLAT = "FLAT".freeze
TB_PER_HOUR = "TB_PER_HOUR".freeze
def self.all_vars
@all_vars ||= [HOUR, MONTH, GB, UNIT, FLAT, TB_PER_HOUR].freeze
end
# Builds the enum from string
# @param [String] The enum value in the form of the string
# @return [String] The enum value
def self.build_from_hash(value)
new.build_from_hash(value)
end
# Builds the enum from string
# @param [String] The enum value in the form of the string
# @return [String] The enum value
def build_from_hash(value)
return value if PriceUnitEnum.all_vars.include?(value)
raise "Invalid ENUM value #{value} for class #PriceUnitEnum"
end
end
end