Sha256: 48dc0f34562712bfe1c3d7db5688d61d15a5c81d84f18638f18ab68ed1916bc6
Contents?: true
Size: 925 Bytes
Versions: 2
Compression:
Stored size: 925 Bytes
Contents
# coding: utf-8 module Fog module Volume class SakuraCloud class Real def list_plans(options = {}) request( :headers => { 'Authorization' => "Basic #{@auth_encode}" }, :method => 'GET', :path => "#{Fog::SakuraCloud::SAKURACLOUD_API_ENDPOINT}/product/disk" ) end end class Mock def list_plans(options = {}) response = Excon::Response.new response.status = 200 response.body = { "DiskPlans" => [ {"Index"=>0, "ID"=>4, "Name"=>"SSDプラン", "Availability"=>"available"}, {"Index"=>1, "ID"=>2, "Name"=>"標準プラン", "Availability"=>"available"} ] } 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/volume/list_plans.rb |
fog-sakuracloud-1.3.3 | lib/fog/sakuracloud/requests/volume/list_plans.rb |