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.
16116 16117 16118 |
# File 'lib/ovirtsdk4/services.rb', line 16116 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
16141 16142 16143 |
# File 'lib/ovirtsdk4/services.rb', line 16141 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16181 16182 16183 16184 16185 16186 |
# File 'lib/ovirtsdk4/services.rb', line 16181 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.
16170 16171 16172 |
# File 'lib/ovirtsdk4/services.rb', line 16170 def update(, opts = {}) internal_update(, NetworkAttachment, UPDATE, opts) end |