createProject method

Future<ProjectResponse> createProject(
  1. String name, {
  2. String? description,
})
inherited

Creates a new project.

name must be URL-safe (alphanumeric with hyphens). description is an optional human-readable description.

Throws a gRPC error if the project already exists or the project limit has been reached.

Implementation

Future<ProjectResponse> createProject(
  String name, {
  String? description,
}) async {
  final request = CreateProjectRequest()
    ..name = name
    ..description = description ?? '';
  return stub.createProject(request, options: callOptions);
}