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
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\Circuits;
|
||||
|
||||
class CircuitTerminations extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\Circuits;
|
||||
|
||||
class CircuitTypes extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\Circuits;
|
||||
|
||||
class Circuits extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\Circuits;
|
||||
|
||||
class CircuitProviders extends AbstractApi
|
||||
class Providers extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Cables extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Cables extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class ConsoleConnections extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class ConsolePortTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class ConsolePorts extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class ConsoleServerPortTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class ConsoleServerPorts extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class DeviceBayTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class DeviceBays extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class DeviceRoles extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class DeviceTypes extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Devices extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class FrontPortTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class FrontPorts extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class InterfaceConnections extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class InterfaceTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Interfaces extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class InventoryItems extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Manufacturers extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Platforms extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerFeeds extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerOutletTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerOutlets extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerPanels extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerPortTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class PowerPorts extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class RackGroups extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class RackReservations extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class RackRoles extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Racks extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class RearPortTemplates extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class RearPorts extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Regions extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class Sites extends AbstractApi
|
||||
{
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
namespace wickedsoft\NetBox\Api\DCMI;
|
||||
|
||||
class VirtualChassis extends AbstractApi
|
||||
{
|
||||
56
src/Api/Extras/ConfigContexts.php
Normal file
56
src/Api/Extras/ConfigContexts.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class ConfigContexts extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/extras/config-contexts/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/extras/config-contexts/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/extras/config-contexts/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/config-contexts/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/config-contexts/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
26
src/Api/Extras/ContentTypes.php
Normal file
26
src/Api/Extras/ContentTypes.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class ContentTypes extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/content-types/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/content-types/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Extras/CustomFields.php
Normal file
56
src/Api/Extras/CustomFields.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class CustomFields extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/extras/custom-fields/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/extras/custom-fields/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/extras/custom-fields/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/custom-fields/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/custom-fields/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Extras/ExportTemplates.php
Normal file
56
src/Api/Extras/ExportTemplates.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class ExportTemplates extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/extras/export-templates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/extras/export-templates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/extras/export-templates/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/export-templates/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/export-templates/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Extras/ImageAttachments.php
Normal file
56
src/Api/Extras/ImageAttachments.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class ImageAttachments extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/extras/image-attachments/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/extras/image-attachments/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/extras/image-attachments/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/image-attachments/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/image-attachments/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
26
src/Api/Extras/JobResults.php
Normal file
26
src/Api/Extras/JobResults.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class JobResults extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/job-results/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/job-results/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
26
src/Api/Extras/ObjectChanges.php
Normal file
26
src/Api/Extras/ObjectChanges.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class ObjectChanges extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/object-changes/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/object-changes/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
36
src/Api/Extras/Reports.php
Normal file
36
src/Api/Extras/Reports.php
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class Reports extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/reports/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/reports/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function run($id, $params=[])
|
||||
{
|
||||
return $this->post("/extras/reports/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
26
src/Api/Extras/Scripts.php
Normal file
26
src/Api/Extras/Scripts.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class Scripts extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/scripts/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/scripts/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Extras/Tags.php
Normal file
56
src/Api/Extras/Tags.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Extras;
|
||||
|
||||
class Tags extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/extras/tags/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/extras/tags/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/extras/tags/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/extras/tags/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/extras/tags/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/IpAddresses.php
Normal file
56
src/Api/IPAM/IpAddresses.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class IpAddresses 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);
|
||||
}
|
||||
}
|
||||
96
src/Api/IPAM/Prefixes.php
Normal file
96
src/Api/IPAM/Prefixes.php
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Prefixes extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/prefixes/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/prefixes/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/prefixes/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/prefixes/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/prefixes/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function showAvailableIps($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/prefixes/".$id."/available-ips/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function addAvailableIps($id, $params=[])
|
||||
{
|
||||
return $this->post("/ipam/prefixes/".$id."/available-ips/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function showAvailable($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/prefixes/".$id."/available-prefixes/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function addAvailable($id, $params=[])
|
||||
{
|
||||
return $this->post("/ipam/prefixes/".$id."/available-prefixes/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/Rirs.php
Normal file
56
src/Api/IPAM/Rirs.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Rirs extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/rirs/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/rirs/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/rirs/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/rirs/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/rirs/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/Roles.php
Normal file
56
src/Api/IPAM/Roles.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Roles extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/roles/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/roles/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/roles/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/roles/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/roles/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/RouteTargets.php
Normal file
56
src/Api/IPAM/RouteTargets.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class RouteTargets extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/route-targets/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/route-targets/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/route-targets/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/route-targets/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/route-targets/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/Services.php
Normal file
56
src/Api/IPAM/Services.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Services extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/services/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/services/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/services/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/services/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/services/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/VlanGroups.php
Normal file
56
src/Api/IPAM/VlanGroups.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class VlanGroups extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/vlan-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/vlan-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/vlan-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/vlan-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/vlan-groups/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/Vlans.php
Normal file
56
src/Api/IPAM/Vlans.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Vlans extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/vlans/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/vlans/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/vlans/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/vlans/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/vlans/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/IPAM/Vrfs.php
Normal file
56
src/Api/IPAM/Vrfs.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\IPAM;
|
||||
|
||||
class Vrfs extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/ipam/vrfs/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/ipam/vrfs/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/ipam/vrfs/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/ipam/vrfs/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/ipam/vrfs/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
16
src/Api/Secrets/KeyGen.php
Normal file
16
src/Api/Secrets/KeyGen.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Secrets;
|
||||
|
||||
class KeyGen extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/secrets/generate-rsa-key-pair/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Secrets/SecretRoles.php
Normal file
56
src/Api/Secrets/SecretRoles.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Secrets;
|
||||
|
||||
class SecretRoles extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/secrets/secret-roles/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/secrets/secret-roles/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/secrets/secret-roles/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/secrets/secret-roles/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/secrets/secret-roles/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Secrets/Secrets.php
Normal file
56
src/Api/Secrets/Secrets.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Secrets;
|
||||
|
||||
class Secrets extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/secrets/secrets/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/secrets/secrets/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/secrets/secrets/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/secrets/secrets/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/secrets/secrets/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
16
src/Api/Secrets/Session.php
Normal file
16
src/Api/Secrets/Session.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Secrets;
|
||||
|
||||
class KeyGen extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/secrets/get-session-key/", $params);
|
||||
}
|
||||
}
|
||||
16
src/Api/Status.php
Normal file
16
src/Api/Status.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api;
|
||||
|
||||
class Status extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($params=[])
|
||||
{
|
||||
return $this->get("/status/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Tenancy/TenantGroups.php
Normal file
56
src/Api/Tenancy/TenantGroups.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Tenancy;
|
||||
|
||||
class TenantGroups extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/tenancy/tenant-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/tenancy/tenant-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/tenancy/tenant-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/tenancy/tenant-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/tenancy/tenant-groups/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Tenancy/Tenants.php
Normal file
56
src/Api/Tenancy/Tenants.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Tenancy;
|
||||
|
||||
class Tenants extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/tenancy/tenants/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/tenancy/tenants/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/tenancy/tenants/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/tenancy/tenants/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/tenancy/tenants/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
16
src/Api/Users/Config.php
Normal file
16
src/Api/Users/Config.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Users;
|
||||
|
||||
class Config extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/users/users/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Users/Groups.php
Normal file
56
src/Api/Users/Groups.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Users;
|
||||
|
||||
class Groups extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/users/groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/users/groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/users/groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/users/groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/users/groups/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Users/Permissions.php
Normal file
56
src/Api/Users/Permissions.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Users;
|
||||
|
||||
class Permissions extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/users/permissions/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/users/permissions/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/users/permissions/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/users/permissions/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/users/permissions/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Users/Users.php
Normal file
56
src/Api/Users/Users.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Users;
|
||||
|
||||
class Users extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/users/users/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/users/users/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/users/users/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/users/users/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/users/users/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Virtualization/ClusterGroups.php
Normal file
56
src/Api/Virtualization/ClusterGroups.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Virtualization;
|
||||
|
||||
class ClusterGroups extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/virtualization/cluster-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/virtualization/cluster-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/virtualization/cluster-groups/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/virtualization/cluster-groups/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/virtualization/cluster-groups/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Virtualization/ClusterTypes.php
Normal file
56
src/Api/Virtualization/ClusterTypes.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Virtualization;
|
||||
|
||||
class ClusterTypes extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/virtualization/cluster-types/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/virtualization/cluster-types/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/virtualization/cluster-types/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/virtualization/cluster-types/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/virtualization/cluster-types/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Virtualization/Clusters.php
Normal file
56
src/Api/Virtualization/Clusters.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Virtualization;
|
||||
|
||||
class ClusterTypes extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/virtualization/clusters/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/virtualization/clusters/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/virtualization/clusters/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/virtualization/clusters/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/virtualization/clusters/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Virtualization/Interfaces.php
Normal file
56
src/Api/Virtualization/Interfaces.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Virtualization;
|
||||
|
||||
class Interfaces extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/virtualization/interfaces/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/virtualization/interfaces/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/virtualization/interfaces/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/virtualization/interfaces/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/virtualization/interfaces/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
56
src/Api/Virtualization/VirtualMachines.php
Normal file
56
src/Api/Virtualization/VirtualMachines.php
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
<?php
|
||||
|
||||
namespace wickedsoft\NetBox\Api\Virtualization;
|
||||
|
||||
class VirtualMachines extends AbstractApi
|
||||
{
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function add($params=[])
|
||||
{
|
||||
return $this->post("/virtualization/virtual-machines/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function delete($id, $params=[])
|
||||
{
|
||||
return $this->delete("/virtualization/virtual-machines/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function edit($id, $params=[])
|
||||
{
|
||||
return $this->put("/virtualization/virtual-machines/".$id."/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function list($params=[])
|
||||
{
|
||||
return $this->get("/virtualization/virtual-machines/", $params);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $params
|
||||
* @return mixed
|
||||
* @throws \GuzzleHttp\Exception\GuzzleException
|
||||
*/
|
||||
public function show($id, $params=[])
|
||||
{
|
||||
return $this->get("/virtualization/virtual-machines/".$id."/", $params);
|
||||
}
|
||||
}
|
||||
140
src/Client.php
140
src/Client.php
|
|
@ -8,63 +8,101 @@ class Client
|
|||
{
|
||||
/** @var array */
|
||||
protected $classes = [
|
||||
//Circuits
|
||||
'circuits' => 'Circuits\Circuits',
|
||||
'providers' => 'Circuits\Providers',
|
||||
'circuitTerminations' => 'Circuits\CircuitTerminations',
|
||||
'circuitTypes' => 'Circuits\CircuitTypes',
|
||||
|
||||
//dcim
|
||||
'cables' => 'DCMI\Cables',
|
||||
'connectedDevices' => 'DCMI\ConnectedDevices',
|
||||
'consoleConnections' => 'DCMI\ConsoleConnections',
|
||||
'consolePorts' => 'DCMI\ConsolePorts',
|
||||
'consolePortTemplates' => 'DCMI\ConsolePortTemplates',
|
||||
'consoleServerPorts' => 'DCMI\ConsoleServerPorts',
|
||||
'consoleServerPortTemplates' => 'DCMI\ConsoleServerPortTemplates',
|
||||
'deviceBays' => 'DCMI\DeviceBays',
|
||||
'deviceBayTemplates' => 'DCMI\DeviceBayTemplates',
|
||||
'deviceRoles' => 'DCMI\DeviceRoles',
|
||||
'devices' => 'DCMI\Devices',
|
||||
'deviceTypes' => 'DCMI\DeviceTypes',
|
||||
'frontPorts' => 'DCMI\FrontPorts',
|
||||
'frontPortTemplates' => 'DCMI\FrontPortTemplates',
|
||||
'interfaceConnections' => 'DCMI\InterfaceConnections',
|
||||
'interfaces' => 'DCMI\Interfaces',
|
||||
'interfaceTemplates' => 'DCMI\InterfaceTemplates',
|
||||
'inventoryItems' => 'DCMI\InventoryItems',
|
||||
'manufacturers' => 'DCMI\Manufacturers',
|
||||
'platforms' => 'DCMI\Platforms',
|
||||
'powerFeeds' => 'DCMI\PowerFeeds',
|
||||
'powerOutlets' => 'DCMI\PowerOutlets',
|
||||
'powerOutletTemplates' => 'DCMI\PowerOutletTemplates',
|
||||
'powerPanels' => 'DCMI\PowerPanels',
|
||||
'powerPorts' => 'DCMI\PowerPorts',
|
||||
'powerPortTemplates' => 'DCMI\PowerPortTemplates',
|
||||
'rackGroups' => 'DCMI\RackGroups',
|
||||
'rackReservations' => 'DCMI\RackReservations',
|
||||
'rackRoles' => 'DCMI\RackRoles',
|
||||
'racks' => 'DCMI\Racks',
|
||||
'rearPorts' => 'DCMI\RearPorts',
|
||||
'rearPortTemplates' => 'DCMI\RearPortTemplates',
|
||||
'regions' => 'DCMI\Regions',
|
||||
'sites' => 'DCMI\Sites',
|
||||
'virtualChassis' => 'DCMI\VirtualChassis',
|
||||
|
||||
//extras
|
||||
'configContexts' => 'Extras\ConfigContexts',
|
||||
'contentTypes' => 'Extras\ContentTypes',
|
||||
'customFields' => 'Extras\CustomFields',
|
||||
'exportTemplates' => 'Extras\ExportTemplates',
|
||||
'imageAttachments' => 'Extras\ImageAttachments',
|
||||
'jobResults' => 'Extras\JobResults',
|
||||
'objectChanges' => 'Extras\ObjectChanges',
|
||||
'reports' => 'Extras\Reports',
|
||||
'scripts' => 'Extras\Scripts',
|
||||
'tags' => 'Extras\Tags',
|
||||
|
||||
//ipam
|
||||
'aggregates' => 'IPAM\Aggregates'
|
||||
'ipAddresses' => 'IPAM\IpAddresses',
|
||||
'prefixes' => 'IPAM\Prefixes',
|
||||
'rirs' => 'IPAM\Rirs',
|
||||
'roles' => 'IPAM\Roles',
|
||||
'routeTargets' => 'IPAM\RouteTargets',
|
||||
'services' => 'IPAM\Services',
|
||||
'vlanGroups' => 'IPAM\VlanGroups',
|
||||
'vlans' => 'IPAM\Vlans',
|
||||
'vrfs' => 'IPAM\Vrfs',
|
||||
|
||||
//circuits
|
||||
'circuits' => 'Circuits',
|
||||
'circuitTypes' => 'CircuitTypes',
|
||||
'circuitTerminations' => 'CircuitTerminations',
|
||||
'providers' => 'CircuitProviders',
|
||||
'providers' => 'Providers',
|
||||
//dcim
|
||||
'cables' => 'Cables',
|
||||
'connectedDevices' => 'ConnectedDevices',
|
||||
'consoleConnections' => 'ConsoleConnections',
|
||||
'consolePortTemplates' => 'ConsolePortTemplates',
|
||||
'consolePorts' => 'ConsolePorts',
|
||||
'consoleServerPortTemplates' => 'ConsoleServerPortTemplates',
|
||||
'consoleServerPorts' => 'ConsoleServerPorts',
|
||||
'deviceBayTemplates' => 'DeviceBayTemplates',
|
||||
'deviceBays' => 'DeviceBays',
|
||||
'deviceRoles' => 'DeviceRoles',
|
||||
'deviceTypes' => 'DeviceTypes',
|
||||
'devices' => 'Devices',
|
||||
'frontPortTemplates' => 'FrontPortTemplates',
|
||||
'frontPorts' => 'FrontPorts',
|
||||
'interfaceConnections' => 'InterfaceConnections',
|
||||
'interfaceTemplates' => 'InterfaceTemplates',
|
||||
'interfaces' => 'Interfaces',
|
||||
'inventoryItems' => 'InventoryItems',
|
||||
'manufacturers' => 'Manufacturers',
|
||||
'platforms' => 'Platforms',
|
||||
'powerFeeds' => 'PowerFeeds',
|
||||
'powerOutlets' => 'PowerOutlets',
|
||||
'powerOutletTemplates' => 'PowerOutletTemplates',
|
||||
'powerPanels' => 'PowerPanels',
|
||||
'powerPorts' => 'PowerPorts',
|
||||
'powerPortTemplates' => 'PowerPortTemplates',
|
||||
'rackGroups' => 'RackGroups',
|
||||
'rackReservations' => 'RackReservations',
|
||||
'rackRoles' => 'RackRoles',
|
||||
'racks' => 'Racks',
|
||||
'rearPortTemplates' => 'RearPortTemplates',
|
||||
'rearPorts' => 'RearPorts',
|
||||
'regions' => 'Regions',
|
||||
'sites' => 'Sites',
|
||||
'virtualChassis' => 'VirtualChassis',
|
||||
//ipam
|
||||
'ip' => 'Ip',
|
||||
/*'sites' => 'Sites',
|
||||
'racks' => 'Racks',
|
||||
'devices' => 'Devices',
|
||||
'prefixes' => 'Prefixes',
|
||||
|
||||
'interfaces' => 'Interfaces',
|
||||
'rirs' => 'Rirs',
|
||||
'vlans' => 'Vlans',
|
||||
'vrfs' => 'Vrfs',
|
||||
'secrets' => 'Secrets',
|
||||
'tenants' => 'Tenants',
|
||||
'users' => 'Users',
|
||||
'clusters' => 'Clusters',*/
|
||||
//secrets
|
||||
'secrets' => 'Secrets\Secrets',
|
||||
'secretRoles' => 'Secrets\SecretRoles',
|
||||
'keyGen' => 'Secrets\KeyGen',
|
||||
|
||||
//Tenancy
|
||||
'tenantGroups' => 'Tenancy\TenantGroups',
|
||||
'tenants' => 'Tenancy\Tenants',
|
||||
|
||||
//users
|
||||
'groups' => 'Users\Groups',
|
||||
'permissions' => 'Users\Permissions',
|
||||
'users' => 'Users\Users',
|
||||
'config' => 'Users\Config',
|
||||
|
||||
//Virtualization
|
||||
'clusterGroups' => 'Virtualization\ClusterGroups',
|
||||
'clusterTypes' => 'Virtualization\ClusterTypes',
|
||||
'clusters' => 'Virtualization\Clusters',
|
||||
'vinterfaces' => 'Virtualization\Interfaces',
|
||||
|
||||
'status' => 'Status',
|
||||
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue