Permalink
Browse files

Add messages for Snapshot and SnapshotList in V2

[#43155935]
  • Loading branch information...
1 parent 0681222 commit 9e3c500afde856b1751bdb8ea81499db8ecf7988 Matt Royal and Rui Tang committed Mar 13, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/services/api/messages.rb
@@ -143,6 +143,20 @@ class SnapshotList < JsonMessage
required :snapshots, [Object]
end
+ class SnapshotV2 < JsonMessage
+ required :snapshot_id, String
+ required :name, String
+ required :state, String
+ required :size, Integer
+
+ optional :created_time, String
+ optional :restored_time, String
+ end
+
+ class SnapshotListV2 < JsonMessage
+ required :snapshots, [Object]
+ end
+
class UpdateSnapshotNameRequest < JsonMessage
required :name, String
end

0 comments on commit 9e3c500

Please sign in to comment.