Permalink
Browse files

smapiv2: add VDI.get_by_name

  • Loading branch information...
1 parent 9029551 commit 297139e1c8837dc362aece437f5d609c1f8e3983 David Scott committed Jun 8, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 smapiv2.ml
View
14 smapiv2.ml
@@ -398,8 +398,20 @@ let api =
];
outputs = [
];
+ }; {
+ Method.name = "get_by_name";
+ description = "[get_by_name sr name] resolves a name to a VDI";
+ inputs = [
+ sr;
+ { Arg.name = "name";
+ ty = Type.(Basic String);
+ description = "Name of VDI to resolve"
+ }
+ ];
+ outputs = [
+ vdi
+ ]
}
-
]
}; {
Interface.name = "SR";

0 comments on commit 297139e

Please sign in to comment.