code: func (s *genericScaler) ScaleSimple(namespace, name string, preconditions *ScalePrecondition, newSize uint, gr schema.GroupResource) (updatedResourceVersion string, err error) {
  	scale := &autoscalingv1.Scale{
  		ObjectMeta: metav1.ObjectMeta{Namespace: namespace, Name: name},
  	}
  	if preconditions != nil {
  		var err error
  		scale, err = s.scaleNamespacer.Scales(namespace).Get(gr, name)
  		if err != nil {
  			return "", err
  		}
  		if err := preconditions.validate(scale); err != nil {
  			return "", err
  		}
  	}
  
  	scale.Spec.Replicas = int32(newSize)
  	updatedScale, err := s.scaleNamespacer.Scales(namespace).Update(gr, scale)
  	if err != nil {
  		return "", err
  	}
  	return updatedScale.ResourceVersion, nil
  }
docs: // ScaleSimple updates a scale of a given resource. It returns the resourceVersion of the scale if the update was successful.