Skip to content

Commit 3995b5e

Browse files
authored
4.18 support changes (#53)
Adds support for CloudStack 4.18
1 parent f4cfaae commit 3995b5e

34 files changed

+72529
-61991
lines changed

cloudstack/AccountService.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ type CreateAccountResponseUser struct {
430430
Firstname string `json:"firstname"`
431431
Icon interface{} `json:"icon"`
432432
Id string `json:"id"`
433+
Is2faenabled bool `json:"is2faenabled"`
434+
Is2famandated bool `json:"is2famandated"`
433435
Iscallerchilddomain bool `json:"iscallerchilddomain"`
434436
Isdefault bool `json:"isdefault"`
435437
Lastname string `json:"lastname"`
@@ -724,6 +726,8 @@ type DisableAccountResponseUser struct {
724726
Firstname string `json:"firstname"`
725727
Icon interface{} `json:"icon"`
726728
Id string `json:"id"`
729+
Is2faenabled bool `json:"is2faenabled"`
730+
Is2famandated bool `json:"is2famandated"`
727731
Iscallerchilddomain bool `json:"iscallerchilddomain"`
728732
Isdefault bool `json:"isdefault"`
729733
Lastname string `json:"lastname"`
@@ -902,6 +906,8 @@ type EnableAccountResponseUser struct {
902906
Firstname string `json:"firstname"`
903907
Icon interface{} `json:"icon"`
904908
Id string `json:"id"`
909+
Is2faenabled bool `json:"is2faenabled"`
910+
Is2famandated bool `json:"is2famandated"`
905911
Iscallerchilddomain bool `json:"iscallerchilddomain"`
906912
Isdefault bool `json:"isdefault"`
907913
Lastname string `json:"lastname"`
@@ -1435,6 +1441,8 @@ type AccountUser struct {
14351441
Firstname string `json:"firstname"`
14361442
Icon interface{} `json:"icon"`
14371443
Id string `json:"id"`
1444+
Is2faenabled bool `json:"is2faenabled"`
1445+
Is2famandated bool `json:"is2famandated"`
14381446
Iscallerchilddomain bool `json:"iscallerchilddomain"`
14391447
Isdefault bool `json:"isdefault"`
14401448
Lastname string `json:"lastname"`
@@ -1885,6 +1893,8 @@ type LockAccountResponseUser struct {
18851893
Firstname string `json:"firstname"`
18861894
Icon interface{} `json:"icon"`
18871895
Id string `json:"id"`
1896+
Is2faenabled bool `json:"is2faenabled"`
1897+
Is2famandated bool `json:"is2famandated"`
18881898
Iscallerchilddomain bool `json:"iscallerchilddomain"`
18891899
Isdefault bool `json:"isdefault"`
18901900
Lastname string `json:"lastname"`
@@ -2086,6 +2096,8 @@ type MarkDefaultZoneForAccountResponseUser struct {
20862096
Firstname string `json:"firstname"`
20872097
Icon interface{} `json:"icon"`
20882098
Id string `json:"id"`
2099+
Is2faenabled bool `json:"is2faenabled"`
2100+
Is2famandated bool `json:"is2famandated"`
20892101
Iscallerchilddomain bool `json:"iscallerchilddomain"`
20902102
Isdefault bool `json:"isdefault"`
20912103
Lastname string `json:"lastname"`
@@ -2339,6 +2351,8 @@ type UpdateAccountResponseUser struct {
23392351
Firstname string `json:"firstname"`
23402352
Icon interface{} `json:"icon"`
23412353
Id string `json:"id"`
2354+
Is2faenabled bool `json:"is2faenabled"`
2355+
Is2famandated bool `json:"is2famandated"`
23422356
Iscallerchilddomain bool `json:"iscallerchilddomain"`
23432357
Isdefault bool `json:"isdefault"`
23442358
Lastname string `json:"lastname"`

cloudstack/AffinityGroupService.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,8 @@ func (s *AffinityGroupService) UpdateVMAffinityGroup(p *UpdateVMAffinityGroupPar
953953
type UpdateVMAffinityGroupResponse struct {
954954
Account string `json:"account"`
955955
Affinitygroup []UpdateVMAffinityGroupResponseAffinitygroup `json:"affinitygroup"`
956+
Autoscalevmgroupid string `json:"autoscalevmgroupid"`
957+
Autoscalevmgroupname string `json:"autoscalevmgroupname"`
956958
Backupofferingid string `json:"backupofferingid"`
957959
Backupofferingname string `json:"backupofferingname"`
958960
Bootmode string `json:"bootmode"`
@@ -978,6 +980,7 @@ type UpdateVMAffinityGroupResponse struct {
978980
Guestosid string `json:"guestosid"`
979981
Haenable bool `json:"haenable"`
980982
Hasannotations bool `json:"hasannotations"`
983+
Hostcontrolstate string `json:"hostcontrolstate"`
981984
Hostid string `json:"hostid"`
982985
Hostname string `json:"hostname"`
983986
Hypervisor string `json:"hypervisor"`
@@ -1023,6 +1026,11 @@ type UpdateVMAffinityGroupResponse struct {
10231026
Templatedisplaytext string `json:"templatedisplaytext"`
10241027
Templateid string `json:"templateid"`
10251028
Templatename string `json:"templatename"`
1029+
Userdata string `json:"userdata"`
1030+
Userdatadetails string `json:"userdatadetails"`
1031+
Userdataid string `json:"userdataid"`
1032+
Userdataname string `json:"userdataname"`
1033+
Userdatapolicy string `json:"userdatapolicy"`
10261034
Userid string `json:"userid"`
10271035
Username string `json:"username"`
10281036
Vgpu string `json:"vgpu"`

cloudstack/AuthenticationService.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ type LoginResponse struct {
146146
Account string `json:"account"`
147147
Domainid string `json:"domainid"`
148148
Firstname string `json:"firstname"`
149+
Is2faenabled string `json:"is2faenabled"`
150+
Is2faverified string `json:"is2faverified"`
151+
Issuerfor2fa string `json:"issuerfor2fa"`
149152
JobID string `json:"jobid"`
150153
Jobstatus int `json:"jobstatus"`
151154
Lastname string `json:"lastname"`
155+
Providerfor2fa string `json:"providerfor2fa"`
152156
Registered string `json:"registered"`
153157
Sessionkey string `json:"sessionkey"`
154158
Timeout int `json:"timeout"`

0 commit comments

Comments
 (0)