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_filterservice. -
#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.
16145 16146 16147 |
# File 'lib/ovirtsdk4/services.rb', line 16145 def list(opts = {}) internal_get(LIST, opts) end |
#network_filter_service(id) ⇒ NetworkFilterService
Locates the network_filter service.
16156 16157 16158 |
# File 'lib/ovirtsdk4/services.rb', line 16156 def network_filter_service(id) NetworkFilterService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 |
# File 'lib/ovirtsdk4/services.rb', line 16167 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 |