From 2e186635f026fb6f4df68f652690ad8793866098 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 May 2025 12:47:20 +0000 Subject: [PATCH] Generate sqlserverflex --- services/sqlserverflex/api_default.go | 44 +++++++++++++-------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/services/sqlserverflex/api_default.go b/services/sqlserverflex/api_default.go index c5040922b..c6ccd6c51 100644 --- a/services/sqlserverflex/api_default.go +++ b/services/sqlserverflex/api_default.go @@ -772,7 +772,7 @@ func (r CreateDatabaseRequest) Execute() (*CreateDatabaseResponse, 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 { @@ -937,7 +937,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 { @@ -1099,7 +1099,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 { @@ -1694,7 +1694,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 { @@ -1852,7 +1852,7 @@ func (r GetDatabaseRequest) Execute() (*GetDatabaseResponse, 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.GetDatabase") if err != nil { @@ -2009,7 +2009,7 @@ func (r GetInstanceRequest) Execute() (*GetInstanceResponse, 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 { @@ -2163,7 +2163,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 { @@ -2341,7 +2341,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 { @@ -2494,7 +2494,7 @@ func (r ListCollationsRequest) Execute() (*ListCollationsResponse, 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.ListCollations") if err != nil { @@ -2668,7 +2668,7 @@ func (r ListCompatibilityRequest) Execute() (*ListCompatibilityResponse, 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.ListCompatibility") if err != nil { @@ -2842,7 +2842,7 @@ func (r ListDatabasesRequest) Execute() (*ListDatabasesResponse, 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 { @@ -2994,7 +2994,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 { @@ -3142,7 +3142,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 { @@ -3323,7 +3323,7 @@ func (r ListMetricsRequest) Execute() (*ListMetricsResponse, 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 { @@ -3499,7 +3499,7 @@ func (r ListRestoreJobsRequest) Execute() (*ListRestoreJobsResponse, 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.ListRestoreJobs") if err != nil { @@ -3652,7 +3652,7 @@ func (r ListRolesRequest) Execute() (*ListRolesResponse, 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.ListRoles") if err != nil { @@ -3805,7 +3805,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 { @@ -3958,7 +3958,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 { @@ -4118,7 +4118,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 { @@ -4278,7 +4278,7 @@ func (r PartialUpdateInstanceRequest) Execute() (*UpdateInstanceResponse, 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.PartialUpdateInstance") if err != nil { @@ -4437,7 +4437,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 { @@ -5119,7 +5119,7 @@ func (r UpdateInstanceRequest) Execute() (*UpdateInstanceResponse, 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 {