You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2022/05/18 07:07:37 UTC

[cloudstack-go] branch fix-listdomainchildren updated: Fix wrong label for listdomainchildren

This is an automated email from the ASF dual-hosted git repository.

davidjumani pushed a commit to branch fix-listdomainchildren
in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git


The following commit(s) were added to refs/heads/fix-listdomainchildren by this push:
     new 9800def  Fix wrong label for listdomainchildren
9800def is described below

commit 9800def32e1d27fd4cde18f8ce2fc745d3f82203
Author: davidjumani <dj...@gmail.com>
AuthorDate: Wed May 18 12:37:26 2022 +0530

    Fix wrong label for listdomainchildren
---
 cloudstack/DomainService.go | 2 +-
 generate/generate.go        | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/cloudstack/DomainService.go b/cloudstack/DomainService.go
index 24a4342..45d17b6 100644
--- a/cloudstack/DomainService.go
+++ b/cloudstack/DomainService.go
@@ -576,7 +576,7 @@ func (s *DomainService) ListDomainChildren(p *ListDomainChildrenParams) (*ListDo
 
 type ListDomainChildrenResponse struct {
 	Count          int               `json:"count"`
-	DomainChildren []*DomainChildren `json:"domainchildren"`
+	DomainChildren []*DomainChildren `json:"domain"`
 }
 
 type DomainChildren struct {
diff --git a/generate/generate.go b/generate/generate.go
index bdb95a3..a41fe86 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -1749,6 +1749,9 @@ func (s *service) generateResponseType(a *API) {
 		case "registerTemplate":
 			pn("	Count int `json:\"count\"`")
 			pn("	%s []*%s `json:\"%s\"`", ln, parseSingular(ln), "template")
+		case "listDomainChildren":
+			pn("	Count int `json:\"count\"`")
+			pn("	%s []*%s `json:\"%s\"`", ln, parseSingular(ln), "domain")
 		default:
 			pn("	Count int `json:\"count\"`")
 			pn("	%s []*%s `json:\"%s\"`", ln, parseSingular(ln), strings.ToLower(parseSingular(ln)))