mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
enhanced attributes for sakuracloud volume archive
This commit is contained in:
parent
e548f3a62d
commit
c97f1bb816
3 changed files with 13 additions and 3 deletions
|
@ -7,6 +7,8 @@ module Fog
|
|||
|
||||
identity :id, :aliases => 'ID'
|
||||
attribute :name, :aliases => 'Name'
|
||||
attribute :sizemb, :aliases => 'SizeMB'
|
||||
attribute :plan, :aliases => 'Plan'
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue