From 6c3775ec8d83bb2d02b97e27c0353863464405fe Mon Sep 17 00:00:00 2001 From: Bennet Gallein Date: Sat, 11 May 2024 22:48:49 +0200 Subject: [PATCH] feat: add delete function --- src/TSIGKey.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/TSIGKey.php b/src/TSIGKey.php index 121a0db..cb46140 100644 --- a/src/TSIGKey.php +++ b/src/TSIGKey.php @@ -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'); @@ -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. *