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.
20129 20130 20131 |
# File 'lib/ovirtsdk4/services.rb', line 20129 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
20154 20155 20156 |
# File 'lib/ovirtsdk4/services.rb', line 20154 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20194 20195 20196 20197 20198 20199 |
# File 'lib/ovirtsdk4/services.rb', line 20194 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.
20183 20184 20185 |
# File 'lib/ovirtsdk4/services.rb', line 20183 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |