@@ -37,7 +37,7 @@ type AccountServiceIface interface {
37
37
EnableAccount (p * EnableAccountParams ) (* EnableAccountResponse , error )
38
38
NewEnableAccountParams () * EnableAccountParams
39
39
IsAccountAllowedToCreateOfferingsWithTags (p * IsAccountAllowedToCreateOfferingsWithTagsParams ) (* IsAccountAllowedToCreateOfferingsWithTagsResponse , error )
40
- NewIsAccountAllowedToCreateOfferingsWithTagsParams () * IsAccountAllowedToCreateOfferingsWithTagsParams
40
+ NewIsAccountAllowedToCreateOfferingsWithTagsParams (id string ) * IsAccountAllowedToCreateOfferingsWithTagsParams
41
41
LinkAccountToLdap (p * LinkAccountToLdapParams ) (* LinkAccountToLdapResponse , error )
42
42
NewLinkAccountToLdapParams (account string , domainid string , ldapdomain string ) * LinkAccountToLdapParams
43
43
ListAccounts (p * ListAccountsParams ) (* ListAccountsResponse , error )
@@ -443,6 +443,7 @@ func (s *AccountService) CreateAccount(p *CreateAccountParams) (*CreateAccountRe
443
443
type CreateAccountResponse struct {
444
444
Accountdetails map [string ]string `json:"accountdetails"`
445
445
Accounttype int `json:"accounttype"`
446
+ Apikeyaccess string `json:"apikeyaccess"`
446
447
Cpuavailable string `json:"cpuavailable"`
447
448
Cpulimit string `json:"cpulimit"`
448
449
Cputotal int64 `json:"cputotal"`
@@ -510,6 +511,7 @@ type CreateAccountResponseUser struct {
510
511
Accountid string `json:"accountid"`
511
512
Accounttype int `json:"accounttype"`
512
513
Apikey string `json:"apikey"`
514
+ Apikeyaccess string `json:"apikeyaccess"`
513
515
Created string `json:"created"`
514
516
Domain string `json:"domain"`
515
517
Domainid string `json:"domainid"`
@@ -770,6 +772,7 @@ func (s *AccountService) DisableAccount(p *DisableAccountParams) (*DisableAccoun
770
772
type DisableAccountResponse struct {
771
773
Accountdetails map [string ]string `json:"accountdetails"`
772
774
Accounttype int `json:"accounttype"`
775
+ Apikeyaccess string `json:"apikeyaccess"`
773
776
Cpuavailable string `json:"cpuavailable"`
774
777
Cpulimit string `json:"cpulimit"`
775
778
Cputotal int64 `json:"cputotal"`
@@ -837,6 +840,7 @@ type DisableAccountResponseUser struct {
837
840
Accountid string `json:"accountid"`
838
841
Accounttype int `json:"accounttype"`
839
842
Apikey string `json:"apikey"`
843
+ Apikeyaccess string `json:"apikeyaccess"`
840
844
Created string `json:"created"`
841
845
Domain string `json:"domain"`
842
846
Domainid string `json:"domainid"`
@@ -969,6 +973,7 @@ func (s *AccountService) EnableAccount(p *EnableAccountParams) (*EnableAccountRe
969
973
type EnableAccountResponse struct {
970
974
Accountdetails map [string ]string `json:"accountdetails"`
971
975
Accounttype int `json:"accounttype"`
976
+ Apikeyaccess string `json:"apikeyaccess"`
972
977
Cpuavailable string `json:"cpuavailable"`
973
978
Cpulimit string `json:"cpulimit"`
974
979
Cputotal int64 `json:"cputotal"`
@@ -1036,6 +1041,7 @@ type EnableAccountResponseUser struct {
1036
1041
Accountid string `json:"accountid"`
1037
1042
Accounttype int `json:"accounttype"`
1038
1043
Apikey string `json:"apikey"`
1044
+ Apikeyaccess string `json:"apikeyaccess"`
1039
1045
Created string `json:"created"`
1040
1046
Domain string `json:"domain"`
1041
1047
Domainid string `json:"domainid"`
@@ -1096,9 +1102,10 @@ func (p *IsAccountAllowedToCreateOfferingsWithTagsParams) GetId() (string, bool)
1096
1102
1097
1103
// You should always use this function to get a new IsAccountAllowedToCreateOfferingsWithTagsParams instance,
1098
1104
// 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 {
1100
1106
p := & IsAccountAllowedToCreateOfferingsWithTagsParams {}
1101
1107
p .p = make (map [string ]interface {})
1108
+ p .p ["id" ] = id
1102
1109
return p
1103
1110
}
1104
1111
@@ -1354,6 +1361,9 @@ func (p *ListAccountsParams) toURLValues() url.Values {
1354
1361
vv := strconv .Itoa (v .(int ))
1355
1362
u .Set ("accounttype" , vv )
1356
1363
}
1364
+ if v , found := p .p ["apikeyaccess" ]; found {
1365
+ u .Set ("apikeyaccess" , v .(string ))
1366
+ }
1357
1367
if v , found := p .p ["details" ]; found {
1358
1368
vv := strings .Join (v .([]string ), "," )
1359
1369
u .Set ("details" , vv )
@@ -1424,6 +1434,27 @@ func (p *ListAccountsParams) GetAccounttype() (int, bool) {
1424
1434
return value , ok
1425
1435
}
1426
1436
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
+
1427
1458
func (p * ListAccountsParams ) SetDetails (v []string ) {
1428
1459
if p .p == nil {
1429
1460
p .p = make (map [string ]interface {})
@@ -1811,6 +1842,7 @@ type ListAccountsResponse struct {
1811
1842
type Account struct {
1812
1843
Accountdetails map [string ]string `json:"accountdetails"`
1813
1844
Accounttype int `json:"accounttype"`
1845
+ Apikeyaccess string `json:"apikeyaccess"`
1814
1846
Cpuavailable string `json:"cpuavailable"`
1815
1847
Cpulimit string `json:"cpulimit"`
1816
1848
Cputotal int64 `json:"cputotal"`
@@ -1878,6 +1910,7 @@ type AccountUser struct {
1878
1910
Accountid string `json:"accountid"`
1879
1911
Accounttype int `json:"accounttype"`
1880
1912
Apikey string `json:"apikey"`
1913
+ Apikeyaccess string `json:"apikeyaccess"`
1881
1914
Created string `json:"created"`
1882
1915
Domain string `json:"domain"`
1883
1916
Domainid string `json:"domainid"`
@@ -2326,6 +2359,7 @@ func (s *AccountService) LockAccount(p *LockAccountParams) (*LockAccountResponse
2326
2359
type LockAccountResponse struct {
2327
2360
Accountdetails map [string ]string `json:"accountdetails"`
2328
2361
Accounttype int `json:"accounttype"`
2362
+ Apikeyaccess string `json:"apikeyaccess"`
2329
2363
Cpuavailable string `json:"cpuavailable"`
2330
2364
Cpulimit string `json:"cpulimit"`
2331
2365
Cputotal int64 `json:"cputotal"`
@@ -2393,6 +2427,7 @@ type LockAccountResponseUser struct {
2393
2427
Accountid string `json:"accountid"`
2394
2428
Accounttype int `json:"accounttype"`
2395
2429
Apikey string `json:"apikey"`
2430
+ Apikeyaccess string `json:"apikeyaccess"`
2396
2431
Created string `json:"created"`
2397
2432
Domain string `json:"domain"`
2398
2433
Domainid string `json:"domainid"`
@@ -2548,6 +2583,7 @@ func (s *AccountService) MarkDefaultZoneForAccount(p *MarkDefaultZoneForAccountP
2548
2583
type MarkDefaultZoneForAccountResponse struct {
2549
2584
Accountdetails map [string ]string `json:"accountdetails"`
2550
2585
Accounttype int `json:"accounttype"`
2586
+ Apikeyaccess string `json:"apikeyaccess"`
2551
2587
Cpuavailable string `json:"cpuavailable"`
2552
2588
Cpulimit string `json:"cpulimit"`
2553
2589
Cputotal int64 `json:"cputotal"`
@@ -2615,6 +2651,7 @@ type MarkDefaultZoneForAccountResponseUser struct {
2615
2651
Accountid string `json:"accountid"`
2616
2652
Accounttype int `json:"accounttype"`
2617
2653
Apikey string `json:"apikey"`
2654
+ Apikeyaccess string `json:"apikeyaccess"`
2618
2655
Created string `json:"created"`
2619
2656
Domain string `json:"domain"`
2620
2657
Domainid string `json:"domainid"`
@@ -2655,6 +2692,9 @@ func (p *UpdateAccountParams) toURLValues() url.Values {
2655
2692
u .Set (fmt .Sprintf ("accountdetails[0].%s" , k ), m [k ])
2656
2693
}
2657
2694
}
2695
+ if v , found := p .p ["apikeyaccess" ]; found {
2696
+ u .Set ("apikeyaccess" , v .(string ))
2697
+ }
2658
2698
if v , found := p .p ["domainid" ]; found {
2659
2699
u .Set ("domainid" , v .(string ))
2660
2700
}
@@ -2715,6 +2755,27 @@ func (p *UpdateAccountParams) GetAccountdetails() (map[string]string, bool) {
2715
2755
return value , ok
2716
2756
}
2717
2757
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
+
2718
2779
func (p * UpdateAccountParams ) SetDomainid (v string ) {
2719
2780
if p .p == nil {
2720
2781
p .p = make (map [string ]interface {})
@@ -2846,6 +2907,7 @@ func (s *AccountService) UpdateAccount(p *UpdateAccountParams) (*UpdateAccountRe
2846
2907
type UpdateAccountResponse struct {
2847
2908
Accountdetails map [string ]string `json:"accountdetails"`
2848
2909
Accounttype int `json:"accounttype"`
2910
+ Apikeyaccess string `json:"apikeyaccess"`
2849
2911
Cpuavailable string `json:"cpuavailable"`
2850
2912
Cpulimit string `json:"cpulimit"`
2851
2913
Cputotal int64 `json:"cputotal"`
@@ -2913,6 +2975,7 @@ type UpdateAccountResponseUser struct {
2913
2975
Accountid string `json:"accountid"`
2914
2976
Accounttype int `json:"accounttype"`
2915
2977
Apikey string `json:"apikey"`
2978
+ Apikeyaccess string `json:"apikeyaccess"`
2916
2979
Created string `json:"created"`
2917
2980
Domain string `json:"domain"`
2918
2981
Domainid string `json:"domainid"`
0 commit comments