enhanced attributes for sakuracloud volume archive

This commit is contained in:
sawanoboly 2014-03-11 14:52:38 +09:00
parent e548f3a62d
commit c97f1bb816
3 changed files with 13 additions and 3 deletions

View File

@ -7,6 +7,8 @@ module Fog
identity :id, :aliases => 'ID'
attribute :name, :aliases => 'Name'
attribute :sizemb, :aliases => 'SizeMB'
attribute :plan, :aliases => 'Plan'
end
end

View File

@ -25,11 +25,17 @@ module Fog
{"Index"=>0,
"ID"=>112500514887,
"Name"=>"CentOS 5.10 64bit (基本セット)",
"Availability"=>"available"},
"Availability"=>"available",
"SizeMB"=>20480,
"Plan"=>{"ID"=>2, "StorageClass"=>"iscsi1204", "Name"=>"標準プラン"}
},
{"Index"=>1,
"ID"=>112500571575,
"Name"=>"CentOS 6.5 64bit (基本セット)",
"Availability"=>"available"}
"Availability"=>"available",
"SizeMB"=>102400,
"Plan"=>{"ID"=>2, "StorageClass"=>"iscsi1204", "Name"=>"標準プラン"}
}
]
}
response

View File

@ -4,7 +4,9 @@ Shindo.tests('Fog::Volume[:sakuracloud] | list_archives request', ['sakuracloud'
@archive_format = {
'Index' => Integer,
'ID' => Integer,
'Name' => String
'Name' => String,
'SizeMB' => Integer,
'Plan' => Hash
}
tests('success') do