@@ -66,7 +66,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
6666 }
6767
6868 // Get the display name for confirmation
69- instanceLabel , err := logUtils .GetInstanceName (ctx , apiClient , model .ProjectId , model .Region , model .InstanceId )
69+ instanceLabel , err := logUtils .GetInstanceName (ctx , apiClient . DefaultAPI , model .ProjectId , model .Region , model .InstanceId )
7070 if err != nil {
7171 params .Printer .Debug (print .ErrorLevel , "get Logs instance: %v" , err )
7272 }
@@ -75,7 +75,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
7575 }
7676
7777 // Get the display name for confirmation
78- accessTokenLabel , err := logUtils .GetAccessTokenName (ctx , apiClient , model .ProjectId , model .Region , model .InstanceId , model .AccessTokenId )
78+ accessTokenLabel , err := logUtils .GetAccessTokenName (ctx , apiClient . DefaultAPI , model .ProjectId , model .Region , model .InstanceId , model .AccessTokenId )
7979 if err != nil {
8080 params .Printer .Debug (print .ErrorLevel , "get access token: %v" , err )
8181 }
@@ -134,7 +134,7 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
134134}
135135
136136func buildRequest (ctx context.Context , model * inputModel , apiClient * logs.APIClient ) logs.ApiUpdateAccessTokenRequest {
137- req := apiClient .UpdateAccessToken (ctx , model .ProjectId , model .Region , model .InstanceId , model .AccessTokenId )
137+ req := apiClient .DefaultAPI . UpdateAccessToken (ctx , model .ProjectId , model .Region , model .InstanceId , model .AccessTokenId )
138138
139139 payload := logs.UpdateAccessTokenPayload {
140140 DisplayName : model .DisplayName ,
0 commit comments