Updating XenModel/XenAPI with the latest SDKs from trunk #103769

Note: Not updated HTTP.cs where sslStream.AuthenticateAsClient() is called. (That has to be dealt with separately - as it was manually edited.)
This commit is contained in:
Gabor Apati-Nagy 2015-08-11 16:57:42 +01:00
parent 731f968a8e
commit c7c19f0759
9 changed files with 687 additions and 18 deletions

View File

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
// Runtime Version:2.0.50727.4200
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -19,7 +19,7 @@ namespace XenAPI {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class FriendlyErrorNames {
@ -39,7 +39,7 @@ namespace XenAPI {
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XenAdmin.XenAPI.FriendlyErrorNames", typeof(FriendlyErrorNames).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("XenAPI.FriendlyErrorNames", typeof(FriendlyErrorNames).Assembly);
resourceMan = temp;
}
return resourceMan;
@ -726,6 +726,24 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The operation could not be performed because HA disable is in progress.
/// </summary>
public static string HA_DISABLE_IN_PROGRESS {
get {
return ResourceManager.GetString("HA_DISABLE_IN_PROGRESS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The operation could not be performed because HA enable is in progress.
/// </summary>
public static string HA_ENABLE_IN_PROGRESS {
get {
return ResourceManager.GetString("HA_ENABLE_IN_PROGRESS", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to HA could not be enabled on the Pool because a liveset could not be formed: check storage and network heartbeat paths..
/// </summary>
@ -1797,6 +1815,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to The patch apply failed: there are backup files created while applying patch. Please remove these backup files before applying patch again..
/// </summary>
public static string PATCH_APPLY_FAILED_BACKUP_FILES_EXIST {
get {
return ResourceManager.GetString("PATCH_APPLY_FAILED_BACKUP_FILES_EXIST", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The specified patch is applied and cannot be destroyed..
/// </summary>
@ -3558,7 +3585,7 @@ namespace XenAPI {
}
/// <summary>
/// Looks up a localized string similar to Unable to attach empty optical drive to VM..
/// Looks up a localized string similar to VG Registration failure.
/// </summary>
public static string SR_BACKEND_FAILURE_455 {
get {
@ -3566,6 +3593,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to Unable to attach empty optical drive to VM..
/// </summary>
public static string SR_BACKEND_FAILURE_456 {
get {
return ResourceManager.GetString("SR_BACKEND_FAILURE_456", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The VDI is not available.
/// </summary>
@ -4934,6 +4970,15 @@ namespace XenAPI {
}
}
/// <summary>
/// Looks up a localized string similar to VM PV drivers still in use.
/// </summary>
public static string VM_PV_DRIVERS_IN_USE {
get {
return ResourceManager.GetString("VM_PV_DRIVERS_IN_USE", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The VM unexpectedly rebooted.
/// </summary>

View File

@ -342,6 +342,12 @@
<data name="HA_CONSTRAINT_VIOLATION_SR_NOT_SHARED" xml:space="preserve">
<value>This operation cannot be performed because the referenced SR is not properly shared. The SR must both be marked as shared and a currently attached PBD must exist for each server.</value>
</data>
<data name="HA_DISABLE_IN_PROGRESS" xml:space="preserve">
<value>The operation could not be performed because HA disable is in progress</value>
</data>
<data name="HA_ENABLE_IN_PROGRESS" xml:space="preserve">
<value>The operation could not be performed because HA enable is in progress</value>
</data>
<data name="HA_FAILED_TO_FORM_LIVESET" xml:space="preserve">
<value>HA could not be enabled on the Pool because a liveset could not be formed: check storage and network heartbeat paths.</value>
</data>
@ -696,6 +702,9 @@
<data name="PATCH_APPLY_FAILED" xml:space="preserve">
<value>The update failed to apply. View output for more details.</value>
</data>
<data name="PATCH_APPLY_FAILED_BACKUP_FILES_EXIST" xml:space="preserve">
<value>The patch apply failed: there are backup files created while applying patch. Please remove these backup files before applying patch again.</value>
</data>
<data name="PATCH_IS_APPLIED" xml:space="preserve">
<value>The specified patch is applied and cannot be destroyed.</value>
</data>
@ -1287,6 +1296,9 @@ Authorized Roles: {1}</value>
<value>CIFS SR is not licensed on this host</value>
</data>
<data name="SR_BACKEND_FAILURE_455" xml:space="preserve">
<value>VG Registration failure</value>
</data>
<data name="SR_BACKEND_FAILURE_456" xml:space="preserve">
<value>Unable to attach empty optical drive to VM.</value>
</data>
<data name="SR_BACKEND_FAILURE_46" xml:space="preserve">
@ -1754,6 +1766,9 @@ Authorized Roles: {1}</value>
<data name="VM_OLD_PV_DRIVERS" xml:space="preserve">
<value>You attempted an operation on a VM which requires a more recent version of the PV drivers. Please upgrade your PV drivers.</value>
</data>
<data name="VM_PV_DRIVERS_IN_USE" xml:space="preserve">
<value>VM PV drivers still in use</value>
</data>
<data name="VM_REBOOTED" xml:space="preserve">
<value>The VM unexpectedly rebooted</value>
</data>

View File

@ -95,6 +95,7 @@ namespace XenAPI
Dictionary<string, string> chipset_info,
List<XenRef<PCI>> PCIs,
List<XenRef<PGPU>> PGPUs,
bool ssl_legacy,
Dictionary<string, string> guest_VCPUs_params,
host_display display,
long[] virtual_hardware_platform_versions)
@ -146,6 +147,7 @@ namespace XenAPI
this.chipset_info = chipset_info;
this.PCIs = PCIs;
this.PGPUs = PGPUs;
this.ssl_legacy = ssl_legacy;
this.guest_VCPUs_params = guest_VCPUs_params;
this.display = display;
this.virtual_hardware_platform_versions = virtual_hardware_platform_versions;
@ -209,6 +211,7 @@ namespace XenAPI
chipset_info = update.chipset_info;
PCIs = update.PCIs;
PGPUs = update.PGPUs;
ssl_legacy = update.ssl_legacy;
guest_VCPUs_params = update.guest_VCPUs_params;
display = update.display;
virtual_hardware_platform_versions = update.virtual_hardware_platform_versions;
@ -263,6 +266,7 @@ namespace XenAPI
chipset_info = proxy.chipset_info == null ? null : Maps.convert_from_proxy_string_string(proxy.chipset_info);
PCIs = proxy.PCIs == null ? null : XenRef<PCI>.Create(proxy.PCIs);
PGPUs = proxy.PGPUs == null ? null : XenRef<PGPU>.Create(proxy.PGPUs);
ssl_legacy = (bool)proxy.ssl_legacy;
guest_VCPUs_params = proxy.guest_VCPUs_params == null ? null : Maps.convert_from_proxy_string_string(proxy.guest_VCPUs_params);
display = proxy.display == null ? (host_display) 0 : (host_display)Helper.EnumParseDefault(typeof(host_display), (string)proxy.display);
virtual_hardware_platform_versions = proxy.virtual_hardware_platform_versions == null ? null : Helper.StringArrayToLongArray(proxy.virtual_hardware_platform_versions);
@ -318,6 +322,7 @@ namespace XenAPI
result_.chipset_info = Maps.convert_to_proxy_string_string(chipset_info);
result_.PCIs = (PCIs != null) ? Helper.RefListToStringArray(PCIs) : new string[] {};
result_.PGPUs = (PGPUs != null) ? Helper.RefListToStringArray(PGPUs) : new string[] {};
result_.ssl_legacy = ssl_legacy;
result_.guest_VCPUs_params = Maps.convert_to_proxy_string_string(guest_VCPUs_params);
result_.display = host_display_helper.ToString(display);
result_.virtual_hardware_platform_versions = (virtual_hardware_platform_versions != null) ? Helper.LongArrayToStringArray(virtual_hardware_platform_versions) : new string[] {};
@ -377,6 +382,7 @@ namespace XenAPI
chipset_info = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "chipset_info"));
PCIs = Marshalling.ParseSetRef<PCI>(table, "PCIs");
PGPUs = Marshalling.ParseSetRef<PGPU>(table, "PGPUs");
ssl_legacy = Marshalling.ParseBool(table, "ssl_legacy");
guest_VCPUs_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "guest_VCPUs_params"));
display = (host_display)Helper.EnumParseDefault(typeof(host_display), Marshalling.ParseString(table, "display"));
virtual_hardware_platform_versions = Marshalling.ParseLongArray(table, "virtual_hardware_platform_versions");
@ -438,6 +444,7 @@ namespace XenAPI
Helper.AreEqual2(this._chipset_info, other._chipset_info) &&
Helper.AreEqual2(this._PCIs, other._PCIs) &&
Helper.AreEqual2(this._PGPUs, other._PGPUs) &&
Helper.AreEqual2(this._ssl_legacy, other._ssl_legacy) &&
Helper.AreEqual2(this._guest_VCPUs_params, other._guest_VCPUs_params) &&
Helper.AreEqual2(this._display, other._display) &&
Helper.AreEqual2(this._virtual_hardware_platform_versions, other._virtual_hardware_platform_versions);
@ -1054,6 +1061,17 @@ namespace XenAPI
return XenRef<PGPU>.Create(session.proxy.host_get_pgpus(session.uuid, (_host != null) ? _host : "").parse());
}
/// <summary>
/// Get the ssl_legacy field of the given host.
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_host">The opaque_ref of the given host</param>
public static bool get_ssl_legacy(Session session, string _host)
{
return (bool)session.proxy.host_get_ssl_legacy(session.uuid, (_host != null) ? _host : "").parse();
}
/// <summary>
/// Get the guest_VCPUs_params field of the given host.
/// First published in XenServer 6.1.
@ -2376,6 +2394,30 @@ namespace XenAPI
return XenRef<Task>.Create(session.proxy.async_host_disable_display(session.uuid, (_host != null) ? _host : "").parse());
}
/// <summary>
/// Enable/disable SSLv3 for interoperability with older versions of XenServer
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_host">The opaque_ref of the given host</param>
/// <param name="_value">True to allow SSLv3 and ciphersuites as used in old XenServer versions</param>
public static void set_ssl_legacy(Session session, string _host, bool _value)
{
session.proxy.host_set_ssl_legacy(session.uuid, (_host != null) ? _host : "", _value).parse();
}
/// <summary>
/// Enable/disable SSLv3 for interoperability with older versions of XenServer
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_host">The opaque_ref of the given host</param>
/// <param name="_value">True to allow SSLv3 and ciphersuites as used in old XenServer versions</param>
public static XenRef<Task> async_set_ssl_legacy(Session session, string _host, bool _value)
{
return XenRef<Task>.Create(session.proxy.async_host_set_ssl_legacy(session.uuid, (_host != null) ? _host : "", _value).parse());
}
/// <summary>
/// Return a list of all the hosts known to the system.
/// First published in XenServer 4.0.
@ -3259,6 +3301,25 @@ namespace XenAPI
}
private List<XenRef<PGPU>> _PGPUs;
/// <summary>
/// Allow SSLv3 protocol and ciphersuites as used by older XenServers
/// Experimental. First published in XenServer Dundee.
/// </summary>
public virtual bool ssl_legacy
{
get { return _ssl_legacy; }
set
{
if (!Helper.AreEqual(value, _ssl_legacy))
{
_ssl_legacy = value;
Changed = true;
NotifyPropertyChanged("ssl_legacy");
}
}
}
private bool _ssl_legacy;
/// <summary>
/// VCPUs params to apply to all resident guests
/// First published in XenServer 6.1.

View File

@ -226,6 +226,53 @@ namespace XenAPI
return result;
}
internal static Dictionary<string, pool_allowed_operations>
convert_from_proxy_string_pool_allowed_operations(Object o)
{
Hashtable table = (Hashtable)o;
Dictionary<string, pool_allowed_operations> result = new Dictionary<string, pool_allowed_operations>();
if (table != null)
{
foreach (string key in table.Keys)
{
try
{
string k = key;
pool_allowed_operations v = table[key] == null ? (pool_allowed_operations) 0 : (pool_allowed_operations)Helper.EnumParseDefault(typeof(pool_allowed_operations), (string)table[key]);
result[k] = v;
}
catch
{
continue;
}
}
}
return result;
}
internal static Hashtable
convert_to_proxy_string_pool_allowed_operations(Dictionary<string, pool_allowed_operations> table)
{
CookComputing.XmlRpc.XmlRpcStruct result = new CookComputing.XmlRpc.XmlRpcStruct();
if (table != null)
{
foreach (string key in table.Keys)
{
try
{
string k = (key != null) ? key : "";
string v = pool_allowed_operations_helper.ToString(table[key]);
result[k] = v;
}
catch
{
continue;
}
}
}
return result;
}
internal static Dictionary<string, storage_operations>
convert_from_proxy_string_storage_operations(Object o)
{

View File

@ -75,7 +75,10 @@ namespace XenAPI
XenRef<VDI> redo_log_vdi,
string vswitch_controller,
Dictionary<string, string> restrictions,
List<XenRef<VDI>> metadata_VDIs)
List<XenRef<VDI>> metadata_VDIs,
string ha_cluster_stack,
List<pool_allowed_operations> allowed_operations,
Dictionary<string, pool_allowed_operations> current_operations)
{
this.uuid = uuid;
this.name_label = name_label;
@ -105,6 +108,9 @@ namespace XenAPI
this.vswitch_controller = vswitch_controller;
this.restrictions = restrictions;
this.metadata_VDIs = metadata_VDIs;
this.ha_cluster_stack = ha_cluster_stack;
this.allowed_operations = allowed_operations;
this.current_operations = current_operations;
}
/// <summary>
@ -146,6 +152,9 @@ namespace XenAPI
vswitch_controller = update.vswitch_controller;
restrictions = update.restrictions;
metadata_VDIs = update.metadata_VDIs;
ha_cluster_stack = update.ha_cluster_stack;
allowed_operations = update.allowed_operations;
current_operations = update.current_operations;
}
internal void UpdateFromProxy(Proxy_Pool proxy)
@ -178,6 +187,9 @@ namespace XenAPI
vswitch_controller = proxy.vswitch_controller == null ? null : (string)proxy.vswitch_controller;
restrictions = proxy.restrictions == null ? null : Maps.convert_from_proxy_string_string(proxy.restrictions);
metadata_VDIs = proxy.metadata_VDIs == null ? null : XenRef<VDI>.Create(proxy.metadata_VDIs);
ha_cluster_stack = proxy.ha_cluster_stack == null ? null : (string)proxy.ha_cluster_stack;
allowed_operations = proxy.allowed_operations == null ? null : Helper.StringArrayToEnumList<pool_allowed_operations>(proxy.allowed_operations);
current_operations = proxy.current_operations == null ? null : Maps.convert_from_proxy_string_pool_allowed_operations(proxy.current_operations);
}
public Proxy_Pool ToProxy()
@ -211,6 +223,9 @@ namespace XenAPI
result_.vswitch_controller = (vswitch_controller != null) ? vswitch_controller : "";
result_.restrictions = Maps.convert_to_proxy_string_string(restrictions);
result_.metadata_VDIs = (metadata_VDIs != null) ? Helper.RefListToStringArray(metadata_VDIs) : new string[] {};
result_.ha_cluster_stack = (ha_cluster_stack != null) ? ha_cluster_stack : "";
result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
result_.current_operations = Maps.convert_to_proxy_string_pool_allowed_operations(current_operations);
return result_;
}
@ -248,15 +263,21 @@ namespace XenAPI
vswitch_controller = Marshalling.ParseString(table, "vswitch_controller");
restrictions = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "restrictions"));
metadata_VDIs = Marshalling.ParseSetRef<VDI>(table, "metadata_VDIs");
ha_cluster_stack = Marshalling.ParseString(table, "ha_cluster_stack");
allowed_operations = Helper.StringArrayToEnumList<pool_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
current_operations = Maps.convert_from_proxy_string_pool_allowed_operations(Marshalling.ParseHashTable(table, "current_operations"));
}
public bool DeepEquals(Pool other)
public bool DeepEquals(Pool other, bool ignoreCurrentOperations)
{
if (ReferenceEquals(null, other))
return false;
if (ReferenceEquals(this, other))
return true;
if (!ignoreCurrentOperations && !Helper.AreEqual2(this.current_operations, other.current_operations))
return false;
return Helper.AreEqual2(this._uuid, other._uuid) &&
Helper.AreEqual2(this._name_label, other._name_label) &&
Helper.AreEqual2(this._name_description, other._name_description) &&
@ -284,7 +305,9 @@ namespace XenAPI
Helper.AreEqual2(this._redo_log_vdi, other._redo_log_vdi) &&
Helper.AreEqual2(this._vswitch_controller, other._vswitch_controller) &&
Helper.AreEqual2(this._restrictions, other._restrictions) &&
Helper.AreEqual2(this._metadata_VDIs, other._metadata_VDIs);
Helper.AreEqual2(this._metadata_VDIs, other._metadata_VDIs) &&
Helper.AreEqual2(this._ha_cluster_stack, other._ha_cluster_stack) &&
Helper.AreEqual2(this._allowed_operations, other._allowed_operations);
}
public override string SaveChanges(Session session, string opaqueRef, Pool server)
@ -678,6 +701,39 @@ namespace XenAPI
return XenRef<VDI>.Create(session.proxy.pool_get_metadata_vdis(session.uuid, (_pool != null) ? _pool : "").parse());
}
/// <summary>
/// Get the ha_cluster_stack field of the given pool.
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static string get_ha_cluster_stack(Session session, string _pool)
{
return (string)session.proxy.pool_get_ha_cluster_stack(session.uuid, (_pool != null) ? _pool : "").parse();
}
/// <summary>
/// Get the allowed_operations field of the given pool.
/// First published in XenServer 4.0.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static List<pool_allowed_operations> get_allowed_operations(Session session, string _pool)
{
return Helper.StringArrayToEnumList<pool_allowed_operations>(session.proxy.pool_get_allowed_operations(session.uuid, (_pool != null) ? _pool : "").parse());
}
/// <summary>
/// Get the current_operations field of the given pool.
/// First published in XenServer 4.0.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static Dictionary<string, pool_allowed_operations> get_current_operations(Session session, string _pool)
{
return Maps.convert_from_proxy_string_pool_allowed_operations(session.proxy.pool_get_current_operations(session.uuid, (_pool != null) ? _pool : "").parse());
}
/// <summary>
/// Set the name_label field of the given pool.
/// First published in XenServer 4.0.
@ -1093,7 +1149,7 @@ namespace XenAPI
/// First published in XenServer 4.1.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating.</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating</param>
/// <param name="_configuration">Detailed HA configuration to apply</param>
public static void enable_ha(Session session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration)
{
@ -1105,13 +1161,39 @@ namespace XenAPI
/// First published in XenServer 4.1.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating.</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating</param>
/// <param name="_configuration">Detailed HA configuration to apply</param>
public static XenRef<Task> async_enable_ha(Session session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration)
{
return XenRef<Task>.Create(session.proxy.async_pool_enable_ha(session.uuid, (_heartbeat_srs != null) ? Helper.RefListToStringArray(_heartbeat_srs) : new string[] {}, Maps.convert_to_proxy_string_string(_configuration)).parse());
}
/// <summary>
/// Turn on High Availability mode
/// First published in XenServer 4.1.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating</param>
/// <param name="_configuration">Detailed HA configuration to apply</param>
/// <param name="_cluster_stack">HA cluster manager stack First published in XenServer Dundee.</param>
public static void enable_ha(Session session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration, string _cluster_stack)
{
session.proxy.pool_enable_ha(session.uuid, (_heartbeat_srs != null) ? Helper.RefListToStringArray(_heartbeat_srs) : new string[] {}, Maps.convert_to_proxy_string_string(_configuration), (_cluster_stack != null) ? _cluster_stack : "").parse();
}
/// <summary>
/// Turn on High Availability mode
/// First published in XenServer 4.1.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_heartbeat_srs">Set of SRs to use for storage heartbeating</param>
/// <param name="_configuration">Detailed HA configuration to apply</param>
/// <param name="_cluster_stack">HA cluster manager stack First published in XenServer Dundee.</param>
public static XenRef<Task> async_enable_ha(Session session, List<XenRef<SR>> _heartbeat_srs, Dictionary<string, string> _configuration, string _cluster_stack)
{
return XenRef<Task>.Create(session.proxy.async_pool_enable_ha(session.uuid, (_heartbeat_srs != null) ? Helper.RefListToStringArray(_heartbeat_srs) : new string[] {}, Maps.convert_to_proxy_string_string(_configuration), (_cluster_stack != null) ? _cluster_stack : "").parse());
}
/// <summary>
/// Turn off High Availability mode
/// First published in XenServer 4.1.
@ -1800,6 +1882,50 @@ namespace XenAPI
return XenRef<Task>.Create(session.proxy.async_pool_apply_edition(session.uuid, (_pool != null) ? _pool : "", (_edition != null) ? _edition : "").parse());
}
/// <summary>
/// Sets ssl_legacy true on each host: see Host.ssl_legacy
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static void enable_ssl_legacy(Session session, string _pool)
{
session.proxy.pool_enable_ssl_legacy(session.uuid, (_pool != null) ? _pool : "").parse();
}
/// <summary>
/// Sets ssl_legacy true on each host: see Host.ssl_legacy
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static XenRef<Task> async_enable_ssl_legacy(Session session, string _pool)
{
return XenRef<Task>.Create(session.proxy.async_pool_enable_ssl_legacy(session.uuid, (_pool != null) ? _pool : "").parse());
}
/// <summary>
/// Sets ssl_legacy true on each host: see Host.ssl_legacy
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static void disable_ssl_legacy(Session session, string _pool)
{
session.proxy.pool_disable_ssl_legacy(session.uuid, (_pool != null) ? _pool : "").parse();
}
/// <summary>
/// Sets ssl_legacy true on each host: see Host.ssl_legacy
/// Experimental. First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_pool">The opaque_ref of the given pool</param>
public static XenRef<Task> async_disable_ssl_legacy(Session session, string _pool)
{
return XenRef<Task>.Create(session.proxy.async_pool_disable_ssl_legacy(session.uuid, (_pool != null) ? _pool : "").parse());
}
/// <summary>
/// Return a list of all the pools known to the system.
/// First published in XenServer 4.0.
@ -2343,5 +2469,60 @@ namespace XenAPI
}
}
private List<XenRef<VDI>> _metadata_VDIs;
/// <summary>
/// The ha cluster manager stack
/// First published in XenServer Dundee.
/// </summary>
public virtual string ha_cluster_stack
{
get { return _ha_cluster_stack; }
set
{
if (!Helper.AreEqual(value, _ha_cluster_stack))
{
_ha_cluster_stack = value;
Changed = true;
NotifyPropertyChanged("ha_cluster_stack");
}
}
}
private string _ha_cluster_stack;
/// <summary>
/// list of the operations allowed in this state. This list is advisory only and the server state may have changed by the time this field is read by a client.
/// </summary>
public virtual List<pool_allowed_operations> allowed_operations
{
get { return _allowed_operations; }
set
{
if (!Helper.AreEqual(value, _allowed_operations))
{
_allowed_operations = value;
Changed = true;
NotifyPropertyChanged("allowed_operations");
}
}
}
private List<pool_allowed_operations> _allowed_operations;
/// <summary>
/// links each of the running tasks using this object (by reference) to a current_operation enum which describes the nature of the task.
/// </summary>
public virtual Dictionary<string, pool_allowed_operations> current_operations
{
get { return _current_operations; }
set
{
if (!Helper.AreEqual(value, _current_operations))
{
_current_operations = value;
Changed = true;
NotifyPropertyChanged("current_operations");
}
}
}
private Dictionary<string, pool_allowed_operations> _current_operations;
}
}

View File

@ -564,6 +564,18 @@ namespace XenAPI
Response<string []>
pool_get_metadata_vdis(string session, string _pool);
[XmlRpcMethod("pool.get_ha_cluster_stack")]
Response<string>
pool_get_ha_cluster_stack(string session, string _pool);
[XmlRpcMethod("pool.get_allowed_operations")]
Response<string []>
pool_get_allowed_operations(string session, string _pool);
[XmlRpcMethod("pool.get_current_operations")]
Response<Object>
pool_get_current_operations(string session, string _pool);
[XmlRpcMethod("pool.set_name_label")]
Response<string>
pool_set_name_label(string session, string _pool, string _name_label);
@ -708,6 +720,14 @@ namespace XenAPI
Response<string>
async_pool_enable_ha(string session, string [] _heartbeat_srs, Object _configuration);
[XmlRpcMethod("pool.enable_ha")]
Response<string>
pool_enable_ha(string session, string [] _heartbeat_srs, Object _configuration, string _cluster_stack);
[XmlRpcMethod("Async.pool.enable_ha")]
Response<string>
async_pool_enable_ha(string session, string [] _heartbeat_srs, Object _configuration, string _cluster_stack);
[XmlRpcMethod("pool.disable_ha")]
Response<string>
pool_disable_ha(string session);
@ -952,6 +972,22 @@ namespace XenAPI
Response<string>
async_pool_apply_edition(string session, string _pool, string _edition);
[XmlRpcMethod("pool.enable_ssl_legacy")]
Response<string>
pool_enable_ssl_legacy(string session, string _pool);
[XmlRpcMethod("Async.pool.enable_ssl_legacy")]
Response<string>
async_pool_enable_ssl_legacy(string session, string _pool);
[XmlRpcMethod("pool.disable_ssl_legacy")]
Response<string>
pool_disable_ssl_legacy(string session, string _pool);
[XmlRpcMethod("Async.pool.disable_ssl_legacy")]
Response<string>
async_pool_disable_ssl_legacy(string session, string _pool);
[XmlRpcMethod("pool.get_all")]
Response<string []>
pool_get_all(string session);
@ -1416,6 +1452,10 @@ namespace XenAPI
Response<string>
vm_get_hardware_platform_version(string session, string _vm);
[XmlRpcMethod("VM.get_auto_update_drivers")]
Response<bool>
vm_get_auto_update_drivers(string session, string _vm);
[XmlRpcMethod("VM.set_name_label")]
Response<string>
vm_set_name_label(string session, string _vm, string _label);
@ -2092,6 +2132,30 @@ namespace XenAPI
Response<string>
async_vm_call_plugin(string session, string _vm, string _plugin, string _fn, Object _args);
[XmlRpcMethod("VM.set_auto_update_drivers")]
Response<string>
vm_set_auto_update_drivers(string session, string _vm, bool _value);
[XmlRpcMethod("Async.VM.set_auto_update_drivers")]
Response<string>
async_vm_set_auto_update_drivers(string session, string _vm, bool _value);
[XmlRpcMethod("VM.assert_can_set_auto_update_drivers")]
Response<string>
vm_assert_can_set_auto_update_drivers(string session, string _vm, bool _value);
[XmlRpcMethod("Async.VM.assert_can_set_auto_update_drivers")]
Response<string>
async_vm_assert_can_set_auto_update_drivers(string session, string _vm, bool _value);
[XmlRpcMethod("VM.import")]
Response<string []>
vm_import(string session, string _url, string _sr, bool _full_restore, bool _force);
[XmlRpcMethod("Async.VM.import")]
Response<string>
async_vm_import(string session, string _url, string _sr, bool _full_restore, bool _force);
[XmlRpcMethod("VM.get_all")]
Response<string []>
vm_get_all(string session);
@ -2200,6 +2264,14 @@ namespace XenAPI
Response<bool>
vm_guest_metrics_get_pv_drivers_up_to_date(string session, string _vm_guest_metrics);
[XmlRpcMethod("VM_guest_metrics.get_network_paths_optimized")]
Response<bool>
vm_guest_metrics_get_network_paths_optimized(string session, string _vm_guest_metrics);
[XmlRpcMethod("VM_guest_metrics.get_storage_paths_optimized")]
Response<bool>
vm_guest_metrics_get_storage_paths_optimized(string session, string _vm_guest_metrics);
[XmlRpcMethod("VM_guest_metrics.get_memory")]
Response<Object>
vm_guest_metrics_get_memory(string session, string _vm_guest_metrics);
@ -2832,6 +2904,10 @@ namespace XenAPI
Response<string []>
host_get_pgpus(string session, string _host);
[XmlRpcMethod("host.get_ssl_legacy")]
Response<bool>
host_get_ssl_legacy(string session, string _host);
[XmlRpcMethod("host.get_guest_VCPUs_params")]
Response<Object>
host_get_guest_vcpus_params(string session, string _host);
@ -3288,6 +3364,14 @@ namespace XenAPI
Response<string>
async_host_disable_display(string session, string _host);
[XmlRpcMethod("host.set_ssl_legacy")]
Response<string>
host_set_ssl_legacy(string session, string _host, bool _value);
[XmlRpcMethod("Async.host.set_ssl_legacy")]
Response<string>
async_host_set_ssl_legacy(string session, string _host, bool _value);
[XmlRpcMethod("host.get_all")]
Response<string []>
host_get_all(string session);
@ -6608,6 +6692,10 @@ namespace XenAPI
Response<string []>
vgpu_type_get_enabled_on_gpu_groups(string session, string _vgpu_type);
[XmlRpcMethod("VGPU_type.get_implementation")]
Response<string>
vgpu_type_get_implementation(string session, string _vgpu_type);
[XmlRpcMethod("VGPU_type.get_all")]
Response<string []>
vgpu_type_get_all(string session);
@ -6713,6 +6801,9 @@ namespace XenAPI
public string vswitch_controller;
public Object restrictions;
public string [] metadata_VDIs;
public string ha_cluster_stack;
public string [] allowed_operations;
public Object current_operations;
}
[XmlRpcMissingMapping(MappingAction.Ignore)]
@ -6808,6 +6899,7 @@ namespace XenAPI
public string version;
public string generation_id;
public string hardware_platform_version;
public bool auto_update_drivers;
}
[XmlRpcMissingMapping(MappingAction.Ignore)]
@ -6834,6 +6926,8 @@ namespace XenAPI
public Object os_version;
public Object PV_drivers_version;
public bool PV_drivers_up_to_date;
public bool network_paths_optimized;
public bool storage_paths_optimized;
public Object memory;
public Object disks;
public Object networks;
@ -6936,6 +7030,7 @@ namespace XenAPI
public Object chipset_info;
public string [] PCIs;
public string [] PGPUs;
public bool ssl_legacy;
public Object guest_VCPUs_params;
public string display;
public string [] virtual_hardware_platform_versions;
@ -7417,6 +7512,7 @@ namespace XenAPI
public string [] VGPUs;
public string [] supported_on_GPU_groups;
public string [] enabled_on_GPU_groups;
public string implementation;
}
}

View File

@ -59,7 +59,8 @@ namespace XenAPI
List<XenRef<PGPU>> enabled_on_PGPUs,
List<XenRef<VGPU>> VGPUs,
List<XenRef<GPU_group>> supported_on_GPU_groups,
List<XenRef<GPU_group>> enabled_on_GPU_groups)
List<XenRef<GPU_group>> enabled_on_GPU_groups,
vgpu_type_implementation implementation)
{
this.uuid = uuid;
this.vendor_name = vendor_name;
@ -73,6 +74,7 @@ namespace XenAPI
this.VGPUs = VGPUs;
this.supported_on_GPU_groups = supported_on_GPU_groups;
this.enabled_on_GPU_groups = enabled_on_GPU_groups;
this.implementation = implementation;
}
/// <summary>
@ -98,6 +100,7 @@ namespace XenAPI
VGPUs = update.VGPUs;
supported_on_GPU_groups = update.supported_on_GPU_groups;
enabled_on_GPU_groups = update.enabled_on_GPU_groups;
implementation = update.implementation;
}
internal void UpdateFromProxy(Proxy_VGPU_type proxy)
@ -114,6 +117,7 @@ namespace XenAPI
VGPUs = proxy.VGPUs == null ? null : XenRef<VGPU>.Create(proxy.VGPUs);
supported_on_GPU_groups = proxy.supported_on_GPU_groups == null ? null : XenRef<GPU_group>.Create(proxy.supported_on_GPU_groups);
enabled_on_GPU_groups = proxy.enabled_on_GPU_groups == null ? null : XenRef<GPU_group>.Create(proxy.enabled_on_GPU_groups);
implementation = proxy.implementation == null ? (vgpu_type_implementation) 0 : (vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), (string)proxy.implementation);
}
public Proxy_VGPU_type ToProxy()
@ -131,6 +135,7 @@ namespace XenAPI
result_.VGPUs = (VGPUs != null) ? Helper.RefListToStringArray(VGPUs) : new string[] {};
result_.supported_on_GPU_groups = (supported_on_GPU_groups != null) ? Helper.RefListToStringArray(supported_on_GPU_groups) : new string[] {};
result_.enabled_on_GPU_groups = (enabled_on_GPU_groups != null) ? Helper.RefListToStringArray(enabled_on_GPU_groups) : new string[] {};
result_.implementation = vgpu_type_implementation_helper.ToString(implementation);
return result_;
}
@ -152,6 +157,7 @@ namespace XenAPI
VGPUs = Marshalling.ParseSetRef<VGPU>(table, "VGPUs");
supported_on_GPU_groups = Marshalling.ParseSetRef<GPU_group>(table, "supported_on_GPU_groups");
enabled_on_GPU_groups = Marshalling.ParseSetRef<GPU_group>(table, "enabled_on_GPU_groups");
implementation = (vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), Marshalling.ParseString(table, "implementation"));
}
public bool DeepEquals(VGPU_type other)
@ -172,7 +178,8 @@ namespace XenAPI
Helper.AreEqual2(this._enabled_on_PGPUs, other._enabled_on_PGPUs) &&
Helper.AreEqual2(this._VGPUs, other._VGPUs) &&
Helper.AreEqual2(this._supported_on_GPU_groups, other._supported_on_GPU_groups) &&
Helper.AreEqual2(this._enabled_on_GPU_groups, other._enabled_on_GPU_groups);
Helper.AreEqual2(this._enabled_on_GPU_groups, other._enabled_on_GPU_groups) &&
Helper.AreEqual2(this._implementation, other._implementation);
}
public override string SaveChanges(Session session, string opaqueRef, VGPU_type server)
@ -341,6 +348,17 @@ namespace XenAPI
return XenRef<GPU_group>.Create(session.proxy.vgpu_type_get_enabled_on_gpu_groups(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
}
/// <summary>
/// Get the implementation field of the given VGPU_type.
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vgpu_type">The opaque_ref of the given vgpu_type</param>
public static vgpu_type_implementation get_implementation(Session session, string _vgpu_type)
{
return (vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), (string)session.proxy.vgpu_type_get_implementation(session.uuid, (_vgpu_type != null) ? _vgpu_type : "").parse());
}
/// <summary>
/// Return a list of all the VGPU_types known to the system.
/// First published in XenServer 6.2 SP1 Tech-Preview.
@ -580,5 +598,24 @@ namespace XenAPI
}
}
private List<XenRef<GPU_group>> _enabled_on_GPU_groups;
/// <summary>
/// The internal implementation of this VGPU type
/// First published in XenServer Dundee.
/// </summary>
public virtual vgpu_type_implementation implementation
{
get { return _implementation; }
set
{
if (!Helper.AreEqual(value, _implementation))
{
_implementation = value;
Changed = true;
NotifyPropertyChanged("implementation");
}
}
}
private vgpu_type_implementation _implementation;
}
}

View File

@ -123,7 +123,8 @@ namespace XenAPI
XenRef<SR> suspend_SR,
long version,
string generation_id,
long hardware_platform_version)
long hardware_platform_version,
bool auto_update_drivers)
{
this.uuid = uuid;
this.allowed_operations = allowed_operations;
@ -201,6 +202,7 @@ namespace XenAPI
this.version = version;
this.generation_id = generation_id;
this.hardware_platform_version = hardware_platform_version;
this.auto_update_drivers = auto_update_drivers;
}
/// <summary>
@ -290,6 +292,7 @@ namespace XenAPI
version = update.version;
generation_id = update.generation_id;
hardware_platform_version = update.hardware_platform_version;
auto_update_drivers = update.auto_update_drivers;
}
internal void UpdateFromProxy(Proxy_VM proxy)
@ -370,6 +373,7 @@ namespace XenAPI
version = proxy.version == null ? 0 : long.Parse((string)proxy.version);
generation_id = proxy.generation_id == null ? null : (string)proxy.generation_id;
hardware_platform_version = proxy.hardware_platform_version == null ? 0 : long.Parse((string)proxy.hardware_platform_version);
auto_update_drivers = (bool)proxy.auto_update_drivers;
}
public Proxy_VM ToProxy()
@ -451,6 +455,7 @@ namespace XenAPI
result_.version = version.ToString();
result_.generation_id = (generation_id != null) ? generation_id : "";
result_.hardware_platform_version = hardware_platform_version.ToString();
result_.auto_update_drivers = auto_update_drivers;
return result_;
}
@ -536,6 +541,7 @@ namespace XenAPI
version = Marshalling.ParseLong(table, "version");
generation_id = Marshalling.ParseString(table, "generation_id");
hardware_platform_version = Marshalling.ParseLong(table, "hardware_platform_version");
auto_update_drivers = Marshalling.ParseBool(table, "auto_update_drivers");
}
public bool DeepEquals(VM other, bool ignoreCurrentOperations)
@ -622,7 +628,8 @@ namespace XenAPI
Helper.AreEqual2(this._suspend_SR, other._suspend_SR) &&
Helper.AreEqual2(this._version, other._version) &&
Helper.AreEqual2(this._generation_id, other._generation_id) &&
Helper.AreEqual2(this._hardware_platform_version, other._hardware_platform_version);
Helper.AreEqual2(this._hardware_platform_version, other._hardware_platform_version) &&
Helper.AreEqual2(this._auto_update_drivers, other._auto_update_drivers);
}
public override string SaveChanges(Session session, string opaqueRef, VM server)
@ -1711,6 +1718,17 @@ namespace XenAPI
return long.Parse((string)session.proxy.vm_get_hardware_platform_version(session.uuid, (_vm != null) ? _vm : "").parse());
}
/// <summary>
/// Get the auto_update_drivers field of the given VM.
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm">The opaque_ref of the given vm</param>
public static bool get_auto_update_drivers(Session session, string _vm)
{
return (bool)session.proxy.vm_get_auto_update_drivers(session.uuid, (_vm != null) ? _vm : "").parse();
}
/// <summary>
/// Set the name/label field of the given VM.
/// First published in XenServer 4.0.
@ -2670,7 +2688,7 @@ namespace XenAPI
}
/// <summary>
/// Migrate a VM to another Host. This can only be called when the specified VM is in the Running state.
/// Migrate a VM to another Host.
/// First published in XenServer 4.0.
/// </summary>
/// <param name="session">The session</param>
@ -2683,7 +2701,7 @@ namespace XenAPI
}
/// <summary>
/// Migrate a VM to another Host. This can only be called when the specified VM is in the Running state.
/// Migrate a VM to another Host.
/// First published in XenServer 4.0.
/// </summary>
/// <param name="session">The session</param>
@ -3134,9 +3152,9 @@ namespace XenAPI
/// <param name="_vdi_map">Map of source VDI to destination SR</param>
/// <param name="_vif_map">Map of source VIF to destination network</param>
/// <param name="_options">Other parameters</param>
public static void migrate_send(Session session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
public static XenRef<VM> migrate_send(Session session, string _vm, Dictionary<string, string> _dest, bool _live, Dictionary<XenRef<VDI>, XenRef<SR>> _vdi_map, Dictionary<XenRef<VIF>, XenRef<Network>> _vif_map, Dictionary<string, string> _options)
{
session.proxy.vm_migrate_send(session.uuid, (_vm != null) ? _vm : "", Maps.convert_to_proxy_string_string(_dest), _live, Maps.convert_to_proxy_XenRefVDI_XenRefSR(_vdi_map), Maps.convert_to_proxy_XenRefVIF_XenRefNetwork(_vif_map), Maps.convert_to_proxy_string_string(_options)).parse();
return XenRef<VM>.Create(session.proxy.vm_migrate_send(session.uuid, (_vm != null) ? _vm : "", Maps.convert_to_proxy_string_string(_dest), _live, Maps.convert_to_proxy_XenRefVDI_XenRefSR(_vdi_map), Maps.convert_to_proxy_XenRefVIF_XenRefNetwork(_vif_map), Maps.convert_to_proxy_string_string(_options)).parse());
}
/// <summary>
@ -3767,6 +3785,82 @@ namespace XenAPI
return XenRef<Task>.Create(session.proxy.async_vm_call_plugin(session.uuid, (_vm != null) ? _vm : "", (_plugin != null) ? _plugin : "", (_fn != null) ? _fn : "", Maps.convert_to_proxy_string_string(_args)).parse());
}
/// <summary>
/// Enable or disable PV auto update on Windows vm
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm">The opaque_ref of the given vm</param>
/// <param name="_value">True if the Windows Update feature is enabled on the VM; false otherwise</param>
public static void set_auto_update_drivers(Session session, string _vm, bool _value)
{
session.proxy.vm_set_auto_update_drivers(session.uuid, (_vm != null) ? _vm : "", _value).parse();
}
/// <summary>
/// Enable or disable PV auto update on Windows vm
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm">The opaque_ref of the given vm</param>
/// <param name="_value">True if the Windows Update feature is enabled on the VM; false otherwise</param>
public static XenRef<Task> async_set_auto_update_drivers(Session session, string _vm, bool _value)
{
return XenRef<Task>.Create(session.proxy.async_vm_set_auto_update_drivers(session.uuid, (_vm != null) ? _vm : "", _value).parse());
}
/// <summary>
/// Check if PV auto update can be set on Windows vm
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm">The opaque_ref of the given vm</param>
/// <param name="_value">True if the Windows Update feature is enabled on the VM; false otherwise</param>
public static void assert_can_set_auto_update_drivers(Session session, string _vm, bool _value)
{
session.proxy.vm_assert_can_set_auto_update_drivers(session.uuid, (_vm != null) ? _vm : "", _value).parse();
}
/// <summary>
/// Check if PV auto update can be set on Windows vm
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm">The opaque_ref of the given vm</param>
/// <param name="_value">True if the Windows Update feature is enabled on the VM; false otherwise</param>
public static XenRef<Task> async_assert_can_set_auto_update_drivers(Session session, string _vm, bool _value)
{
return XenRef<Task>.Create(session.proxy.async_vm_assert_can_set_auto_update_drivers(session.uuid, (_vm != null) ? _vm : "", _value).parse());
}
/// <summary>
/// Import an XVA from a URI
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_url">The URL of the XVA file</param>
/// <param name="_sr">The destination SR for the disks</param>
/// <param name="_full_restore">Perform a full restore</param>
/// <param name="_force">Force the import</param>
public static List<XenRef<VM>> import(Session session, string _url, string _sr, bool _full_restore, bool _force)
{
return XenRef<VM>.Create(session.proxy.vm_import(session.uuid, (_url != null) ? _url : "", (_sr != null) ? _sr : "", _full_restore, _force).parse());
}
/// <summary>
/// Import an XVA from a URI
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_url">The URL of the XVA file</param>
/// <param name="_sr">The destination SR for the disks</param>
/// <param name="_full_restore">Perform a full restore</param>
/// <param name="_force">Force the import</param>
public static XenRef<Task> async_import(Session session, string _url, string _sr, bool _full_restore, bool _force)
{
return XenRef<Task>.Create(session.proxy.async_vm_import(session.uuid, (_url != null) ? _url : "", (_sr != null) ? _sr : "", _full_restore, _force).parse());
}
/// <summary>
/// Return a list of all the VMs known to the system.
/// First published in XenServer 4.0.
@ -5183,5 +5277,24 @@ namespace XenAPI
}
}
private long _hardware_platform_version;
/// <summary>
/// True if the Windows Update feature is enabled on the VM; false otherwise
/// First published in XenServer Dundee.
/// </summary>
public virtual bool auto_update_drivers
{
get { return _auto_update_drivers; }
set
{
if (!Helper.AreEqual(value, _auto_update_drivers))
{
_auto_update_drivers = value;
Changed = true;
NotifyPropertyChanged("auto_update_drivers");
}
}
}
private bool _auto_update_drivers;
}
}

View File

@ -52,6 +52,8 @@ namespace XenAPI
Dictionary<string, string> os_version,
Dictionary<string, string> PV_drivers_version,
bool PV_drivers_up_to_date,
bool network_paths_optimized,
bool storage_paths_optimized,
Dictionary<string, string> memory,
Dictionary<string, string> disks,
Dictionary<string, string> networks,
@ -64,6 +66,8 @@ namespace XenAPI
this.os_version = os_version;
this.PV_drivers_version = PV_drivers_version;
this.PV_drivers_up_to_date = PV_drivers_up_to_date;
this.network_paths_optimized = network_paths_optimized;
this.storage_paths_optimized = storage_paths_optimized;
this.memory = memory;
this.disks = disks;
this.networks = networks;
@ -88,6 +92,8 @@ namespace XenAPI
os_version = update.os_version;
PV_drivers_version = update.PV_drivers_version;
PV_drivers_up_to_date = update.PV_drivers_up_to_date;
network_paths_optimized = update.network_paths_optimized;
storage_paths_optimized = update.storage_paths_optimized;
memory = update.memory;
disks = update.disks;
networks = update.networks;
@ -103,6 +109,8 @@ namespace XenAPI
os_version = proxy.os_version == null ? null : Maps.convert_from_proxy_string_string(proxy.os_version);
PV_drivers_version = proxy.PV_drivers_version == null ? null : Maps.convert_from_proxy_string_string(proxy.PV_drivers_version);
PV_drivers_up_to_date = (bool)proxy.PV_drivers_up_to_date;
network_paths_optimized = (bool)proxy.network_paths_optimized;
storage_paths_optimized = (bool)proxy.storage_paths_optimized;
memory = proxy.memory == null ? null : Maps.convert_from_proxy_string_string(proxy.memory);
disks = proxy.disks == null ? null : Maps.convert_from_proxy_string_string(proxy.disks);
networks = proxy.networks == null ? null : Maps.convert_from_proxy_string_string(proxy.networks);
@ -119,6 +127,8 @@ namespace XenAPI
result_.os_version = Maps.convert_to_proxy_string_string(os_version);
result_.PV_drivers_version = Maps.convert_to_proxy_string_string(PV_drivers_version);
result_.PV_drivers_up_to_date = PV_drivers_up_to_date;
result_.network_paths_optimized = network_paths_optimized;
result_.storage_paths_optimized = storage_paths_optimized;
result_.memory = Maps.convert_to_proxy_string_string(memory);
result_.disks = Maps.convert_to_proxy_string_string(disks);
result_.networks = Maps.convert_to_proxy_string_string(networks);
@ -139,6 +149,8 @@ namespace XenAPI
os_version = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "os_version"));
PV_drivers_version = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "PV_drivers_version"));
PV_drivers_up_to_date = Marshalling.ParseBool(table, "PV_drivers_up_to_date");
network_paths_optimized = Marshalling.ParseBool(table, "network_paths_optimized");
storage_paths_optimized = Marshalling.ParseBool(table, "storage_paths_optimized");
memory = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "memory"));
disks = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "disks"));
networks = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "networks"));
@ -159,6 +171,8 @@ namespace XenAPI
Helper.AreEqual2(this._os_version, other._os_version) &&
Helper.AreEqual2(this._PV_drivers_version, other._PV_drivers_version) &&
Helper.AreEqual2(this._PV_drivers_up_to_date, other._PV_drivers_up_to_date) &&
Helper.AreEqual2(this._network_paths_optimized, other._network_paths_optimized) &&
Helper.AreEqual2(this._storage_paths_optimized, other._storage_paths_optimized) &&
Helper.AreEqual2(this._memory, other._memory) &&
Helper.AreEqual2(this._disks, other._disks) &&
Helper.AreEqual2(this._networks, other._networks) &&
@ -251,6 +265,28 @@ namespace XenAPI
return (bool)session.proxy.vm_guest_metrics_get_pv_drivers_up_to_date(session.uuid, (_vm_guest_metrics != null) ? _vm_guest_metrics : "").parse();
}
/// <summary>
/// Get the network_paths_optimized field of the given VM_guest_metrics.
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm_guest_metrics">The opaque_ref of the given vm_guest_metrics</param>
public static bool get_network_paths_optimized(Session session, string _vm_guest_metrics)
{
return (bool)session.proxy.vm_guest_metrics_get_network_paths_optimized(session.uuid, (_vm_guest_metrics != null) ? _vm_guest_metrics : "").parse();
}
/// <summary>
/// Get the storage_paths_optimized field of the given VM_guest_metrics.
/// First published in XenServer Dundee.
/// </summary>
/// <param name="session">The session</param>
/// <param name="_vm_guest_metrics">The opaque_ref of the given vm_guest_metrics</param>
public static bool get_storage_paths_optimized(Session session, string _vm_guest_metrics)
{
return (bool)session.proxy.vm_guest_metrics_get_storage_paths_optimized(session.uuid, (_vm_guest_metrics != null) ? _vm_guest_metrics : "").parse();
}
/// <summary>
/// Get the memory field of the given VM_guest_metrics.
/// First published in XenServer 4.0.
@ -440,7 +476,7 @@ namespace XenAPI
private Dictionary<string, string> _PV_drivers_version;
/// <summary>
/// true if the PV drivers appear to be up to date
/// Logical AND of network_paths_optimized and storage_paths_optimized
/// </summary>
public virtual bool PV_drivers_up_to_date
{
@ -457,6 +493,44 @@ namespace XenAPI
}
private bool _PV_drivers_up_to_date;
/// <summary>
/// True if the network paths are optimized with PV driver
/// First published in XenServer Dundee.
/// </summary>
public virtual bool network_paths_optimized
{
get { return _network_paths_optimized; }
set
{
if (!Helper.AreEqual(value, _network_paths_optimized))
{
_network_paths_optimized = value;
Changed = true;
NotifyPropertyChanged("network_paths_optimized");
}
}
}
private bool _network_paths_optimized;
/// <summary>
/// True if the storage paths are optimized with PV driver
/// First published in XenServer Dundee.
/// </summary>
public virtual bool storage_paths_optimized
{
get { return _storage_paths_optimized; }
set
{
if (!Helper.AreEqual(value, _storage_paths_optimized))
{
_storage_paths_optimized = value;
Changed = true;
NotifyPropertyChanged("storage_paths_optimized");
}
}
}
private bool _storage_paths_optimized;
/// <summary>
/// This field exists but has no data. Use the memory and memory_internal_free RRD data-sources instead.
/// </summary>