Class: Fog::Compute::Libvirt::Network
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Libvirt::Network
- Includes:
- Fog::Compute::LibvirtUtil
- Defined in:
- lib/fog/libvirt/models/compute/network.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary (collapse)
-
- (Network) initialize(attributes = {})
constructor
A new instance of Network.
- - (Object) save
- - (Object) shutdown
Methods included from Fog::Compute::LibvirtUtil
#randomized_name, #to_xml, #xml_element, #xml_elements
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
- (Network) initialize(attributes = {})
A new instance of Network
17 18 19 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 17 def initialize(attributes = {}) super end |
Instance Method Details
- (Object) save
21 22 23 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 21 def save raise Fog::Errors::Error.new('Creating a new network is not yet implemented. Contributions welcome!') end |
- (Object) shutdown
25 26 27 |
# File 'lib/fog/libvirt/models/compute/network.rb', line 25 def shutdown service.destroy_network(uuid) end |