Skip to content

Commit 161e222

Browse files
Updated SDK with 4.22.0 APIs (#130)
1 parent ce26352 commit 161e222

26 files changed

+84413
-81414
lines changed

cloudstack/BackupService.go

Lines changed: 530 additions & 69 deletions
Large diffs are not rendered by default.

cloudstack/BackupService_mock.go

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

cloudstack/ConfigurationService.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ type ListCapabilitiesResponse struct {
9393
}
9494

9595
type Capability struct {
96+
Additionalconfigenabled bool `json:"additionalconfigenabled"`
9697
Allowusercreateprojects bool `json:"allowusercreateprojects"`
9798
Allowuserexpungerecovervm bool `json:"allowuserexpungerecovervm"`
9899
Allowuserexpungerecovervolume bool `json:"allowuserexpungerecovervolume"`
@@ -1336,6 +1337,7 @@ func (s *ConfigurationService) UpdateStorageCapabilities(p *UpdateStorageCapabil
13361337

13371338
type UpdateStorageCapabilitiesResponse struct {
13381339
Allocatediops int64 `json:"allocatediops"`
1340+
Capacitybytes int64 `json:"capacitybytes"`
13391341
Capacityiops int64 `json:"capacityiops"`
13401342
Clusterid string `json:"clusterid"`
13411343
Clustername string `json:"clustername"`

cloudstack/HostService.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4767,6 +4767,10 @@ func (p *UpdateHostParams) toURLValues() url.Values {
47674767
if v, found := p.p["annotation"]; found {
47684768
u.Set("annotation", v.(string))
47694769
}
4770+
if v, found := p.p["cleanupexternaldetails"]; found {
4771+
vv := strconv.FormatBool(v.(bool))
4772+
u.Set("cleanupexternaldetails", vv)
4773+
}
47704774
if v, found := p.p["externaldetails"]; found {
47714775
m := v.(map[string]string)
47724776
for i, k := range getSortedKeysFromMap(m) {
@@ -4839,6 +4843,27 @@ func (p *UpdateHostParams) GetAnnotation() (string, bool) {
48394843
return value, ok
48404844
}
48414845

4846+
func (p *UpdateHostParams) SetCleanupexternaldetails(v bool) {
4847+
if p.p == nil {
4848+
p.p = make(map[string]interface{})
4849+
}
4850+
p.p["cleanupexternaldetails"] = v
4851+
}
4852+
4853+
func (p *UpdateHostParams) ResetCleanupexternaldetails() {
4854+
if p.p != nil && p.p["cleanupexternaldetails"] != nil {
4855+
delete(p.p, "cleanupexternaldetails")
4856+
}
4857+
}
4858+
4859+
func (p *UpdateHostParams) GetCleanupexternaldetails() (bool, bool) {
4860+
if p.p == nil {
4861+
p.p = make(map[string]interface{})
4862+
}
4863+
value, ok := p.p["cleanupexternaldetails"].(bool)
4864+
return value, ok
4865+
}
4866+
48424867
func (p *UpdateHostParams) SetExternaldetails(v map[string]string) {
48434868
if p.p == nil {
48444869
p.p = make(map[string]interface{})

cloudstack/InternalLBService.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,7 @@ type InternalLoadBalancerVMHealthcheckresults struct {
11021102
Checktype string `json:"checktype"`
11031103
Details string `json:"details"`
11041104
Lastupdated string `json:"lastupdated"`
1105+
Status string `json:"status"`
11051106
Success bool `json:"success"`
11061107
}
11071108

@@ -1250,6 +1251,7 @@ type StartInternalLoadBalancerVMResponseHealthcheckresults struct {
12501251
Checktype string `json:"checktype"`
12511252
Details string `json:"details"`
12521253
Lastupdated string `json:"lastupdated"`
1254+
Status string `json:"status"`
12531255
Success bool `json:"success"`
12541256
}
12551257

@@ -1423,5 +1425,6 @@ type StopInternalLoadBalancerVMResponseHealthcheckresults struct {
14231425
Checktype string `json:"checktype"`
14241426
Details string `json:"details"`
14251427
Lastupdated string `json:"lastupdated"`
1428+
Status string `json:"status"`
14261429
Success bool `json:"success"`
14271430
}

cloudstack/KubernetesService.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,10 @@ func (p *CreateKubernetesClusterParams) toURLValues() url.Values {
397397
if v, found := p.p["domainid"]; found {
398398
u.Set("domainid", v.(string))
399399
}
400+
if v, found := p.p["enablecsi"]; found {
401+
vv := strconv.FormatBool(v.(bool))
402+
u.Set("enablecsi", vv)
403+
}
400404
if v, found := p.p["etcdnodes"]; found {
401405
vv := strconv.FormatInt(v.(int64), 10)
402406
u.Set("etcdnodes", vv)
@@ -688,6 +692,27 @@ func (p *CreateKubernetesClusterParams) GetDomainid() (string, bool) {
688692
return value, ok
689693
}
690694

695+
func (p *CreateKubernetesClusterParams) SetEnablecsi(v bool) {
696+
if p.p == nil {
697+
p.p = make(map[string]interface{})
698+
}
699+
p.p["enablecsi"] = v
700+
}
701+
702+
func (p *CreateKubernetesClusterParams) ResetEnablecsi() {
703+
if p.p != nil && p.p["enablecsi"] != nil {
704+
delete(p.p, "enablecsi")
705+
}
706+
}
707+
708+
func (p *CreateKubernetesClusterParams) GetEnablecsi() (bool, bool) {
709+
if p.p == nil {
710+
p.p = make(map[string]interface{})
711+
}
712+
value, ok := p.p["enablecsi"].(bool)
713+
return value, ok
714+
}
715+
691716
func (p *CreateKubernetesClusterParams) SetEtcdnodes(v int64) {
692717
if p.p == nil {
693718
p.p = make(map[string]interface{})
@@ -1065,6 +1090,7 @@ type CreateKubernetesClusterResponse struct {
10651090
Controlofferingname string `json:"controlofferingname"`
10661091
Cpunumber string `json:"cpunumber"`
10671092
Created string `json:"created"`
1093+
Csienabled bool `json:"csienabled"`
10681094
Description string `json:"description"`
10691095
Domain string `json:"domain"`
10701096
Domainid string `json:"domainid"`
@@ -1096,6 +1122,7 @@ type CreateKubernetesClusterResponse struct {
10961122
Size int64 `json:"size"`
10971123
State string `json:"state"`
10981124
Templateid string `json:"templateid"`
1125+
Templatename string `json:"templatename"`
10991126
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
11001127
Workerofferingid string `json:"workerofferingid"`
11011128
Workerofferingname string `json:"workerofferingname"`
@@ -1815,6 +1842,7 @@ type KubernetesCluster struct {
18151842
Controlofferingname string `json:"controlofferingname"`
18161843
Cpunumber string `json:"cpunumber"`
18171844
Created string `json:"created"`
1845+
Csienabled bool `json:"csienabled"`
18181846
Description string `json:"description"`
18191847
Domain string `json:"domain"`
18201848
Domainid string `json:"domainid"`
@@ -1846,6 +1874,7 @@ type KubernetesCluster struct {
18461874
Size int64 `json:"size"`
18471875
State string `json:"state"`
18481876
Templateid string `json:"templateid"`
1877+
Templatename string `json:"templatename"`
18491878
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
18501879
Workerofferingid string `json:"workerofferingid"`
18511880
Workerofferingname string `json:"workerofferingname"`
@@ -2461,6 +2490,7 @@ type ScaleKubernetesClusterResponse struct {
24612490
Controlofferingname string `json:"controlofferingname"`
24622491
Cpunumber string `json:"cpunumber"`
24632492
Created string `json:"created"`
2493+
Csienabled bool `json:"csienabled"`
24642494
Description string `json:"description"`
24652495
Domain string `json:"domain"`
24662496
Domainid string `json:"domainid"`
@@ -2492,6 +2522,7 @@ type ScaleKubernetesClusterResponse struct {
24922522
Size int64 `json:"size"`
24932523
State string `json:"state"`
24942524
Templateid string `json:"templateid"`
2525+
Templatename string `json:"templatename"`
24952526
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
24962527
Workerofferingid string `json:"workerofferingid"`
24972528
Workerofferingname string `json:"workerofferingname"`
@@ -2592,6 +2623,7 @@ type StartKubernetesClusterResponse struct {
25922623
Controlofferingname string `json:"controlofferingname"`
25932624
Cpunumber string `json:"cpunumber"`
25942625
Created string `json:"created"`
2626+
Csienabled bool `json:"csienabled"`
25952627
Description string `json:"description"`
25962628
Domain string `json:"domain"`
25972629
Domainid string `json:"domainid"`
@@ -2623,6 +2655,7 @@ type StartKubernetesClusterResponse struct {
26232655
Size int64 `json:"size"`
26242656
State string `json:"state"`
26252657
Templateid string `json:"templateid"`
2658+
Templatename string `json:"templatename"`
26262659
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
26272660
Workerofferingid string `json:"workerofferingid"`
26282661
Workerofferingname string `json:"workerofferingname"`
@@ -2936,6 +2969,7 @@ type UpgradeKubernetesClusterResponse struct {
29362969
Controlofferingname string `json:"controlofferingname"`
29372970
Cpunumber string `json:"cpunumber"`
29382971
Created string `json:"created"`
2972+
Csienabled bool `json:"csienabled"`
29392973
Description string `json:"description"`
29402974
Domain string `json:"domain"`
29412975
Domainid string `json:"domainid"`
@@ -2967,6 +3001,7 @@ type UpgradeKubernetesClusterResponse struct {
29673001
Size int64 `json:"size"`
29683002
State string `json:"state"`
29693003
Templateid string `json:"templateid"`
3004+
Templatename string `json:"templatename"`
29703005
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
29713006
Workerofferingid string `json:"workerofferingid"`
29723007
Workerofferingname string `json:"workerofferingname"`
@@ -3483,6 +3518,7 @@ type AddNodesToKubernetesClusterResponse struct {
34833518
Controlofferingname string `json:"controlofferingname"`
34843519
Cpunumber string `json:"cpunumber"`
34853520
Created string `json:"created"`
3521+
Csienabled bool `json:"csienabled"`
34863522
Description string `json:"description"`
34873523
Domain string `json:"domain"`
34883524
Domainid string `json:"domainid"`
@@ -3514,6 +3550,7 @@ type AddNodesToKubernetesClusterResponse struct {
35143550
Size int64 `json:"size"`
35153551
State string `json:"state"`
35163552
Templateid string `json:"templateid"`
3553+
Templatename string `json:"templatename"`
35173554
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
35183555
Workerofferingid string `json:"workerofferingid"`
35193556
Workerofferingname string `json:"workerofferingname"`
@@ -3640,6 +3677,7 @@ type RemoveNodesFromKubernetesClusterResponse struct {
36403677
Controlofferingname string `json:"controlofferingname"`
36413678
Cpunumber string `json:"cpunumber"`
36423679
Created string `json:"created"`
3680+
Csienabled bool `json:"csienabled"`
36433681
Description string `json:"description"`
36443682
Domain string `json:"domain"`
36453683
Domainid string `json:"domainid"`
@@ -3671,6 +3709,7 @@ type RemoveNodesFromKubernetesClusterResponse struct {
36713709
Size int64 `json:"size"`
36723710
State string `json:"state"`
36733711
Templateid string `json:"templateid"`
3712+
Templatename string `json:"templatename"`
36743713
Virtualmachines []*VirtualMachine `json:"virtualmachines"`
36753714
Workerofferingid string `json:"workerofferingid"`
36763715
Workerofferingname string `json:"workerofferingname"`

0 commit comments

Comments
 (0)