/// <summary> /// Create a new VUSB record in the database only /// First published in XenServer 7.3. /// </summary> /// <param name="session">The session</param> /// <param name="_vm">The VM</param> /// <param name="_usb_group"></param> /// <param name="_other_config"></param> public static XenRef <Task> async_create(Session session, string _vm, string _usb_group, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_vusb_create(session.opaque_ref, _vm, _usb_group, _other_config)); } else { return(XenRef <Task> .Create(session.XmlRpcProxy.async_vusb_create(session.opaque_ref, _vm ?? "", _usb_group ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse())); } }
/// <summary> /// Set the other_config field of the given console. /// First published in XenServer 4.0. /// </summary> /// <param name="session">The session</param> /// <param name="_console">The opaque_ref of the given console</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _console, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { session.JsonRpcClient.console_set_other_config(session.opaque_ref, _console, _other_config); } else { session.proxy.console_set_other_config(session.opaque_ref, _console ?? "", 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="_name_label"></param> /// <param name="_name_description"></param> /// <param name="_other_config"></param> public static XenRef <Task> async_create(Session session, string _name_label, string _name_description, Dictionary <string, string> _other_config) { return(XenRef <Task> .Create(session.proxy.async_gpu_group_create(session.uuid, (_name_label != null) ? _name_label : "", (_name_description != null) ? _name_description : "", Maps.convert_to_proxy_string_string(_other_config)).parse())); }
public static void set_other_config(Session session, string _tunnel, Dictionary <string, string> _other_config) { session.proxy.tunnel_set_other_config(session.uuid, (_tunnel != null) ? _tunnel : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Sets the PBD's device_config field /// First published in XenServer 4.1. /// </summary> /// <param name="session">The session</param> /// <param name="_pbd">The opaque_ref of the given pbd</param> /// <param name="_value">The new value of the PBD's device_config</param> public static XenRef <Task> async_set_device_config(Session session, string _pbd, Dictionary <string, string> _value) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_pbd_set_device_config(session.opaque_ref, _pbd, _value)); } else { return(XenRef <Task> .Create(session.proxy.async_pbd_set_device_config(session.opaque_ref, _pbd ?? "", Maps.convert_to_proxy_string_string(_value)).parse())); } }
/// <summary> /// Set the other_config field of the given crashdump. /// First published in XenServer 4.1. /// </summary> /// <param name="session">The session</param> /// <param name="_crashdump">The opaque_ref of the given crashdump</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _crashdump, Dictionary <string, string> _other_config) { session.proxy.crashdump_set_other_config(session.uuid, (_crashdump != null) ? _crashdump : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Set the other_config field of the given VBD_metrics. /// First published in XenServer 5.0. /// </summary> /// <param name="session">The session</param> /// <param name="_vbd_metrics">The opaque_ref of the given vbd_metrics</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _vbd_metrics, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { session.JsonRpcClient.vbd_metrics_set_other_config(session.opaque_ref, _vbd_metrics, _other_config); } else { session.XmlRpcProxy.vbd_metrics_set_other_config(session.opaque_ref, _vbd_metrics ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); } }
/// <summary> /// Backward compatibility for PIF.async_db_introduce in XenServer 6.0. /// </summary> public static XenRef <Task> async_db_introduce(Session session, string _device, string _network, string _host, string _mac, long _mtu, long _vlan, bool _physical, ip_configuration_mode _ip_configuration_mode, string _ip, string _netmask, string _gateway, string _dns, string _bond_slave_of, string _vlan_master_of, bool _management, Dictionary <string, string> _other_config, bool _disallow_unplug) { if (Helper.APIVersionMeets(session, API_Version.API_1_10)) { System.Diagnostics.Debug.Assert(false, "Cannot use this call on XenServer 6.1 or newer."); } return(XenRef <Task> .Create(session.proxy.async_pif_db_introduce(session.uuid, (_device != null) ? _device : "", (_network != null) ? _network : "", (_host != null) ? _host : "", (_mac != null) ? _mac : "", _mtu.ToString(), _vlan.ToString(), _physical, ip_configuration_mode_helper.ToString(_ip_configuration_mode), (_ip != null) ? _ip : "", (_netmask != null) ? _netmask : "", (_gateway != null) ? _gateway : "", (_dns != null) ? _dns : "", (_bond_slave_of != null) ? _bond_slave_of : "", (_vlan_master_of != null) ? _vlan_master_of : "", _management, Maps.convert_to_proxy_string_string(_other_config), _disallow_unplug).parse())); }
/// <summary> /// Backward compatibility for VDI.async_db_introduce in XenServer 6.0. /// </summary> public static XenRef <Task> async_db_introduce(Session session, string _uuid, string _name_label, string _name_description, string _sr, vdi_type _type, bool _sharable, bool _read_only, Dictionary <string, string> _other_config, string _location, Dictionary <string, string> _xenstore_data, Dictionary <string, string> _sm_config) { if (Helper.APIVersionMeets(session, API_Version.API_1_10)) { System.Diagnostics.Debug.Assert(false, "Cannot use this call on XenServer 6.1 or newer."); } return(XenRef <Task> .Create(session.proxy.async_vdi_db_introduce(session.uuid, (_uuid != null) ? _uuid : "", (_name_label != null) ? _name_label : "", (_name_description != null) ? _name_description : "", (_sr != null) ? _sr : "", vdi_type_helper.ToString(_type), _sharable, _read_only, Maps.convert_to_proxy_string_string(_other_config), (_location != null) ? _location : "", Maps.convert_to_proxy_string_string(_xenstore_data), Maps.convert_to_proxy_string_string(_sm_config)).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) { if (session.JsonRpcClient != null) { session.JsonRpcClient.tunnel_set_status(session.opaque_ref, _tunnel, _status); } else { session.XmlRpcProxy.tunnel_set_status(session.opaque_ref, _tunnel ?? "", Maps.convert_to_proxy_string_string(_status)).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) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_vgpu_create(session.opaque_ref, _vm, _gpu_group, _device, _other_config, _type)); } else { return(XenRef <Task> .Create(session.proxy.async_vgpu_create(session.opaque_ref, _vm ?? "", _gpu_group ?? "", _device ?? "", Maps.convert_to_proxy_string_string(_other_config), _type ?? "").parse())); } }
/// <summary> /// Upload the specified host crash dump to a specified URL /// First published in XenServer 4.0. /// </summary> /// <param name="session">The session</param> /// <param name="_host_crashdump">The opaque_ref of the given host_crashdump</param> /// <param name="_url">The URL to upload to</param> /// <param name="_options">Extra configuration operations</param> public static XenRef <Task> async_upload(Session session, string _host_crashdump, string _url, Dictionary <string, string> _options) { return(XenRef <Task> .Create(session.proxy.async_host_crashdump_upload(session.uuid, _host_crashdump ?? "", _url ?? "", Maps.convert_to_proxy_string_string(_options)).parse())); }
/// <summary> /// Upload the specified host crash dump to a specified URL /// First published in XenServer 4.0. /// </summary> /// <param name="session">The session</param> /// <param name="_host_crashdump">The opaque_ref of the given host_crashdump</param> /// <param name="_url">The URL to upload to</param> /// <param name="_options">Extra configuration operations</param> public static void upload(Session session, string _host_crashdump, string _url, Dictionary <string, string> _options) { session.proxy.host_crashdump_upload(session.uuid, _host_crashdump ?? "", _url ?? "", Maps.convert_to_proxy_string_string(_options)).parse(); }
/// <summary> /// Create a disaster recovery task which will query the supplied list of devices /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_type">The SR driver type of the SRs to introduce</param> /// <param name="_device_config">The device configuration of the SRs to introduce</param> /// <param name="_whitelist">The devices to use for disaster recovery</param> public static XenRef <Task> async_create(Session session, string _type, Dictionary <string, string> _device_config, string[] _whitelist) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_dr_task_create(session.opaque_ref, _type, _device_config, _whitelist)); } else { return(XenRef <Task> .Create(session.proxy.async_dr_task_create(session.opaque_ref, _type ?? "", Maps.convert_to_proxy_string_string(_device_config), _whitelist).parse())); } }
/// <summary> /// Upload the specified host crash dump to a specified URL /// First published in XenServer 4.0. /// </summary> /// <param name="session">The session</param> /// <param name="_host_crashdump">The opaque_ref of the given host_crashdump</param> /// <param name="_url">The URL to upload to</param> /// <param name="_options">Extra configuration operations</param> public static void upload(Session session, string _host_crashdump, string _url, Dictionary <string, string> _options) { if (session.JsonRpcClient != null) { session.JsonRpcClient.host_crashdump_upload(session.opaque_ref, _host_crashdump, _url, _options); } else { session.proxy.host_crashdump_upload(session.opaque_ref, _host_crashdump ?? "", _url ?? "", Maps.convert_to_proxy_string_string(_options)).parse(); } }
/// <summary> /// Set the other_config field of the given host_patch. /// First published in XenServer 4.1. /// </summary> /// <param name="session">The session</param> /// <param name="_host_patch">The opaque_ref of the given host_patch</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _host_patch, Dictionary <string, string> _other_config) { session.proxy.host_patch_set_other_config(session.uuid, (_host_patch != null) ? _host_patch : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Upload the specified host crash dump to a specified URL /// First published in XenServer 4.0. /// </summary> /// <param name="session">The session</param> /// <param name="_host_crashdump">The opaque_ref of the given host_crashdump</param> /// <param name="_url">The URL to upload to</param> /// <param name="_options">Extra configuration operations</param> public static XenRef <Task> async_upload(Session session, string _host_crashdump, string _url, Dictionary <string, string> _options) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_host_crashdump_upload(session.opaque_ref, _host_crashdump, _url, _options)); } else { return(XenRef <Task> .Create(session.proxy.async_host_crashdump_upload(session.opaque_ref, _host_crashdump ?? "", _url ?? "", Maps.convert_to_proxy_string_string(_options)).parse())); } }
/// <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) { return(XenRef <Task> .Create(session.proxy.async_bond_create(session.uuid, (_network != null) ? _network : "", (_members != null) ? Helper.RefListToStringArray(_members) : new string[] {}, (_mac != null) ? _mac : "", bond_mode_helper.ToString(_mode), Maps.convert_to_proxy_string_string(_properties)).parse())); }
/// <summary> /// /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_name_label"></param> /// <param name="_name_description"></param> /// <param name="_other_config"></param> public static XenRef <Task> async_create(Session session, string _name_label, string _name_description, Dictionary <string, string> _other_config) { if (session.JsonRpcClient != null) { return(session.JsonRpcClient.async_gpu_group_create(session.opaque_ref, _name_label, _name_description, _other_config)); } else { return(XenRef <Task> .Create(session.XmlRpcProxy.async_gpu_group_create(session.opaque_ref, _name_label ?? "", _name_description ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse())); } }
/// <summary> /// Create a new VUSB record in the database only /// First published in XenServer 7.3. /// </summary> /// <param name="session">The session</param> /// <param name="_vm">The VM</param> /// <param name="_usb_group"></param> /// <param name="_other_config"></param> public static XenRef <Task> async_create(Session session, string _vm, string _usb_group, Dictionary <string, string> _other_config) { return(XenRef <Task> .Create(session.proxy.async_vusb_create(session.uuid, _vm ?? "", _usb_group ?? "", Maps.convert_to_proxy_string_string(_other_config)).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 ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
public static void set_alarm_config(Session session, string _self, Dictionary <string, string> _value) { session.proxy.vmpp_set_alarm_config(session.uuid, (_self != null) ? _self : "", Maps.convert_to_proxy_string_string(_value)).parse(); }
public static void set_other_config(Session session, string _network, Dictionary <string, string> _other_config) { session.proxy.network_set_other_config(session.uuid, (_network != null) ? _network : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
public static void set_qos_algorithm_params(Session session, string _vbd, Dictionary <string, string> _algorithm_params) { session.proxy.vbd_set_qos_algorithm_params(session.uuid, (_vbd != null) ? _vbd : "", Maps.convert_to_proxy_string_string(_algorithm_params)).parse(); }
/// <summary> /// Set the other_config field of the given PCI. /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_pci">The opaque_ref of the given pci</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _pci, Dictionary <string, string> _other_config) { session.proxy.pci_set_other_config(session.uuid, (_pci != null) ? _pci : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <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())); } }
/// <summary> /// Set the other_config field of the given GPU_group. /// First published in XenServer 6.0. /// </summary> /// <param name="session">The session</param> /// <param name="_gpu_group">The opaque_ref of the given gpu_group</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _gpu_group, Dictionary <string, string> _other_config) { session.proxy.gpu_group_set_other_config(session.uuid, (_gpu_group != null) ? _gpu_group : "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// Set the other_config field of the given pool_update. /// First published in Unreleased. /// </summary> /// <param name="session">The session</param> /// <param name="_pool_update">The opaque_ref of the given pool_update</param> /// <param name="_other_config">New value to set</param> public static void set_other_config(Session session, string _pool_update, Dictionary <string, string> _other_config) { session.proxy.pool_update_set_other_config(session.uuid, _pool_update ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
public static void set_other_config(Session session, string _self, Dictionary <string, string> _other_config) { session.proxy.session_set_other_config(session.uuid, _self ?? "", Maps.convert_to_proxy_string_string(_other_config)).parse(); }
/// <summary> /// /// First published in . /// </summary> /// <param name="session">The session</param> /// <param name="_vmss">The opaque_ref of the given vmss</param> /// <param name="_value">the value to set</param> public static void set_schedule(Session session, string _vmss, Dictionary <string, string> _value) { session.proxy.vmss_set_schedule(session.uuid, (_vmss != null) ? _vmss : "", Maps.convert_to_proxy_string_string(_value)).parse(); }