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
.
22208 22209 22210 |
# File 'lib/ovirtsdk4/services.rb', line 22208 def add(connection, opts = {}) internal_add(connection, StorageConnection, ADD, opts) end |
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the connection
service.
22253 22254 22255 |
# File 'lib/ovirtsdk4/services.rb', line 22253 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.
22242 22243 22244 |
# File 'lib/ovirtsdk4/services.rb', line 22242 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 |
# File 'lib/ovirtsdk4/services.rb', line 22264 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 |