DaanHoogland commented on code in PR #90:
URL: https://github.com/apache/cloudstack-go/pull/90#discussion_r1883710327


##########
generate/generate.go:
##########
@@ -1865,6 +1865,20 @@ func (s *service) generateResponseType(a *API) {
        tn := capitalize(strings.TrimPrefix(a.Name, "configure") + "Response")
 
        // add custom response types for some specific API calls
+       if a.Name == "quotaBalance" {
+               pn("type QuotaBalanceResponse struct {")
+               pn("    Statement QuotaBalanceResponseType `json:\"balance\"`")
+               pn("}")
+               pn("")
+               pn("type QuotaBalanceResponseType struct {")
+               pn("    StartQuota float64  `json:\"startquota\"`")
+               pn("    Credits    []string `json:\"credits\"`")
+               pn("    StartDate  string   `json:\"startdate\"`")
+               pn("    Currency   string   `json:\"currency\"`")
+               pn("}")

Review Comment:
   @Pearl1594 is this resolved?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to