Finished DCMI portion.
This commit is contained in:
parent
278c3b8904
commit
80dc580e75
40 changed files with 2199 additions and 4 deletions
56
src/Api/PowerPortTemplates.php
Normal file
56
src/Api/PowerPortTemplates.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
|
||||
class PowerPortTemplates extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/dcim/power-port-templates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/dcim/power-port-templates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/dcim/power-port-templates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/dcim/power-port-templates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/dcim/power-port-templates/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue