From 884f35813a1c449d6e94010a4360a6aa4a5073dc Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 May 2025 12:45:42 +0000 Subject: [PATCH] Generate postgresflex --- services/postgresflex/api_default.go | 38 ++++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/services/postgresflex/api_default.go b/services/postgresflex/api_default.go index f09f44b89..84905dec1 100644 --- a/services/postgresflex/api_default.go +++ b/services/postgresflex/api_default.go @@ -722,7 +722,7 @@ func (r CloneInstanceRequest) Execute() (*CloneInstanceResponse, 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.CloneInstance") if err != nil { @@ -888,7 +888,7 @@ func (r CreateDatabaseRequest) Execute() (*InstanceCreateDatabaseResponse, 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.CreateDatabase") if err != nil { @@ -1054,7 +1054,7 @@ func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, 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.CreateInstance") if err != nil { @@ -1216,7 +1216,7 @@ func (r CreateUserRequest) Execute() (*CreateUserResponse, 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.CreateUser") if err != nil { @@ -1995,7 +1995,7 @@ func (r GetBackupRequest) Execute() (*GetBackupResponse, 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.GetBackup") if err != nil { @@ -2152,7 +2152,7 @@ func (r GetInstanceRequest) Execute() (*InstanceResponse, 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.GetInstance") if err != nil { @@ -2306,7 +2306,7 @@ func (r GetUserRequest) Execute() (*GetUserResponse, 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.GetUser") if err != nil { @@ -2463,7 +2463,7 @@ func (r ListBackupsRequest) Execute() (*ListBackupsResponse, 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.ListBackups") if err != nil { @@ -2616,7 +2616,7 @@ func (r ListDatabaseParametersRequest) Execute() (*PostgresDatabaseParameterResp 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.ListDatabaseParameters") if err != nil { @@ -2769,7 +2769,7 @@ func (r ListDatabasesRequest) Execute() (*InstanceListDatabasesResponse, 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.ListDatabases") if err != nil { @@ -2921,7 +2921,7 @@ func (r ListFlavorsRequest) Execute() (*ListFlavorsResponse, 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.ListFlavors") if err != nil { @@ -3069,7 +3069,7 @@ func (r ListInstancesRequest) Execute() (*ListInstancesResponse, 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.ListInstances") if err != nil { @@ -3251,7 +3251,7 @@ func (r ListMetricsRequest) Execute() (*InstanceMetricsResponse, 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.ListMetrics") if err != nil { @@ -3442,7 +3442,7 @@ func (r ListStoragesRequest) Execute() (*ListStoragesResponse, 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.ListStorages") if err != nil { @@ -3595,7 +3595,7 @@ func (r ListUsersRequest) Execute() (*ListUsersResponse, 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.ListUsers") if err != nil { @@ -3755,7 +3755,7 @@ func (r ListVersionsRequest) Execute() (*ListVersionsResponse, 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.ListVersions") if err != nil { @@ -3915,7 +3915,7 @@ func (r PartialUpdateInstanceRequest) Execute() (*PartialUpdateInstanceResponse, 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.PartialUpdateInstance") if err != nil { @@ -4241,7 +4241,7 @@ func (r ResetUserRequest) Execute() (*ResetUserResponse, 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.ResetUser") if err != nil { @@ -4582,7 +4582,7 @@ func (r UpdateInstanceRequest) Execute() (*PartialUpdateInstanceResponse, 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.UpdateInstance") if err != nil {