quotas.go 361 B

12345678910111213141516171819
  1. package bingocloud
  2. type SQuotas struct {
  3. OwnerId string
  4. Resource string
  5. ResourceEn string
  6. ResourceZh string
  7. HardLimit int
  8. InUse int
  9. }
  10. func (self *SRegion) GetQuotas() ([]SQuotas, error) {
  11. resp, err := self.invoke("DescribeQuotas", nil)
  12. if err != nil {
  13. return nil, err
  14. }
  15. var ret []SQuotas
  16. return ret, resp.Unmarshal(&ret, "quotaSet")
  17. }