56 lines
1.2 KiB
PHP
56 lines
1.2 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace wickedsoft\NetBox\Api;
|
||
|
|
|
||
|
|
class RearPortTemplates extends AbstractApi
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param $params
|
||
|
|
* @return mixed
|
||
|
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||
|
|
*/
|
||
|
|
public function add($params=[])
|
||
|
|
{
|
||
|
|
return $this->post("/dcim/rear-port-templates/", $params);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param $params
|
||
|
|
* @return mixed
|
||
|
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||
|
|
*/
|
||
|
|
public function delete($id, $params=[])
|
||
|
|
{
|
||
|
|
return $this->delete("/dcim/rear-port-templates/".$id."/", $params);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param $params
|
||
|
|
* @return mixed
|
||
|
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||
|
|
*/
|
||
|
|
public function edit($id, $params=[])
|
||
|
|
{
|
||
|
|
return $this->put("/dcim/rear-port-templates/".$id."/", $params);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param $params
|
||
|
|
* @return mixed
|
||
|
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||
|
|
*/
|
||
|
|
public function list($params=[])
|
||
|
|
{
|
||
|
|
return $this->get("/dcim/rear-port-templates/", $params);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @param $params
|
||
|
|
* @return mixed
|
||
|
|
* @throws \GuzzleHttp\Exception\GuzzleException
|
||
|
|
*/
|
||
|
|
public function show($id, $params=[])
|
||
|
|
{
|
||
|
|
return $this->get("/dcim/rear-port-templates/".$id."/", $params);
|
||
|
|
}
|
||
|
|
}
|