# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 108 def primary @primary ||= (@options || {}).fetch(:primary, nil) end
class TritonOps::Resource::VirtualMachine::NetworkInterface
Constants
- Model
Public Class Methods
new(**options)
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 37 def initialize(**options) @options = options self.to_h remove_instance_variable '@options' self end
Public Instance Methods
gateway()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 78 def gateway @gateway ||= (@options || {}).fetch(:gateway, nil) end
gateways()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 83 def gateways @gateways ||= @options.fetch(:gateways, []) end
interface()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 49 def interface @interface ||= @options.fetch :interface end
ip()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 54 def ip @ip ||= @options.fetch :ip end
ips()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 59 def ips @ips ||= @options.fetch :ips end
mac()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 64 def mac @mac ||= @options.fetch :mac end
model()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 88 def model @model ||= (@options || {}).fetch(:model, nil) end
mtu()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 93 def mtu @mtu ||= (@options || {}).fetch(:mtu, nil) end
netmask()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 98 def netmask @netmask ||= (@options || {}).fetch(:netmask, nil) end
network_uuid()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 103 def network_uuid @network_uuid ||= (@options || {}).fetch(:network_uuid, nil) end
nic_tag()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 69 def nic_tag @nic_tag ||= @options.fetch :nic_tag end
primary()
click to toggle source
vlan_id()
click to toggle source
# File lib/triton-ops/resource/virtual_machine/network_interface.rb, line 113 def vlan_id @vlan_id ||= (@options || {}).fetch(:vlan_id, nil) end