File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,13 @@ func (s *ConsoleEndpointService) CreateConsoleEndpoint(p *CreateConsoleEndpointP
94
94
return nil , err
95
95
}
96
96
97
- var r CreateConsoleEndpointResponse
98
- if err := json .Unmarshal (resp , & r ); err != nil {
97
+ var nested struct {
98
+ Response CreateConsoleEndpointResponse `json:"consoleendpoint"`
99
+ }
100
+ if err := json .Unmarshal (resp , & nested ); err != nil {
99
101
return nil , err
100
102
}
103
+ r := nested .Response
101
104
102
105
return & r , nil
103
106
}
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ var nestedResponse = map[string]string{
83
83
"getCloudIdentifier" : "cloudidentifier" ,
84
84
"getKubernetesClusterConfig" : "clusterconfig" ,
85
85
"getPathForVolume" : "apipathforvolume" ,
86
+ "createConsoleEndpoint" : "consoleendpoint" ,
86
87
}
87
88
88
89
// longToStringConvertedParams is a prefilled map with the list of
You can’t perform that action at this time.
0 commit comments