diff --git a/csharp/src/Overloads.cs b/csharp/src/Overloads.cs index fd415cd..07f3f26 100644 --- a/csharp/src/Overloads.cs +++ b/csharp/src/Overloads.cs @@ -44,6 +44,10 @@ public partial interface Proxy : IXmlRpcProxy [XmlRpcMethod("session.login_with_password")] Response session_login_with_password(string _uname, string _pwd, string _version); + + [XmlRpcMethod("host.apply_edition")] + Response + host_apply_edition(string session, string _host, string _edition); #endregion @@ -215,6 +219,17 @@ public static XenRef async_create_new_blob(Session session, string _host, System.Diagnostics.Debug.Assert(false, "Cannot use this call on XenServer 6.1 or newer."); return XenRef.Create(session.proxy.async_host_create_new_blob(session.uuid, (_host != null) ? _host : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "").parse()); + } + + /// + /// Backward compatibility for Host.apply_edition in XenServer 6.1. + /// + public static void apply_edition(Session session, string _host, string _edition) + { + if (Helper.APIVersionMeets(session, API_Version.API_2_0)) + System.Diagnostics.Debug.Assert(false, "Cannot use this call on XenServer 6.2 or newer."); + + session.proxy.host_apply_edition(session.uuid, (_host != null) ? _host : "", (_edition != null) ? _edition : "").parse(); } }