code: func ParseGenericResources(value []string) ([]swarm.GenericResource, error) {
  	if len(value) == 0 {
  		return nil, nil
  	}
  
  	resources, err := genericresource.Parse(value)
  	if err != nil {
  		return nil, errors.Wrapf(err, "invalid generic resource specification")
  	}
  
  	swarmResources := genericResourcesFromGRPC(resources)
  	for _, res := range swarmResources {
  		if res.NamedResourceSpec != nil {
  			return nil, fmt.Errorf("invalid generic-resource request `%s=%s`, Named Generic Resources is not supported for service create or update", res.NamedResourceSpec.Kind, res.NamedResourceSpec.Value)
  		}
  	}
  
  	return swarmResources, nil
  }
docs: // ParseGenericResources parses an array of Generic resourceResources
  // Requesting Named Generic Resources for a service is not supported this
  // is filtered here.