netbox-php/src/Api/Tenancy/TenantGroups.php

56 lines
1.2 KiB
PHP
Raw Normal View History

2021-03-12 17:20:32 -04:00
<?php
namespace wickedsoft\NetBox\Api\Tenancy;
2021-03-12 17:20:32 -04:00
class TenantGroups extends AbstractApi
2021-03-12 17:20:32 -04:00
{
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function add($params=[])
{
return $this->post("/tenancy/tenant-groups/", $params);
2021-03-12 17:20:32 -04:00
}
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function delete($id, $params=[])
{
return $this->delete("/tenancy/tenant-groups/".$id."/", $params);
2021-03-12 17:20:32 -04:00
}
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function edit($id, $params=[])
{
return $this->put("/tenancy/tenant-groups/".$id."/", $params);
2021-03-12 17:20:32 -04:00
}
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function list($params=[])
{
return $this->get("/tenancy/tenant-groups/", $params);
2021-03-12 17:20:32 -04:00
}
/**
* @param $params
* @return mixed
* @throws \GuzzleHttp\Exception\GuzzleException
*/
public function show($id, $params=[])
{
return $this->get("/tenancy/tenant-groups/".$id."/", $params);
2021-03-12 17:20:32 -04:00
}
}