diff --git a/services/objectstorage/api_default.go b/services/objectstorage/api_default.go index 145abcea3..9d335e01d 100644 --- a/services/objectstorage/api_default.go +++ b/services/objectstorage/api_default.go @@ -385,7 +385,7 @@ func (r CreateAccessKeyRequest) Execute() (*CreateAccessKeyResponse, 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.CreateAccessKey") if err != nil { @@ -574,7 +574,7 @@ func (r CreateBucketRequest) Execute() (*CreateBucketResponse, 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.CreateBucket") if err != nil { @@ -770,7 +770,7 @@ func (r CreateCredentialsGroupRequest) Execute() (*CreateCredentialsGroupRespons 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.CreateCredentialsGroup") if err != nil { @@ -971,7 +971,7 @@ func (r DeleteAccessKeyRequest) Execute() (*DeleteAccessKeyResponse, 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.DeleteAccessKey") if err != nil { @@ -1170,7 +1170,7 @@ func (r DeleteBucketRequest) Execute() (*DeleteBucketResponse, 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.DeleteBucket") if err != nil { @@ -1350,7 +1350,7 @@ func (r DeleteCredentialsGroupRequest) Execute() (*DeleteCredentialsGroupRespons 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.DeleteCredentialsGroup") if err != nil { @@ -1523,7 +1523,7 @@ func (r DisableServiceRequest) Execute() (*ProjectStatus, 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.DisableService") if err != nil { @@ -1714,7 +1714,7 @@ func (r EnableServiceRequest) Execute() (*ProjectStatus, 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.EnableService") if err != nil { @@ -1896,7 +1896,7 @@ func (r GetBucketRequest) Execute() (*GetBucketResponse, 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.GetBucket") if err != nil { @@ -2086,7 +2086,7 @@ func (r GetServiceStatusRequest) Execute() (*ProjectStatus, 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.GetServiceStatus") if err != nil { @@ -2272,7 +2272,7 @@ func (r ListAccessKeysRequest) Execute() (*ListAccessKeysResponse, 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.ListAccessKeys") if err != nil { @@ -2455,7 +2455,7 @@ func (r ListBucketsRequest) Execute() (*ListBucketsResponse, 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.ListBuckets") if err != nil { @@ -2635,7 +2635,7 @@ func (r ListCredentialsGroupsRequest) Execute() (*ListCredentialsGroupsResponse, 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.ListCredentialsGroups") if err != nil {