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
Updates the
key
.
Methods inherited from Service
Instance Method Details
#get(opts = {}) ⇒ SshPublicKey
Returns the representation of the object managed by this service.
20324 20325 20326 |
# File 'lib/ovirtsdk4/services.rb', line 20324 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
20349 20350 20351 |
# File 'lib/ovirtsdk4/services.rb', line 20349 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20389 20390 20391 20392 20393 20394 |
# File 'lib/ovirtsdk4/services.rb', line 20389 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
Updates the key
.
20378 20379 20380 |
# File 'lib/ovirtsdk4/services.rb', line 20378 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |