class Fog::Network::Proxmox::Network
class Network model
Constants
- TYPES
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 67 def destroy requires :node_id, :iface path_params = { node: node_id, iface: iface } service.delete_network(path_params) end
save(options = {})
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 53 def save(options = {}) requires :node_id path_params = { node: node_id } body_params = options.merge(attributes.reject { |attribute| [:node_id].include? attribute }) service.create_network(path_params, body_params) end
update(options = {})
click to toggle source
# File lib/fog/network/proxmox/models/network.rb, line 60 def update(options = {}) requires :node_id, :iface, :type path_params = { node: node_id, iface: iface } body_params = options.merge(type: type) service.update_network(path_params, body_params) end