Module: Ovh::Api::Models::IpLoadbalancingIpStateEnum

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

Constant Summary collapse

BLACKLISTED =
'blacklisted'
DELETED =
'deleted'
FREE =
'free'
OK =
'ok'
QUARANTINED =
'quarantined'
SUSPENDED =
'suspended'

Class Method Summary collapse

Class Method Details

.allObject



18
19
20
21
22
23
24
25
26
27
# File 'lib/ovh-api/models/ip_loadbalancing_ip_state_enum.rb', line 18

def self.all
  @all ||= [
    BLACKLISTED,
    DELETED,
    FREE,
    OK,
    QUARANTINED,
    SUSPENDED,
  ].freeze
end

.valid?(value) ⇒ Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/ovh-api/models/ip_loadbalancing_ip_state_enum.rb', line 29

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