1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/compute_v2/delete_keypair.rb

27 lines
597 B
Ruby
Raw Normal View History

2013-07-17 03:18:27 -04:00
module Fog
module Compute
class RackspaceV2
class Real
# Deletes the key specified with key_name
#
# ==== Parameters
# * key_name<~String> - name of key to be deleted
#
# ==== Returns
# * response<~Excon::Response>:
# * body<~Hash>:
# *'success'<~Bool>: true or false for success
def delete_keypair(key_name)
request(
:method => 'DELETE',
:expects => 202,
:path => "/os-keypairs/#{key_name}"
)
end
end
end
end
end