Skip to content

Commit fa3f8ff

Browse files
author
serverpod_cloud
committed
fix: 7096bd61fde52f2a3aae0e589e9a1fda8e399c94
1 parent ce55b32 commit fa3f8ff

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

ground_control_client/lib/src/protocol/client.dart

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,46 @@ class EndpointProjects extends _i1.EndpointRef {
436436
{'cloudProjectId': cloudProjectId},
437437
);
438438

439+
/// Invites a user to a project by assigning the specified project roles.
440+
///
441+
/// @Deprecated Use [inviteUser] instead.
442+
@Deprecated('Use inviteUser instead.')
443+
_i2.Future<void> attachUser({
444+
required String cloudProjectId,
445+
required String email,
446+
required List<String> assignRoleNames,
447+
}) =>
448+
caller.callServerEndpoint<void>(
449+
'projects',
450+
'attachUser',
451+
{
452+
'cloudProjectId': cloudProjectId,
453+
'email': email,
454+
'assignRoleNames': assignRoleNames,
455+
},
456+
);
457+
458+
/// Revokes a user from a project by unassigning the specified project roles.
459+
///
460+
/// @Deprecated Use [revokeUser] instead.
461+
@Deprecated('Use revokeUser instead.')
462+
_i2.Future<List<String>> detachUser({
463+
required String cloudProjectId,
464+
required String email,
465+
List<String>? unassignRoleNames,
466+
bool? unassignAllRoles,
467+
}) =>
468+
caller.callServerEndpoint<List<String>>(
469+
'projects',
470+
'detachUser',
471+
{
472+
'cloudProjectId': cloudProjectId,
473+
'email': email,
474+
'unassignRoleNames': unassignRoleNames,
475+
'unassignAllRoles': unassignAllRoles,
476+
},
477+
);
478+
439479
/// Invites a user to a project by assigning the specified project roles.
440480
///
441481
/// Throws [NotFoundException] if the project or any of the roles

0 commit comments

Comments
 (0)