@@ -66,7 +66,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
6666 projectLabel = model .ProjectId
6767 }
6868
69- instanceLabel , err := logsUtils .GetInstanceName (ctx , apiClient , model .ProjectId , model .Region , model .InstanceID )
69+ instanceLabel , err := logsUtils .GetInstanceName (ctx , apiClient . DefaultAPI , model .ProjectId , model .Region , model .InstanceID )
7070 if err != nil {
7171 params .Printer .Debug (print .ErrorLevel , "get instance name: %v" , err )
7272 instanceLabel = model .InstanceID
@@ -89,7 +89,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
8989 // Wait for async operation, if async mode not enabled
9090 if ! model .Async {
9191 err := spinner .Run (params .Printer , "Deleting instance" , func () error {
92- _ , err = wait .DeleteLogsInstanceWaitHandler (ctx , apiClient , model .ProjectId , model .Region , model .InstanceID ).WaitWithContext (ctx )
92+ _ , err = wait .DeleteLogsInstanceWaitHandler (ctx , apiClient . DefaultAPI , model .ProjectId , model .Region , model .InstanceID ).WaitWithContext (ctx )
9393 return err
9494 })
9595 if err != nil {
@@ -127,6 +127,6 @@ func parseInput(p *print.Printer, cmd *cobra.Command, inputArgs []string) (*inpu
127127}
128128
129129func buildRequest (ctx context.Context , model * inputModel , apiClient * logs.APIClient ) logs.ApiDeleteLogsInstanceRequest {
130- req := apiClient .DeleteLogsInstance (ctx , model .ProjectId , model .Region , model .InstanceID )
130+ req := apiClient .DefaultAPI . DeleteLogsInstance (ctx , model .ProjectId , model .Region , model .InstanceID )
131131 return req
132132}
0 commit comments