Class: MistApi::GatewayPortVpnPathBfdProfileEnum
- Inherits:
-
Object
- Object
- MistApi::GatewayPortVpnPathBfdProfileEnum
- Defined in:
- lib/mist_api/models/gateway_port_vpn_path_bfd_profile_enum.rb
Overview
Only if the VPN ‘type`==`hub_spoke`. enum: `broadband`, `lte`
Constant Summary collapse
- GATEWAY_PORT_VPN_PATH_BFD_PROFILE_ENUM =
[ # TODO: Write general description for BROADBAND BROADBAND = 'broadband'.freeze, # TODO: Write general description for LTE LTE = 'lte'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = BROADBAND) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/mist_api/models/gateway_port_vpn_path_bfd_profile_enum.rb', line 23 def self.from_value(value, default_value = BROADBAND) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'broadband' then BROADBAND when 'lte' then LTE else default_value end end |
.validate(value) ⇒ Object
17 18 19 20 21 |
# File 'lib/mist_api/models/gateway_port_vpn_path_bfd_profile_enum.rb', line 17 def self.validate(value) return false if value.nil? GATEWAY_PORT_VPN_PATH_BFD_PROFILE_ENUM.include?(value) end |