Skip to content

Commit

Permalink
feat: add delete function
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetgallein committed May 11, 2024
1 parent 23eb2ef commit 6c3775e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/TSIGKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class TSIGKey extends AbstractZone
*
* @return TSIGKeySet The meta data set.
*/
public function get(): TSIGKeySet
public function getAll(): TSIGKeySet
{
$items = $this->connector->get('tsigkeys');

Expand All @@ -25,6 +25,20 @@ public function get(): TSIGKeySet
return $resultSet;
}

/**
* Get a single tsigkey.
*
* @param string $id the id
*
* @return TSIGKeyResource The meta data set.
*/
public function get(string $id): TSIGKeyResource
{
$item = $this->connector->get('tsigkeys/'.$id);

return new TSIGKeyResource($item);
}

/**
* Creat a new TSIG Key.
*
Expand Down

0 comments on commit 6c3775e

Please sign in to comment.