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.
14820 14821 14822 |
# File 'lib/ovirtsdk4/services.rb', line 14820 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
14845 14846 14847 |
# File 'lib/ovirtsdk4/services.rb', line 14845 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14885 14886 14887 14888 14889 14890 |
# File 'lib/ovirtsdk4/services.rb', line 14885 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.
14874 14875 14876 |
# File 'lib/ovirtsdk4/services.rb', line 14874 def update(, opts = {}) internal_update(, NetworkAttachment, UPDATE, opts) end |