Delete Ip.php
This commit is contained in:
parent
435e550e70
commit
805e3459a0
1 changed files with 0 additions and 56 deletions
|
|
@ -1,56 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace wickedsoft\NetBox\Api;
|
|
||||||
|
|
||||||
class Ip extends AbstractApi
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @param $params
|
|
||||||
* @return mixed
|
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
|
||||||
*/
|
|
||||||
public function add($params=[])
|
|
||||||
{
|
|
||||||
return $this->post("/ipam/ip-addresses/", $params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $params
|
|
||||||
* @return mixed
|
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
|
||||||
*/
|
|
||||||
public function delete($id, $params=[])
|
|
||||||
{
|
|
||||||
return $this->delete("/ipam/ip-addresses/".$id."/", $params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $params
|
|
||||||
* @return mixed
|
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
|
||||||
*/
|
|
||||||
public function edit($id, $params=[])
|
|
||||||
{
|
|
||||||
return $this->put("/ipam/ip-addresses/".$id."/", $params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $params
|
|
||||||
* @return mixed
|
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
|
||||||
*/
|
|
||||||
public function list($params=[])
|
|
||||||
{
|
|
||||||
return $this->get("/ipam/ip-addresses/", $params);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param $params
|
|
||||||
* @return mixed
|
|
||||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
|
||||||
*/
|
|
||||||
public function show($id, $params=[])
|
|
||||||
{
|
|
||||||
return $this->get("/ipam/ip-addresses/".$id."/", $params);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue