예제 #1
0
        /// <summary>
        /// Backward compatibility for VM.async_create_new_blob in XenServer 6.0.
        /// </summary>
        public static XenRef <Task> async_create_new_blob(Session session, string _vm, string _name, string _mime_type)
        {
            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_vm_create_new_blob(session.uuid, (_vm != null) ? _vm : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "").parse()));
        }
예제 #2
0
        /// <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()));
        }
예제 #3
0
        /// <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()));
        }
예제 #4
0
        /// <summary>
        /// Backward compatibility for Host.apply_edition in XenServer 6.1.
        /// </summary>
        public static void apply_edition(Session session, string _host, string _edition)
        {
            if (Helper.APIVersionMeets(session, API_Version.API_2_0))
            {
                System.Diagnostics.Debug.Assert(false, "Cannot use this call on XenServer 6.2 or newer.");
            }

            session.proxy.host_apply_edition(session.uuid, (_host != null) ? _host : "", (_edition != null) ? _edition : "").parse();
        }
예제 #5
0
        public static XenRef <Task> async_create(Session session, string _network, List <XenRef <PIF> > _members, string _mac, bond_mode _mode)
        {
            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_bond_create(session.uuid, (_network != null) ? _network : "", (_members != null) ? Helper.RefListToStringArray(_members) : new string[] { }, (_mac != null) ? _mac : "", bond_mode_helper.ToString(_mode)).parse()));
        }
예제 #6
0
        /// <summary>
        /// Backward compatibility for Blob.create in XenServer 6.0.
        /// </summary>
        public static XenRef <Blob> create(Session session, string _mime_type)
        {
            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 <Blob> .Create(session.proxy.blob_create(session.uuid, (_mime_type != null) ? _mime_type : "").parse()));
        }