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.
28044 28045 28046 |
# File 'lib/ovirtsdk4/services.rb', line 28044 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.
28089 28090 28091 |
# File 'lib/ovirtsdk4/services.rb', line 28089 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.
28078 28079 28080 |
# File 'lib/ovirtsdk4/services.rb', line 28078 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
28100 28101 28102 28103 28104 28105 28106 28107 28108 28109 |
# File 'lib/ovirtsdk4/services.rb', line 28100 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 |