public VM_guest_metrics(string uuid, Dictionary <string, string> os_version, Dictionary <string, string> PV_drivers_version, bool PV_drivers_up_to_date, Dictionary <string, string> memory, Dictionary <string, string> disks, Dictionary <string, string> networks, Dictionary <string, string> other, DateTime last_updated, Dictionary <string, string> other_config, bool live, tristate_type can_use_hotplug_vbd, tristate_type can_use_hotplug_vif, bool PV_drivers_detected) { this.uuid = uuid; this.os_version = os_version; this.PV_drivers_version = PV_drivers_version; this.PV_drivers_up_to_date = PV_drivers_up_to_date; this.memory = memory; this.disks = disks; this.networks = networks; this.other = other; this.last_updated = last_updated; this.other_config = other_config; this.live = live; this.can_use_hotplug_vbd = can_use_hotplug_vbd; this.can_use_hotplug_vif = can_use_hotplug_vif; this.PV_drivers_detected = PV_drivers_detected; }
private void ProcessRecordCanUseHotplugVif(string vm_guest_metrics) { RunApiCall(() => { tristate_type obj = XenAPI.VM_guest_metrics.get_can_use_hotplug_vif(session, vm_guest_metrics); WriteObject(obj, true); }); }
public static string ToString(tristate_type x) { switch (x) { case tristate_type.yes: return "yes"; case tristate_type.no: return "no"; case tristate_type.unspecified: return "unspecified"; default: return "unknown"; } }
public static string StringOf(this tristate_type x) { switch (x) { case tristate_type.yes: return("yes"); case tristate_type.no: return("no"); case tristate_type.unspecified: return("unspecified"); default: return("unknown"); } }
public static string ToString(tristate_type x) { return(x.StringOf()); }