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

StackScript_Create() public method

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