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.
14938 14939 14940 |
# File 'lib/ovirtsdk4/services.rb', line 14938 def list(opts = {}) internal_get(LIST, opts) end |
#network_filter_service(id) ⇒ NetworkFilterService
Locates the network_filter
service.
14949 14950 14951 |
# File 'lib/ovirtsdk4/services.rb', line 14949 def network_filter_service(id) NetworkFilterService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 |
# File 'lib/ovirtsdk4/services.rb', line 14960 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 |