Class: Pangea::Kubernetes::Types::VpnFirewallConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::VpnFirewallConfig
- Defined in:
- lib/pangea/kubernetes/types/vpn_config.rb
Overview
Per-link firewall configuration.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/pangea/kubernetes/types/vpn_config.rb', line 40 def to_h hash = { trust_interface: trust_interface } hash[:allowed_tcp_ports] = allowed_tcp_ports if allowed_tcp_ports.any? hash[:allowed_udp_ports] = allowed_udp_ports if allowed_udp_ports.any? hash[:incoming_udp_port] = incoming_udp_port if incoming_udp_port hash end |