MCPcopy Index your code
hub / github.com/apache/cloudstack-go / toURLValues

Method toURLValues

cloudstack/SystemVMService.go:1490–1508  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1488}
1489
1490func (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
1510func (p *ScaleSystemVmParams) SetDetails(v map[string]string) {
1511 if p.p == nil {

Callers

nothing calls this directly

Calls 1

getSortedKeysFromMapFunction · 0.85

Tested by

no test coverage detected