Class: OvirtSDK4::TemplateGraphicsConsolesService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#add(console, opts = {}) ⇒ GraphicsConsole
Add new graphics console to the template.
-
#console_service(id) ⇒ TemplateGraphicsConsoleService
Returns a reference to the service that manages a specific template graphics console.
-
#list(opts = {}) ⇒ Array<GraphicsConsole>
Lists all the configured graphics consoles of the template.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#add(console, opts = {}) ⇒ GraphicsConsole
Add new graphics console to the template.
26769 26770 26771 |
# File 'lib/ovirtsdk4/services.rb', line 26769 def add(console, opts = {}) internal_add(console, GraphicsConsole, ADD, opts) end |
#console_service(id) ⇒ TemplateGraphicsConsoleService
Returns a reference to the service that manages a specific template graphics console.
26814 26815 26816 |
# File 'lib/ovirtsdk4/services.rb', line 26814 def console_service(id) TemplateGraphicsConsoleService.new(self, id) end |
#list(opts = {}) ⇒ Array<GraphicsConsole>
Lists all the configured graphics consoles of the template.
The order of the returned list of graphics consoles isn’t guaranteed.
26803 26804 26805 |
# File 'lib/ovirtsdk4/services.rb', line 26803 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
26825 26826 26827 26828 26829 26830 26831 26832 26833 26834 |
# File 'lib/ovirtsdk4/services.rb', line 26825 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return console_service(path) end return console_service(path[0..(index - 1)]).service(path[(index +1)..-1]) end |