in cloudstack/DiskOfferingService.go [1575:1661]
func (p *UpdateDiskOfferingParams) toURLValues() url.Values {
u := url.Values{}
if p.p == nil {
return u
}
if v, found := p.p["bytesreadrate"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("bytesreadrate", vv)
}
if v, found := p.p["bytesreadratemax"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("bytesreadratemax", vv)
}
if v, found := p.p["bytesreadratemaxlength"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("bytesreadratemaxlength", vv)
}
if v, found := p.p["byteswriterate"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("byteswriterate", vv)
}
if v, found := p.p["byteswriteratemax"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("byteswriteratemax", vv)
}
if v, found := p.p["byteswriteratemaxlength"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("byteswriteratemaxlength", vv)
}
if v, found := p.p["cachemode"]; found {
u.Set("cachemode", v.(string))
}
if v, found := p.p["displayoffering"]; found {
vv := strconv.FormatBool(v.(bool))
u.Set("displayoffering", vv)
}
if v, found := p.p["displaytext"]; found {
u.Set("displaytext", v.(string))
}
if v, found := p.p["domainid"]; found {
u.Set("domainid", v.(string))
}
if v, found := p.p["id"]; found {
u.Set("id", v.(string))
}
if v, found := p.p["iopsreadrate"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopsreadrate", vv)
}
if v, found := p.p["iopsreadratemax"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopsreadratemax", vv)
}
if v, found := p.p["iopsreadratemaxlength"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopsreadratemaxlength", vv)
}
if v, found := p.p["iopswriterate"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopswriterate", vv)
}
if v, found := p.p["iopswriteratemax"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopswriteratemax", vv)
}
if v, found := p.p["iopswriteratemaxlength"]; found {
vv := strconv.FormatInt(v.(int64), 10)
u.Set("iopswriteratemaxlength", vv)
}
if v, found := p.p["name"]; found {
u.Set("name", v.(string))
}
if v, found := p.p["sortkey"]; found {
vv := strconv.Itoa(v.(int))
u.Set("sortkey", vv)
}
if v, found := p.p["state"]; found {
u.Set("state", v.(string))
}
if v, found := p.p["tags"]; found {
u.Set("tags", v.(string))
}
if v, found := p.p["zoneid"]; found {
u.Set("zoneid", v.(string))
}
return u
}