code: func (*Projects) Ensure(c context.Context, req *projects.EnsureRequest) (*projects.Config, error) {
  	if req.GetId() == "" {
  		return nil, status.Errorf(codes.InvalidArgument, "ID is required")
  	}
  	p := &model.Project{
  		ID:     req.Id,
  		Config: *req.Project,
  	}
  	if err := datastore.Put(c, p); err != nil {
  		return nil, errors.Annotate(err, "failed to store project").Err()
  	}
  	return &p.Config, nil
  }
docs: // Ensure handles a request to create or update a project.