code: func (c *adminClient) UpsertSchema(ctx context.Context, namePrefix string) (*SchemaStatus, error) {
  	defs, err := c.GetSchema()
  	if err != nil {
  		return nil, errors.Wrapf(err, "GetSchema failed")
  	}
  	status, err := c.connector.UpsertSchema(ctx, c.scope, namePrefix, defs)
  	if err != nil {
  		return nil, errors.Wrapf(err, "UpsertSchema failed, directories: %s, excludes: %s, scope: %s", c.dirs, c.excludes, c.scope)
  	}
  	return status, nil
  }
docs: // UpsertSchema creates or updates the schema for entities in the given
  // namespace. See CheckSchema for more detail about scope and namePrefix.