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