finished all models and split them into folders to avoid dupes
This commit is contained in:
parent
e2cc424516
commit
f80e0692cd
76 changed files with 1886 additions and 92 deletions
56
src/Api/IPAM/Aggregates.php
Normal file
56
src/Api/IPAM/Aggregates.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Aggregates extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/aggregates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/aggregates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/aggregates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/aggregates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/aggregates/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue