Get this object properties

REST: GET /ip/{ip}/firewall/{ipOnFirewall}
@param ip [required]
@param ipOnFirewall [required]
161062
public OvhFirewallIp ip_firewall_ipOnFirewall_GET(String ip, String ipOnFirewall) throws IOException {
		String qPath = "/ip/{ip}/firewall/{ipOnFirewall}";
		StringBuilder sb = path(qPath, ip, ipOnFirewall);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhFirewallIp.class);
	}
1343244
protected static function security($firewall = null)
    {
        if($firewall) {
            return Security::getInstance()->firewall($firewall);
        }

        return Security::getInstance();
    }
911989
def GetForwardedIps(self, interface, interface_ip=None):
    
    try:
      ips = netifaces.ifaddresses(interface)
      ips = ips[netifaces.AF_INET]
    except (ValueError, IndexError):
      return []
    forwarded_ips = []
    for ip in ips:
      if ip['addr'] != interface_ip:
        full_addr = '%s/%d' % (ip['addr'], netaddr.IPAddress(ip['netmask']).netmask_bits())
        forwarded_ips.append(full_addr)
    return self.ParseForwardedIps(forwarded_ips)
1367063
function searchNetworkInterface(ip, networks) {
    networks = networks || getNetworkInterfaces();
    for (const [net, netinfo] of Object.entries(networks)) {
        const ipnet = netinfo.ip;
        const mask = netinfo.netmask;
        if (isNetworkSame(mask, ip, ipnet)) {
            return net;
        }
    }
    return null;
}
47400
public OvhRipeInfos ip_ripe_GET(String ip) throws IOException {
		String qPath = "/ip/{ip}/ripe";
		StringBuilder sb = path(qPath, ip);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhRipeInfos.class);
	}
1206996
def get_interfaces(zone, permanent=True):
    '''
    
    '''
    cmd = '--zone={0} --list-interfaces'.format(zone)

    if permanent:
        cmd += ' --permanent'

    return __firewall_cmd(cmd).split()
675320
def create_firewall_rule(self, protocol, action, **kwargs):
        '''
        
        '''
        body = {'protocol': protocol, 'action': action}
        if 'tenant_id' in kwargs:
            body['tenant_id'] = kwargs['tenant_id']
        if 'name' in kwargs:
            body['name'] = kwargs['name']
        if 'description' in kwargs:
            body['description'] = kwargs['description']
        if 'ip_version' in kwargs:
            body['ip_version'] = kwargs['ip_version']
        if 'source_ip_address' in kwargs:
            body['source_ip_address'] = kwargs['source_ip_address']
        if 'destination_port' in kwargs:
            body['destination_port'] = kwargs['destination_port']
        if 'shared' in kwargs:
            body['shared'] = kwargs['shared']
        if 'enabled' in kwargs:
            body['enabled'] = kwargs['enabled']
        return self.network_conn.create_firewall_rule(body={'firewall_rule': body})
72507
public void ip_firewall_ipOnFirewall_PUT(String ip, String ipOnFirewall, OvhFirewallIp body) throws IOException {
		String qPath = "/ip/{ip}/firewall/{ipOnFirewall}";
		StringBuilder sb = path(qPath, ip, ipOnFirewall);
		exec(qPath, "PUT", sb.toString(), body);
	}
1276352
public PublicIpMetadata getPublicIp(Server serverRef, String publicIp) {
        return this.getPublicIp(idByRef(serverRef), publicIp);
    }
285611
public OvhArpBlockedIp ip_arp_ipBlocked_GET(String ip, String ipBlocked) throws IOException {
		String qPath = "/ip/{ip}/arp/{ipBlocked}";
		StringBuilder sb = path(qPath, ip, ipBlocked);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhArpBlockedIp.class);
	}
951726
public ArrayList<String> dedicated_server_serviceName_firewall_GET(String serviceName, OvhFirewallModelEnum firewallModel) throws IOException {
		String qPath = "/order/dedicated/server/{serviceName}/firewall";
		StringBuilder sb = path(qPath, serviceName);
		query(sb, "firewallModel", firewallModel);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, t1);
	}
998603
public static location get(nitro_service service, String ipfrom) throws Exception{
		location obj = new location();
		obj.set_ipfrom(ipfrom);
		location response = (location) obj.get_resource(service);
		return response;
	}
967392
def _get_firewall_policy(kwargs):
    '''
    
    '''
    fp_name = kwargs.get('name', None)
    fp_description = kwargs.get('description', None)
    firewallPolicy = FirewallPolicy(
        name=fp_name,
        description=fp_description
    )

    fpr_json = kwargs.get('rules', None)
    jdata = json.loads(fpr_json)
    rules = []
    for fwpr in jdata:
        firewallPolicyRule = FirewallPolicyRule()
        if 'protocol' in fwpr:
            firewallPolicyRule.rule_set['protocol'] = fwpr['protocol']
        if 'port_from' in fwpr:
            firewallPolicyRule.rule_set['port_from'] = fwpr['port_from']
        if 'port_to' in fwpr:
            firewallPolicyRule.rule_set['port_to'] = fwpr['port_to']
        if 'source' in fwpr:
            firewallPolicyRule.rule_set['source'] = fwpr['source']
        if 'action' in fwpr:
            firewallPolicyRule.rule_set['action'] = fwpr['action']
        if 'description' in fwpr:
            firewallPolicyRule.rule_set['description'] = fwpr['description']
        if 'port' in fwpr:
            firewallPolicyRule.rule_set['port'] = fwpr['port']
        rules.append(firewallPolicyRule)

    return {'firewall_policy': firewallPolicy, 'firewall_policy_rules': rules}
135362
public static iptunnel[] get(nitro_service service) throws Exception{
		iptunnel obj = new iptunnel();
		iptunnel[] response = (iptunnel[])obj.get_resources(service);
		return response;
	}
872030
public static String getLocationByIp(String ip) throws IOException, XPathExpressionException,
            ParserConfigurationException {
        return evaluate(ValueConsts.IP_REGION_XPATH, getHtmlFromUrl("http://ip.chinaz.com/" + ip));
    }
1238357
def get_ip(self, use_cached=True):
        """"""
        device_json = self.get_device_json(use_cached)
        return device_json.get("dpLastKnownIp")
582319
public OvhIpMigrationToken ip_migrationToken_GET(String ip) throws IOException {
		String qPath = "/ip/{ip}/migrationToken";
		StringBuilder sb = path(qPath, ip);
		String resp = exec(qPath, "GET", sb.toString(), null);
		return convertTo(resp, OvhIpMigrationToken.class);
	}