From aac95ee6bad3ae0ae9c3886b3044fb851af6c615 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 May 2025 13:13:35 +0000 Subject: [PATCH] Generate ske --- services/ske/api_default.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/services/ske/api_default.go b/services/ske/api_default.go index b86b3b8dc..0557f8ade 100644 --- a/services/ske/api_default.go +++ b/services/ske/api_default.go @@ -330,7 +330,7 @@ func (r CompleteCredentialsRotationRequest) Execute() (map[string]interface{}, e a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CompleteCredentialsRotation") if err != nil { @@ -492,7 +492,7 @@ func (r CreateKubeconfigRequest) Execute() (*Kubeconfig, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateKubeconfig") if err != nil { @@ -637,7 +637,7 @@ func (r CreateOrUpdateClusterRequest) Execute() (*Cluster, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateOrUpdateCluster") if err != nil { @@ -798,7 +798,7 @@ func (r DeleteClusterRequest) Execute() (map[string]interface{}, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteCluster") if err != nil { @@ -932,7 +932,7 @@ func (r GetClusterRequest) Execute() (*Cluster, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetCluster") if err != nil { @@ -1066,7 +1066,7 @@ func (r GetLoginKubeconfigRequest) Execute() (*LoginKubeconfig, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetLoginKubeconfig") if err != nil { @@ -1199,7 +1199,7 @@ func (r ListClustersRequest) Execute() (*ListClustersResponse, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListClusters") if err != nil { @@ -1349,7 +1349,7 @@ func (r ListProviderOptionsRequest) Execute() (*ProviderOptions, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListProviderOptions") if err != nil { @@ -1475,7 +1475,7 @@ func (r StartCredentialsRotationRequest) Execute() (map[string]interface{}, erro a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.StartCredentialsRotation") if err != nil { @@ -1631,7 +1631,7 @@ func (r TriggerHibernateRequest) Execute() (map[string]interface{}, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerHibernate") if err != nil { @@ -1776,7 +1776,7 @@ func (r TriggerMaintenanceRequest) Execute() (map[string]interface{}, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerMaintenance") if err != nil { @@ -1921,7 +1921,7 @@ func (r TriggerReconcileRequest) Execute() (map[string]interface{}, error) { a := r.apiService client, ok := a.client.(*APIClient) if !ok { - return nil, fmt.Errorf("could not parse client to type APIClient") + return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") } localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.TriggerReconcile") if err != nil {