code: func (s *Service) UpdateBucket(ctx context.Context, id platform.ID, upd platform.BucketUpdate) (*platform.Bucket, error) {
  	b, err := s.FindBucketByID(ctx, id)
  	if err != nil {
  		return nil, &platform.Error{
  			Op:  OpPrefix + platform.OpUpdateBucket,
  			Err: err,
  		}
  	}
  
  	if upd.Name != nil {
  		b.Name = *upd.Name
  	}
  
  	if upd.RetentionPeriod != nil {
  		b.RetentionPeriod = *upd.RetentionPeriod
  	}
  
  	s.bucketKV.Store(b.ID.String(), b)
  
  	return b, nil
  }
docs: // UpdateBucket updates a single bucket with changeset.
  // Returns the new bucket state after update.