WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 4 of 4] CA-38136: As the changes do not go in the beta,

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 4 of 4] CA-38136: As the changes do not go in the beta, let VM.create_template in here, but make the call deprecated
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 12 Mar 2010 10:43:58 +0000
Delivery-date: Fri, 12 Mar 2010 02:37:08 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1268390634@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User  Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>
# Date 1268390595 0
# Node ID 6b915eab0b4cebed6bce3be9c8b40bfe56506b42
# Parent  8baedbf2d1795f4f62176af93c9272e6802ca5d2
CA-38136: As the changes do not go in the beta, let VM.create_template in here, 
but make the call deprecated.

Signed-off-by: Thomas Gazagnaire <thomas.gazagnaire@xxxxxxxxxx>

diff -r 8baedbf2d179 -r 6b915eab0b4c ocaml/idl/datamodel.ml
--- a/ocaml/idl/datamodel.ml    Fri Mar 12 10:43:14 2010 +0000
+++ b/ocaml/idl/datamodel.ml    Fri Mar 12 10:43:15 2010 +0000
@@ -1258,6 +1258,21 @@
   ~errs:[Api_errors.vm_bad_power_state; Api_errors.sr_full; 
Api_errors.operation_not_allowed;
                Api_errors.vm_checkpoint_suspend_failed; 
Api_errors.vm_checkpoint_resume_failed]
   ~allowed_roles:_R_VM_POWER_ADMIN
+  ()
+
+let vm_create_template = call
+  ~name:"create_template"
+  ~hide_from_docs:true
+  ~internal_deprecated_since:rel_midnight_ride
+  ~in_product_since:rel_midnight_ride
+  ~doc:"Deprecated: use VM.clone or VM.copy instead."
+  ~result:(Ref _vm, "")
+  ~params:[
+           Ref _vm, "vm", "";
+           String, "new_name", ""
+         ]
+  ~errs:[]
+  ~allowed_roles:_R_VM_ADMIN
   ()
 
 (* VM.Provision -- causes the template's disks to be instantiated *)
1 file changed, 15 insertions(+)
ocaml/idl/datamodel.ml |   15 +++++++++++++++


Attachment: xen-api.hg-4.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api