Push subuser creation service

This commit is contained in:
Dane Everitt 2017-08-23 21:34:11 -05:00
parent 2a5570877c
commit 74ea1aa0aa
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
23 changed files with 1077 additions and 229 deletions

View file

@ -84,6 +84,20 @@ class ServerRepository extends BaseRepository implements ServerRepositoryInterfa
]);
}
/**
* {@inheritdoc}
*/
public function setSubuserKey($key, array $permissions)
{
return $this->getHttpClient()->request('PATCH', '/server', [
'json' => [
'keys' => [
$key => $permissions,
],
],
]);
}
/**
* {@inheritdoc}
*/