Class: MistApi::MxclusterRadsecNasIpSourceEnum
- Inherits:
-
Object
- Object
- MistApi::MxclusterRadsecNasIpSourceEnum
- Defined in:
- lib/mist_api/models/mxcluster_radsec_nas_ip_source_enum.rb
Overview
SSpecify NAS-IP-ADDRESS, NAS-IPv6-ADDRESS to use with auth_servers. enum: ‘any`, `oob`, `oob6`, `tunnel`, `tunnel6`
Constant Summary collapse
- MXCLUSTER_RADSEC_NAS_IP_SOURCE_ENUM =
[ # TODO: Write general description for ANY ANY = 'any'.freeze, # TODO: Write general description for OOB OOB = 'oob'.freeze, # TODO: Write general description for OOB6 OOB6 = 'oob6'.freeze, # TODO: Write general description for TUNNEL TUNNEL = 'tunnel'.freeze, # TODO: Write general description for TUNNEL6 TUNNEL6 = 'tunnel6'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = ANY) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/mist_api/models/mxcluster_radsec_nas_ip_source_enum.rb', line 33 def self.from_value(value, default_value = ANY) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'any' then ANY when 'oob' then OOB when 'oob6' then OOB6 when 'tunnel' then TUNNEL when 'tunnel6' then TUNNEL6 else default_value end end |
.validate(value) ⇒ Object
27 28 29 30 31 |
# File 'lib/mist_api/models/mxcluster_radsec_nas_ip_source_enum.rb', line 27 def self.validate(value) return false if value.nil? MXCLUSTER_RADSEC_NAS_IP_SOURCE_ENUM.include?(value) end |