()
| 1488 | } |
| 1489 | |
| 1490 | func (p *ScaleSystemVmParams) toURLValues() url.Values { |
| 1491 | u := url.Values{} |
| 1492 | if p.p == nil { |
| 1493 | return u |
| 1494 | } |
| 1495 | if v, found := p.p["details"]; found { |
| 1496 | m := v.(map[string]string) |
| 1497 | for i, k := range getSortedKeysFromMap(m) { |
| 1498 | u.Set(fmt.Sprintf("details[%d].%s", i, k), m[k]) |
| 1499 | } |
| 1500 | } |
| 1501 | if v, found := p.p["id"]; found { |
| 1502 | u.Set("id", v.(string)) |
| 1503 | } |
| 1504 | if v, found := p.p["serviceofferingid"]; found { |
| 1505 | u.Set("serviceofferingid", v.(string)) |
| 1506 | } |
| 1507 | return u |
| 1508 | } |
| 1509 | |
| 1510 | func (p *ScaleSystemVmParams) SetDetails(v map[string]string) { |
| 1511 | if p.p == nil { |
nothing calls this directly
no test coverage detected