mirror of
https://github.com/anikeen-com/id.git
synced 2026-03-13 21:56:14 +00:00
24 lines
447 B
PHP
24 lines
447 B
PHP
<?php
|
|
|
|
namespace Anikeen\Id\Resources;
|
|
|
|
use Anikeen\Id\Concerns\HasParent;
|
|
use Throwable;
|
|
|
|
/**
|
|
* @property string $id
|
|
*/
|
|
class SshKey extends BaseResource
|
|
{
|
|
use HasParent;
|
|
|
|
/**
|
|
* Deletes a given ssh key for the currently authed user.
|
|
*
|
|
* @throws Throwable
|
|
*/
|
|
public function delete(): bool
|
|
{
|
|
return $this->parent->delete(sprintf('v1/ssh-keys/%s', $this->id))->success();
|
|
}
|
|
} |