This is an automated email from the ASF dual-hosted git repository. dahn pushed a commit to branch pr90 in repository https://gitbox.apache.org/repos/asf/cloudstack-go.git
commit 6ce3878d2728d80c6622640e051cb6648bb255cc Author: tonymmm1 <[email protected]> AuthorDate: Sat Jul 27 13:13:19 2024 -0500 ensure that quotaTariffCreate uses POST --- cloudstack/QuotaService.go | 2 +- generate/generate.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudstack/QuotaService.go b/cloudstack/QuotaService.go index 9abf7d6..bb3959c 100644 --- a/cloudstack/QuotaService.go +++ b/cloudstack/QuotaService.go @@ -1017,7 +1017,7 @@ func (s *QuotaService) NewQuotaTariffCreateParams(name string, usagetype int, va // Creates a quota tariff for a resource. func (s *QuotaService) QuotaTariffCreate(p *QuotaTariffCreateParams) (*QuotaTariffCreateResponse, error) { - resp, err := s.cs.newRequest("quotaTariffCreate", p.toURLValues()) + resp, err := s.cs.newPostRequest("quotaTariffCreate", p.toURLValues()) if err != nil { return nil, err } diff --git a/generate/generate.go b/generate/generate.go index 01a0b92..ba93c8c 100644 --- a/generate/generate.go +++ b/generate/generate.go @@ -71,6 +71,7 @@ var requiresPostMethod = map[string]bool{ "registerUserData": true, "setupUserTwoFactorAuthentication": true, "validateUserTwoFactorAuthenticationCode": true, + "quotaTariffCreate": true, } var mapRequireList = map[string]map[string]bool{
