Sha256: 717c221fde78931a20780fed689ab687c78af49b39c331d4a0742f901741c546
Contents?: true
Size: 938 Bytes
Versions: 13
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.build_endpoint(@api_zone)}/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
13 entries across 11 versions & 2 rubygems