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.
14698 14699 14700 |
# File 'lib/ovirtsdk4/services.rb', line 14698 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
14723 14724 14725 |
# File 'lib/ovirtsdk4/services.rb', line 14723 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14763 14764 14765 14766 14767 14768 |
# File 'lib/ovirtsdk4/services.rb', line 14763 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.
14752 14753 14754 |
# File 'lib/ovirtsdk4/services.rb', line 14752 def update(, opts = {}) internal_update(, NetworkAttachment, UPDATE, opts) end |