Sha256: c18696e599cbc5ea4717466249a33927d94a824373fb1b895e40562797de5f75
Contents?: true
Size: 1.23 KB
Versions: 13
Compression:
Stored size: 1.23 KB
Contents
# coding: utf-8 module Fog module Volume class SakuraCloud class Real def list_archives(options = {}) request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :method => 'GET', :path => "#{Fog::SakuraCloud.build_endpoint(@api_zone)}/archive" ) end end class Mock def list_archives(options = {}) response = Excon::Response.new response.status = 200 response.body = { "Archives" => [ {"Index"=>0, "ID"=>112500514887, "Name"=>"CentOS 5.10 64bit (基本セット)", "Availability"=>"available", "SizeMB"=>20480, "Plan"=>{"ID"=>2, "StorageClass"=>"iscsi1204", "Name"=>"標準プラン"} }, {"Index"=>1, "ID"=>112500571575, "Name"=>"CentOS 6.5 64bit (基本セット)", "Availability"=>"available", "SizeMB"=>102400, "Plan"=>{"ID"=>2, "StorageClass"=>"iscsi1204", "Name"=>"標準プラン"} } ] } response end end end end end
Version data entries
13 entries across 11 versions & 2 rubygems