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.
24842 24843 24844 |
# File 'lib/ovirtsdk4/services.rb', line 24842 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
24867 24868 24869 |
# File 'lib/ovirtsdk4/services.rb', line 24867 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
24925 24926 24927 24928 24929 24930 |
# File 'lib/ovirtsdk4/services.rb', line 24925 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>
24914 24915 24916 |
# File 'lib/ovirtsdk4/services.rb', line 24914 def update(extension, opts = {}) internal_update(extension, StorageConnectionExtension, UPDATE, opts) end |