Austin.Linode.LinodeClient.Linode_Config_Update C# (CSharp) Method

Linode_Config_Update() public method

Updates a Linode Configuration Profile.
possible errors: NOTFOUND,VALIDATION
public Linode_Config_Update ( int ConfigID, string Comments = null, bool devtmpfs_automount = null, string DiskList = null, bool helper_depmod = null, bool helper_disableUpdateDB = null, bool helper_distro = null, bool helper_network = null, bool helper_xen = null, int KernelID = null, string Label = null, int LinodeID = null, int RAMLimit = null, string RootDeviceCustom = null, int RootDeviceNum = null, bool RootDeviceRO = null, string RunLevel = null, string virt_mode = null ) : Austin.Linode.ConfigIdResponse
ConfigID int
Comments string Comments you wish to save along with this profile
devtmpfs_automount bool Controls if pv_ops kernels should automount devtmpfs at boot.
DiskList string A comma delimited list of DiskIDs; position reflects device node. The 9th element for specifying the initrd.
helper_depmod bool Creates an empty modprobe file for the kernel you're booting.
helper_disableUpdateDB bool Enable the disableUpdateDB filesystem helper
helper_distro bool Enable the Distro filesystem helper. Corrects fstab and inittab/upstart entries depending on the kernel you're booting. You want this.
helper_network bool Automatically creates network configuration files for your distro and places them into your filesystem.
helper_xen bool Deprecated - use helper_distro.
KernelID int The KernelID for this profile. Found in avail.kernels()
Label string The Label for this profile
LinodeID int
RAMLimit int RAMLimit in MB. 0 for max.
RootDeviceCustom string A custom root device setting.
RootDeviceNum int Which device number (1-8) that contains the root partition. 0 to utilize RootDeviceCustom.
RootDeviceRO bool Enables the 'ro' kernel flag. Modern distros want this.
RunLevel string One of 'default', 'single', 'binbash'
virt_mode string Controls the virtualization mode. One of 'paravirt', 'fullvirt'
return Austin.Linode.ConfigIdResponse
        public Austin.Linode.ConfigIdResponse Linode_Config_Update(
                int ConfigID,
                string Comments = null,
                bool? devtmpfs_automount = null,
                string DiskList = null,
                bool? helper_depmod = null,
                bool? helper_disableUpdateDB = null,
                bool? helper_distro = null,
                bool? helper_network = null,
                bool? helper_xen = null,
                int? KernelID = null,
                string Label = null,
                int? LinodeID = null,
                int? RAMLimit = null,
                string RootDeviceCustom = null,
                int? RootDeviceNum = null,
                bool? RootDeviceRO = null,
                string RunLevel = null,
                string virt_mode = null)
        {
            var myParams = new Dictionary<string, string>();
            myParams.Add("ConfigID", ConfigID.ToString(CultureInfo.InvariantCulture));
            if (Comments != null)
                myParams.Add("Comments", Comments);
            if (devtmpfs_automount != null)
                myParams.Add("devtmpfs_automount", devtmpfs_automount.Value ? "true" : "false");
            if (DiskList != null)
                myParams.Add("DiskList", DiskList);
            if (helper_depmod != null)
                myParams.Add("helper_depmod", helper_depmod.Value ? "true" : "false");
            if (helper_disableUpdateDB != null)
                myParams.Add("helper_disableUpdateDB", helper_disableUpdateDB.Value ? "true" : "false");
            if (helper_distro != null)
                myParams.Add("helper_distro", helper_distro.Value ? "true" : "false");
            if (helper_network != null)
                myParams.Add("helper_network", helper_network.Value ? "true" : "false");
            if (helper_xen != null)
                myParams.Add("helper_xen", helper_xen.Value ? "true" : "false");
            if (KernelID != null)
                myParams.Add("KernelID", KernelID.Value.ToString(CultureInfo.InvariantCulture));
            if (Label != null)
                myParams.Add("Label", Label);
            if (LinodeID != null)
                myParams.Add("LinodeID", LinodeID.Value.ToString(CultureInfo.InvariantCulture));
            if (RAMLimit != null)
                myParams.Add("RAMLimit", RAMLimit.Value.ToString(CultureInfo.InvariantCulture));
            if (RootDeviceCustom != null)
                myParams.Add("RootDeviceCustom", RootDeviceCustom);
            if (RootDeviceNum != null)
                myParams.Add("RootDeviceNum", RootDeviceNum.Value.ToString(CultureInfo.InvariantCulture));
            if (RootDeviceRO != null)
                myParams.Add("RootDeviceRO", RootDeviceRO.Value ? "true" : "false");
            if (RunLevel != null)
                myParams.Add("RunLevel", RunLevel);
            if (virt_mode != null)
                myParams.Add("virt_mode", virt_mode);
            return GetResponse<Austin.Linode.ConfigIdResponse>("linode.config.update", myParams);
        }