Class: MistApi::GwRoutingPolicyTermMatchingProtocolEnum
- Inherits:
-
Object
- Object
- MistApi::GwRoutingPolicyTermMatchingProtocolEnum
- Defined in:
- lib/mist_api/models/gw_routing_policy_term_matching_protocol_enum.rb
Overview
enum: ‘aggregate`, `bgp`, `direct`, `ospf`, `static` (SRX Only)
Constant Summary collapse
- GW_ROUTING_POLICY_TERM_MATCHING_PROTOCOL_ENUM =
[ # TODO: Write general description for AGGREGATE AGGREGATE = 'aggregate'.freeze, # TODO: Write general description for BGP BGP = 'bgp'.freeze, # TODO: Write general description for DIRECT DIRECT = 'direct'.freeze, # TODO: Write general description for OSPF OSPF = 'ospf'.freeze, # TODO: Write general description for STATIC STATIC = 'static'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = AGGREGATE) ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/mist_api/models/gw_routing_policy_term_matching_protocol_enum.rb', line 32 def self.from_value(value, default_value = AGGREGATE) return default_value if value.nil? str = value.to_s.strip case str.downcase when 'aggregate' then AGGREGATE when 'bgp' then BGP when 'direct' then DIRECT when 'ospf' then OSPF when 'static' then STATIC else default_value end end |
.validate(value) ⇒ Object
26 27 28 29 30 |
# File 'lib/mist_api/models/gw_routing_policy_term_matching_protocol_enum.rb', line 26 def self.validate(value) return false if value.nil? GW_ROUTING_POLICY_TERM_MATCHING_PROTOCOL_ENUM.include?(value) end |