func (v Value) String() string {
	var strs []string
	if v.Arch != nil {
		strs = append(strs, "arch="+*v.Arch)
	}
	if v.Container != nil {
		strs = append(strs, "container="+string(*v.Container))
	}
	if v.CpuCores != nil {
		strs = append(strs, "cores="+uintStr(*v.CpuCores))
	}
	if v.CpuPower != nil {
		strs = append(strs, "cpu-power="+uintStr(*v.CpuPower))
	}
	if v.InstanceRole != nil {
		strs = append(strs, "instance-role="+(*v.InstanceRole))
	}
	if v.InstanceType != nil {
		strs = append(strs, "instance-type="+(*v.InstanceType))
	}
	if v.Mem != nil {
		s := uintStr(*v.Mem)
		if s != "" {
			s += "M"
		}
		strs = append(strs, "mem="+s)
	}
	if v.RootDisk != nil {
		s := uintStr(*v.RootDisk)
		if s != "" {
			s += "M"
		}
		strs = append(strs, "root-disk="+s)
	}
	if v.RootDiskSource != nil {
		s := *v.RootDiskSource
		strs = append(strs, "root-disk-source="+s)
	}
	if v.Tags != nil {
		s := strings.Join(*v.Tags, ",")
		strs = append(strs, "tags="+s)
	}
	if v.Spaces != nil {
		s := strings.Join(*v.Spaces, ",")
		strs = append(strs, "spaces="+s)
	}
	if v.VirtType != nil {
		strs = append(strs, "virt-type="+(*v.VirtType))
	}
	if v.Zones != nil {
		s := strings.Join(*v.Zones, ",")
		strs = append(strs, "zones="+s)
	}
	if v.AllocatePublicIP != nil {
		strs = append(strs, "allocate-public-ip="+boolStr(*v.AllocatePublicIP))
	}

	// Ensure constraint values with spaces are properly escaped
	for i := 0; i < len(strs); i++ {
		strs[i] = strings.Replace(strs[i], " ", `\ `, -1)
	}

	return strings.Join(strs, " ")
}
// String expresses a constraints.Value in the language in which it was specified.
String expresses a constraints.Value in the language in which it was specified.
// String expresses a constraints . Value in the language in which it was specified .
func (v Value) String() string {
	var strs []string
	if v.Arch != nil {
		strs = append(strs, "arch="+*v.Arch)
	}
	if v.Container != nil {
		strs = append(strs, "container="+string(*v.Container))
	}
	if v.CpuCores != nil {
		strs = append(strs, "cores="+uintStr(*v.CpuCores))
	}
	if v.CpuPower != nil {
		strs = append(strs, "cpu-power="+uintStr(*v.CpuPower))
	}
	if v.InstanceRole != nil {
		strs = append(strs, "instance-role="+(*v.InstanceRole))
	}
	if v.InstanceType != nil {
		strs = append(strs, "instance-type="+(*v.InstanceType))
	}
	if v.Mem != nil {
		s := uintStr(*v.Mem)
		if s != "" {
			s += "M"
		}
		strs = append(strs, "mem="+s)
	}
	if v.RootDisk != nil {
		s := uintStr(*v.RootDisk)
		if s != "" {
			s += "M"
		}
		strs = append(strs, "root-disk="+s)
	}
	if v.RootDiskSource != nil {
		s := *v.RootDiskSource
		strs = append(strs, "root-disk-source="+s)
	}
	if v.Tags != nil {
		s := strings.Join(*v.Tags, ",")
		strs = append(strs, "tags="+s)
	}
	if v.Spaces != nil {
		s := strings.Join(*v.Spaces, ",")
		strs = append(strs, "spaces="+s)
	}
	if v.VirtType != nil {
		strs = append(strs, "virt-type="+(*v.VirtType))
	}
	if v.Zones != nil {
		s := strings.Join(*v.Zones, ",")
		strs = append(strs, "zones="+s)
	}
	if v.AllocatePublicIP != nil {
		strs = append(strs, "allocate-public-ip="+boolStr(*v.AllocatePublicIP))
	}
	for i := 0; i < len(strs); i++ {
		strs[i] = strings.Replace(strs[i], " ", `\ `, -1)
	}
	return strings.Join(strs, " ")
}
func ( v Value ) String ( ) string { var strs [ ] string if v . Arch != nil { strs = append ( strs , " " + * v . Arch ) } if v . Container != nil { strs = append ( strs , " " + string ( * v . Container ) ) } if v . CpuCores != nil { strs = append ( strs , " " + uintStr ( * v . CpuCores ) ) } if v . CpuPower != nil { strs = append ( strs , " " + uintStr ( * v . CpuPower ) ) } if v . InstanceRole != nil { strs = append ( strs , " " + ( * v . InstanceRole ) ) } if v . InstanceType != nil { strs = append ( strs , " " + ( * v . InstanceType ) ) } if v . Mem != nil { s := uintStr ( * v . Mem ) if s != " " { s += " " } strs = append ( strs , " " + s ) } if v . RootDisk != nil { s := uintStr ( * v . RootDisk ) if s != " " { s += " " } strs = append ( strs , " " + s ) } if v . RootDiskSource != nil { s := * v . RootDiskSource strs = append ( strs , " " + s ) } if v . Tags != nil { s := strings . Join ( * v . Tags , " " ) strs = append ( strs , " " + s ) } if v . Spaces != nil { s := strings . Join ( * v . Spaces , " " ) strs = append ( strs , " " + s ) } if v . VirtType != nil { strs = append ( strs , " " + ( * v . VirtType ) ) } if v . Zones != nil { s := strings . Join ( * v . Zones , " " ) strs = append ( strs , " " + s ) } if v . AllocatePublicIP != nil { strs = append ( strs , " " + boolStr ( * v . AllocatePublicIP ) ) } for i := 0 ; i < len ( strs ) ; i ++ { strs [ i ] = strings . Replace ( strs [ i ] , " " , `\ ` , - 1 ) } return strings . Join ( strs , " " ) }
String expresses a constraints.Value in the language in which it was specified.
String expresses a constraints . Value in the language in which it was specified .
// Ensure constraint values with spaces are properly escaped