Class: OvirtSDK4::OperatingSystemsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#list(opts = {}) ⇒ Array<OperatingSystemInfo>
Returns the list of types of operating system available in the system.
-
#operating_system_service(id) ⇒ OperatingSystemService
Locates the
operating_system
service. -
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#list(opts = {}) ⇒ Array<OperatingSystemInfo>
Returns the list of types of operating system available in the system.
The order of the returned list of operating systems isn’t guaranteed.
18835 18836 18837 |
# File 'lib/ovirtsdk4/services.rb', line 18835 def list(opts = {}) internal_get(LIST, opts) end |
#operating_system_service(id) ⇒ OperatingSystemService
Locates the operating_system
service.
18846 18847 18848 |
# File 'lib/ovirtsdk4/services.rb', line 18846 def (id) OperatingSystemService.new(self, id) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 |
# File 'lib/ovirtsdk4/services.rb', line 18857 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return (path) end return (path[0..(index - 1)]).service(path[(index + 1)..-1]) end |