Class: DcmgrResource::SshKeyPair

Inherits:
Base
  • Object
show all
Defined in:
app/models/dcmgr_resource/ssh_key_pair.rb

Class Method Summary collapse

Methods inherited from Base

get_resource_state_count, set_debug, total_resource

Class Method Details

.create(params) ⇒ Object



12
13
14
15
16
17
# File 'app/models/dcmgr_resource/ssh_key_pair.rb', line 12

def self.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



19
20
21
# File 'app/models/dcmgr_resource/ssh_key_pair.rb', line 19

def self.destroy(uuid)
  self.delete(uuid).body
end

.list(params = {}) ⇒ Object



4
5
6
# File 'app/models/dcmgr_resource/ssh_key_pair.rb', line 4

def self.list(params = {})
  self.find(:all,:params => params)
end

.show(uuid) ⇒ Object



8
9
10
# File 'app/models/dcmgr_resource/ssh_key_pair.rb', line 8

def self.show(uuid)
  self.get(uuid)
end