remove access to drive tests (#8879)

This commit is contained in:
Viktor Scharf
2024-04-18 11:46:19 +02:00
committed by GitHub
parent c8adcaa4f7
commit 2e8708816f
5 changed files with 182 additions and 31 deletions
+31 -1
View File
@@ -1851,7 +1851,7 @@ class GraphHelper {
*
* @throws GuzzleException
*/
public static function deleteSharePermission(
public static function removeAccessToSpaceItem(
string $baseUrl,
string $xRequestId,
string $user,
@@ -1870,6 +1870,36 @@ class GraphHelper {
);
}
/**
* @param string $baseUrl
* @param string $xRequestId
* @param string $user
* @param string $password
* @param string $spaceId
* @param string $permissionId
*
* @return ResponseInterface
*
* @throws GuzzleException
*/
public static function removeAccessToSpace(
string $baseUrl,
string $xRequestId,
string $user,
string $password,
string $spaceId,
string $permissionId
): ResponseInterface {
$url = self::getBetaFullUrl($baseUrl, "drives/$spaceId/root/permissions/$permissionId");
return HttpRequestHelper::delete(
$url,
$xRequestId,
$user,
$password,
self::getRequestHeaders()
);
}
/**
* @param string $baseUrl
* @param string $xRequestId