EndpointProjectsMock class
Methods
-
createProject({required String cloudProjectId, String? underSubscriptionId, String? projectProductName})
→ Future<Project>
-
Creates a new project with basic setup.
inherited
-
deleteProject({required String cloudProjectId})
→ Future<Project>
-
Archives a project and its capsule and permanently deletes its infrastructure.
The id of the project is not available for reuse but the same string can
be assigned as the "name" of another capsule.
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
-
fetchProjectInfo({required String cloudProjectId, bool? includeLatestDeployAttemptTime})
→ Future<ProjectInfo>
-
Fetches the specified project.
Its user roles are included in the response.
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
-
updateProjectProfile({required String cloudProjectId, required ProjectProfileUpdate resources})
→ Future<void>
-
Applies a project profile change together with compute scaling and optional
database sizing in one call.
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