Class: OvirtSDK4::SnapshotNicsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<Nic>
Returns the list of NICs of the snapshot.
-
#nic_service(id) ⇒ SnapshotNicService
Locates the
nic
service. -
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<Nic>
Returns the list of NICs of the snapshot.
The order of the returned list of NICs isn’t guaranteed.
21310 21311 21312 |
# File 'lib/ovirtsdk4/services.rb', line 21310 def list(opts = {}) internal_get(LIST, opts) end |
#nic_service(id) ⇒ SnapshotNicService
Locates the nic
service.
21321 21322 21323 |
# File 'lib/ovirtsdk4/services.rb', line 21321 def nic_service(id) SnapshotNicService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 |
# File 'lib/ovirtsdk4/services.rb', line 21332 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return nic_service(path) end return nic_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |