Skip to content

Commit 16260d4

Browse files
Merge pull request #112 from apache/update-sdk-4.20.1
Updated SDK with 4.20.1 APIs
2 parents e218751 + 3dba7ac commit 16260d4

32 files changed

+76232
-72550
lines changed

cloudstack/AccountService.go

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type AccountServiceIface interface {
3737
EnableAccount(p *EnableAccountParams) (*EnableAccountResponse, error)
3838
NewEnableAccountParams() *EnableAccountParams
3939
IsAccountAllowedToCreateOfferingsWithTags(p *IsAccountAllowedToCreateOfferingsWithTagsParams) (*IsAccountAllowedToCreateOfferingsWithTagsResponse, error)
40-
NewIsAccountAllowedToCreateOfferingsWithTagsParams() *IsAccountAllowedToCreateOfferingsWithTagsParams
40+
NewIsAccountAllowedToCreateOfferingsWithTagsParams(id string) *IsAccountAllowedToCreateOfferingsWithTagsParams
4141
LinkAccountToLdap(p *LinkAccountToLdapParams) (*LinkAccountToLdapResponse, error)
4242
NewLinkAccountToLdapParams(account string, domainid string, ldapdomain string) *LinkAccountToLdapParams
4343
ListAccounts(p *ListAccountsParams) (*ListAccountsResponse, error)
@@ -443,6 +443,7 @@ func (s *AccountService) CreateAccount(p *CreateAccountParams) (*CreateAccountRe
443443
type CreateAccountResponse struct {
444444
Accountdetails map[string]string `json:"accountdetails"`
445445
Accounttype int `json:"accounttype"`
446+
Apikeyaccess string `json:"apikeyaccess"`
446447
Cpuavailable string `json:"cpuavailable"`
447448
Cpulimit string `json:"cpulimit"`
448449
Cputotal int64 `json:"cputotal"`
@@ -510,6 +511,7 @@ type CreateAccountResponseUser struct {
510511
Accountid string `json:"accountid"`
511512
Accounttype int `json:"accounttype"`
512513
Apikey string `json:"apikey"`
514+
Apikeyaccess string `json:"apikeyaccess"`
513515
Created string `json:"created"`
514516
Domain string `json:"domain"`
515517
Domainid string `json:"domainid"`
@@ -770,6 +772,7 @@ func (s *AccountService) DisableAccount(p *DisableAccountParams) (*DisableAccoun
770772
type DisableAccountResponse struct {
771773
Accountdetails map[string]string `json:"accountdetails"`
772774
Accounttype int `json:"accounttype"`
775+
Apikeyaccess string `json:"apikeyaccess"`
773776
Cpuavailable string `json:"cpuavailable"`
774777
Cpulimit string `json:"cpulimit"`
775778
Cputotal int64 `json:"cputotal"`
@@ -837,6 +840,7 @@ type DisableAccountResponseUser struct {
837840
Accountid string `json:"accountid"`
838841
Accounttype int `json:"accounttype"`
839842
Apikey string `json:"apikey"`
843+
Apikeyaccess string `json:"apikeyaccess"`
840844
Created string `json:"created"`
841845
Domain string `json:"domain"`
842846
Domainid string `json:"domainid"`
@@ -969,6 +973,7 @@ func (s *AccountService) EnableAccount(p *EnableAccountParams) (*EnableAccountRe
969973
type EnableAccountResponse struct {
970974
Accountdetails map[string]string `json:"accountdetails"`
971975
Accounttype int `json:"accounttype"`
976+
Apikeyaccess string `json:"apikeyaccess"`
972977
Cpuavailable string `json:"cpuavailable"`
973978
Cpulimit string `json:"cpulimit"`
974979
Cputotal int64 `json:"cputotal"`
@@ -1036,6 +1041,7 @@ type EnableAccountResponseUser struct {
10361041
Accountid string `json:"accountid"`
10371042
Accounttype int `json:"accounttype"`
10381043
Apikey string `json:"apikey"`
1044+
Apikeyaccess string `json:"apikeyaccess"`
10391045
Created string `json:"created"`
10401046
Domain string `json:"domain"`
10411047
Domainid string `json:"domainid"`
@@ -1096,9 +1102,10 @@ func (p *IsAccountAllowedToCreateOfferingsWithTagsParams) GetId() (string, bool)
10961102

10971103
// You should always use this function to get a new IsAccountAllowedToCreateOfferingsWithTagsParams instance,
10981104
// as then you are sure you have configured all required params
1099-
func (s *AccountService) NewIsAccountAllowedToCreateOfferingsWithTagsParams() *IsAccountAllowedToCreateOfferingsWithTagsParams {
1105+
func (s *AccountService) NewIsAccountAllowedToCreateOfferingsWithTagsParams(id string) *IsAccountAllowedToCreateOfferingsWithTagsParams {
11001106
p := &IsAccountAllowedToCreateOfferingsWithTagsParams{}
11011107
p.p = make(map[string]interface{})
1108+
p.p["id"] = id
11021109
return p
11031110
}
11041111

@@ -1354,6 +1361,9 @@ func (p *ListAccountsParams) toURLValues() url.Values {
13541361
vv := strconv.Itoa(v.(int))
13551362
u.Set("accounttype", vv)
13561363
}
1364+
if v, found := p.p["apikeyaccess"]; found {
1365+
u.Set("apikeyaccess", v.(string))
1366+
}
13571367
if v, found := p.p["details"]; found {
13581368
vv := strings.Join(v.([]string), ",")
13591369
u.Set("details", vv)
@@ -1424,6 +1434,27 @@ func (p *ListAccountsParams) GetAccounttype() (int, bool) {
14241434
return value, ok
14251435
}
14261436

1437+
func (p *ListAccountsParams) SetApikeyaccess(v string) {
1438+
if p.p == nil {
1439+
p.p = make(map[string]interface{})
1440+
}
1441+
p.p["apikeyaccess"] = v
1442+
}
1443+
1444+
func (p *ListAccountsParams) ResetApikeyaccess() {
1445+
if p.p != nil && p.p["apikeyaccess"] != nil {
1446+
delete(p.p, "apikeyaccess")
1447+
}
1448+
}
1449+
1450+
func (p *ListAccountsParams) GetApikeyaccess() (string, bool) {
1451+
if p.p == nil {
1452+
p.p = make(map[string]interface{})
1453+
}
1454+
value, ok := p.p["apikeyaccess"].(string)
1455+
return value, ok
1456+
}
1457+
14271458
func (p *ListAccountsParams) SetDetails(v []string) {
14281459
if p.p == nil {
14291460
p.p = make(map[string]interface{})
@@ -1811,6 +1842,7 @@ type ListAccountsResponse struct {
18111842
type Account struct {
18121843
Accountdetails map[string]string `json:"accountdetails"`
18131844
Accounttype int `json:"accounttype"`
1845+
Apikeyaccess string `json:"apikeyaccess"`
18141846
Cpuavailable string `json:"cpuavailable"`
18151847
Cpulimit string `json:"cpulimit"`
18161848
Cputotal int64 `json:"cputotal"`
@@ -1878,6 +1910,7 @@ type AccountUser struct {
18781910
Accountid string `json:"accountid"`
18791911
Accounttype int `json:"accounttype"`
18801912
Apikey string `json:"apikey"`
1913+
Apikeyaccess string `json:"apikeyaccess"`
18811914
Created string `json:"created"`
18821915
Domain string `json:"domain"`
18831916
Domainid string `json:"domainid"`
@@ -2326,6 +2359,7 @@ func (s *AccountService) LockAccount(p *LockAccountParams) (*LockAccountResponse
23262359
type LockAccountResponse struct {
23272360
Accountdetails map[string]string `json:"accountdetails"`
23282361
Accounttype int `json:"accounttype"`
2362+
Apikeyaccess string `json:"apikeyaccess"`
23292363
Cpuavailable string `json:"cpuavailable"`
23302364
Cpulimit string `json:"cpulimit"`
23312365
Cputotal int64 `json:"cputotal"`
@@ -2393,6 +2427,7 @@ type LockAccountResponseUser struct {
23932427
Accountid string `json:"accountid"`
23942428
Accounttype int `json:"accounttype"`
23952429
Apikey string `json:"apikey"`
2430+
Apikeyaccess string `json:"apikeyaccess"`
23962431
Created string `json:"created"`
23972432
Domain string `json:"domain"`
23982433
Domainid string `json:"domainid"`
@@ -2548,6 +2583,7 @@ func (s *AccountService) MarkDefaultZoneForAccount(p *MarkDefaultZoneForAccountP
25482583
type MarkDefaultZoneForAccountResponse struct {
25492584
Accountdetails map[string]string `json:"accountdetails"`
25502585
Accounttype int `json:"accounttype"`
2586+
Apikeyaccess string `json:"apikeyaccess"`
25512587
Cpuavailable string `json:"cpuavailable"`
25522588
Cpulimit string `json:"cpulimit"`
25532589
Cputotal int64 `json:"cputotal"`
@@ -2615,6 +2651,7 @@ type MarkDefaultZoneForAccountResponseUser struct {
26152651
Accountid string `json:"accountid"`
26162652
Accounttype int `json:"accounttype"`
26172653
Apikey string `json:"apikey"`
2654+
Apikeyaccess string `json:"apikeyaccess"`
26182655
Created string `json:"created"`
26192656
Domain string `json:"domain"`
26202657
Domainid string `json:"domainid"`
@@ -2655,6 +2692,9 @@ func (p *UpdateAccountParams) toURLValues() url.Values {
26552692
u.Set(fmt.Sprintf("accountdetails[0].%s", k), m[k])
26562693
}
26572694
}
2695+
if v, found := p.p["apikeyaccess"]; found {
2696+
u.Set("apikeyaccess", v.(string))
2697+
}
26582698
if v, found := p.p["domainid"]; found {
26592699
u.Set("domainid", v.(string))
26602700
}
@@ -2715,6 +2755,27 @@ func (p *UpdateAccountParams) GetAccountdetails() (map[string]string, bool) {
27152755
return value, ok
27162756
}
27172757

2758+
func (p *UpdateAccountParams) SetApikeyaccess(v string) {
2759+
if p.p == nil {
2760+
p.p = make(map[string]interface{})
2761+
}
2762+
p.p["apikeyaccess"] = v
2763+
}
2764+
2765+
func (p *UpdateAccountParams) ResetApikeyaccess() {
2766+
if p.p != nil && p.p["apikeyaccess"] != nil {
2767+
delete(p.p, "apikeyaccess")
2768+
}
2769+
}
2770+
2771+
func (p *UpdateAccountParams) GetApikeyaccess() (string, bool) {
2772+
if p.p == nil {
2773+
p.p = make(map[string]interface{})
2774+
}
2775+
value, ok := p.p["apikeyaccess"].(string)
2776+
return value, ok
2777+
}
2778+
27182779
func (p *UpdateAccountParams) SetDomainid(v string) {
27192780
if p.p == nil {
27202781
p.p = make(map[string]interface{})
@@ -2846,6 +2907,7 @@ func (s *AccountService) UpdateAccount(p *UpdateAccountParams) (*UpdateAccountRe
28462907
type UpdateAccountResponse struct {
28472908
Accountdetails map[string]string `json:"accountdetails"`
28482909
Accounttype int `json:"accounttype"`
2910+
Apikeyaccess string `json:"apikeyaccess"`
28492911
Cpuavailable string `json:"cpuavailable"`
28502912
Cpulimit string `json:"cpulimit"`
28512913
Cputotal int64 `json:"cputotal"`
@@ -2913,6 +2975,7 @@ type UpdateAccountResponseUser struct {
29132975
Accountid string `json:"accountid"`
29142976
Accounttype int `json:"accounttype"`
29152977
Apikey string `json:"apikey"`
2978+
Apikeyaccess string `json:"apikeyaccess"`
29162979
Created string `json:"created"`
29172980
Domain string `json:"domain"`
29182981
Domainid string `json:"domainid"`

cloudstack/AccountService_mock.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cloudstack/AffinityGroupService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
Arch string `json:"arch"`
11341135
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
11351136
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
11361137
Backupofferingid string `json:"backupofferingid"`

cloudstack/BrocadeVCSService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ type BrocadeVcsDeviceNetwork struct {
526526
Sentbytes int64 `json:"sentbytes"`
527527
Service []BrocadeVcsDeviceNetworkService `json:"service"`
528528
Specifyipranges bool `json:"specifyipranges"`
529+
Specifyvlan bool `json:"specifyvlan"`
529530
State string `json:"state"`
530531
Strechedl2subnet bool `json:"strechedl2subnet"`
531532
Subdomainaccess bool `json:"subdomainaccess"`

cloudstack/ClusterService.go

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,9 @@ func (p *ListClustersParams) toURLValues() url.Values {
14461446
if v, found := p.p["allocationstate"]; found {
14471447
u.Set("allocationstate", v.(string))
14481448
}
1449+
if v, found := p.p["arch"]; found {
1450+
u.Set("arch", v.(string))
1451+
}
14491452
if v, found := p.p["clustertype"]; found {
14501453
u.Set("clustertype", v.(string))
14511454
}
@@ -1506,6 +1509,27 @@ func (p *ListClustersParams) GetAllocationstate() (string, bool) {
15061509
return value, ok
15071510
}
15081511

1512+
func (p *ListClustersParams) SetArch(v string) {
1513+
if p.p == nil {
1514+
p.p = make(map[string]interface{})
1515+
}
1516+
p.p["arch"] = v
1517+
}
1518+
1519+
func (p *ListClustersParams) ResetArch() {
1520+
if p.p != nil && p.p["arch"] != nil {
1521+
delete(p.p, "arch")
1522+
}
1523+
}
1524+
1525+
func (p *ListClustersParams) GetArch() (string, bool) {
1526+
if p.p == nil {
1527+
p.p = make(map[string]interface{})
1528+
}
1529+
value, ok := p.p["arch"].(string)
1530+
return value, ok
1531+
}
1532+
15091533
func (p *ListClustersParams) SetClustertype(v string) {
15101534
if p.p == nil {
15111535
p.p = make(map[string]interface{})
@@ -2104,6 +2128,9 @@ func (p *ListClustersMetricsParams) toURLValues() url.Values {
21042128
if v, found := p.p["allocationstate"]; found {
21052129
u.Set("allocationstate", v.(string))
21062130
}
2131+
if v, found := p.p["arch"]; found {
2132+
u.Set("arch", v.(string))
2133+
}
21072134
if v, found := p.p["clustertype"]; found {
21082135
u.Set("clustertype", v.(string))
21092136
}
@@ -2164,6 +2191,27 @@ func (p *ListClustersMetricsParams) GetAllocationstate() (string, bool) {
21642191
return value, ok
21652192
}
21662193

2194+
func (p *ListClustersMetricsParams) SetArch(v string) {
2195+
if p.p == nil {
2196+
p.p = make(map[string]interface{})
2197+
}
2198+
p.p["arch"] = v
2199+
}
2200+
2201+
func (p *ListClustersMetricsParams) ResetArch() {
2202+
if p.p != nil && p.p["arch"] != nil {
2203+
delete(p.p, "arch")
2204+
}
2205+
}
2206+
2207+
func (p *ListClustersMetricsParams) GetArch() (string, bool) {
2208+
if p.p == nil {
2209+
p.p = make(map[string]interface{})
2210+
}
2211+
value, ok := p.p["arch"].(string)
2212+
return value, ok
2213+
}
2214+
21672215
func (p *ListClustersMetricsParams) SetClustertype(v string) {
21682216
if p.p == nil {
21692217
p.p = make(map[string]interface{})

cloudstack/ConfigurationService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,6 +1351,7 @@ type UpdateStorageCapabilitiesResponse struct {
13511351
Suitableformigration bool `json:"suitableformigration"`
13521352
Tags string `json:"tags"`
13531353
Type string `json:"type"`
1354+
Usediops int64 `json:"usediops"`
13541355
Zoneid string `json:"zoneid"`
13551356
Zonename string `json:"zonename"`
13561357
}

cloudstack/FirewallService.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4436,6 +4436,10 @@ func (p *UpdatePortForwardingRuleParams) toURLValues() url.Values {
44364436
if p.p == nil {
44374437
return u
44384438
}
4439+
if v, found := p.p["cidrlist"]; found {
4440+
vv := strings.Join(v.([]string), ",")
4441+
u.Set("cidrlist", vv)
4442+
}
44394443
if v, found := p.p["customid"]; found {
44404444
u.Set("customid", v.(string))
44414445
}
@@ -4463,6 +4467,27 @@ func (p *UpdatePortForwardingRuleParams) toURLValues() url.Values {
44634467
return u
44644468
}
44654469

4470+
func (p *UpdatePortForwardingRuleParams) SetCidrlist(v []string) {
4471+
if p.p == nil {
4472+
p.p = make(map[string]interface{})
4473+
}
4474+
p.p["cidrlist"] = v
4475+
}
4476+
4477+
func (p *UpdatePortForwardingRuleParams) ResetCidrlist() {
4478+
if p.p != nil && p.p["cidrlist"] != nil {
4479+
delete(p.p, "cidrlist")
4480+
}
4481+
}
4482+
4483+
func (p *UpdatePortForwardingRuleParams) GetCidrlist() ([]string, bool) {
4484+
if p.p == nil {
4485+
p.p = make(map[string]interface{})
4486+
}
4487+
value, ok := p.p["cidrlist"].([]string)
4488+
return value, ok
4489+
}
4490+
44664491
func (p *UpdatePortForwardingRuleParams) SetCustomid(v string) {
44674492
if p.p == nil {
44684493
p.p = make(map[string]interface{})

0 commit comments

Comments
 (0)