Module: Hijiki::DcmgrResource::V1203::SshKeyPairMethods::ClassMethods
- Defined in:
- lib/hijiki/dcmgr_resource/12.03/ssh_key_pair.rb
Instance Method Summary collapse
Instance Method Details
#create(params) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/hijiki/dcmgr_resource/12.03/ssh_key_pair.rb', line 9 def create(params) ssh_key_pair = self.new ssh_key_pair.download_once = params[:download_once] ssh_key_pair.save ssh_key_pair end |
#destroy(uuid) ⇒ Object
16 17 18 |
# File 'lib/hijiki/dcmgr_resource/12.03/ssh_key_pair.rb', line 16 def destroy(uuid) self.delete(uuid).body end |