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
.
22122 22123 22124 |
# File 'lib/ovirtsdk4/services.rb', line 22122 def add(connection, opts = {}) internal_add(connection, StorageConnection, ADD, opts) end |
#connection_service(id) ⇒ StorageDomainServerConnectionService
Locates the connection
service.
22167 22168 22169 |
# File 'lib/ovirtsdk4/services.rb', line 22167 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.
22156 22157 22158 |
# File 'lib/ovirtsdk4/services.rb', line 22156 def list(opts = {}) internal_get(LIST, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 |
# File 'lib/ovirtsdk4/services.rb', line 22178 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 |