Class: Fog::Compute::Proxmox::ContainerConfig

Inherits:
Proxmox::Model show all
Defined in:
lib/fog/compute/proxmox/models/container_config.rb

Overview

ContainerConfig model

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Proxmox::Model

#create, #destroy, #inspect, #to_s, #update

Constructor Details

#initialize(attributes = {}) ⇒ ContainerConfig

Returns a new instance of ContainerConfig.


59
60
61
62
63
64
# File 'lib/fog/compute/proxmox/models/container_config.rb', line 59

def initialize(attributes = {})
  prepare_service_value(attributes)
  compute_nets(attributes)
  compute_mps(attributes)
  super(attributes)
end

Instance Attribute Details

#interfacesObject (readonly)

Returns the value of attribute interfaces


66
67
68
# File 'lib/fog/compute/proxmox/models/container_config.rb', line 66

def interfaces
  @interfaces
end

#mount_pointsObject (readonly)

Returns the value of attribute mount_points


68
69
70
# File 'lib/fog/compute/proxmox/models/container_config.rb', line 68

def mount_points
  @mount_points
end

Instance Method Details

#mac_addressesObject


70
71
72
# File 'lib/fog/compute/proxmox/models/container_config.rb', line 70

def mac_addresses
  Fog::Proxmox::NicHelper.to_mac_adresses_array(interfaces)
end

#type_consoleObject


74
75
76
# File 'lib/fog/compute/proxmox/models/container_config.rb', line 74

def type_console
  'vnc' # by default. term is available too
end