Class: OvirtSDK4::SshPublicKeyService
- Defined in:
- lib/ovirtsdk4/services.rb,
lib/ovirtsdk4/services.rb
Instance Method Summary collapse
-
#get(opts = {}) ⇒ SshPublicKey
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(key, opts = {}) ⇒ SshPublicKey
Replaces the key with a new resource.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ SshPublicKey
Returns the representation of the object managed by this service.
21536 21537 21538 |
# File 'lib/ovirtsdk4/services.rb', line 21536 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
21561 21562 21563 |
# File 'lib/ovirtsdk4/services.rb', line 21561 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
21604 21605 21606 21607 21608 21609 |
# File 'lib/ovirtsdk4/services.rb', line 21604 def service(path) if path.nil? || path == '' return self end raise Error.new("The path \"#{path}\" doesn't correspond to any service") end |
#update(key, opts = {}) ⇒ SshPublicKey
Replaces the key with a new resource.
Important
|
Since version 4.4.8 of the engine this operation is deprecated, and preserved only for backwards compatibility. It will be removed in the future. Instead please use DELETE followed by add operation. |
21593 21594 21595 |
# File 'lib/ovirtsdk4/services.rb', line 21593 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |