Class: MistApi::SwitchPortLocalUsageDot1xEnum

Inherits:
Object
  • Object
show all
Defined in:
lib/mist_api/models/switch_port_local_usage_dot1x_enum.rb

Overview

if dot1x is desired, set to dot1x. enum: ‘dot1x`

Constant Summary collapse

SWITCH_PORT_LOCAL_USAGE_DOT1X_ENUM =
[
  # TODO: Write general description for DOT1X
  DOT1X = 'dot1x'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = DOT1X) ⇒ Object



20
21
22
23
24
# File 'lib/mist_api/models/switch_port_local_usage_dot1x_enum.rb', line 20

def self.from_value(value, default_value = DOT1X)
  return default_value if value.nil?

  default_value
end

.validate(value) ⇒ Object



14
15
16
17
18
# File 'lib/mist_api/models/switch_port_local_usage_dot1x_enum.rb', line 14

def self.validate(value)
  return false if value.nil?

  SWITCH_PORT_LOCAL_USAGE_DOT1X_ENUM.include?(value)
end