Module: Ovh::Api::Models::DedicatedCloudRessourcesUpgradeTypeEnum

Defined in:
lib/ovh-api/models/dedicated_cloud_ressources_upgrade_type_enum.rb

Constant Summary collapse

DEMO_TO_MONTHLY =
'demoToMonthly'
FREE_SPARE_TO_HOURLY =
'freeSpareToHourly'
HOURLY_TO_MONTHLY =
'hourlyToMonthly'

Class Method Summary collapse

Class Method Details

.allObject



15
16
17
18
19
20
21
# File 'lib/ovh-api/models/dedicated_cloud_ressources_upgrade_type_enum.rb', line 15

def self.all
  @all ||= [
    DEMO_TO_MONTHLY,
    FREE_SPARE_TO_HOURLY,
    HOURLY_TO_MONTHLY,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/ovh-api/models/dedicated_cloud_ressources_upgrade_type_enum.rb', line 23

def self.valid?(value)
  all.include?(value)
end