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
connectionservice. -
#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.
22021 22022 22023 |
# File 'lib/ovirtsdk4/services.rb', line 22021 def add(connection, opts = {}) internal_add(connection, StorageConnection, ADD, opts) end |
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the connection service.
22066 22067 22068 |
# File 'lib/ovirtsdk4/services.rb', line 22066 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.
22055 22056 22057 |
# File 'lib/ovirtsdk4/services.rb', line 22055 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 |
# File 'lib/ovirtsdk4/services.rb', line 22077 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 |