Class: OvirtSDK4::StorageServerConnectionExtensionService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ StorageConnectionExtension
Returns the representation of the object managed by this service.
-
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
-
#service(path) ⇒ Service
Locates the service corresponding to the given path.
-
#update(extension, opts = {}) ⇒ StorageConnectionExtension
Update a storage server connection extension for the given host.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ StorageConnectionExtension
Returns the representation of the object managed by this service.
23593 23594 23595 |
# File 'lib/ovirtsdk4/services.rb', line 23593 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
23618 23619 23620 |
# File 'lib/ovirtsdk4/services.rb', line 23618 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
23676 23677 23678 23679 23680 23681 |
# File 'lib/ovirtsdk4/services.rb', line 23676 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(extension, opts = {}) ⇒ StorageConnectionExtension
Update a storage server connection extension for the given host.
To update the storage connection 456
of host 123
send a request like this:
PUT /ovirt-engine/api/hosts/123/storageconnectionextensions/456
With a request body like this:
<storage_connection_extension>
<target>iqn.2016-01.com.example:mytarget</target>
<username>myuser</username>
<password>mypassword</password>
</storage_connection_extension>
23665 23666 23667 |
# File 'lib/ovirtsdk4/services.rb', line 23665 def update(extension, opts = {}) internal_update(extension, StorageConnectionExtension, UPDATE, opts) end |