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 e5d68a1469c0de0275451681591e4596ccf7fc8b
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 0c4eb44..e3490c5 100644
--- a/cloudstack/QuotaService.go
+++ b/cloudstack/QuotaService.go
@@ -1030,7 +1030,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 1ad51e4..de8554c 100644
--- a/generate/generate.go
+++ b/generate/generate.go
@@ -70,6 +70,7 @@ var requiresPostMethod = map[string]bool{
        "registerUserData":                 true,
        "setupUserTwoFactorAuthentication": true,
        "validateUserTwoFactorAuthenticationCode": true,
+       "quotaTariffCreate":                       true,
 }
 
 var mapRequireList = map[string]map[string]bool{

Reply via email to