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
.
23322 23323 23324 |
# File 'lib/ovirtsdk4/services.rb', line 23322 def add(connection, opts = {}) internal_add(connection, StorageConnection, ADD, opts) end |
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the connection
service.
23367 23368 23369 |
# File 'lib/ovirtsdk4/services.rb', line 23367 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.
23356 23357 23358 |
# File 'lib/ovirtsdk4/services.rb', line 23356 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 |
# File 'lib/ovirtsdk4/services.rb', line 23378 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 |