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

NodeBalancer_Node_Update() public method

Updates a Node's properties
possible errors: NOTFOUND,VALIDATION
public NodeBalancer_Node_Update ( int NodeID, string Address = null, string Label = null, string Mode = null, int Weight = null ) : void
NodeID int
Address string The address:port combination used to communicate with this Node
Label string This backend Node's label
Mode string The connections mode for this node. One of 'accept', 'reject', or 'drain'
Weight int Load balancing weight, 1-255. Higher means more connections.
return void
        public void NodeBalancer_Node_Update(
                int NodeID,
                string Address = null,
                string Label = null,
                string Mode = null,
                int? Weight = null)
        {
            var myParams = new Dictionary<string, string>();
            myParams.Add("NodeID", NodeID.ToString(CultureInfo.InvariantCulture));
            if (Address != null)
                myParams.Add("Address", Address);
            if (Label != null)
                myParams.Add("Label", Label);
            if (Mode != null)
                myParams.Add("Mode", Mode);
            if (Weight != null)
                myParams.Add("Weight", Weight.Value.ToString(CultureInfo.InvariantCulture));
            GetResponse<object>("nodebalancer.node.update", myParams);
        }