Skip to content
This repository was archived by the owner on Feb 19, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions csharp/src/Overloads.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public partial interface Proxy : IXmlRpcProxy
[XmlRpcMethod("session.login_with_password")]
Response<string>
session_login_with_password(string _uname, string _pwd, string _version);

[XmlRpcMethod("host.apply_edition")]
Response<string>
host_apply_edition(string session, string _host, string _edition);

#endregion

Expand Down Expand Up @@ -215,6 +219,17 @@ public static XenRef<Task> 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<Task>.Create(session.proxy.async_host_create_new_blob(session.uuid, (_host != null) ? _host : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "").parse());
}

/// <summary>
/// Backward compatibility for Host.apply_edition in XenServer 6.1.
/// </summary>
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();
}
}

Expand Down