Class: OvirtSDK4::StorageDomainServerConnectionsService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#add(connection, opts = {}) ⇒ StorageConnection
Adds a new
connection
. -
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the
connection
service. -
#list(opts = {}) ⇒ Array<StorageConnection>
Returns the list of connections to storage servers that existin the storage domain.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
Methods inherited from Service
Instance Method Details
#add(connection, opts = {}) ⇒ StorageConnection
Adds a new connection
.
23461 23462 23463 |
# File 'lib/ovirtsdk4/services.rb', line 23461 def add(connection, opts = {}) internal_add(connection, StorageConnection, ADD, opts) end |
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the connection
service.
23506 23507 23508 |
# File 'lib/ovirtsdk4/services.rb', line 23506 def connection_service(id) StorageDomainServerConnectionService.new(self, id) end |
#list(opts = {}) ⇒ Array<StorageConnection>
Returns the list of connections to storage servers that existin the storage domain.
The order of the returned list of connections isn’t guaranteed.
23495 23496 23497 |
# File 'lib/ovirtsdk4/services.rb', line 23495 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 |
# File 'lib/ovirtsdk4/services.rb', line 23517 def service(path) if path.nil? || path == '' return self end index = path.index('/') if index.nil? return connection_service(path) end return connection_service(path[0..(index - 1)]).service(path[(index + 1)..-1]) end |