Class: OvirtSDK4::NetworkFiltersService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<NetworkFilter>
Retrieves the representations of the network filters.
-
#network_filter_service(id) ⇒ NetworkFilterService
Locates the
network_filter
service. -
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<NetworkFilter>
Retrieves the representations of the network filters.
The order of the returned list of network filters isn’t guaranteed.
16360 16361 16362 |
# File 'lib/ovirtsdk4/services.rb', line 16360 def list(opts = {}) internal_get(LIST, opts) end |
#network_filter_service(id) ⇒ NetworkFilterService
Locates the network_filter
service.
16371 16372 16373 |
# File 'lib/ovirtsdk4/services.rb', line 16371 def network_filter_service(id) NetworkFilterService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 |
# File 'lib/ovirtsdk4/services.rb', line 16382 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return network_filter_service(path) end return network_filter_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |