Class: OvirtSDK4::NetworkAttachmentService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ NetworkAttachment
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(attachment, opts = {}) ⇒ NetworkAttachment
Update the specified network attachment on the host.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ NetworkAttachment
Returns the representation of the object managed by this service.
14747 14748 14749 |
# File 'lib/ovirtsdk4/services.rb', line 14747 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
14772 14773 14774 |
# File 'lib/ovirtsdk4/services.rb', line 14772 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14812 14813 14814 14815 14816 14817 |
# File 'lib/ovirtsdk4/services.rb', line 14812 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(attachment, opts = {}) ⇒ NetworkAttachment
Update the specified network attachment on the host.
14801 14802 14803 |
# File 'lib/ovirtsdk4/services.rb', line 14801 def update(, opts = {}) internal_update(, NetworkAttachment, UPDATE, opts) end |