/// <summary> /// Get the other_config field of the given VM_guest_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vm_guest_metrics">The opaque_ref of the given vm_guest_metrics</param> public static Dictionary <string, string> get_other_config(Session session, string _vm_guest_metrics) { return(Maps.convert_from_proxy_string_string(session.proxy.vm_guest_metrics_get_other_config(session.uuid, (_vm_guest_metrics != null) ? _vm_guest_metrics : "").parse())); }
/// <summary> /// Set the other_config field of the given VM_guest_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vm_guest_metrics">The opaque_ref of the given vm_guest_metrics</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _vm_guest_metrics, Dictionary <string, string> _other_config) { session.proxy.vm_guest_metrics_set_other_config(session.uuid, (_vm_guest_metrics != null) ? _vm_guest_metrics : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Set the other_config field of the given tunnel. /// First published in XenServer 5.6 FP1. /// </summary> /// <param name="session">The session</param> /// <param name="_tunnel">The opaque_ref of the given tunnel</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _tunnel, Dictionary <string, string> _other_config) { session.proxy.tunnel_set_other_config(session.uuid, _tunnel ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Set the other_config field of the given VIF_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vif_metrics">The opaque_ref of the given vif_metrics</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _vif_metrics, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { session.JsonRpcClient.vif_metrics_set_other_config(session.opaque_ref, _vif_metrics, _other_config); } else { session.XmlRpcProxy.vif_metrics_set_other_config(session.opaque_ref, _vif_metrics ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); } }
/// <summary> /// Get the other_config field of the given tunnel. /// First published in XenServer 5.6 FP1. /// </summary> /// <param name="session">The session</param> /// <param name="_tunnel">The opaque_ref of the given tunnel</param> public static Dictionary <string, string> get_other_config(Session session, string _tunnel) { return(Maps.convert_from_proxy_string_string(session.proxy.tunnel_get_other_config(session.uuid, _tunnel ?? "").parse())); }
/// <summary> /// Set the status field of the given tunnel. /// First published in XenServer 5.6 FP1. /// </summary> /// <param name="session">The session</param> /// <param name="_tunnel">The opaque_ref of the given tunnel</param> /// <param name="_status">New value to set</param> public static void set_status(Session session, string _tunnel, Dictionary <string, string> _status) { session.proxy.tunnel_set_status(session.uuid, _tunnel ?? "", Maps.convert_to_proxy_string_string(_status)).parse(); }
public static Dictionary <string, string> retrieve_wlb_default_configuration(Session session) { return(Maps.convert_from_proxy_string_string(session.proxy.pool_retrieve_wlb_configuration("default").parse())); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this VM_metrics /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("memory_actual")) { memory_actual = Marshalling.ParseLong(table, "memory_actual"); } if (table.ContainsKey("VCPUs_number")) { VCPUs_number = Marshalling.ParseLong(table, "VCPUs_number"); } if (table.ContainsKey("VCPUs_utilisation")) { VCPUs_utilisation = Maps.convert_from_proxy_long_double(Marshalling.ParseHashTable(table, "VCPUs_utilisation")); } if (table.ContainsKey("VCPUs_CPU")) { VCPUs_CPU = Maps.convert_from_proxy_long_long(Marshalling.ParseHashTable(table, "VCPUs_CPU")); } if (table.ContainsKey("VCPUs_params")) { VCPUs_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "VCPUs_params")); } if (table.ContainsKey("VCPUs_flags")) { VCPUs_flags = Maps.convert_from_proxy_long_string_array(Marshalling.ParseHashTable(table, "VCPUs_flags")); } if (table.ContainsKey("state")) { state = Marshalling.ParseStringArray(table, "state"); } if (table.ContainsKey("start_time")) { start_time = Marshalling.ParseDateTime(table, "start_time"); } if (table.ContainsKey("install_time")) { install_time = Marshalling.ParseDateTime(table, "install_time"); } if (table.ContainsKey("last_updated")) { last_updated = Marshalling.ParseDateTime(table, "last_updated"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("hvm")) { hvm = Marshalling.ParseBool(table, "hvm"); } if (table.ContainsKey("nested_virt")) { nested_virt = Marshalling.ParseBool(table, "nested_virt"); } if (table.ContainsKey("nomigrate")) { nomigrate = Marshalling.ParseBool(table, "nomigrate"); } if (table.ContainsKey("current_domain_type")) { current_domain_type = (domain_type)Helper.EnumParseDefault(typeof(domain_type), Marshalling.ParseString(table, "current_domain_type")); } }
/// <summary> /// /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vm"></param> /// <param name="_gpu_group"></param> /// <param name="_device"></param> /// <param name="_other_config"></param> public static XenRef <VGPU> create(Session session, string _vm, string _gpu_group, string _device, Dictionary <string, string> _other_config) { return(XenRef <VGPU> .Create(session.proxy.vgpu_create(session.uuid, _vm ?? "", _gpu_group ?? "", _device ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse())); }
/// <summary> /// /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vm"></param> /// <param name="_gpu_group"></param> /// <param name="_device"></param> /// <param name="_other_config"></param> /// <param name="_type"> First published in XenServer 6.2 SP1 Tech-Preview.</param> public static XenRef <Task> async_create(Session session, string _vm, string _gpu_group, string _device, Dictionary <string, string> _other_config, string _type) { return(XenRef <Task> .Create(session.proxy.async_vgpu_create(session.uuid, _vm ?? "", _gpu_group ?? "", _device ?? "", Maps.convert_to_proxy_string_string(_other_config), _type ?? "").parse())); }
/// <summary> /// Set the other_config field of the given PIF_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_pif_metrics">The opaque_ref of the given pif_metrics</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _pif_metrics, Dictionary <string, string> _other_config) { session.proxy.pif_metrics_set_other_config(session.uuid, _pif_metrics ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Get the other_config field of the given PIF_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_pif_metrics">The opaque_ref of the given pif_metrics</param> public static Dictionary <string, string> get_other_config(Session session, string _pif_metrics) { return(Maps.convert_from_proxy_string_string(session.proxy.pif_metrics_get_other_config(session.uuid, _pif_metrics ?? "").parse())); }
/// <summary> /// Set the other_config field of the given pool_patch. /// First published in XenServer 4.1. /// </summary> /// <param name="session">The session</param> /// <param name="_pool_patch">The opaque_ref of the given pool_patch</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _pool_patch, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { session.JsonRpcClient.pool_patch_set_other_config(session.opaque_ref, _pool_patch, _other_config); } else { session.proxy.pool_patch_set_other_config(session.opaque_ref, _pool_patch ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); } }
internal void UpdateFrom(Proxy_Secret proxy) { uuid = proxy.uuid == null ? null : proxy.uuid; value = proxy.value == null ? null : proxy.value; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
/// <summary> /// Create an interface bond /// First published in XenServer 4.1. /// </summary> /// <param name="session">The session</param> /// <param name="_network">Network to add the bonded PIF to</param> /// <param name="_members">PIFs to add to this bond</param> /// <param name="_mac">The MAC address to use on the bond itself. If this parameter is the empty string then the bond will inherit its MAC address from the primary slave.</param> /// <param name="_mode">Bonding mode to use for the new bond First published in XenServer 6.0.</param> /// <param name="_properties">Additional configuration parameters specific to the bond mode First published in XenServer 6.1.</param> public static XenRef <Task> async_create(Session session, string _network, List <XenRef <PIF> > _members, string _mac, bond_mode _mode, Dictionary <string, string> _properties) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_bond_create(session.opaque_ref, _network, _members, _mac, _mode, _properties)); } else { return(XenRef <Task> .Create(session.proxy.async_bond_create(session.opaque_ref, _network ?? "", _members == null ? new string[] {} : Helper.RefListToStringArray(_members), _mac ?? "", bond_mode_helper.ToString(_mode), Maps.convert_to_proxy_string_string(_properties)).parse())); } }