EndpointProjectsMock class
Methods
-
attachUser({required String cloudProjectId, required String email, required List<String> assignRoleNames})
→ Future<void>
-
Invites a user to a project by assigning the specified project roles.
inherited
-
createProject({required String cloudProjectId})
→ Future<Project>
-
Creates a new project with basic setup.
The
cloudProjectId
must be globally unique.
inherited
-
deleteProject({required String cloudProjectId})
→ Future<Project>
-
Deletes a project permanently.
The id / name of the project is not immediately available for reuse.
inherited
-
detachUser({required String cloudProjectId, required String email, List<String>? unassignRoleNames, bool? unassignAllRoles})
→ Future<List<String>>
-
Revokes a user from a project by unassigning the specified project roles.
inherited
-
fetchProject({required String cloudProjectId})
→ Future<Project>
-
Fetches the specified project.
Its user roles are included in the response.
inherited
-
fetchProjectConfig({required String cloudProjectId})
→ Future<ProjectConfig>
-
inherited
-
inviteUser({required String cloudProjectId, required String email, required List<String> assignRoleNames})
→ Future<void>
-
Invites a user to a project by assigning the specified project roles.
If the user does not exist, a user invitation email is sent.
inherited
-
listProjects()
→ Future<List<Project>>
-
Fetches the list of projects the current user has access to.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
resetStream()
→ void
-
Resets web socket stream, so it's possible to re-listen to endpoint
streams.
inherited
-
revokeUser({required String cloudProjectId, required String email, List<String>? unassignRoleNames, bool? unassignAllRoles})
→ Future<List<String>>
-
Revokes a user from a project by unassigning the specified project roles.
If any of the roles do not exist or are not previously assigned to the
user, they are simply ignored.
If
unassignAllRoles
is true, all roles on the project are unassigned
from the user.
inherited
-
sendStreamMessage(SerializableModel message)
→ Future<void>
-
Sends a message to the endpoint's stream.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited