class Fog::Compute::Softlayer::KeyPair
Public Instance Methods
create()
click to toggle source
# File lib/fog/softlayer/models/compute/key_pair.rb, line 24 def create requires :key, :label response = service.create_key_pair(attributes).body merge_attributes(response) self end
destroy()
click to toggle source
# File lib/fog/softlayer/models/compute/key_pair.rb, line 37 def destroy requires :id service.delete_key_pair(self.id) true end
save()
click to toggle source
# File lib/fog/softlayer/models/compute/key_pair.rb, line 20 def save identity ? update : create end
update()
click to toggle source
# File lib/fog/softlayer/models/compute/key_pair.rb, line 31 def update requires :id merge_attributes(service.update_key_pair(self.id, self.attributes).body) self end