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
9494 return nil , err
9595 }
9696
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 {
99101 return nil , err
100102 }
103+ r := nested .Response
101104
102105 return & r , nil
103106}
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ var nestedResponse = map[string]string{
8383 "getCloudIdentifier" : "cloudidentifier" ,
8484 "getKubernetesClusterConfig" : "clusterconfig" ,
8585 "getPathForVolume" : "apipathforvolume" ,
86+ "createConsoleEndpoint" : "consoleendpoint" ,
8687}
8788
8889// longToStringConvertedParams is a prefilled map with the list of
You can’t perform that action at this time.
0 commit comments