Skip to content

Commit a99e7bb

Browse files
committed
datamodel: add list of errors to CBT calls
Signed-off-by: Gabor Igloi <[email protected]>
1 parent 7b77e55 commit a99e7bb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

ocaml/idl/datamodel.ml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6580,6 +6580,17 @@ let vdi_data_destroy = call
65806580
~in_oss_since:None
65816581
~in_product_since:rel_inverness
65826582
~params:[Ref _vdi, "self", "The VDI whose data should be deleted."]
6583+
~errs:[
6584+
Api_errors.sr_operation_not_supported;
6585+
Api_errors.vdi_missing;
6586+
Api_errors.sr_not_attached;
6587+
Api_errors.sr_no_pbds;
6588+
Api_errors.operation_not_allowed;
6589+
Api_errors.vdi_incompatible_type;
6590+
Api_errors.vdi_no_cbt_metadata;
6591+
Api_errors.vdi_in_use;
6592+
Api_errors.vdi_is_a_physical_device;
6593+
]
65836594
~doc:"Delete the data of the snapshot VDI, but keep its changed block tracking metadata. When successful, this call changes the type of the VDI to cbt_metadata. This operation is idempotent: calling it on a VDI of type cbt_metadata results in a no-op, and no error will be thrown."
65846595
~allowed_roles:_R_VM_ADMIN
65856596
()

0 commit comments

Comments
 (0)