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.
21400 21401 21402 |
# File 'lib/ovirtsdk4/services.rb', line 21400 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
21425 21426 21427 |
# File 'lib/ovirtsdk4/services.rb', line 21425 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
21465 21466 21467 21468 21469 21470 |
# File 'lib/ovirtsdk4/services.rb', line 21465 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
.
21454 21455 21456 |
# File 'lib/ovirtsdk4/services.rb', line 21454 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |