code: func getName(params map[string]string) (string, error) {
  	name, found := params["name"]
  	if !found || len(name) == 0 {
  		name, found = params["default-name"]
  		if !found || len(name) == 0 {
  			return "", fmt.Errorf("'name' is a required parameter")
  		}
  	}
  	return name, nil
  }
docs: // getName returns the name of newly created resource.