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, String? underSubscriptionId})
→ Future<Project>
-
Creates a new project with basic setup.
The
cloudProjectId must be globally unique.
underSubscriptionId optionally specify a subscription to procure the
project under, or the user's primary subscription will be used.
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
-
listProjectsInfo({bool? includeLatestDeployAttemptTime})
→ Future<List<ProjectInfo>>
-
Fetches the list of projects the current user has access to.
If requested, the result includes the latest deploy attempt time
(or null if undeployed).
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
-
validateProjectId(String projectId)
→ Future<bool>
-
Validates a project ID by checking format rules and database existence.
Throws InvalidValueException for format violations.
Throws DuplicateEntryException if the project ID already exists.
Returns true if the project ID is valid and available.
inherited