class Fog::Network::Proxmox::Network
class Network model
Constants
- TYPES
Public Instance Methods
create(attributes = {})
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 59 def create(attributes = {}) requires :node path_params = { node: node } body_params = attributes service.create_network(path_params, body_params) end
destroy()
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 73 def destroy requires :node, :iface path_params = { node: node, iface: iface } service.delete_network(path_params) end
to_s()
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 55 def to_s identity end
update(attributes = {})
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 66 def update(attributes = {}) requires :node, :iface, :type path_params = { node: node, iface: iface } body_params = attributes.merge(type: type) service.update_network(path_params, body_params) end