@@ -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
443443type 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
770772type 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
969973type 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+
14271458func (p * ListAccountsParams ) SetDetails (v []string ) {
14281459 if p .p == nil {
14291460 p .p = make (map [string ]interface {})
@@ -1811,6 +1842,7 @@ type ListAccountsResponse struct {
18111842type 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
23262359type 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
25482583type 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+
27182779func (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
28462907type 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"`
0 commit comments