mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-25 14:27:26 +01:00
ad2650c0e5
Updated XenAPI from XenCenterBindings-72599 (xenserver trunk build #72634). Signed-off-by: Adrian Jachacy <Adrian.Jachacy@citrix.com>
1557 lines
83 KiB
C#
1557 lines
83 KiB
C#
/*
|
|
* Copyright (c) Citrix Systems, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without
|
|
* modification, are permitted provided that the following conditions
|
|
* are met:
|
|
*
|
|
* 1) Redistributions of source code must retain the above copyright
|
|
* notice, this list of conditions and the following disclaimer.
|
|
*
|
|
* 2) Redistributions in binary form must reproduce the above
|
|
* copyright notice, this list of conditions and the following
|
|
* disclaimer in the documentation and/or other materials
|
|
* provided with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
|
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
|
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
|
|
using CookComputing.XmlRpc;
|
|
|
|
|
|
namespace XenAPI
|
|
{
|
|
public partial class Host : XenObject<Host>
|
|
{
|
|
public Host()
|
|
{
|
|
}
|
|
|
|
public Host(string uuid,
|
|
string name_label,
|
|
string name_description,
|
|
long memory_overhead,
|
|
List<host_allowed_operations> allowed_operations,
|
|
Dictionary<string, host_allowed_operations> current_operations,
|
|
long API_version_major,
|
|
long API_version_minor,
|
|
string API_version_vendor,
|
|
Dictionary<string, string> API_version_vendor_implementation,
|
|
bool enabled,
|
|
Dictionary<string, string> software_version,
|
|
Dictionary<string, string> other_config,
|
|
string[] capabilities,
|
|
Dictionary<string, string> cpu_configuration,
|
|
string sched_policy,
|
|
string[] supported_bootloaders,
|
|
List<XenRef<VM>> resident_VMs,
|
|
Dictionary<string, string> logging,
|
|
List<XenRef<PIF>> PIFs,
|
|
XenRef<SR> suspend_image_sr,
|
|
XenRef<SR> crash_dump_sr,
|
|
List<XenRef<Host_crashdump>> crashdumps,
|
|
List<XenRef<Host_patch>> patches,
|
|
List<XenRef<PBD>> PBDs,
|
|
List<XenRef<Host_cpu>> host_CPUs,
|
|
Dictionary<string, string> cpu_info,
|
|
string hostname,
|
|
string address,
|
|
XenRef<Host_metrics> metrics,
|
|
Dictionary<string, string> license_params,
|
|
string[] ha_statefiles,
|
|
string[] ha_network_peers,
|
|
Dictionary<string, XenRef<Blob>> blobs,
|
|
string[] tags,
|
|
string external_auth_type,
|
|
string external_auth_service_name,
|
|
Dictionary<string, string> external_auth_configuration,
|
|
string edition,
|
|
Dictionary<string, string> license_server,
|
|
Dictionary<string, string> bios_strings,
|
|
string power_on_mode,
|
|
Dictionary<string, string> power_on_config,
|
|
XenRef<SR> local_cache_sr,
|
|
Dictionary<string, string> chipset_info,
|
|
List<XenRef<PCI>> PCIs,
|
|
List<XenRef<PGPU>> PGPUs,
|
|
Dictionary<string, string> guest_VCPUs_params)
|
|
{
|
|
this.uuid = uuid;
|
|
this.name_label = name_label;
|
|
this.name_description = name_description;
|
|
this.memory_overhead = memory_overhead;
|
|
this.allowed_operations = allowed_operations;
|
|
this.current_operations = current_operations;
|
|
this.API_version_major = API_version_major;
|
|
this.API_version_minor = API_version_minor;
|
|
this.API_version_vendor = API_version_vendor;
|
|
this.API_version_vendor_implementation = API_version_vendor_implementation;
|
|
this.enabled = enabled;
|
|
this.software_version = software_version;
|
|
this.other_config = other_config;
|
|
this.capabilities = capabilities;
|
|
this.cpu_configuration = cpu_configuration;
|
|
this.sched_policy = sched_policy;
|
|
this.supported_bootloaders = supported_bootloaders;
|
|
this.resident_VMs = resident_VMs;
|
|
this.logging = logging;
|
|
this.PIFs = PIFs;
|
|
this.suspend_image_sr = suspend_image_sr;
|
|
this.crash_dump_sr = crash_dump_sr;
|
|
this.crashdumps = crashdumps;
|
|
this.patches = patches;
|
|
this.PBDs = PBDs;
|
|
this.host_CPUs = host_CPUs;
|
|
this.cpu_info = cpu_info;
|
|
this.hostname = hostname;
|
|
this.address = address;
|
|
this.metrics = metrics;
|
|
this.license_params = license_params;
|
|
this.ha_statefiles = ha_statefiles;
|
|
this.ha_network_peers = ha_network_peers;
|
|
this.blobs = blobs;
|
|
this.tags = tags;
|
|
this.external_auth_type = external_auth_type;
|
|
this.external_auth_service_name = external_auth_service_name;
|
|
this.external_auth_configuration = external_auth_configuration;
|
|
this.edition = edition;
|
|
this.license_server = license_server;
|
|
this.bios_strings = bios_strings;
|
|
this.power_on_mode = power_on_mode;
|
|
this.power_on_config = power_on_config;
|
|
this.local_cache_sr = local_cache_sr;
|
|
this.chipset_info = chipset_info;
|
|
this.PCIs = PCIs;
|
|
this.PGPUs = PGPUs;
|
|
this.guest_VCPUs_params = guest_VCPUs_params;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new Host from a Proxy_Host.
|
|
/// </summary>
|
|
/// <param name="proxy"></param>
|
|
public Host(Proxy_Host proxy)
|
|
{
|
|
this.UpdateFromProxy(proxy);
|
|
}
|
|
|
|
public override void UpdateFrom(Host update)
|
|
{
|
|
uuid = update.uuid;
|
|
name_label = update.name_label;
|
|
name_description = update.name_description;
|
|
memory_overhead = update.memory_overhead;
|
|
allowed_operations = update.allowed_operations;
|
|
current_operations = update.current_operations;
|
|
API_version_major = update.API_version_major;
|
|
API_version_minor = update.API_version_minor;
|
|
API_version_vendor = update.API_version_vendor;
|
|
API_version_vendor_implementation = update.API_version_vendor_implementation;
|
|
enabled = update.enabled;
|
|
software_version = update.software_version;
|
|
other_config = update.other_config;
|
|
capabilities = update.capabilities;
|
|
cpu_configuration = update.cpu_configuration;
|
|
sched_policy = update.sched_policy;
|
|
supported_bootloaders = update.supported_bootloaders;
|
|
resident_VMs = update.resident_VMs;
|
|
logging = update.logging;
|
|
PIFs = update.PIFs;
|
|
suspend_image_sr = update.suspend_image_sr;
|
|
crash_dump_sr = update.crash_dump_sr;
|
|
crashdumps = update.crashdumps;
|
|
patches = update.patches;
|
|
PBDs = update.PBDs;
|
|
host_CPUs = update.host_CPUs;
|
|
cpu_info = update.cpu_info;
|
|
hostname = update.hostname;
|
|
address = update.address;
|
|
metrics = update.metrics;
|
|
license_params = update.license_params;
|
|
ha_statefiles = update.ha_statefiles;
|
|
ha_network_peers = update.ha_network_peers;
|
|
blobs = update.blobs;
|
|
tags = update.tags;
|
|
external_auth_type = update.external_auth_type;
|
|
external_auth_service_name = update.external_auth_service_name;
|
|
external_auth_configuration = update.external_auth_configuration;
|
|
edition = update.edition;
|
|
license_server = update.license_server;
|
|
bios_strings = update.bios_strings;
|
|
power_on_mode = update.power_on_mode;
|
|
power_on_config = update.power_on_config;
|
|
local_cache_sr = update.local_cache_sr;
|
|
chipset_info = update.chipset_info;
|
|
PCIs = update.PCIs;
|
|
PGPUs = update.PGPUs;
|
|
guest_VCPUs_params = update.guest_VCPUs_params;
|
|
}
|
|
|
|
internal void UpdateFromProxy(Proxy_Host proxy)
|
|
{
|
|
uuid = proxy.uuid == null ? null : (string)proxy.uuid;
|
|
name_label = proxy.name_label == null ? null : (string)proxy.name_label;
|
|
name_description = proxy.name_description == null ? null : (string)proxy.name_description;
|
|
memory_overhead = proxy.memory_overhead == null ? 0 : long.Parse((string)proxy.memory_overhead);
|
|
allowed_operations = proxy.allowed_operations == null ? null : Helper.StringArrayToEnumList<host_allowed_operations>(proxy.allowed_operations);
|
|
current_operations = proxy.current_operations == null ? null : Maps.convert_from_proxy_string_host_allowed_operations(proxy.current_operations);
|
|
API_version_major = proxy.API_version_major == null ? 0 : long.Parse((string)proxy.API_version_major);
|
|
API_version_minor = proxy.API_version_minor == null ? 0 : long.Parse((string)proxy.API_version_minor);
|
|
API_version_vendor = proxy.API_version_vendor == null ? null : (string)proxy.API_version_vendor;
|
|
API_version_vendor_implementation = proxy.API_version_vendor_implementation == null ? null : Maps.convert_from_proxy_string_string(proxy.API_version_vendor_implementation);
|
|
enabled = (bool)proxy.enabled;
|
|
software_version = proxy.software_version == null ? null : Maps.convert_from_proxy_string_string(proxy.software_version);
|
|
other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
|
|
capabilities = proxy.capabilities == null ? new string[] {} : (string [])proxy.capabilities;
|
|
cpu_configuration = proxy.cpu_configuration == null ? null : Maps.convert_from_proxy_string_string(proxy.cpu_configuration);
|
|
sched_policy = proxy.sched_policy == null ? null : (string)proxy.sched_policy;
|
|
supported_bootloaders = proxy.supported_bootloaders == null ? new string[] {} : (string [])proxy.supported_bootloaders;
|
|
resident_VMs = proxy.resident_VMs == null ? null : XenRef<VM>.Create(proxy.resident_VMs);
|
|
logging = proxy.logging == null ? null : Maps.convert_from_proxy_string_string(proxy.logging);
|
|
PIFs = proxy.PIFs == null ? null : XenRef<PIF>.Create(proxy.PIFs);
|
|
suspend_image_sr = proxy.suspend_image_sr == null ? null : XenRef<SR>.Create(proxy.suspend_image_sr);
|
|
crash_dump_sr = proxy.crash_dump_sr == null ? null : XenRef<SR>.Create(proxy.crash_dump_sr);
|
|
crashdumps = proxy.crashdumps == null ? null : XenRef<Host_crashdump>.Create(proxy.crashdumps);
|
|
patches = proxy.patches == null ? null : XenRef<Host_patch>.Create(proxy.patches);
|
|
PBDs = proxy.PBDs == null ? null : XenRef<PBD>.Create(proxy.PBDs);
|
|
host_CPUs = proxy.host_CPUs == null ? null : XenRef<Host_cpu>.Create(proxy.host_CPUs);
|
|
cpu_info = proxy.cpu_info == null ? null : Maps.convert_from_proxy_string_string(proxy.cpu_info);
|
|
hostname = proxy.hostname == null ? null : (string)proxy.hostname;
|
|
address = proxy.address == null ? null : (string)proxy.address;
|
|
metrics = proxy.metrics == null ? null : XenRef<Host_metrics>.Create(proxy.metrics);
|
|
license_params = proxy.license_params == null ? null : Maps.convert_from_proxy_string_string(proxy.license_params);
|
|
ha_statefiles = proxy.ha_statefiles == null ? new string[] {} : (string [])proxy.ha_statefiles;
|
|
ha_network_peers = proxy.ha_network_peers == null ? new string[] {} : (string [])proxy.ha_network_peers;
|
|
blobs = proxy.blobs == null ? null : Maps.convert_from_proxy_string_XenRefBlob(proxy.blobs);
|
|
tags = proxy.tags == null ? new string[] {} : (string [])proxy.tags;
|
|
external_auth_type = proxy.external_auth_type == null ? null : (string)proxy.external_auth_type;
|
|
external_auth_service_name = proxy.external_auth_service_name == null ? null : (string)proxy.external_auth_service_name;
|
|
external_auth_configuration = proxy.external_auth_configuration == null ? null : Maps.convert_from_proxy_string_string(proxy.external_auth_configuration);
|
|
edition = proxy.edition == null ? null : (string)proxy.edition;
|
|
license_server = proxy.license_server == null ? null : Maps.convert_from_proxy_string_string(proxy.license_server);
|
|
bios_strings = proxy.bios_strings == null ? null : Maps.convert_from_proxy_string_string(proxy.bios_strings);
|
|
power_on_mode = proxy.power_on_mode == null ? null : (string)proxy.power_on_mode;
|
|
power_on_config = proxy.power_on_config == null ? null : Maps.convert_from_proxy_string_string(proxy.power_on_config);
|
|
local_cache_sr = proxy.local_cache_sr == null ? null : XenRef<SR>.Create(proxy.local_cache_sr);
|
|
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);
|
|
guest_VCPUs_params = proxy.guest_VCPUs_params == null ? null : Maps.convert_from_proxy_string_string(proxy.guest_VCPUs_params);
|
|
}
|
|
|
|
public Proxy_Host ToProxy()
|
|
{
|
|
Proxy_Host result_ = new Proxy_Host();
|
|
result_.uuid = (uuid != null) ? uuid : "";
|
|
result_.name_label = (name_label != null) ? name_label : "";
|
|
result_.name_description = (name_description != null) ? name_description : "";
|
|
result_.memory_overhead = memory_overhead.ToString();
|
|
result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
|
|
result_.current_operations = Maps.convert_to_proxy_string_host_allowed_operations(current_operations);
|
|
result_.API_version_major = API_version_major.ToString();
|
|
result_.API_version_minor = API_version_minor.ToString();
|
|
result_.API_version_vendor = (API_version_vendor != null) ? API_version_vendor : "";
|
|
result_.API_version_vendor_implementation = Maps.convert_to_proxy_string_string(API_version_vendor_implementation);
|
|
result_.enabled = enabled;
|
|
result_.software_version = Maps.convert_to_proxy_string_string(software_version);
|
|
result_.other_config = Maps.convert_to_proxy_string_string(other_config);
|
|
result_.capabilities = capabilities;
|
|
result_.cpu_configuration = Maps.convert_to_proxy_string_string(cpu_configuration);
|
|
result_.sched_policy = (sched_policy != null) ? sched_policy : "";
|
|
result_.supported_bootloaders = supported_bootloaders;
|
|
result_.resident_VMs = (resident_VMs != null) ? Helper.RefListToStringArray(resident_VMs) : new string[] {};
|
|
result_.logging = Maps.convert_to_proxy_string_string(logging);
|
|
result_.PIFs = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {};
|
|
result_.suspend_image_sr = (suspend_image_sr != null) ? suspend_image_sr : "";
|
|
result_.crash_dump_sr = (crash_dump_sr != null) ? crash_dump_sr : "";
|
|
result_.crashdumps = (crashdumps != null) ? Helper.RefListToStringArray(crashdumps) : new string[] {};
|
|
result_.patches = (patches != null) ? Helper.RefListToStringArray(patches) : new string[] {};
|
|
result_.PBDs = (PBDs != null) ? Helper.RefListToStringArray(PBDs) : new string[] {};
|
|
result_.host_CPUs = (host_CPUs != null) ? Helper.RefListToStringArray(host_CPUs) : new string[] {};
|
|
result_.cpu_info = Maps.convert_to_proxy_string_string(cpu_info);
|
|
result_.hostname = (hostname != null) ? hostname : "";
|
|
result_.address = (address != null) ? address : "";
|
|
result_.metrics = (metrics != null) ? metrics : "";
|
|
result_.license_params = Maps.convert_to_proxy_string_string(license_params);
|
|
result_.ha_statefiles = ha_statefiles;
|
|
result_.ha_network_peers = ha_network_peers;
|
|
result_.blobs = Maps.convert_to_proxy_string_XenRefBlob(blobs);
|
|
result_.tags = tags;
|
|
result_.external_auth_type = (external_auth_type != null) ? external_auth_type : "";
|
|
result_.external_auth_service_name = (external_auth_service_name != null) ? external_auth_service_name : "";
|
|
result_.external_auth_configuration = Maps.convert_to_proxy_string_string(external_auth_configuration);
|
|
result_.edition = (edition != null) ? edition : "";
|
|
result_.license_server = Maps.convert_to_proxy_string_string(license_server);
|
|
result_.bios_strings = Maps.convert_to_proxy_string_string(bios_strings);
|
|
result_.power_on_mode = (power_on_mode != null) ? power_on_mode : "";
|
|
result_.power_on_config = Maps.convert_to_proxy_string_string(power_on_config);
|
|
result_.local_cache_sr = (local_cache_sr != null) ? local_cache_sr : "";
|
|
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_.guest_VCPUs_params = Maps.convert_to_proxy_string_string(guest_VCPUs_params);
|
|
return result_;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new Host from a Hashtable.
|
|
/// </summary>
|
|
/// <param name="table"></param>
|
|
public Host(Hashtable table)
|
|
{
|
|
uuid = Marshalling.ParseString(table, "uuid");
|
|
name_label = Marshalling.ParseString(table, "name_label");
|
|
name_description = Marshalling.ParseString(table, "name_description");
|
|
memory_overhead = Marshalling.ParseLong(table, "memory_overhead");
|
|
allowed_operations = Helper.StringArrayToEnumList<host_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
|
|
current_operations = Maps.convert_from_proxy_string_host_allowed_operations(Marshalling.ParseHashTable(table, "current_operations"));
|
|
API_version_major = Marshalling.ParseLong(table, "API_version_major");
|
|
API_version_minor = Marshalling.ParseLong(table, "API_version_minor");
|
|
API_version_vendor = Marshalling.ParseString(table, "API_version_vendor");
|
|
API_version_vendor_implementation = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "API_version_vendor_implementation"));
|
|
enabled = Marshalling.ParseBool(table, "enabled");
|
|
software_version = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "software_version"));
|
|
other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
|
|
capabilities = Marshalling.ParseStringArray(table, "capabilities");
|
|
cpu_configuration = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "cpu_configuration"));
|
|
sched_policy = Marshalling.ParseString(table, "sched_policy");
|
|
supported_bootloaders = Marshalling.ParseStringArray(table, "supported_bootloaders");
|
|
resident_VMs = Marshalling.ParseSetRef<VM>(table, "resident_VMs");
|
|
logging = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "logging"));
|
|
PIFs = Marshalling.ParseSetRef<PIF>(table, "PIFs");
|
|
suspend_image_sr = Marshalling.ParseRef<SR>(table, "suspend_image_sr");
|
|
crash_dump_sr = Marshalling.ParseRef<SR>(table, "crash_dump_sr");
|
|
crashdumps = Marshalling.ParseSetRef<Host_crashdump>(table, "crashdumps");
|
|
patches = Marshalling.ParseSetRef<Host_patch>(table, "patches");
|
|
PBDs = Marshalling.ParseSetRef<PBD>(table, "PBDs");
|
|
host_CPUs = Marshalling.ParseSetRef<Host_cpu>(table, "host_CPUs");
|
|
cpu_info = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "cpu_info"));
|
|
hostname = Marshalling.ParseString(table, "hostname");
|
|
address = Marshalling.ParseString(table, "address");
|
|
metrics = Marshalling.ParseRef<Host_metrics>(table, "metrics");
|
|
license_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "license_params"));
|
|
ha_statefiles = Marshalling.ParseStringArray(table, "ha_statefiles");
|
|
ha_network_peers = Marshalling.ParseStringArray(table, "ha_network_peers");
|
|
blobs = Maps.convert_from_proxy_string_XenRefBlob(Marshalling.ParseHashTable(table, "blobs"));
|
|
tags = Marshalling.ParseStringArray(table, "tags");
|
|
external_auth_type = Marshalling.ParseString(table, "external_auth_type");
|
|
external_auth_service_name = Marshalling.ParseString(table, "external_auth_service_name");
|
|
external_auth_configuration = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "external_auth_configuration"));
|
|
edition = Marshalling.ParseString(table, "edition");
|
|
license_server = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "license_server"));
|
|
bios_strings = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "bios_strings"));
|
|
power_on_mode = Marshalling.ParseString(table, "power_on_mode");
|
|
power_on_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "power_on_config"));
|
|
local_cache_sr = Marshalling.ParseRef<SR>(table, "local_cache_sr");
|
|
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");
|
|
guest_VCPUs_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "guest_VCPUs_params"));
|
|
}
|
|
|
|
public bool DeepEquals(Host 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) &&
|
|
Helper.AreEqual2(this._memory_overhead, other._memory_overhead) &&
|
|
Helper.AreEqual2(this._allowed_operations, other._allowed_operations) &&
|
|
Helper.AreEqual2(this._API_version_major, other._API_version_major) &&
|
|
Helper.AreEqual2(this._API_version_minor, other._API_version_minor) &&
|
|
Helper.AreEqual2(this._API_version_vendor, other._API_version_vendor) &&
|
|
Helper.AreEqual2(this._API_version_vendor_implementation, other._API_version_vendor_implementation) &&
|
|
Helper.AreEqual2(this._enabled, other._enabled) &&
|
|
Helper.AreEqual2(this._software_version, other._software_version) &&
|
|
Helper.AreEqual2(this._other_config, other._other_config) &&
|
|
Helper.AreEqual2(this._capabilities, other._capabilities) &&
|
|
Helper.AreEqual2(this._cpu_configuration, other._cpu_configuration) &&
|
|
Helper.AreEqual2(this._sched_policy, other._sched_policy) &&
|
|
Helper.AreEqual2(this._supported_bootloaders, other._supported_bootloaders) &&
|
|
Helper.AreEqual2(this._resident_VMs, other._resident_VMs) &&
|
|
Helper.AreEqual2(this._logging, other._logging) &&
|
|
Helper.AreEqual2(this._PIFs, other._PIFs) &&
|
|
Helper.AreEqual2(this._suspend_image_sr, other._suspend_image_sr) &&
|
|
Helper.AreEqual2(this._crash_dump_sr, other._crash_dump_sr) &&
|
|
Helper.AreEqual2(this._crashdumps, other._crashdumps) &&
|
|
Helper.AreEqual2(this._patches, other._patches) &&
|
|
Helper.AreEqual2(this._PBDs, other._PBDs) &&
|
|
Helper.AreEqual2(this._host_CPUs, other._host_CPUs) &&
|
|
Helper.AreEqual2(this._cpu_info, other._cpu_info) &&
|
|
Helper.AreEqual2(this._hostname, other._hostname) &&
|
|
Helper.AreEqual2(this._address, other._address) &&
|
|
Helper.AreEqual2(this._metrics, other._metrics) &&
|
|
Helper.AreEqual2(this._license_params, other._license_params) &&
|
|
Helper.AreEqual2(this._ha_statefiles, other._ha_statefiles) &&
|
|
Helper.AreEqual2(this._ha_network_peers, other._ha_network_peers) &&
|
|
Helper.AreEqual2(this._blobs, other._blobs) &&
|
|
Helper.AreEqual2(this._tags, other._tags) &&
|
|
Helper.AreEqual2(this._external_auth_type, other._external_auth_type) &&
|
|
Helper.AreEqual2(this._external_auth_service_name, other._external_auth_service_name) &&
|
|
Helper.AreEqual2(this._external_auth_configuration, other._external_auth_configuration) &&
|
|
Helper.AreEqual2(this._edition, other._edition) &&
|
|
Helper.AreEqual2(this._license_server, other._license_server) &&
|
|
Helper.AreEqual2(this._bios_strings, other._bios_strings) &&
|
|
Helper.AreEqual2(this._power_on_mode, other._power_on_mode) &&
|
|
Helper.AreEqual2(this._power_on_config, other._power_on_config) &&
|
|
Helper.AreEqual2(this._local_cache_sr, other._local_cache_sr) &&
|
|
Helper.AreEqual2(this._chipset_info, other._chipset_info) &&
|
|
Helper.AreEqual2(this._PCIs, other._PCIs) &&
|
|
Helper.AreEqual2(this._PGPUs, other._PGPUs) &&
|
|
Helper.AreEqual2(this._guest_VCPUs_params, other._guest_VCPUs_params);
|
|
}
|
|
|
|
public override string SaveChanges(Session session, string opaqueRef, Host server)
|
|
{
|
|
if (opaqueRef == null)
|
|
{
|
|
System.Diagnostics.Debug.Assert(false, "Cannot create instances of this type on the server");
|
|
return "";
|
|
}
|
|
else
|
|
{
|
|
if (!Helper.AreEqual2(_name_label, server._name_label))
|
|
{
|
|
Host.set_name_label(session, opaqueRef, _name_label);
|
|
}
|
|
if (!Helper.AreEqual2(_name_description, server._name_description))
|
|
{
|
|
Host.set_name_description(session, opaqueRef, _name_description);
|
|
}
|
|
if (!Helper.AreEqual2(_other_config, server._other_config))
|
|
{
|
|
Host.set_other_config(session, opaqueRef, _other_config);
|
|
}
|
|
if (!Helper.AreEqual2(_logging, server._logging))
|
|
{
|
|
Host.set_logging(session, opaqueRef, _logging);
|
|
}
|
|
if (!Helper.AreEqual2(_suspend_image_sr, server._suspend_image_sr))
|
|
{
|
|
Host.set_suspend_image_sr(session, opaqueRef, _suspend_image_sr);
|
|
}
|
|
if (!Helper.AreEqual2(_crash_dump_sr, server._crash_dump_sr))
|
|
{
|
|
Host.set_crash_dump_sr(session, opaqueRef, _crash_dump_sr);
|
|
}
|
|
if (!Helper.AreEqual2(_hostname, server._hostname))
|
|
{
|
|
Host.set_hostname(session, opaqueRef, _hostname);
|
|
}
|
|
if (!Helper.AreEqual2(_address, server._address))
|
|
{
|
|
Host.set_address(session, opaqueRef, _address);
|
|
}
|
|
if (!Helper.AreEqual2(_tags, server._tags))
|
|
{
|
|
Host.set_tags(session, opaqueRef, _tags);
|
|
}
|
|
if (!Helper.AreEqual2(_license_server, server._license_server))
|
|
{
|
|
Host.set_license_server(session, opaqueRef, _license_server);
|
|
}
|
|
if (!Helper.AreEqual2(_guest_VCPUs_params, server._guest_VCPUs_params))
|
|
{
|
|
Host.set_guest_VCPUs_params(session, opaqueRef, _guest_VCPUs_params);
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static Host get_record(Session session, string _host)
|
|
{
|
|
return new Host((Proxy_Host)session.proxy.host_get_record(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<Host> get_by_uuid(Session session, string _uuid)
|
|
{
|
|
return XenRef<Host>.Create(session.proxy.host_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<Host>> get_by_name_label(Session session, string _label)
|
|
{
|
|
return XenRef<Host>.Create(session.proxy.host_get_by_name_label(session.uuid, (_label != null) ? _label : "").parse());
|
|
}
|
|
|
|
public static string get_uuid(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_uuid(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string get_name_label(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_name_label(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string get_name_description(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_name_description(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static long get_memory_overhead(Session session, string _host)
|
|
{
|
|
return long.Parse((string)session.proxy.host_get_memory_overhead(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<host_allowed_operations> get_allowed_operations(Session session, string _host)
|
|
{
|
|
return Helper.StringArrayToEnumList<host_allowed_operations>(session.proxy.host_get_allowed_operations(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, host_allowed_operations> get_current_operations(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_host_allowed_operations(session.proxy.host_get_current_operations(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static long get_API_version_major(Session session, string _host)
|
|
{
|
|
return long.Parse((string)session.proxy.host_get_api_version_major(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static long get_API_version_minor(Session session, string _host)
|
|
{
|
|
return long.Parse((string)session.proxy.host_get_api_version_minor(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_API_version_vendor(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_api_version_vendor(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_API_version_vendor_implementation(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_api_version_vendor_implementation(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static bool get_enabled(Session session, string _host)
|
|
{
|
|
return (bool)session.proxy.host_get_enabled(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_software_version(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_software_version(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_other_config(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_other_config(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string[] get_capabilities(Session session, string _host)
|
|
{
|
|
return (string [])session.proxy.host_get_capabilities(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_cpu_configuration(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_cpu_configuration(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_sched_policy(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_sched_policy(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string[] get_supported_bootloaders(Session session, string _host)
|
|
{
|
|
return (string [])session.proxy.host_get_supported_bootloaders(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static List<XenRef<VM>> get_resident_VMs(Session session, string _host)
|
|
{
|
|
return XenRef<VM>.Create(session.proxy.host_get_resident_vms(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_logging(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_logging(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<PIF>> get_PIFs(Session session, string _host)
|
|
{
|
|
return XenRef<PIF>.Create(session.proxy.host_get_pifs(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<SR> get_suspend_image_sr(Session session, string _host)
|
|
{
|
|
return XenRef<SR>.Create(session.proxy.host_get_suspend_image_sr(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<SR> get_crash_dump_sr(Session session, string _host)
|
|
{
|
|
return XenRef<SR>.Create(session.proxy.host_get_crash_dump_sr(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<Host_crashdump>> get_crashdumps(Session session, string _host)
|
|
{
|
|
return XenRef<Host_crashdump>.Create(session.proxy.host_get_crashdumps(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<Host_patch>> get_patches(Session session, string _host)
|
|
{
|
|
return XenRef<Host_patch>.Create(session.proxy.host_get_patches(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<PBD>> get_PBDs(Session session, string _host)
|
|
{
|
|
return XenRef<PBD>.Create(session.proxy.host_get_pbds(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<Host_cpu>> get_host_CPUs(Session session, string _host)
|
|
{
|
|
return XenRef<Host_cpu>.Create(session.proxy.host_get_host_cpus(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_cpu_info(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_cpu_info(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_hostname(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_hostname(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string get_address(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_address(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Host_metrics> get_metrics(Session session, string _host)
|
|
{
|
|
return XenRef<Host_metrics>.Create(session.proxy.host_get_metrics(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_license_params(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_license_params(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string[] get_ha_statefiles(Session session, string _host)
|
|
{
|
|
return (string [])session.proxy.host_get_ha_statefiles(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string[] get_ha_network_peers(Session session, string _host)
|
|
{
|
|
return (string [])session.proxy.host_get_ha_network_peers(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, XenRef<Blob>> get_blobs(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_XenRefBlob(session.proxy.host_get_blobs(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string[] get_tags(Session session, string _host)
|
|
{
|
|
return (string [])session.proxy.host_get_tags(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string get_external_auth_type(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_external_auth_type(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static string get_external_auth_service_name(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_external_auth_service_name(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_external_auth_configuration(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_external_auth_configuration(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_edition(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_edition(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_license_server(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_license_server(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_bios_strings(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_bios_strings(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_power_on_mode(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_power_on_mode(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> get_power_on_config(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_power_on_config(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<SR> get_local_cache_sr(Session session, string _host)
|
|
{
|
|
return XenRef<SR>.Create(session.proxy.host_get_local_cache_sr(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_chipset_info(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_chipset_info(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<PCI>> get_PCIs(Session session, string _host)
|
|
{
|
|
return XenRef<PCI>.Create(session.proxy.host_get_pcis(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<PGPU>> get_PGPUs(Session session, string _host)
|
|
{
|
|
return XenRef<PGPU>.Create(session.proxy.host_get_pgpus(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<string, string> get_guest_VCPUs_params(Session session, string _host)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_get_guest_vcpus_params(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void set_name_label(Session session, string _host, string _label)
|
|
{
|
|
session.proxy.host_set_name_label(session.uuid, (_host != null) ? _host : "", (_label != null) ? _label : "").parse();
|
|
}
|
|
|
|
public static void set_name_description(Session session, string _host, string _description)
|
|
{
|
|
session.proxy.host_set_name_description(session.uuid, (_host != null) ? _host : "", (_description != null) ? _description : "").parse();
|
|
}
|
|
|
|
public static void set_other_config(Session session, string _host, Dictionary<string, string> _other_config)
|
|
{
|
|
session.proxy.host_set_other_config(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_other_config)).parse();
|
|
}
|
|
|
|
public static void add_to_other_config(Session session, string _host, string _key, string _value)
|
|
{
|
|
session.proxy.host_add_to_other_config(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void remove_from_other_config(Session session, string _host, string _key)
|
|
{
|
|
session.proxy.host_remove_from_other_config(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "").parse();
|
|
}
|
|
|
|
public static void set_logging(Session session, string _host, Dictionary<string, string> _logging)
|
|
{
|
|
session.proxy.host_set_logging(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_logging)).parse();
|
|
}
|
|
|
|
public static void add_to_logging(Session session, string _host, string _key, string _value)
|
|
{
|
|
session.proxy.host_add_to_logging(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void remove_from_logging(Session session, string _host, string _key)
|
|
{
|
|
session.proxy.host_remove_from_logging(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "").parse();
|
|
}
|
|
|
|
public static void set_suspend_image_sr(Session session, string _host, string _suspend_image_sr)
|
|
{
|
|
session.proxy.host_set_suspend_image_sr(session.uuid, (_host != null) ? _host : "", (_suspend_image_sr != null) ? _suspend_image_sr : "").parse();
|
|
}
|
|
|
|
public static void set_crash_dump_sr(Session session, string _host, string _crash_dump_sr)
|
|
{
|
|
session.proxy.host_set_crash_dump_sr(session.uuid, (_host != null) ? _host : "", (_crash_dump_sr != null) ? _crash_dump_sr : "").parse();
|
|
}
|
|
|
|
public static void set_hostname(Session session, string _host, string _hostname)
|
|
{
|
|
session.proxy.host_set_hostname(session.uuid, (_host != null) ? _host : "", (_hostname != null) ? _hostname : "").parse();
|
|
}
|
|
|
|
public static void set_address(Session session, string _host, string _address)
|
|
{
|
|
session.proxy.host_set_address(session.uuid, (_host != null) ? _host : "", (_address != null) ? _address : "").parse();
|
|
}
|
|
|
|
public static void set_tags(Session session, string _host, string[] _tags)
|
|
{
|
|
session.proxy.host_set_tags(session.uuid, (_host != null) ? _host : "", _tags).parse();
|
|
}
|
|
|
|
public static void add_tags(Session session, string _host, string _value)
|
|
{
|
|
session.proxy.host_add_tags(session.uuid, (_host != null) ? _host : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void remove_tags(Session session, string _host, string _value)
|
|
{
|
|
session.proxy.host_remove_tags(session.uuid, (_host != null) ? _host : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void set_license_server(Session session, string _host, Dictionary<string, string> _license_server)
|
|
{
|
|
session.proxy.host_set_license_server(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_license_server)).parse();
|
|
}
|
|
|
|
public static void add_to_license_server(Session session, string _host, string _key, string _value)
|
|
{
|
|
session.proxy.host_add_to_license_server(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void remove_from_license_server(Session session, string _host, string _key)
|
|
{
|
|
session.proxy.host_remove_from_license_server(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "").parse();
|
|
}
|
|
|
|
public static void set_guest_VCPUs_params(Session session, string _host, Dictionary<string, string> _guest_vcpus_params)
|
|
{
|
|
session.proxy.host_set_guest_vcpus_params(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_guest_vcpus_params)).parse();
|
|
}
|
|
|
|
public static void add_to_guest_VCPUs_params(Session session, string _host, string _key, string _value)
|
|
{
|
|
session.proxy.host_add_to_guest_vcpus_params(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "", (_value != null) ? _value : "").parse();
|
|
}
|
|
|
|
public static void remove_from_guest_VCPUs_params(Session session, string _host, string _key)
|
|
{
|
|
session.proxy.host_remove_from_guest_vcpus_params(session.uuid, (_host != null) ? _host : "", (_key != null) ? _key : "").parse();
|
|
}
|
|
|
|
public static void disable(Session session, string _host)
|
|
{
|
|
session.proxy.host_disable(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_disable(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_disable(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void enable(Session session, string _host)
|
|
{
|
|
session.proxy.host_enable(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_enable(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_enable(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void shutdown(Session session, string _host)
|
|
{
|
|
session.proxy.host_shutdown(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_shutdown(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_shutdown(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void reboot(Session session, string _host)
|
|
{
|
|
session.proxy.host_reboot(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_reboot(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_reboot(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string dmesg(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_dmesg(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_dmesg(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_dmesg(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string dmesg_clear(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_dmesg_clear(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_dmesg_clear(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_dmesg_clear(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_log(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_log(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_get_log(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_get_log(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void send_debug_keys(Session session, string _host, string _keys)
|
|
{
|
|
session.proxy.host_send_debug_keys(session.uuid, (_host != null) ? _host : "", (_keys != null) ? _keys : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_send_debug_keys(Session session, string _host, string _keys)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_send_debug_keys(session.uuid, (_host != null) ? _host : "", (_keys != null) ? _keys : "").parse());
|
|
}
|
|
|
|
public static void bugreport_upload(Session session, string _host, string _url, Dictionary<string, string> _options)
|
|
{
|
|
session.proxy.host_bugreport_upload(session.uuid, (_host != null) ? _host : "", (_url != null) ? _url : "", Maps.convert_to_proxy_string_string(_options)).parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_bugreport_upload(Session session, string _host, string _url, Dictionary<string, string> _options)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_bugreport_upload(session.uuid, (_host != null) ? _host : "", (_url != null) ? _url : "", Maps.convert_to_proxy_string_string(_options)).parse());
|
|
}
|
|
|
|
public static string[] list_methods(Session session)
|
|
{
|
|
return (string [])session.proxy.host_list_methods(session.uuid).parse();
|
|
}
|
|
|
|
public static void license_apply(Session session, string _host, string _contents)
|
|
{
|
|
session.proxy.host_license_apply(session.uuid, (_host != null) ? _host : "", (_contents != null) ? _contents : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_license_apply(Session session, string _host, string _contents)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_license_apply(session.uuid, (_host != null) ? _host : "", (_contents != null) ? _contents : "").parse());
|
|
}
|
|
|
|
public static void destroy(Session session, string _self)
|
|
{
|
|
session.proxy.host_destroy(session.uuid, (_self != null) ? _self : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_destroy(Session session, string _self)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_destroy(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static void power_on(Session session, string _host)
|
|
{
|
|
session.proxy.host_power_on(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_power_on(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_power_on(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void emergency_ha_disable(Session session)
|
|
{
|
|
session.proxy.host_emergency_ha_disable(session.uuid).parse();
|
|
}
|
|
|
|
public static List<Data_source> get_data_sources(Session session, string _host)
|
|
{
|
|
return Helper.Proxy_Data_sourceArrayToData_sourceList(session.proxy.host_get_data_sources(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void record_data_source(Session session, string _host, string _data_source)
|
|
{
|
|
session.proxy.host_record_data_source(session.uuid, (_host != null) ? _host : "", (_data_source != null) ? _data_source : "").parse();
|
|
}
|
|
|
|
public static double query_data_source(Session session, string _host, string _data_source)
|
|
{
|
|
return Convert.ToDouble(session.proxy.host_query_data_source(session.uuid, (_host != null) ? _host : "", (_data_source != null) ? _data_source : "").parse());
|
|
}
|
|
|
|
public static void forget_data_source_archives(Session session, string _host, string _data_source)
|
|
{
|
|
session.proxy.host_forget_data_source_archives(session.uuid, (_host != null) ? _host : "", (_data_source != null) ? _data_source : "").parse();
|
|
}
|
|
|
|
public static void assert_can_evacuate(Session session, string _host)
|
|
{
|
|
session.proxy.host_assert_can_evacuate(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_assert_can_evacuate(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_assert_can_evacuate(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static Dictionary<XenRef<VM>, string[]> get_vms_which_prevent_evacuation(Session session, string _self)
|
|
{
|
|
return Maps.convert_from_proxy_XenRefVM_string_array(session.proxy.host_get_vms_which_prevent_evacuation(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_get_vms_which_prevent_evacuation(Session session, string _self)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_get_vms_which_prevent_evacuation(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<VM>> get_uncooperative_resident_VMs(Session session, string _self)
|
|
{
|
|
return XenRef<VM>.Create(session.proxy.host_get_uncooperative_resident_vms(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_get_uncooperative_resident_VMs(Session session, string _self)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_get_uncooperative_resident_vms(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static void evacuate(Session session, string _host)
|
|
{
|
|
session.proxy.host_evacuate(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_evacuate(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_evacuate(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void syslog_reconfigure(Session session, string _host)
|
|
{
|
|
session.proxy.host_syslog_reconfigure(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_syslog_reconfigure(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_syslog_reconfigure(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void management_reconfigure(Session session, string _pif)
|
|
{
|
|
session.proxy.host_management_reconfigure(session.uuid, (_pif != null) ? _pif : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_management_reconfigure(Session session, string _pif)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_management_reconfigure(session.uuid, (_pif != null) ? _pif : "").parse());
|
|
}
|
|
|
|
public static void local_management_reconfigure(Session session, string _interface)
|
|
{
|
|
session.proxy.host_local_management_reconfigure(session.uuid, (_interface != null) ? _interface : "").parse();
|
|
}
|
|
|
|
public static void management_disable(Session session)
|
|
{
|
|
session.proxy.host_management_disable(session.uuid).parse();
|
|
}
|
|
|
|
public static XenRef<PIF> get_management_interface(Session session, string _host)
|
|
{
|
|
return XenRef<PIF>.Create(session.proxy.host_get_management_interface(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_get_management_interface(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_get_management_interface(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static string get_system_status_capabilities(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_system_status_capabilities(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static void restart_agent(Session session, string _host)
|
|
{
|
|
session.proxy.host_restart_agent(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_restart_agent(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_restart_agent(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void shutdown_agent(Session session)
|
|
{
|
|
session.proxy.host_shutdown_agent(session.uuid).parse();
|
|
}
|
|
|
|
public static void set_hostname_live(Session session, string _host, string _hostname)
|
|
{
|
|
session.proxy.host_set_hostname_live(session.uuid, (_host != null) ? _host : "", (_hostname != null) ? _hostname : "").parse();
|
|
}
|
|
|
|
public static long compute_free_memory(Session session, string _host)
|
|
{
|
|
return long.Parse((string)session.proxy.host_compute_free_memory(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_compute_free_memory(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_compute_free_memory(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static long compute_memory_overhead(Session session, string _host)
|
|
{
|
|
return long.Parse((string)session.proxy.host_compute_memory_overhead(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_compute_memory_overhead(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_compute_memory_overhead(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void sync_data(Session session, string _host)
|
|
{
|
|
session.proxy.host_sync_data(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static void backup_rrds(Session session, string _host, double _delay)
|
|
{
|
|
session.proxy.host_backup_rrds(session.uuid, (_host != null) ? _host : "", _delay).parse();
|
|
}
|
|
|
|
public static XenRef<Blob> create_new_blob(Session session, string _host, string _name, string _mime_type, bool _public)
|
|
{
|
|
return XenRef<Blob>.Create(session.proxy.host_create_new_blob(session.uuid, (_host != null) ? _host : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "", _public).parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_create_new_blob(Session session, string _host, string _name, string _mime_type, bool _public)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_create_new_blob(session.uuid, (_host != null) ? _host : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "", _public).parse());
|
|
}
|
|
|
|
public static string call_plugin(Session session, string _host, string _plugin, string _fn, Dictionary<string, string> _args)
|
|
{
|
|
return (string)session.proxy.host_call_plugin(session.uuid, (_host != null) ? _host : "", (_plugin != null) ? _plugin : "", (_fn != null) ? _fn : "", Maps.convert_to_proxy_string_string(_args)).parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_call_plugin(Session session, string _host, string _plugin, string _fn, Dictionary<string, string> _args)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_call_plugin(session.uuid, (_host != null) ? _host : "", (_plugin != null) ? _plugin : "", (_fn != null) ? _fn : "", Maps.convert_to_proxy_string_string(_args)).parse());
|
|
}
|
|
|
|
public static DateTime get_servertime(Session session, string _host)
|
|
{
|
|
return session.proxy.host_get_servertime(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static DateTime get_server_localtime(Session session, string _host)
|
|
{
|
|
return session.proxy.host_get_server_localtime(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static void enable_external_auth(Session session, string _host, Dictionary<string, string> _config, string _service_name, string _auth_type)
|
|
{
|
|
session.proxy.host_enable_external_auth(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_config), (_service_name != null) ? _service_name : "", (_auth_type != null) ? _auth_type : "").parse();
|
|
}
|
|
|
|
public static void disable_external_auth(Session session, string _host, Dictionary<string, string> _config)
|
|
{
|
|
session.proxy.host_disable_external_auth(session.uuid, (_host != null) ? _host : "", Maps.convert_to_proxy_string_string(_config)).parse();
|
|
}
|
|
|
|
public static Dictionary<XenRef<VM>, string[]> retrieve_wlb_evacuate_recommendations(Session session, string _self)
|
|
{
|
|
return Maps.convert_from_proxy_XenRefVM_string_array(session.proxy.host_retrieve_wlb_evacuate_recommendations(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_retrieve_wlb_evacuate_recommendations(Session session, string _self)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_retrieve_wlb_evacuate_recommendations(session.uuid, (_self != null) ? _self : "").parse());
|
|
}
|
|
|
|
public static string get_server_certificate(Session session, string _host)
|
|
{
|
|
return (string)session.proxy.host_get_server_certificate(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_get_server_certificate(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_get_server_certificate(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void apply_edition(Session session, string _host, string _edition, bool _force)
|
|
{
|
|
session.proxy.host_apply_edition(session.uuid, (_host != null) ? _host : "", (_edition != null) ? _edition : "", _force).parse();
|
|
}
|
|
|
|
public static void refresh_pack_info(Session session, string _host)
|
|
{
|
|
session.proxy.host_refresh_pack_info(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_refresh_pack_info(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_refresh_pack_info(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static void set_power_on_mode(Session session, string _self, string _power_on_mode, Dictionary<string, string> _power_on_config)
|
|
{
|
|
session.proxy.host_set_power_on_mode(session.uuid, (_self != null) ? _self : "", (_power_on_mode != null) ? _power_on_mode : "", Maps.convert_to_proxy_string_string(_power_on_config)).parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_set_power_on_mode(Session session, string _self, string _power_on_mode, Dictionary<string, string> _power_on_config)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_set_power_on_mode(session.uuid, (_self != null) ? _self : "", (_power_on_mode != null) ? _power_on_mode : "", Maps.convert_to_proxy_string_string(_power_on_config)).parse());
|
|
}
|
|
|
|
public static void set_cpu_features(Session session, string _host, string _features)
|
|
{
|
|
session.proxy.host_set_cpu_features(session.uuid, (_host != null) ? _host : "", (_features != null) ? _features : "").parse();
|
|
}
|
|
|
|
public static void reset_cpu_features(Session session, string _host)
|
|
{
|
|
session.proxy.host_reset_cpu_features(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static void enable_local_storage_caching(Session session, string _host, string _sr)
|
|
{
|
|
session.proxy.host_enable_local_storage_caching(session.uuid, (_host != null) ? _host : "", (_sr != null) ? _sr : "").parse();
|
|
}
|
|
|
|
public static void disable_local_storage_caching(Session session, string _host)
|
|
{
|
|
session.proxy.host_disable_local_storage_caching(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static Dictionary<string, string> migrate_receive(Session session, string _host, string _network, Dictionary<string, string> _options)
|
|
{
|
|
return Maps.convert_from_proxy_string_string(session.proxy.host_migrate_receive(session.uuid, (_host != null) ? _host : "", (_network != null) ? _network : "", Maps.convert_to_proxy_string_string(_options)).parse());
|
|
}
|
|
|
|
public static XenRef<Task> async_migrate_receive(Session session, string _host, string _network, Dictionary<string, string> _options)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_migrate_receive(session.uuid, (_host != null) ? _host : "", (_network != null) ? _network : "", Maps.convert_to_proxy_string_string(_options)).parse());
|
|
}
|
|
|
|
public static void declare_dead(Session session, string _host)
|
|
{
|
|
session.proxy.host_declare_dead(session.uuid, (_host != null) ? _host : "").parse();
|
|
}
|
|
|
|
public static XenRef<Task> async_declare_dead(Session session, string _host)
|
|
{
|
|
return XenRef<Task>.Create(session.proxy.async_host_declare_dead(session.uuid, (_host != null) ? _host : "").parse());
|
|
}
|
|
|
|
public static List<XenRef<Host>> get_all(Session session)
|
|
{
|
|
return XenRef<Host>.Create(session.proxy.host_get_all(session.uuid).parse());
|
|
}
|
|
|
|
public static Dictionary<XenRef<Host>, Host> get_all_records(Session session)
|
|
{
|
|
return XenRef<Host>.Create<Proxy_Host>(session.proxy.host_get_all_records(session.uuid).parse());
|
|
}
|
|
|
|
private string _uuid;
|
|
public virtual string uuid {
|
|
get { return _uuid; }
|
|
set { if (!Helper.AreEqual(value, _uuid)) { _uuid = value; Changed = true; NotifyPropertyChanged("uuid"); } }
|
|
}
|
|
|
|
private string _name_label;
|
|
public virtual string name_label {
|
|
get { return _name_label; }
|
|
set { if (!Helper.AreEqual(value, _name_label)) { _name_label = value; Changed = true; NotifyPropertyChanged("name_label"); } }
|
|
}
|
|
|
|
private string _name_description;
|
|
public virtual string name_description {
|
|
get { return _name_description; }
|
|
set { if (!Helper.AreEqual(value, _name_description)) { _name_description = value; Changed = true; NotifyPropertyChanged("name_description"); } }
|
|
}
|
|
|
|
private long _memory_overhead;
|
|
public virtual long memory_overhead {
|
|
get { return _memory_overhead; }
|
|
set { if (!Helper.AreEqual(value, _memory_overhead)) { _memory_overhead = value; Changed = true; NotifyPropertyChanged("memory_overhead"); } }
|
|
}
|
|
|
|
private List<host_allowed_operations> _allowed_operations;
|
|
public virtual List<host_allowed_operations> allowed_operations {
|
|
get { return _allowed_operations; }
|
|
set { if (!Helper.AreEqual(value, _allowed_operations)) { _allowed_operations = value; Changed = true; NotifyPropertyChanged("allowed_operations"); } }
|
|
}
|
|
|
|
private Dictionary<string, host_allowed_operations> _current_operations;
|
|
public virtual Dictionary<string, host_allowed_operations> current_operations {
|
|
get { return _current_operations; }
|
|
set { if (!Helper.AreEqual(value, _current_operations)) { _current_operations = value; Changed = true; NotifyPropertyChanged("current_operations"); } }
|
|
}
|
|
|
|
private long _API_version_major;
|
|
public virtual long API_version_major {
|
|
get { return _API_version_major; }
|
|
set { if (!Helper.AreEqual(value, _API_version_major)) { _API_version_major = value; Changed = true; NotifyPropertyChanged("API_version_major"); } }
|
|
}
|
|
|
|
private long _API_version_minor;
|
|
public virtual long API_version_minor {
|
|
get { return _API_version_minor; }
|
|
set { if (!Helper.AreEqual(value, _API_version_minor)) { _API_version_minor = value; Changed = true; NotifyPropertyChanged("API_version_minor"); } }
|
|
}
|
|
|
|
private string _API_version_vendor;
|
|
public virtual string API_version_vendor {
|
|
get { return _API_version_vendor; }
|
|
set { if (!Helper.AreEqual(value, _API_version_vendor)) { _API_version_vendor = value; Changed = true; NotifyPropertyChanged("API_version_vendor"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _API_version_vendor_implementation;
|
|
public virtual Dictionary<string, string> API_version_vendor_implementation {
|
|
get { return _API_version_vendor_implementation; }
|
|
set { if (!Helper.AreEqual(value, _API_version_vendor_implementation)) { _API_version_vendor_implementation = value; Changed = true; NotifyPropertyChanged("API_version_vendor_implementation"); } }
|
|
}
|
|
|
|
private bool _enabled;
|
|
public virtual bool enabled {
|
|
get { return _enabled; }
|
|
set { if (!Helper.AreEqual(value, _enabled)) { _enabled = value; Changed = true; NotifyPropertyChanged("enabled"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _software_version;
|
|
public virtual Dictionary<string, string> software_version {
|
|
get { return _software_version; }
|
|
set { if (!Helper.AreEqual(value, _software_version)) { _software_version = value; Changed = true; NotifyPropertyChanged("software_version"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _other_config;
|
|
public virtual Dictionary<string, string> other_config {
|
|
get { return _other_config; }
|
|
set { if (!Helper.AreEqual(value, _other_config)) { _other_config = value; Changed = true; NotifyPropertyChanged("other_config"); } }
|
|
}
|
|
|
|
private string[] _capabilities;
|
|
public virtual string[] capabilities {
|
|
get { return _capabilities; }
|
|
set { if (!Helper.AreEqual(value, _capabilities)) { _capabilities = value; Changed = true; NotifyPropertyChanged("capabilities"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _cpu_configuration;
|
|
public virtual Dictionary<string, string> cpu_configuration {
|
|
get { return _cpu_configuration; }
|
|
set { if (!Helper.AreEqual(value, _cpu_configuration)) { _cpu_configuration = value; Changed = true; NotifyPropertyChanged("cpu_configuration"); } }
|
|
}
|
|
|
|
private string _sched_policy;
|
|
public virtual string sched_policy {
|
|
get { return _sched_policy; }
|
|
set { if (!Helper.AreEqual(value, _sched_policy)) { _sched_policy = value; Changed = true; NotifyPropertyChanged("sched_policy"); } }
|
|
}
|
|
|
|
private string[] _supported_bootloaders;
|
|
public virtual string[] supported_bootloaders {
|
|
get { return _supported_bootloaders; }
|
|
set { if (!Helper.AreEqual(value, _supported_bootloaders)) { _supported_bootloaders = value; Changed = true; NotifyPropertyChanged("supported_bootloaders"); } }
|
|
}
|
|
|
|
private List<XenRef<VM>> _resident_VMs;
|
|
public virtual List<XenRef<VM>> resident_VMs {
|
|
get { return _resident_VMs; }
|
|
set { if (!Helper.AreEqual(value, _resident_VMs)) { _resident_VMs = value; Changed = true; NotifyPropertyChanged("resident_VMs"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _logging;
|
|
public virtual Dictionary<string, string> logging {
|
|
get { return _logging; }
|
|
set { if (!Helper.AreEqual(value, _logging)) { _logging = value; Changed = true; NotifyPropertyChanged("logging"); } }
|
|
}
|
|
|
|
private List<XenRef<PIF>> _PIFs;
|
|
public virtual List<XenRef<PIF>> PIFs {
|
|
get { return _PIFs; }
|
|
set { if (!Helper.AreEqual(value, _PIFs)) { _PIFs = value; Changed = true; NotifyPropertyChanged("PIFs"); } }
|
|
}
|
|
|
|
private XenRef<SR> _suspend_image_sr;
|
|
public virtual XenRef<SR> suspend_image_sr {
|
|
get { return _suspend_image_sr; }
|
|
set { if (!Helper.AreEqual(value, _suspend_image_sr)) { _suspend_image_sr = value; Changed = true; NotifyPropertyChanged("suspend_image_sr"); } }
|
|
}
|
|
|
|
private XenRef<SR> _crash_dump_sr;
|
|
public virtual XenRef<SR> crash_dump_sr {
|
|
get { return _crash_dump_sr; }
|
|
set { if (!Helper.AreEqual(value, _crash_dump_sr)) { _crash_dump_sr = value; Changed = true; NotifyPropertyChanged("crash_dump_sr"); } }
|
|
}
|
|
|
|
private List<XenRef<Host_crashdump>> _crashdumps;
|
|
public virtual List<XenRef<Host_crashdump>> crashdumps {
|
|
get { return _crashdumps; }
|
|
set { if (!Helper.AreEqual(value, _crashdumps)) { _crashdumps = value; Changed = true; NotifyPropertyChanged("crashdumps"); } }
|
|
}
|
|
|
|
private List<XenRef<Host_patch>> _patches;
|
|
public virtual List<XenRef<Host_patch>> patches {
|
|
get { return _patches; }
|
|
set { if (!Helper.AreEqual(value, _patches)) { _patches = value; Changed = true; NotifyPropertyChanged("patches"); } }
|
|
}
|
|
|
|
private List<XenRef<PBD>> _PBDs;
|
|
public virtual List<XenRef<PBD>> PBDs {
|
|
get { return _PBDs; }
|
|
set { if (!Helper.AreEqual(value, _PBDs)) { _PBDs = value; Changed = true; NotifyPropertyChanged("PBDs"); } }
|
|
}
|
|
|
|
private List<XenRef<Host_cpu>> _host_CPUs;
|
|
public virtual List<XenRef<Host_cpu>> host_CPUs {
|
|
get { return _host_CPUs; }
|
|
set { if (!Helper.AreEqual(value, _host_CPUs)) { _host_CPUs = value; Changed = true; NotifyPropertyChanged("host_CPUs"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _cpu_info;
|
|
public virtual Dictionary<string, string> cpu_info {
|
|
get { return _cpu_info; }
|
|
set { if (!Helper.AreEqual(value, _cpu_info)) { _cpu_info = value; Changed = true; NotifyPropertyChanged("cpu_info"); } }
|
|
}
|
|
|
|
private string _hostname;
|
|
public virtual string hostname {
|
|
get { return _hostname; }
|
|
set { if (!Helper.AreEqual(value, _hostname)) { _hostname = value; Changed = true; NotifyPropertyChanged("hostname"); } }
|
|
}
|
|
|
|
private string _address;
|
|
public virtual string address {
|
|
get { return _address; }
|
|
set { if (!Helper.AreEqual(value, _address)) { _address = value; Changed = true; NotifyPropertyChanged("address"); } }
|
|
}
|
|
|
|
private XenRef<Host_metrics> _metrics;
|
|
public virtual XenRef<Host_metrics> metrics {
|
|
get { return _metrics; }
|
|
set { if (!Helper.AreEqual(value, _metrics)) { _metrics = value; Changed = true; NotifyPropertyChanged("metrics"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _license_params;
|
|
public virtual Dictionary<string, string> license_params {
|
|
get { return _license_params; }
|
|
set { if (!Helper.AreEqual(value, _license_params)) { _license_params = value; Changed = true; NotifyPropertyChanged("license_params"); } }
|
|
}
|
|
|
|
private string[] _ha_statefiles;
|
|
public virtual string[] ha_statefiles {
|
|
get { return _ha_statefiles; }
|
|
set { if (!Helper.AreEqual(value, _ha_statefiles)) { _ha_statefiles = value; Changed = true; NotifyPropertyChanged("ha_statefiles"); } }
|
|
}
|
|
|
|
private string[] _ha_network_peers;
|
|
public virtual string[] ha_network_peers {
|
|
get { return _ha_network_peers; }
|
|
set { if (!Helper.AreEqual(value, _ha_network_peers)) { _ha_network_peers = value; Changed = true; NotifyPropertyChanged("ha_network_peers"); } }
|
|
}
|
|
|
|
private Dictionary<string, XenRef<Blob>> _blobs;
|
|
public virtual Dictionary<string, XenRef<Blob>> blobs {
|
|
get { return _blobs; }
|
|
set { if (!Helper.AreEqual(value, _blobs)) { _blobs = value; Changed = true; NotifyPropertyChanged("blobs"); } }
|
|
}
|
|
|
|
private string[] _tags;
|
|
public virtual string[] tags {
|
|
get { return _tags; }
|
|
set { if (!Helper.AreEqual(value, _tags)) { _tags = value; Changed = true; NotifyPropertyChanged("tags"); } }
|
|
}
|
|
|
|
private string _external_auth_type;
|
|
public virtual string external_auth_type {
|
|
get { return _external_auth_type; }
|
|
set { if (!Helper.AreEqual(value, _external_auth_type)) { _external_auth_type = value; Changed = true; NotifyPropertyChanged("external_auth_type"); } }
|
|
}
|
|
|
|
private string _external_auth_service_name;
|
|
public virtual string external_auth_service_name {
|
|
get { return _external_auth_service_name; }
|
|
set { if (!Helper.AreEqual(value, _external_auth_service_name)) { _external_auth_service_name = value; Changed = true; NotifyPropertyChanged("external_auth_service_name"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _external_auth_configuration;
|
|
public virtual Dictionary<string, string> external_auth_configuration {
|
|
get { return _external_auth_configuration; }
|
|
set { if (!Helper.AreEqual(value, _external_auth_configuration)) { _external_auth_configuration = value; Changed = true; NotifyPropertyChanged("external_auth_configuration"); } }
|
|
}
|
|
|
|
private string _edition;
|
|
public virtual string edition {
|
|
get { return _edition; }
|
|
set { if (!Helper.AreEqual(value, _edition)) { _edition = value; Changed = true; NotifyPropertyChanged("edition"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _license_server;
|
|
public virtual Dictionary<string, string> license_server {
|
|
get { return _license_server; }
|
|
set { if (!Helper.AreEqual(value, _license_server)) { _license_server = value; Changed = true; NotifyPropertyChanged("license_server"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _bios_strings;
|
|
public virtual Dictionary<string, string> bios_strings {
|
|
get { return _bios_strings; }
|
|
set { if (!Helper.AreEqual(value, _bios_strings)) { _bios_strings = value; Changed = true; NotifyPropertyChanged("bios_strings"); } }
|
|
}
|
|
|
|
private string _power_on_mode;
|
|
public virtual string power_on_mode {
|
|
get { return _power_on_mode; }
|
|
set { if (!Helper.AreEqual(value, _power_on_mode)) { _power_on_mode = value; Changed = true; NotifyPropertyChanged("power_on_mode"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _power_on_config;
|
|
public virtual Dictionary<string, string> power_on_config {
|
|
get { return _power_on_config; }
|
|
set { if (!Helper.AreEqual(value, _power_on_config)) { _power_on_config = value; Changed = true; NotifyPropertyChanged("power_on_config"); } }
|
|
}
|
|
|
|
private XenRef<SR> _local_cache_sr;
|
|
public virtual XenRef<SR> local_cache_sr {
|
|
get { return _local_cache_sr; }
|
|
set { if (!Helper.AreEqual(value, _local_cache_sr)) { _local_cache_sr = value; Changed = true; NotifyPropertyChanged("local_cache_sr"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _chipset_info;
|
|
public virtual Dictionary<string, string> chipset_info {
|
|
get { return _chipset_info; }
|
|
set { if (!Helper.AreEqual(value, _chipset_info)) { _chipset_info = value; Changed = true; NotifyPropertyChanged("chipset_info"); } }
|
|
}
|
|
|
|
private List<XenRef<PCI>> _PCIs;
|
|
public virtual List<XenRef<PCI>> PCIs {
|
|
get { return _PCIs; }
|
|
set { if (!Helper.AreEqual(value, _PCIs)) { _PCIs = value; Changed = true; NotifyPropertyChanged("PCIs"); } }
|
|
}
|
|
|
|
private List<XenRef<PGPU>> _PGPUs;
|
|
public virtual List<XenRef<PGPU>> PGPUs {
|
|
get { return _PGPUs; }
|
|
set { if (!Helper.AreEqual(value, _PGPUs)) { _PGPUs = value; Changed = true; NotifyPropertyChanged("PGPUs"); } }
|
|
}
|
|
|
|
private Dictionary<string, string> _guest_VCPUs_params;
|
|
public virtual Dictionary<string, string> guest_VCPUs_params {
|
|
get { return _guest_VCPUs_params; }
|
|
set { if (!Helper.AreEqual(value, _guest_VCPUs_params)) { _guest_VCPUs_params = value; Changed = true; NotifyPropertyChanged("guest_VCPUs_params"); } }
|
|
}
|
|
|
|
|
|
}
|
|
}
|