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.
21252 21253 21254 |
# File 'lib/ovirtsdk4/services.rb', line 21252 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
21277 21278 21279 |
# File 'lib/ovirtsdk4/services.rb', line 21277 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
21320 21321 21322 21323 21324 21325 |
# File 'lib/ovirtsdk4/services.rb', line 21320 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. |
21309 21310 21311 |
# File 'lib/ovirtsdk4/services.rb', line 21309 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |