updateProject method

Future<ProjectResponse> updateProject(
  1. String projectId, {
  2. bool? allowPublic,
  3. String? description,
})
inherited

Updates a project's settings.

projectId is the unique identifier for the project. allowPublic controls whether anonymous read access is enabled. description updates the project description.

Only provided values are updated; omitted values remain unchanged.

Implementation

Future<ProjectResponse> updateProject(
  String projectId, {
  bool? allowPublic,
  String? description,
}) async {
  final request = UpdateProjectRequest()..projectId = projectId;
  if (allowPublic != null) {
    request.allowPublic = allowPublic;
  }
  if (description != null) {
    request.description = description;
  }
  return stub.updateProject(request, options: callOptions);
}