@@ -47,8 +47,8 @@ type ConfigurationServiceIface interface {
4747 ListCniConfiguration (p * ListCniConfigurationParams ) (* ListCniConfigurationResponse , error )
4848 NewListCniConfigurationParams () * ListCniConfigurationParams
4949 GetCniConfigurationID (name string , opts ... OptionFunc ) (string , int , error )
50- GetCniConfigurationByName (name string , opts ... OptionFunc ) (* CniConfiguration , int , error )
51- GetCniConfigurationByID (id string , opts ... OptionFunc ) (* CniConfiguration , int , error )
50+ GetCniConfigurationByName (name string , opts ... OptionFunc ) (* UserData , int , error )
51+ GetCniConfigurationByID (id string , opts ... OptionFunc ) (* UserData , int , error )
5252 DeleteCniConfiguration (p * DeleteCniConfigurationParams ) (* DeleteCniConfigurationResponse , error )
5353 NewDeleteCniConfigurationParams (id string ) * DeleteCniConfigurationParams
5454}
@@ -1553,13 +1553,17 @@ func (s *ConfigurationService) RegisterCniConfiguration(p *RegisterCniConfigurat
15531553}
15541554
15551555type RegisterCniConfigurationResponse struct {
1556+ CniConfiguration * UserData `json:"cniconfig"`
1557+ }
1558+
1559+ type RegisterCniConfiguration struct {
15561560 Displaytext string `json:"displaytext"`
15571561 JobID string `json:"jobid"`
15581562 Jobstatus int `json:"jobstatus"`
15591563 Success bool `json:"success"`
15601564}
15611565
1562- func (r * RegisterCniConfigurationResponse ) UnmarshalJSON (b []byte ) error {
1566+ func (r * RegisterCniConfiguration ) UnmarshalJSON (b []byte ) error {
15631567 var m map [string ]interface {}
15641568 err := json .Unmarshal (b , & m )
15651569 if err != nil {
@@ -1582,7 +1586,7 @@ func (r *RegisterCniConfigurationResponse) UnmarshalJSON(b []byte) error {
15821586 }
15831587 }
15841588
1585- type alias RegisterCniConfigurationResponse
1589+ type alias RegisterCniConfiguration
15861590 return json .Unmarshal (b , (* alias )(r ))
15871591}
15881592
@@ -1887,7 +1891,7 @@ func (s *ConfigurationService) GetCniConfigurationID(name string, opts ...Option
18871891}
18881892
18891893// This is a courtesy helper function, which in some cases may not work as expected!
1890- func (s * ConfigurationService ) GetCniConfigurationByName (name string , opts ... OptionFunc ) (* CniConfiguration , int , error ) {
1894+ func (s * ConfigurationService ) GetCniConfigurationByName (name string , opts ... OptionFunc ) (* UserData , int , error ) {
18911895 id , count , err := s .GetCniConfigurationID (name , opts ... )
18921896 if err != nil {
18931897 return nil , count , err
@@ -1901,7 +1905,7 @@ func (s *ConfigurationService) GetCniConfigurationByName(name string, opts ...Op
19011905}
19021906
19031907// This is a courtesy helper function, which in some cases may not work as expected!
1904- func (s * ConfigurationService ) GetCniConfigurationByID (id string , opts ... OptionFunc ) (* CniConfiguration , int , error ) {
1908+ func (s * ConfigurationService ) GetCniConfigurationByID (id string , opts ... OptionFunc ) (* UserData , int , error ) {
19051909 p := & ListCniConfigurationParams {}
19061910 p .p = make (map [string ]interface {})
19071911
@@ -1949,25 +1953,8 @@ func (s *ConfigurationService) ListCniConfiguration(p *ListCniConfigurationParam
19491953}
19501954
19511955type ListCniConfigurationResponse struct {
1952- Count int `json:"count"`
1953- CniConfiguration []* CniConfiguration `json:"cniconfiguration"`
1954- }
1955-
1956- type CniConfiguration struct {
1957- Account string `json:"account"`
1958- Accountid string `json:"accountid"`
1959- Domain string `json:"domain"`
1960- Domainid string `json:"domainid"`
1961- Domainpath string `json:"domainpath"`
1962- Hasannotations bool `json:"hasannotations"`
1963- Id string `json:"id"`
1964- JobID string `json:"jobid"`
1965- Jobstatus int `json:"jobstatus"`
1966- Name string `json:"name"`
1967- Params string `json:"params"`
1968- Project string `json:"project"`
1969- Projectid string `json:"projectid"`
1970- Userdata string `json:"userdata"`
1956+ Count int `json:"count"`
1957+ CniConfiguration []* UserData `json:"cniconfig"`
19711958}
19721959
19731960type DeleteCniConfigurationParams struct {
0 commit comments