code: func (r *Request) Name(resourceName string) *Request {
  	if r.err != nil {
  		return r
  	}
  	if len(resourceName) == 0 {
  		r.err = fmt.Errorf("resource name may not be empty")
  		return r
  	}
  	if len(r.resourceName) != 0 {
  		r.err = fmt.Errorf("resource name already set to %q, cannot change to %q", r.resourceName, resourceName)
  		return r
  	}
  	if ok, msg := validation.IsValidPathSegmentName(resourceName); !ok {
  		r.err = fmt.Errorf("invalid resource name %q: %s", resourceName, msg)
  		return r
  	}
  	r.resourceName = resourceName
  	return r
  }
docs: // Name sets the name of a resource to access (<resource>/[ns/<namespace>/]<name>)