public Task RemoveForwardingRules(string loadBalancerId, Models.Requests.ForwardingRulesList forwardingRules)
        {
            var parameters = new List <Parameter> {
                new Parameter("id", loadBalancerId, ParameterType.UrlSegment)
            };

            return(_connection.ExecuteRaw("load_balancers/{id}/forwarding_rules", parameters, forwardingRules, Method.DELETE));
        }
Ejemplo n.º 2
0
        public Task AddForwardingRules(string loadBalancerId, Models.Requests.ForwardingRulesList forwardingRules)
        {
            var parameters = new List <Parameter> {
                new Parameter {
                    Name = "id", Value = loadBalancerId, Type = ParameterType.UrlSegment
                }
            };

            return(_connection.ExecuteRaw("load_balancers/{id}/forwarding_rules", parameters, forwardingRules, Method.POST));
        }