Skip to content

Commit ec462f4

Browse files
author
Pearl Dsilva
committed
Add support for 4.22.1.0 release
1 parent 358fe85 commit ec462f4

52 files changed

Lines changed: 85794 additions & 85353 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cloudstack/APIDiscoveryService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (s *APIDiscoveryService) NewListApisParams() *ListApisParams {
7373
return p
7474
}
7575

76-
// lists all available apis on the server, provided by the Api Discovery plugin
76+
// Lists all available APIs on the server, provided by the API Discovery plugin
7777
func (s *APIDiscoveryService) ListApis(p *ListApisParams) (*ListApisResponse, error) {
7878
resp, err := s.cs.newRequest("listApis", p.toURLValues())
7979
if err != nil {

cloudstack/AccountService.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ func (s *AccountService) NewDeleteAccountParams(id string) *DeleteAccountParams
594594
return p
595595
}
596596

597-
// Deletes a account, and all users associated with this account
597+
// Deletes an Account and all Users associated with this Account
598598
func (s *AccountService) DeleteAccount(p *DeleteAccountParams) (*DeleteAccountResponse, error) {
599599
resp, err := s.cs.newPostRequest("deleteAccount", p.toURLValues())
600600
if err != nil {
@@ -1367,7 +1367,7 @@ func (s *AccountService) NewLinkAccountToLdapParams(account string, domainid str
13671367
return p
13681368
}
13691369

1370-
// link a cloudstack account to a group or OU in ldap
1370+
// Link a cloudstack account to a group or OU in ldap
13711371
func (s *AccountService) LinkAccountToLdap(p *LinkAccountToLdapParams) (*LinkAccountToLdapResponse, error) {
13721372
resp, err := s.cs.newPostRequest("linkAccountToLdap", p.toURLValues())
13731373
if err != nil {
@@ -1864,7 +1864,7 @@ func (s *AccountService) GetAccountByID(id string, opts ...OptionFunc) (*Account
18641864
return nil, l.Count, fmt.Errorf("There is more then one result for Account UUID: %s!", id)
18651865
}
18661866

1867-
// Lists accounts and provides detailed account information for listed accounts
1867+
// Lists Accounts and provides detailed Account information for listed Accounts
18681868
func (s *AccountService) ListAccounts(p *ListAccountsParams) (*ListAccountsResponse, error) {
18691869
resp, err := s.cs.newRequest("listAccounts", p.toURLValues())
18701870
if err != nil {
@@ -2245,7 +2245,7 @@ func (s *AccountService) GetProjectAccountID(keyword string, projectid string, o
22452245
return "", l.Count, fmt.Errorf("Could not find an exact match for %s: %+v", keyword, l)
22462246
}
22472247

2248-
// Lists project's accounts
2248+
// Lists project's Accounts
22492249
func (s *AccountService) ListProjectAccounts(p *ListProjectAccountsParams) (*ListProjectAccountsResponse, error) {
22502250
resp, err := s.cs.newRequest("listProjectAccounts", p.toURLValues())
22512251
if err != nil {
@@ -2416,7 +2416,7 @@ func (s *AccountService) NewLockAccountParams(account string, domainid string) *
24162416
return p
24172417
}
24182418

2419-
// This deprecated function used to locks an account. Look for the API DisableAccount instead
2419+
// This deprecated function used to lock an Account. Look for the API DisableAccount instead
24202420
func (s *AccountService) LockAccount(p *LockAccountParams) (*LockAccountResponse, error) {
24212421
resp, err := s.cs.newPostRequest("lockAccount", p.toURLValues())
24222422
if err != nil {
@@ -2994,7 +2994,7 @@ func (s *AccountService) NewUpdateAccountParams() *UpdateAccountParams {
29942994
return p
29952995
}
29962996

2997-
// Updates account information for the authenticated user
2997+
// Updates Account information for the authenticated user
29982998
func (s *AccountService) UpdateAccount(p *UpdateAccountParams) (*UpdateAccountResponse, error) {
29992999
resp, err := s.cs.newPostRequest("updateAccount", p.toURLValues())
30003000
if err != nil {

cloudstack/AddressService.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ func (s *AddressService) NewAssociateIpAddressParams() *AssociateIpAddressParams
406406
return p
407407
}
408408

409-
// Acquires and associates a public IP to an account.
409+
// Acquires and associates a public IP to an Account.
410410
func (s *AddressService) AssociateIpAddress(p *AssociateIpAddressParams) (*AssociateIpAddressResponse, error) {
411411
resp, err := s.cs.newPostRequest("associateIpAddress", p.toURLValues())
412412
if err != nil {
@@ -553,7 +553,7 @@ func (s *AddressService) NewDisassociateIpAddressParams(id string) *Disassociate
553553
return p
554554
}
555555

556-
// Disassociates an IP address from the account.
556+
// Disassociates an IP address from the Account.
557557
func (s *AddressService) DisassociateIpAddress(p *DisassociateIpAddressParams) (*DisassociateIpAddressResponse, error) {
558558
resp, err := s.cs.newPostRequest("disassociateIpAddress", p.toURLValues())
559559
if err != nil {
@@ -1308,7 +1308,7 @@ func (s *AddressService) GetPublicIpAddressByID(id string, opts ...OptionFunc) (
13081308
return nil, l.Count, fmt.Errorf("There is more then one result for PublicIpAddress UUID: %s!", id)
13091309
}
13101310

1311-
// Lists all public ip addresses
1311+
// Lists all public IP addresses
13121312
func (s *AddressService) ListPublicIpAddresses(p *ListPublicIpAddressesParams) (*ListPublicIpAddressesResponse, error) {
13131313
resp, err := s.cs.newRequest("listPublicIpAddresses", p.toURLValues())
13141314
if err != nil {
@@ -1588,7 +1588,7 @@ func (s *AddressService) NewReleaseIpAddressParams(id string) *ReleaseIpAddressP
15881588
return p
15891589
}
15901590

1591-
// Releases an IP address from the account.
1591+
// Releases an IP address from the Account.
15921592
func (s *AddressService) ReleaseIpAddress(p *ReleaseIpAddressParams) (*ReleaseIpAddressResponse, error) {
15931593
resp, err := s.cs.newPostRequest("releaseIpAddress", p.toURLValues())
15941594
if err != nil {
@@ -1874,7 +1874,7 @@ func (s *AddressService) NewReserveIpAddressParams(id string) *ReserveIpAddressP
18741874
return p
18751875
}
18761876

1877-
// Reserve a public IP to an account.
1877+
// Reserve a public IP to an Account.
18781878
func (s *AddressService) ReserveIpAddress(p *ReserveIpAddressParams) (*ReserveIpAddressResponse, error) {
18791879
resp, err := s.cs.newPostRequest("reserveIpAddress", p.toURLValues())
18801880
if err != nil {

cloudstack/AffinityGroupService.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ func (s *AffinityGroupService) NewUpdateVMAffinityGroupParams(id string) *Update
10931093
return p
10941094
}
10951095

1096-
// Updates the affinity/anti-affinity group associations of a virtual machine. The VM has to be stopped and restarted for the new properties to take effect.
1096+
// Updates the affinity/anti-affinity group associations of an Instance. The Instance has to be stopped and restarted for the new properties to take effect.
10971097
func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupParams) (*UpdateVMAffinityGroupResponse, error) {
10981098
resp, err := s.cs.newPostRequest("updateVMAffinityGroup", p.toURLValues())
10991099
if err != nil {
@@ -1131,6 +1131,7 @@ func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupPar
11311131
type UpdateVMAffinityGroupResponse struct {
11321132
Account string `json:"account"`
11331133
Affinitygroup []UpdateVMAffinityGroupResponseAffinitygroup `json:"affinitygroup"`
1134+
Alloweddetails string `json:"alloweddetails"`
11341135
Arch string `json:"arch"`
11351136
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
11361137
Autoscalevmgroupname string `json:"autoscalevmgroupname"`

cloudstack/AnnotationService.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (s *AnnotationService) NewAddAnnotationParams() *AddAnnotationParams {
156156
return p
157157
}
158158

159-
// add an annotation.
159+
// Add an annotation.
160160
func (s *AnnotationService) AddAnnotation(p *AddAnnotationParams) (*AddAnnotationResponse, error) {
161161
resp, err := s.cs.newPostRequest("addAnnotation", p.toURLValues())
162162
if err != nil {
@@ -517,7 +517,7 @@ func (s *AnnotationService) NewRemoveAnnotationParams(id string) *RemoveAnnotati
517517
return p
518518
}
519519

520-
// remove an annotation.
520+
// Remove an annotation.
521521
func (s *AnnotationService) RemoveAnnotation(p *RemoveAnnotationParams) (*RemoveAnnotationResponse, error) {
522522
resp, err := s.cs.newPostRequest("removeAnnotation", p.toURLValues())
523523
if err != nil {
@@ -622,7 +622,7 @@ func (s *AnnotationService) NewUpdateAnnotationVisibilityParams(adminsonly bool,
622622
return p
623623
}
624624

625-
// update an annotation visibility.
625+
// Update an annotation visibility.
626626
func (s *AnnotationService) UpdateAnnotationVisibility(p *UpdateAnnotationVisibilityParams) (*UpdateAnnotationVisibilityResponse, error) {
627627
resp, err := s.cs.newPostRequest("updateAnnotationVisibility", p.toURLValues())
628628
if err != nil {

cloudstack/AsyncjobService.go

Lines changed: 97 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ func (p *ListAsyncJobsParams) toURLValues() url.Values {
7070
vv := strconv.Itoa(v.(int))
7171
u.Set("pagesize", vv)
7272
}
73+
if v, found := p.p["resourceid"]; found {
74+
u.Set("resourceid", v.(string))
75+
}
76+
if v, found := p.p["resourcetype"]; found {
77+
u.Set("resourcetype", v.(string))
78+
}
7379
if v, found := p.p["startdate"]; found {
7480
u.Set("startdate", v.(string))
7581
}
@@ -244,6 +250,48 @@ func (p *ListAsyncJobsParams) GetPagesize() (int, bool) {
244250
return value, ok
245251
}
246252

253+
func (p *ListAsyncJobsParams) SetResourceid(v string) {
254+
if p.p == nil {
255+
p.p = make(map[string]interface{})
256+
}
257+
p.p["resourceid"] = v
258+
}
259+
260+
func (p *ListAsyncJobsParams) ResetResourceid() {
261+
if p.p != nil && p.p["resourceid"] != nil {
262+
delete(p.p, "resourceid")
263+
}
264+
}
265+
266+
func (p *ListAsyncJobsParams) GetResourceid() (string, bool) {
267+
if p.p == nil {
268+
p.p = make(map[string]interface{})
269+
}
270+
value, ok := p.p["resourceid"].(string)
271+
return value, ok
272+
}
273+
274+
func (p *ListAsyncJobsParams) SetResourcetype(v string) {
275+
if p.p == nil {
276+
p.p = make(map[string]interface{})
277+
}
278+
p.p["resourcetype"] = v
279+
}
280+
281+
func (p *ListAsyncJobsParams) ResetResourcetype() {
282+
if p.p != nil && p.p["resourcetype"] != nil {
283+
delete(p.p, "resourcetype")
284+
}
285+
}
286+
287+
func (p *ListAsyncJobsParams) GetResourcetype() (string, bool) {
288+
if p.p == nil {
289+
p.p = make(map[string]interface{})
290+
}
291+
value, ok := p.p["resourcetype"].(string)
292+
return value, ok
293+
}
294+
247295
func (p *ListAsyncJobsParams) SetStartdate(v string) {
248296
if p.p == nil {
249297
p.p = make(map[string]interface{})
@@ -273,7 +321,7 @@ func (s *AsyncjobService) NewListAsyncJobsParams() *ListAsyncJobsParams {
273321
return p
274322
}
275323

276-
// Lists all pending asynchronous jobs for the account.
324+
// Lists all pending asynchronous jobs for the Account.
277325
func (s *AsyncjobService) ListAsyncJobs(p *ListAsyncJobsParams) (*ListAsyncJobsResponse, error) {
278326
resp, err := s.cs.newRequest("listAsyncJobs", p.toURLValues())
279327
if err != nil {
@@ -326,6 +374,12 @@ func (p *QueryAsyncJobResultParams) toURLValues() url.Values {
326374
if v, found := p.p["jobid"]; found {
327375
u.Set("jobid", v.(string))
328376
}
377+
if v, found := p.p["resourceid"]; found {
378+
u.Set("resourceid", v.(string))
379+
}
380+
if v, found := p.p["resourcetype"]; found {
381+
u.Set("resourcetype", v.(string))
382+
}
329383
return u
330384
}
331385

@@ -350,6 +404,48 @@ func (p *QueryAsyncJobResultParams) GetJobID() (string, bool) {
350404
return value, ok
351405
}
352406

407+
func (p *QueryAsyncJobResultParams) SetResourceid(v string) {
408+
if p.p == nil {
409+
p.p = make(map[string]interface{})
410+
}
411+
p.p["resourceid"] = v
412+
}
413+
414+
func (p *QueryAsyncJobResultParams) ResetResourceid() {
415+
if p.p != nil && p.p["resourceid"] != nil {
416+
delete(p.p, "resourceid")
417+
}
418+
}
419+
420+
func (p *QueryAsyncJobResultParams) GetResourceid() (string, bool) {
421+
if p.p == nil {
422+
p.p = make(map[string]interface{})
423+
}
424+
value, ok := p.p["resourceid"].(string)
425+
return value, ok
426+
}
427+
428+
func (p *QueryAsyncJobResultParams) SetResourcetype(v string) {
429+
if p.p == nil {
430+
p.p = make(map[string]interface{})
431+
}
432+
p.p["resourcetype"] = v
433+
}
434+
435+
func (p *QueryAsyncJobResultParams) ResetResourcetype() {
436+
if p.p != nil && p.p["resourcetype"] != nil {
437+
delete(p.p, "resourcetype")
438+
}
439+
}
440+
441+
func (p *QueryAsyncJobResultParams) GetResourcetype() (string, bool) {
442+
if p.p == nil {
443+
p.p = make(map[string]interface{})
444+
}
445+
value, ok := p.p["resourcetype"].(string)
446+
return value, ok
447+
}
448+
353449
// You should always use this function to get a new QueryAsyncJobResultParams instance,
354450
// as then you are sure you have configured all required params
355451
func (s *AsyncjobService) NewQueryAsyncJobResultParams(jobid string) *QueryAsyncJobResultParams {

0 commit comments

Comments
 (0)