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.
20080 20081 20082 |
# File 'lib/ovirtsdk4/services.rb', line 20080 def get(opts = {}) internal_get(GET, opts) end |
#remove(opts = {}) ⇒ Object
Deletes the object managed by this service.
20105 20106 20107 |
# File 'lib/ovirtsdk4/services.rb', line 20105 def remove(opts = {}) internal_remove(REMOVE, opts) end |
#service(path) ⇒ Service
Locates the service corresponding to the given path.
20145 20146 20147 20148 20149 20150 |
# File 'lib/ovirtsdk4/services.rb', line 20145 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
.
20134 20135 20136 |
# File 'lib/ovirtsdk4/services.rb', line 20134 def update(key, opts = {}) internal_update(key, SshPublicKey, UPDATE, opts) end |