Skip to content

Commit bfde559

Browse files
author
Kevin Li
committed
Reverting some commands back to GET requests
1 parent 58c02d1 commit bfde559

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

cloudstack/AccountService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ func (s *AccountService) NewIsAccountAllowedToCreateOfferingsWithTagsParams() *I
11041104

11051105
// Return true if the specified account is allowed to create offerings with tags.
11061106
func (s *AccountService) IsAccountAllowedToCreateOfferingsWithTags(p *IsAccountAllowedToCreateOfferingsWithTagsParams) (*IsAccountAllowedToCreateOfferingsWithTagsResponse, error) {
1107-
resp, err := s.cs.newPostRequest("isAccountAllowedToCreateOfferingsWithTags", p.toURLValues())
1107+
resp, err := s.cs.newRequest("isAccountAllowedToCreateOfferingsWithTags", p.toURLValues())
11081108
if err != nil {
11091109
return nil, err
11101110
}

cloudstack/CloudianService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (s *CloudianService) NewCloudianIsEnabledParams() *CloudianIsEnabledParams
5151

5252
// Checks if the Cloudian Connector is enabled
5353
func (s *CloudianService) CloudianIsEnabled(p *CloudianIsEnabledParams) (*CloudianIsEnabledResponse, error) {
54-
resp, err := s.cs.newPostRequest("cloudianIsEnabled", p.toURLValues())
54+
resp, err := s.cs.newRequest("cloudianIsEnabled", p.toURLValues())
5555
if err != nil {
5656
return nil, err
5757
}

cloudstack/ManagementService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ func (s *ManagementService) NewReadyForShutdownParams() *ReadyForShutdownParams
804804

805805
// Returns the status of CloudStack, whether a shutdown has been triggered and if ready to shutdown
806806
func (s *ManagementService) ReadyForShutdown(p *ReadyForShutdownParams) (*ReadyForShutdownResponse, error) {
807-
resp, err := s.cs.newPostRequest("readyForShutdown", p.toURLValues())
807+
resp, err := s.cs.newRequest("readyForShutdown", p.toURLValues())
808808
if err != nil {
809809
return nil, err
810810
}

cloudstack/QuotaService.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func (s *QuotaService) NewQuotaBalanceParams(account string, domainid string) *Q
192192

193193
// Create a quota balance statement
194194
func (s *QuotaService) QuotaBalance(p *QuotaBalanceParams) (*QuotaBalanceResponse, error) {
195-
resp, err := s.cs.newPostRequest("quotaBalance", p.toURLValues())
195+
resp, err := s.cs.newRequest("quotaBalance", p.toURLValues())
196196
if err != nil {
197197
return nil, err
198198
}
@@ -408,7 +408,7 @@ func (s *QuotaService) NewQuotaIsEnabledParams() *QuotaIsEnabledParams {
408408

409409
// Return true if the plugin is enabled
410410
func (s *QuotaService) QuotaIsEnabled(p *QuotaIsEnabledParams) (*QuotaIsEnabledResponse, error) {
411-
resp, err := s.cs.newPostRequest("quotaIsEnabled", p.toURLValues())
411+
resp, err := s.cs.newRequest("quotaIsEnabled", p.toURLValues())
412412
if err != nil {
413413
return nil, err
414414
}
@@ -598,7 +598,7 @@ func (s *QuotaService) NewQuotaStatementParams(account string, domainid string,
598598

599599
// Create a quota statement
600600
func (s *QuotaService) QuotaStatement(p *QuotaStatementParams) (*QuotaStatementResponse, error) {
601-
resp, err := s.cs.newPostRequest("quotaStatement", p.toURLValues())
601+
resp, err := s.cs.newRequest("quotaStatement", p.toURLValues())
602602
if err != nil {
603603
return nil, err
604604
}
@@ -801,7 +801,7 @@ func (s *QuotaService) NewQuotaSummaryParams() *QuotaSummaryParams {
801801

802802
// Lists balance and quota usage for all accounts
803803
func (s *QuotaService) QuotaSummary(p *QuotaSummaryParams) (*QuotaSummaryResponse, error) {
804-
resp, err := s.cs.newPostRequest("quotaSummary", p.toURLValues())
804+
resp, err := s.cs.newRequest("quotaSummary", p.toURLValues())
805805
if err != nil {
806806
return nil, err
807807
}
@@ -1449,7 +1449,7 @@ func (s *QuotaService) NewQuotaTariffListParams() *QuotaTariffListParams {
14491449

14501450
// Lists all quota tariff plans
14511451
func (s *QuotaService) QuotaTariffList(p *QuotaTariffListParams) (*QuotaTariffListResponse, error) {
1452-
resp, err := s.cs.newPostRequest("quotaTariffList", p.toURLValues())
1452+
resp, err := s.cs.newRequest("quotaTariffList", p.toURLValues())
14531453
if err != nil {
14541454
return nil, err
14551455
}

0 commit comments

Comments
 (0)