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

StackScript_Update() public method

Update a StackScript.
possible errors: NOTFOUND,VALIDATION
public StackScript_Update ( int StackScriptID, string Description = null, string DistributionIDList = null, bool isPublic = null, string Label = null, string rev_note = null, string script = null ) : void
StackScriptID int
Description string
DistributionIDList string Comma delimited list of DistributionIDs that this script works on
isPublic bool Whether this StackScript is published in the Library, for everyone to use
Label string The Label for this StackScript
rev_note string
script string The actual script
return void
        public void StackScript_Update(
                int StackScriptID,
                string Description = null,
                string DistributionIDList = null,
                bool? isPublic = null,
                string Label = null,
                string rev_note = null,
                string script = null)
        {
            var myParams = new Dictionary<string, string>();
            myParams.Add("StackScriptID", StackScriptID.ToString(CultureInfo.InvariantCulture));
            if (Description != null)
                myParams.Add("Description", Description);
            if (DistributionIDList != null)
                myParams.Add("DistributionIDList", DistributionIDList);
            if (isPublic != null)
                myParams.Add("isPublic", isPublic.Value ? "true" : "false");
            if (Label != null)
                myParams.Add("Label", Label);
            if (rev_note != null)
                myParams.Add("rev_note", rev_note);
            if (script != null)
                myParams.Add("script", script);
            GetResponse<object>("stackscript.update", myParams);
        }