public void accessRestriction_ip_POST ( String ip , OvhIpRestrictionRuleEnum rule , Boolean warning ) throws IOException { String qPath = "/me/accessRestriction/ip" ; StringBuilder sb = path ( qPath ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "ip" , ip ) ; addBody ( o , "rule" , rule ) ; addBody ( o , "warning" , warning ) ; exec ( qPath , "POST" , sb . toString ( ) , o ) ; }
Add an IP access restriction