Sha256: 83fb11a622b4c33d2048ba83508d5cf562929c2a9763b0085f318ce84cc5c820
Contents?: true
Size: 938 Bytes
Versions: 2
Compression:
Stored size: 938 Bytes
Contents
# coding: utf-8 module Fog module Compute class SakuraCloud class Real def list_ssh_keys(options = {}) request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :method => 'GET', :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/sshkey" ) end end class Mock def list_ssh_keys(options = {}) response = Excon::Response.new response.status = 200 response.body = { "SSHKeys"=> [ {"Index"=>0, "ID"=>"888888888888", "Name"=>"foobar1", "PublicKey"=>"ssh-rsa dummy"}, {"Index"=>1, "ID"=>"999999999999", "Name"=>"foobar2", "PublicKey"=>"ssh-rsa dummy"} ] } response end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-sakuracloud-1.4.0 | lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb |
fog-sakuracloud-1.3.3 | lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb |