diff --git a/services/postgresflex/oas_commit b/services/postgresflex/oas_commit index 550a77c4e3..2ea6d59b0f 100644 --- a/services/postgresflex/oas_commit +++ b/services/postgresflex/oas_commit @@ -1 +1 @@ -46de1033aa6379af6341423c3ff0e4cfb54f8350 +24dbfc40a5c0e07440476abb6b64d76219f9b2c7 diff --git a/services/postgresflex/v1api/api_default.go b/services/postgresflex/v1api/api_default.go index 653f3f5e03..206c797b94 100644 --- a/services/postgresflex/v1api/api_default.go +++ b/services/postgresflex/v1api/api_default.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -33,11 +33,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiCloneInstanceRequest + + Deprecated */ CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest // CloneInstanceExecute executes the request // @return CloneInstanceResponse + // Deprecated CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) /* @@ -50,11 +53,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiCreateDatabaseRequest + + Deprecated */ CreateDatabase(ctx context.Context, projectId string, instanceId string) ApiCreateDatabaseRequest // CreateDatabaseExecute executes the request // @return InstanceCreateDatabaseResponse + // Deprecated CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) /* @@ -65,11 +71,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiCreateInstanceRequest + + Deprecated */ CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest // CreateInstanceExecute executes the request // @return CreateInstanceResponse + // Deprecated CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) /* @@ -81,11 +90,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiCreateUserRequest + + Deprecated */ CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest // CreateUserExecute executes the request // @return CreateUserResponse + // Deprecated CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) /* @@ -98,10 +110,13 @@ type DefaultAPI interface { @param instanceId Instance ID @param databaseId Database ID @return ApiDeleteDatabaseRequest + + Deprecated */ DeleteDatabase(ctx context.Context, projectId string, instanceId string, databaseId string) ApiDeleteDatabaseRequest // DeleteDatabaseExecute executes the request + // Deprecated DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error /* @@ -113,10 +128,13 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiDeleteInstanceRequest + + Deprecated */ DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest // DeleteInstanceExecute executes the request + // Deprecated DeleteInstanceExecute(r ApiDeleteInstanceRequest) error /* @@ -129,12 +147,32 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId User ID @return ApiDeleteUserRequest + + Deprecated */ DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest // DeleteUserExecute executes the request + // Deprecated DeleteUserExecute(r ApiDeleteUserRequest) error + /* + DisableService Terminate the Project + + Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project ID + @return ApiDisableServiceRequest + + Deprecated + */ + DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest + + // DisableServiceExecute executes the request + // Deprecated + DisableServiceExecute(r ApiDisableServiceRequest) error + /* ForceDeleteInstance Force delete instance @@ -144,10 +182,13 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiForceDeleteInstanceRequest + + Deprecated */ ForceDeleteInstance(ctx context.Context, projectId string, instanceId string) ApiForceDeleteInstanceRequest // ForceDeleteInstanceExecute executes the request + // Deprecated ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error /* @@ -160,11 +201,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param backupId Backup ID @return ApiGetBackupRequest + + Deprecated */ GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest // GetBackupExecute executes the request // @return GetBackupResponse + // Deprecated GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) /* @@ -176,11 +220,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiGetInstanceRequest + + Deprecated */ GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest // GetInstanceExecute executes the request // @return InstanceResponse + // Deprecated GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) /* @@ -193,11 +240,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId User ID @return ApiGetUserRequest + + Deprecated */ GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest // GetUserExecute executes the request // @return GetUserResponse + // Deprecated GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) /* @@ -209,11 +259,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiListBackupsRequest + + Deprecated */ ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest // ListBackupsExecute executes the request // @return ListBackupsResponse + // Deprecated ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) /* @@ -225,11 +278,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiListDatabaseParametersRequest + + Deprecated */ ListDatabaseParameters(ctx context.Context, projectId string, instanceId string) ApiListDatabaseParametersRequest // ListDatabaseParametersExecute executes the request // @return PostgresDatabaseParameterResponse + // Deprecated ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) /* @@ -241,11 +297,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiListDatabasesRequest + + Deprecated */ ListDatabases(ctx context.Context, projectId string, instanceId string) ApiListDatabasesRequest // ListDatabasesExecute executes the request // @return InstanceListDatabasesResponse + // Deprecated ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) /* @@ -256,11 +315,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListFlavorsRequest + + Deprecated */ ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest // ListFlavorsExecute executes the request // @return ListFlavorsResponse + // Deprecated ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) /* @@ -271,11 +333,14 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListInstancesRequest + + Deprecated */ ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest // ListInstancesExecute executes the request // @return ListInstancesResponse + // Deprecated ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) /* @@ -288,11 +353,14 @@ type DefaultAPI interface { @param instanceId The UUID of the instance. @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest + + Deprecated */ ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest // ListMetricsExecute executes the request // @return InstanceMetricsResponse + // Deprecated ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) /* @@ -304,11 +372,14 @@ type DefaultAPI interface { @param projectId Project ID @param flavorId Flavor ID @return ApiListStoragesRequest + + Deprecated */ ListStorages(ctx context.Context, projectId string, flavorId string) ApiListStoragesRequest // ListStoragesExecute executes the request // @return ListStoragesResponse + // Deprecated ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) /* @@ -320,11 +391,14 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiListUsersRequest + + Deprecated */ ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest // ListUsersExecute executes the request // @return ListUsersResponse + // Deprecated ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) /* @@ -335,27 +409,33 @@ type DefaultAPI interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListVersionsRequest + + Deprecated */ ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest // ListVersionsExecute executes the request // @return ListVersionsResponse + // Deprecated ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) /* PartialUpdateInstance Update Instance - Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! + Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @param instanceId Instance ID @return ApiPartialUpdateInstanceRequest + + Deprecated */ PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest // PartialUpdateInstanceExecute executes the request // @return PartialUpdateInstanceResponse + // Deprecated PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) /* @@ -368,10 +448,13 @@ type DefaultAPI interface { @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiPartialUpdateUserRequest + + Deprecated */ PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest // PartialUpdateUserExecute executes the request + // Deprecated PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error /* @@ -384,11 +467,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId user ID @return ApiResetUserRequest + + Deprecated */ ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest // ResetUserExecute executes the request // @return ResetUserResponse + // Deprecated ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) /* @@ -400,26 +486,32 @@ type DefaultAPI interface { @param projectId Project ID @param instanceId Instance ID @return ApiUpdateBackupScheduleRequest + + Deprecated */ UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest // UpdateBackupScheduleExecute executes the request + // Deprecated UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error /* UpdateInstance Update Instance - Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! + Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @param instanceId Instance ID @return ApiUpdateInstanceRequest + + Deprecated */ UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest // UpdateInstanceExecute executes the request // @return PartialUpdateInstanceResponse + // Deprecated UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) /* @@ -432,10 +524,13 @@ type DefaultAPI interface { @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiUpdateUserRequest + + Deprecated */ UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest // UpdateUserExecute executes the request + // Deprecated UpdateUserExecute(r ApiUpdateUserRequest) error } @@ -469,6 +564,8 @@ Clone an existing instance of a postgres database to a new destination instance @param projectId Project ID @param instanceId Instance ID @return ApiCloneInstanceRequest + +Deprecated */ func (a *DefaultAPIService) CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest { return ApiCloneInstanceRequest{ @@ -482,6 +579,8 @@ func (a *DefaultAPIService) CloneInstance(ctx context.Context, projectId string, // Execute executes the request // // @return CloneInstanceResponse +// +// Deprecated func (a *DefaultAPIService) CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -568,6 +667,17 @@ func (a *DefaultAPIService) CloneInstanceExecute(r ApiCloneInstanceRequest) (*Cl newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -612,6 +722,8 @@ Note: The name of a valid user must be provided in the "options" map field using @param projectId Project ID @param instanceId Instance ID @return ApiCreateDatabaseRequest + +Deprecated */ func (a *DefaultAPIService) CreateDatabase(ctx context.Context, projectId string, instanceId string) ApiCreateDatabaseRequest { return ApiCreateDatabaseRequest{ @@ -625,6 +737,8 @@ func (a *DefaultAPIService) CreateDatabase(ctx context.Context, projectId string // Execute executes the request // // @return InstanceCreateDatabaseResponse +// +// Deprecated func (a *DefaultAPIService) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -711,6 +825,17 @@ func (a *DefaultAPIService) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -752,6 +877,8 @@ Create a new instance of a postgres database @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiCreateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { return ApiCreateInstanceRequest{ @@ -764,6 +891,8 @@ func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string // Execute executes the request // // @return CreateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -849,6 +978,17 @@ func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -892,6 +1032,8 @@ Create user for an instance @param projectId Project ID @param instanceId Instance ID @return ApiCreateUserRequest + +Deprecated */ func (a *DefaultAPIService) CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest { return ApiCreateUserRequest{ @@ -905,6 +1047,8 @@ func (a *DefaultAPIService) CreateUser(ctx context.Context, projectId string, in // Execute executes the request // // @return CreateUserResponse +// +// Deprecated func (a *DefaultAPIService) CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -991,6 +1135,17 @@ func (a *DefaultAPIService) CreateUserExecute(r ApiCreateUserRequest) (*CreateUs newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1029,6 +1184,8 @@ Delete database for an instance @param instanceId Instance ID @param databaseId Database ID @return ApiDeleteDatabaseRequest + +Deprecated */ func (a *DefaultAPIService) DeleteDatabase(ctx context.Context, projectId string, instanceId string, databaseId string) ApiDeleteDatabaseRequest { return ApiDeleteDatabaseRequest{ @@ -1041,6 +1198,7 @@ func (a *DefaultAPIService) DeleteDatabase(ctx context.Context, projectId string } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1122,6 +1280,17 @@ func (a *DefaultAPIService) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) er newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } return newErr } @@ -1148,6 +1317,8 @@ Delete available instance @param projectId Project ID @param instanceId Instance ID @return ApiDeleteInstanceRequest + +Deprecated */ func (a *DefaultAPIService) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest { return ApiDeleteInstanceRequest{ @@ -1159,6 +1330,7 @@ func (a *DefaultAPIService) DeleteInstance(ctx context.Context, projectId string } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1239,6 +1411,17 @@ func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) er newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 404 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1288,6 +1471,8 @@ Delete user for an instance @param instanceId Instance ID @param userId User ID @return ApiDeleteUserRequest + +Deprecated */ func (a *DefaultAPIService) DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ @@ -1300,6 +1485,7 @@ func (a *DefaultAPIService) DeleteUser(ctx context.Context, projectId string, in } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteUserExecute(r ApiDeleteUserRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1381,6 +1567,154 @@ func (a *DefaultAPIService) DeleteUserExecute(r ApiDeleteUserRequest) error { newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + return newErr + } + + return nil +} + +type ApiDisableServiceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiDisableServiceRequest) Execute() error { + return r.ApiService.DisableServiceExecute(r) +} + +/* +DisableService Terminate the Project + +Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project ID + @return ApiDisableServiceRequest + +Deprecated +*/ +func (a *DefaultAPIService) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest { + return ApiDisableServiceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +// Deprecated +func (a *DefaultAPIService) DisableServiceExecute(r ApiDisableServiceRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DisableService") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } return newErr } @@ -1407,6 +1741,8 @@ Forces the deletion of an delayed deleted instance @param projectId Project ID @param instanceId Instance ID @return ApiForceDeleteInstanceRequest + +Deprecated */ func (a *DefaultAPIService) ForceDeleteInstance(ctx context.Context, projectId string, instanceId string) ApiForceDeleteInstanceRequest { return ApiForceDeleteInstanceRequest{ @@ -1418,6 +1754,7 @@ func (a *DefaultAPIService) ForceDeleteInstance(ctx context.Context, projectId s } // Execute executes the request +// Deprecated func (a *DefaultAPIService) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1487,6 +1824,28 @@ func (a *DefaultAPIService) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceR ErrorMessage: localVarHTTPResponse.Status, StatusCode: localVarHTTPResponse.StatusCode, } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 406 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1536,6 +1895,8 @@ Get specific available backup @param instanceId Instance ID @param backupId Backup ID @return ApiGetBackupRequest + +Deprecated */ func (a *DefaultAPIService) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest { return ApiGetBackupRequest{ @@ -1550,6 +1911,8 @@ func (a *DefaultAPIService) GetBackup(ctx context.Context, projectId string, ins // Execute executes the request // // @return GetBackupResponse +// +// Deprecated func (a *DefaultAPIService) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1632,6 +1995,17 @@ func (a *DefaultAPIService) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1668,6 +2042,8 @@ Get specific available instances @param projectId Project ID @param instanceId Instance ID @return ApiGetInstanceRequest + +Deprecated */ func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest { return ApiGetInstanceRequest{ @@ -1681,6 +2057,8 @@ func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, i // Execute executes the request // // @return InstanceResponse +// +// Deprecated func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1762,6 +2140,17 @@ func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*Instan newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1800,6 +2189,8 @@ Get specific available user for an instance @param instanceId Instance ID @param userId User ID @return ApiGetUserRequest + +Deprecated */ func (a *DefaultAPIService) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest { return ApiGetUserRequest{ @@ -1814,6 +2205,8 @@ func (a *DefaultAPIService) GetUser(ctx context.Context, projectId string, insta // Execute executes the request // // @return GetUserResponse +// +// Deprecated func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1896,6 +2289,17 @@ func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUserRespons newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1932,6 +2336,8 @@ List all backups which are available for a specific instance @param projectId Project ID @param instanceId Instance ID @return ApiListBackupsRequest + +Deprecated */ func (a *DefaultAPIService) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ @@ -1945,6 +2351,8 @@ func (a *DefaultAPIService) ListBackups(ctx context.Context, projectId string, i // Execute executes the request // // @return ListBackupsResponse +// +// Deprecated func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2026,6 +2434,17 @@ func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*ListBa newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2062,6 +2481,8 @@ List available databases parameter @param projectId Project ID @param instanceId Instance ID @return ApiListDatabaseParametersRequest + +Deprecated */ func (a *DefaultAPIService) ListDatabaseParameters(ctx context.Context, projectId string, instanceId string) ApiListDatabaseParametersRequest { return ApiListDatabaseParametersRequest{ @@ -2075,6 +2496,8 @@ func (a *DefaultAPIService) ListDatabaseParameters(ctx context.Context, projectI // Execute executes the request // // @return PostgresDatabaseParameterResponse +// +// Deprecated func (a *DefaultAPIService) ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2156,6 +2579,17 @@ func (a *DefaultAPIService) ListDatabaseParametersExecute(r ApiListDatabaseParam newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2192,6 +2626,8 @@ List available databases for an instance @param projectId Project ID @param instanceId Instance ID @return ApiListDatabasesRequest + +Deprecated */ func (a *DefaultAPIService) ListDatabases(ctx context.Context, projectId string, instanceId string) ApiListDatabasesRequest { return ApiListDatabasesRequest{ @@ -2205,6 +2641,8 @@ func (a *DefaultAPIService) ListDatabases(ctx context.Context, projectId string, // Execute executes the request // // @return InstanceListDatabasesResponse +// +// Deprecated func (a *DefaultAPIService) ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2286,6 +2724,28 @@ func (a *DefaultAPIService) ListDatabasesExecute(r ApiListDatabasesRequest) (*In newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2320,6 +2780,8 @@ Get available flavors for a specific projectID @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListFlavorsRequest + +Deprecated */ func (a *DefaultAPIService) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest { return ApiListFlavorsRequest{ @@ -2332,6 +2794,8 @@ func (a *DefaultAPIService) ListFlavors(ctx context.Context, projectId string) A // Execute executes the request // // @return ListFlavorsResponse +// +// Deprecated func (a *DefaultAPIService) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2412,6 +2876,17 @@ func (a *DefaultAPIService) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFl newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2446,6 +2921,8 @@ List available instances @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListInstancesRequest + +Deprecated */ func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { return ApiListInstancesRequest{ @@ -2458,6 +2935,8 @@ func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string) // Execute executes the request // // @return ListInstancesResponse +// +// Deprecated func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2538,6 +3017,17 @@ func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*Li newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2604,6 +3094,8 @@ Returns a metric for an instance. The metric will only be for the master pod if @param instanceId The UUID of the instance. @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest + +Deprecated */ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest { return ApiListMetricsRequest{ @@ -2618,6 +3110,8 @@ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, i // Execute executes the request // // @return InstanceMetricsResponse +// +// Deprecated func (a *DefaultAPIService) ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2713,6 +3207,17 @@ func (a *DefaultAPIService) ListMetricsExecute(r ApiListMetricsRequest) (*Instan newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } if localVarHTTPResponse.StatusCode == 405 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -2770,6 +3275,8 @@ Get available storages for a specific flavor @param projectId Project ID @param flavorId Flavor ID @return ApiListStoragesRequest + +Deprecated */ func (a *DefaultAPIService) ListStorages(ctx context.Context, projectId string, flavorId string) ApiListStoragesRequest { return ApiListStoragesRequest{ @@ -2783,6 +3290,8 @@ func (a *DefaultAPIService) ListStorages(ctx context.Context, projectId string, // Execute executes the request // // @return ListStoragesResponse +// +// Deprecated func (a *DefaultAPIService) ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2864,6 +3373,17 @@ func (a *DefaultAPIService) ListStoragesExecute(r ApiListStoragesRequest) (*List newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2900,6 +3420,8 @@ List available users for an instance @param projectId Project ID @param instanceId Instance ID @return ApiListUsersRequest + +Deprecated */ func (a *DefaultAPIService) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest { return ApiListUsersRequest{ @@ -2913,6 +3435,8 @@ func (a *DefaultAPIService) ListUsers(ctx context.Context, projectId string, ins // Execute executes the request // // @return ListUsersResponse +// +// Deprecated func (a *DefaultAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2994,6 +3518,28 @@ func (a *DefaultAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsersR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3035,6 +3581,8 @@ Get available versions for postgres database @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @return ApiListVersionsRequest + +Deprecated */ func (a *DefaultAPIService) ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest { return ApiListVersionsRequest{ @@ -3047,6 +3595,8 @@ func (a *DefaultAPIService) ListVersions(ctx context.Context, projectId string) // Execute executes the request // // @return ListVersionsResponse +// +// Deprecated func (a *DefaultAPIService) ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3130,6 +3680,17 @@ func (a *DefaultAPIService) ListVersionsExecute(r ApiListVersionsRequest) (*List newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3167,12 +3728,14 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*PartialUpdateInstanceRespon /* PartialUpdateInstance Update Instance -Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! +Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @param instanceId Instance ID @return ApiPartialUpdateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest { return ApiPartialUpdateInstanceRequest{ @@ -3186,6 +3749,8 @@ func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId // Execute executes the request // // @return PartialUpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -3272,6 +3837,17 @@ func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInsta newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3317,6 +3893,8 @@ Update user for an instance. Only the roles are updatable. @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiPartialUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest { return ApiPartialUpdateUserRequest{ @@ -3329,6 +3907,7 @@ func (a *DefaultAPIService) PartialUpdateUser(ctx context.Context, projectId str } // Execute executes the request +// Deprecated func (a *DefaultAPIService) PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error { var ( localVarHTTPMethod = http.MethodPatch @@ -3412,6 +3991,17 @@ func (a *DefaultAPIService) PartialUpdateUserExecute(r ApiPartialUpdateUserReque newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -3450,6 +4040,8 @@ Reset user password for a postgres instance @param instanceId Instance ID @param userId user ID @return ApiResetUserRequest + +Deprecated */ func (a *DefaultAPIService) ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest { return ApiResetUserRequest{ @@ -3464,6 +4056,8 @@ func (a *DefaultAPIService) ResetUser(ctx context.Context, projectId string, ins // Execute executes the request // // @return ResetUserResponse +// +// Deprecated func (a *DefaultAPIService) ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3546,6 +4140,17 @@ func (a *DefaultAPIService) ResetUserExecute(r ApiResetUserRequest) (*ResetUserR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } if localVarHTTPResponse.StatusCode == 404 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -3610,6 +4215,8 @@ Update backup schedule @param projectId Project ID @param instanceId Instance ID @return ApiUpdateBackupScheduleRequest + +Deprecated */ func (a *DefaultAPIService) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest { return ApiUpdateBackupScheduleRequest{ @@ -3621,6 +4228,7 @@ func (a *DefaultAPIService) UpdateBackupSchedule(ctx context.Context, projectId } // Execute executes the request +// Deprecated func (a *DefaultAPIService) UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error { var ( localVarHTTPMethod = http.MethodPut @@ -3706,6 +4314,17 @@ func (a *DefaultAPIService) UpdateBackupScheduleExecute(r ApiUpdateBackupSchedul newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } return newErr } @@ -3733,12 +4352,14 @@ func (r ApiUpdateInstanceRequest) Execute() (*PartialUpdateInstanceResponse, err /* UpdateInstance Update Instance -Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! +Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @param instanceId Instance ID @return ApiUpdateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest { return ApiUpdateInstanceRequest{ @@ -3752,6 +4373,8 @@ func (a *DefaultAPIService) UpdateInstance(ctx context.Context, projectId string // Execute executes the request // // @return PartialUpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -3838,6 +4461,17 @@ func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3883,6 +4517,8 @@ Update user for an instance. Only the roles are updatable. @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ @@ -3895,6 +4531,7 @@ func (a *DefaultAPIService) UpdateUser(ctx context.Context, projectId string, in } // Execute executes the request +// Deprecated func (a *DefaultAPIService) UpdateUserExecute(r ApiUpdateUserRequest) error { var ( localVarHTTPMethod = http.MethodPut @@ -3978,6 +4615,17 @@ func (a *DefaultAPIService) UpdateUserExecute(r ApiUpdateUserRequest) error { newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/services/postgresflex/v1api/api_default_mock.go b/services/postgresflex/v1api/api_default_mock.go index e33909c66c..e7845ec712 100644 --- a/services/postgresflex/v1api/api_default_mock.go +++ b/services/postgresflex/v1api/api_default_mock.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,60 +21,63 @@ var _ DefaultAPI = &DefaultAPIServiceMock{} // DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. // By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. type DefaultAPIServiceMock struct { - // CloneInstanceExecuteMock can be populated to implement the behavior of the CloneInstanceExecute function of this mock + // Deprecated: CloneInstanceExecuteMock can be populated to implement the behavior of the CloneInstanceExecute function of this mock CloneInstanceExecuteMock *func(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) - // CreateDatabaseExecuteMock can be populated to implement the behavior of the CreateDatabaseExecute function of this mock + // Deprecated: CreateDatabaseExecuteMock can be populated to implement the behavior of the CreateDatabaseExecute function of this mock CreateDatabaseExecuteMock *func(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) - // CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock + // Deprecated: CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock CreateInstanceExecuteMock *func(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) - // CreateUserExecuteMock can be populated to implement the behavior of the CreateUserExecute function of this mock + // Deprecated: CreateUserExecuteMock can be populated to implement the behavior of the CreateUserExecute function of this mock CreateUserExecuteMock *func(r ApiCreateUserRequest) (*CreateUserResponse, error) - // DeleteDatabaseExecuteMock can be populated to implement the behavior of the DeleteDatabaseExecute function of this mock + // Deprecated: DeleteDatabaseExecuteMock can be populated to implement the behavior of the DeleteDatabaseExecute function of this mock DeleteDatabaseExecuteMock *func(r ApiDeleteDatabaseRequest) error - // DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock + // Deprecated: DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock DeleteInstanceExecuteMock *func(r ApiDeleteInstanceRequest) error - // DeleteUserExecuteMock can be populated to implement the behavior of the DeleteUserExecute function of this mock + // Deprecated: DeleteUserExecuteMock can be populated to implement the behavior of the DeleteUserExecute function of this mock DeleteUserExecuteMock *func(r ApiDeleteUserRequest) error - // ForceDeleteInstanceExecuteMock can be populated to implement the behavior of the ForceDeleteInstanceExecute function of this mock + // Deprecated: DisableServiceExecuteMock can be populated to implement the behavior of the DisableServiceExecute function of this mock + DisableServiceExecuteMock *func(r ApiDisableServiceRequest) error + // Deprecated: ForceDeleteInstanceExecuteMock can be populated to implement the behavior of the ForceDeleteInstanceExecute function of this mock ForceDeleteInstanceExecuteMock *func(r ApiForceDeleteInstanceRequest) error - // GetBackupExecuteMock can be populated to implement the behavior of the GetBackupExecute function of this mock + // Deprecated: GetBackupExecuteMock can be populated to implement the behavior of the GetBackupExecute function of this mock GetBackupExecuteMock *func(r ApiGetBackupRequest) (*GetBackupResponse, error) - // GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock + // Deprecated: GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock GetInstanceExecuteMock *func(r ApiGetInstanceRequest) (*InstanceResponse, error) - // GetUserExecuteMock can be populated to implement the behavior of the GetUserExecute function of this mock + // Deprecated: GetUserExecuteMock can be populated to implement the behavior of the GetUserExecute function of this mock GetUserExecuteMock *func(r ApiGetUserRequest) (*GetUserResponse, error) - // ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock + // Deprecated: ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock ListBackupsExecuteMock *func(r ApiListBackupsRequest) (*ListBackupsResponse, error) - // ListDatabaseParametersExecuteMock can be populated to implement the behavior of the ListDatabaseParametersExecute function of this mock + // Deprecated: ListDatabaseParametersExecuteMock can be populated to implement the behavior of the ListDatabaseParametersExecute function of this mock ListDatabaseParametersExecuteMock *func(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) - // ListDatabasesExecuteMock can be populated to implement the behavior of the ListDatabasesExecute function of this mock + // Deprecated: ListDatabasesExecuteMock can be populated to implement the behavior of the ListDatabasesExecute function of this mock ListDatabasesExecuteMock *func(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) - // ListFlavorsExecuteMock can be populated to implement the behavior of the ListFlavorsExecute function of this mock + // Deprecated: ListFlavorsExecuteMock can be populated to implement the behavior of the ListFlavorsExecute function of this mock ListFlavorsExecuteMock *func(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) - // ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock + // Deprecated: ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock ListInstancesExecuteMock *func(r ApiListInstancesRequest) (*ListInstancesResponse, error) - // ListMetricsExecuteMock can be populated to implement the behavior of the ListMetricsExecute function of this mock + // Deprecated: ListMetricsExecuteMock can be populated to implement the behavior of the ListMetricsExecute function of this mock ListMetricsExecuteMock *func(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) - // ListStoragesExecuteMock can be populated to implement the behavior of the ListStoragesExecute function of this mock + // Deprecated: ListStoragesExecuteMock can be populated to implement the behavior of the ListStoragesExecute function of this mock ListStoragesExecuteMock *func(r ApiListStoragesRequest) (*ListStoragesResponse, error) - // ListUsersExecuteMock can be populated to implement the behavior of the ListUsersExecute function of this mock + // Deprecated: ListUsersExecuteMock can be populated to implement the behavior of the ListUsersExecute function of this mock ListUsersExecuteMock *func(r ApiListUsersRequest) (*ListUsersResponse, error) - // ListVersionsExecuteMock can be populated to implement the behavior of the ListVersionsExecute function of this mock + // Deprecated: ListVersionsExecuteMock can be populated to implement the behavior of the ListVersionsExecute function of this mock ListVersionsExecuteMock *func(r ApiListVersionsRequest) (*ListVersionsResponse, error) - // PartialUpdateInstanceExecuteMock can be populated to implement the behavior of the PartialUpdateInstanceExecute function of this mock + // Deprecated: PartialUpdateInstanceExecuteMock can be populated to implement the behavior of the PartialUpdateInstanceExecute function of this mock PartialUpdateInstanceExecuteMock *func(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) - // PartialUpdateUserExecuteMock can be populated to implement the behavior of the PartialUpdateUserExecute function of this mock + // Deprecated: PartialUpdateUserExecuteMock can be populated to implement the behavior of the PartialUpdateUserExecute function of this mock PartialUpdateUserExecuteMock *func(r ApiPartialUpdateUserRequest) error - // ResetUserExecuteMock can be populated to implement the behavior of the ResetUserExecute function of this mock + // Deprecated: ResetUserExecuteMock can be populated to implement the behavior of the ResetUserExecute function of this mock ResetUserExecuteMock *func(r ApiResetUserRequest) (*ResetUserResponse, error) - // UpdateBackupScheduleExecuteMock can be populated to implement the behavior of the UpdateBackupScheduleExecute function of this mock + // Deprecated: UpdateBackupScheduleExecuteMock can be populated to implement the behavior of the UpdateBackupScheduleExecute function of this mock UpdateBackupScheduleExecuteMock *func(r ApiUpdateBackupScheduleRequest) error - // UpdateInstanceExecuteMock can be populated to implement the behavior of the UpdateInstanceExecute function of this mock + // Deprecated: UpdateInstanceExecuteMock can be populated to implement the behavior of the UpdateInstanceExecute function of this mock UpdateInstanceExecuteMock *func(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) - // UpdateUserExecuteMock can be populated to implement the behavior of the UpdateUserExecute function of this mock + // Deprecated: UpdateUserExecuteMock can be populated to implement the behavior of the UpdateUserExecute function of this mock UpdateUserExecuteMock *func(r ApiUpdateUserRequest) error } +// Deprecated func (a DefaultAPIServiceMock) CloneInstance(ctx context.Context, projectId string, instanceId string) ApiCloneInstanceRequest { return ApiCloneInstanceRequest{ ApiService: a, @@ -84,7 +87,7 @@ func (a DefaultAPIServiceMock) CloneInstance(ctx context.Context, projectId stri } } -// CloneInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CloneInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CloneInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CloneInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) { if a.CloneInstanceExecuteMock == nil { var localVarReturnValue *CloneInstanceResponse @@ -94,6 +97,7 @@ func (a DefaultAPIServiceMock) CloneInstanceExecute(r ApiCloneInstanceRequest) ( return (*a.CloneInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateDatabase(ctx context.Context, projectId string, instanceId string) ApiCreateDatabaseRequest { return ApiCreateDatabaseRequest{ ApiService: a, @@ -103,7 +107,7 @@ func (a DefaultAPIServiceMock) CreateDatabase(ctx context.Context, projectId str } } -// CreateDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDatabaseExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDatabaseExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) { if a.CreateDatabaseExecuteMock == nil { var localVarReturnValue *InstanceCreateDatabaseResponse @@ -113,6 +117,7 @@ func (a DefaultAPIServiceMock) CreateDatabaseExecute(r ApiCreateDatabaseRequest) return (*a.CreateDatabaseExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { return ApiCreateInstanceRequest{ ApiService: a, @@ -121,7 +126,7 @@ func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId str } } -// CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { if a.CreateInstanceExecuteMock == nil { var localVarReturnValue *CreateInstanceResponse @@ -131,6 +136,7 @@ func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) return (*a.CreateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateUser(ctx context.Context, projectId string, instanceId string) ApiCreateUserRequest { return ApiCreateUserRequest{ ApiService: a, @@ -140,7 +146,7 @@ func (a DefaultAPIServiceMock) CreateUser(ctx context.Context, projectId string, } } -// CreateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) { if a.CreateUserExecuteMock == nil { var localVarReturnValue *CreateUserResponse @@ -150,6 +156,7 @@ func (a DefaultAPIServiceMock) CreateUserExecute(r ApiCreateUserRequest) (*Creat return (*a.CreateUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteDatabase(ctx context.Context, projectId string, instanceId string, databaseId string) ApiDeleteDatabaseRequest { return ApiDeleteDatabaseRequest{ ApiService: a, @@ -160,7 +167,7 @@ func (a DefaultAPIServiceMock) DeleteDatabase(ctx context.Context, projectId str } } -// DeleteDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDatabaseExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDatabaseExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error { if a.DeleteDatabaseExecuteMock == nil { return nil @@ -169,6 +176,7 @@ func (a DefaultAPIServiceMock) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) return (*a.DeleteDatabaseExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest { return ApiDeleteInstanceRequest{ ApiService: a, @@ -178,7 +186,7 @@ func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId str } } -// DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) error { if a.DeleteInstanceExecuteMock == nil { return nil @@ -187,6 +195,7 @@ func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) return (*a.DeleteInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteUser(ctx context.Context, projectId string, instanceId string, userId string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ ApiService: a, @@ -197,7 +206,7 @@ func (a DefaultAPIServiceMock) DeleteUser(ctx context.Context, projectId string, } } -// DeleteUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { if a.DeleteUserExecuteMock == nil { return nil @@ -206,6 +215,25 @@ func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { return (*a.DeleteUserExecuteMock)(r) } +// Deprecated +func (a DefaultAPIServiceMock) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest { + return ApiDisableServiceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Deprecated: DisableServiceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DisableServiceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DisableServiceExecute(r ApiDisableServiceRequest) error { + if a.DisableServiceExecuteMock == nil { + return nil + } + + return (*a.DisableServiceExecuteMock)(r) +} + +// Deprecated func (a DefaultAPIServiceMock) ForceDeleteInstance(ctx context.Context, projectId string, instanceId string) ApiForceDeleteInstanceRequest { return ApiForceDeleteInstanceRequest{ ApiService: a, @@ -215,7 +243,7 @@ func (a DefaultAPIServiceMock) ForceDeleteInstance(ctx context.Context, projectI } } -// ForceDeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ForceDeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ForceDeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ForceDeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error { if a.ForceDeleteInstanceExecuteMock == nil { return nil @@ -224,6 +252,7 @@ func (a DefaultAPIServiceMock) ForceDeleteInstanceExecute(r ApiForceDeleteInstan return (*a.ForceDeleteInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest { return ApiGetBackupRequest{ ApiService: a, @@ -234,7 +263,7 @@ func (a DefaultAPIServiceMock) GetBackup(ctx context.Context, projectId string, } } -// GetBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetBackupExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetBackupExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) { if a.GetBackupExecuteMock == nil { var localVarReturnValue *GetBackupResponse @@ -244,6 +273,7 @@ func (a DefaultAPIServiceMock) GetBackupExecute(r ApiGetBackupRequest) (*GetBack return (*a.GetBackupExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, projectId string, instanceId string) ApiGetInstanceRequest { return ApiGetInstanceRequest{ ApiService: a, @@ -253,7 +283,7 @@ func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, projectId string } } -// GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) { if a.GetInstanceExecuteMock == nil { var localVarReturnValue *InstanceResponse @@ -263,6 +293,7 @@ func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*Ins return (*a.GetInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest { return ApiGetUserRequest{ ApiService: a, @@ -273,7 +304,7 @@ func (a DefaultAPIServiceMock) GetUser(ctx context.Context, projectId string, in } } -// GetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) { if a.GetUserExecuteMock == nil { var localVarReturnValue *GetUserResponse @@ -283,6 +314,7 @@ func (a DefaultAPIServiceMock) GetUserExecute(r ApiGetUserRequest) (*GetUserResp return (*a.GetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ ApiService: a, @@ -292,7 +324,7 @@ func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string } } -// ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) { if a.ListBackupsExecuteMock == nil { var localVarReturnValue *ListBackupsResponse @@ -302,6 +334,7 @@ func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*Lis return (*a.ListBackupsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListDatabaseParameters(ctx context.Context, projectId string, instanceId string) ApiListDatabaseParametersRequest { return ApiListDatabaseParametersRequest{ ApiService: a, @@ -311,7 +344,7 @@ func (a DefaultAPIServiceMock) ListDatabaseParameters(ctx context.Context, proje } } -// ListDatabaseParametersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabaseParametersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListDatabaseParametersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabaseParametersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) { if a.ListDatabaseParametersExecuteMock == nil { var localVarReturnValue *PostgresDatabaseParameterResponse @@ -321,6 +354,7 @@ func (a DefaultAPIServiceMock) ListDatabaseParametersExecute(r ApiListDatabasePa return (*a.ListDatabaseParametersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListDatabases(ctx context.Context, projectId string, instanceId string) ApiListDatabasesRequest { return ApiListDatabasesRequest{ ApiService: a, @@ -330,7 +364,7 @@ func (a DefaultAPIServiceMock) ListDatabases(ctx context.Context, projectId stri } } -// ListDatabasesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabasesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListDatabasesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabasesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) { if a.ListDatabasesExecuteMock == nil { var localVarReturnValue *InstanceListDatabasesResponse @@ -340,6 +374,7 @@ func (a DefaultAPIServiceMock) ListDatabasesExecute(r ApiListDatabasesRequest) ( return (*a.ListDatabasesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest { return ApiListFlavorsRequest{ ApiService: a, @@ -348,7 +383,7 @@ func (a DefaultAPIServiceMock) ListFlavors(ctx context.Context, projectId string } } -// ListFlavorsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListFlavorsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListFlavorsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListFlavorsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) { if a.ListFlavorsExecuteMock == nil { var localVarReturnValue *ListFlavorsResponse @@ -358,6 +393,7 @@ func (a DefaultAPIServiceMock) ListFlavorsExecute(r ApiListFlavorsRequest) (*Lis return (*a.ListFlavorsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest { return ApiListInstancesRequest{ ApiService: a, @@ -366,7 +402,7 @@ func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId stri } } -// ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { if a.ListInstancesExecuteMock == nil { var localVarReturnValue *ListInstancesResponse @@ -376,6 +412,7 @@ func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) ( return (*a.ListInstancesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest { return ApiListMetricsRequest{ ApiService: a, @@ -386,7 +423,7 @@ func (a DefaultAPIServiceMock) ListMetrics(ctx context.Context, projectId string } } -// ListMetricsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMetricsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListMetricsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMetricsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) { if a.ListMetricsExecuteMock == nil { var localVarReturnValue *InstanceMetricsResponse @@ -396,6 +433,7 @@ func (a DefaultAPIServiceMock) ListMetricsExecute(r ApiListMetricsRequest) (*Ins return (*a.ListMetricsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListStorages(ctx context.Context, projectId string, flavorId string) ApiListStoragesRequest { return ApiListStoragesRequest{ ApiService: a, @@ -405,7 +443,7 @@ func (a DefaultAPIServiceMock) ListStorages(ctx context.Context, projectId strin } } -// ListStoragesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListStoragesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListStoragesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListStoragesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) { if a.ListStoragesExecuteMock == nil { var localVarReturnValue *ListStoragesResponse @@ -415,6 +453,7 @@ func (a DefaultAPIServiceMock) ListStoragesExecute(r ApiListStoragesRequest) (*L return (*a.ListStoragesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest { return ApiListUsersRequest{ ApiService: a, @@ -424,7 +463,7 @@ func (a DefaultAPIServiceMock) ListUsers(ctx context.Context, projectId string, } } -// ListUsersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUsersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListUsersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUsersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) { if a.ListUsersExecuteMock == nil { var localVarReturnValue *ListUsersResponse @@ -434,6 +473,7 @@ func (a DefaultAPIServiceMock) ListUsersExecute(r ApiListUsersRequest) (*ListUse return (*a.ListUsersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest { return ApiListVersionsRequest{ ApiService: a, @@ -442,7 +482,7 @@ func (a DefaultAPIServiceMock) ListVersions(ctx context.Context, projectId strin } } -// ListVersionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListVersionsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListVersionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListVersionsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) { if a.ListVersionsExecuteMock == nil { var localVarReturnValue *ListVersionsResponse @@ -452,6 +492,7 @@ func (a DefaultAPIServiceMock) ListVersionsExecute(r ApiListVersionsRequest) (*L return (*a.ListVersionsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PartialUpdateInstance(ctx context.Context, projectId string, instanceId string) ApiPartialUpdateInstanceRequest { return ApiPartialUpdateInstanceRequest{ ApiService: a, @@ -461,7 +502,7 @@ func (a DefaultAPIServiceMock) PartialUpdateInstance(ctx context.Context, projec } } -// PartialUpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PartialUpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { if a.PartialUpdateInstanceExecuteMock == nil { var localVarReturnValue *PartialUpdateInstanceResponse @@ -471,6 +512,7 @@ func (a DefaultAPIServiceMock) PartialUpdateInstanceExecute(r ApiPartialUpdateIn return (*a.PartialUpdateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest { return ApiPartialUpdateUserRequest{ ApiService: a, @@ -481,7 +523,7 @@ func (a DefaultAPIServiceMock) PartialUpdateUser(ctx context.Context, projectId } } -// PartialUpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PartialUpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error { if a.PartialUpdateUserExecuteMock == nil { return nil @@ -490,6 +532,7 @@ func (a DefaultAPIServiceMock) PartialUpdateUserExecute(r ApiPartialUpdateUserRe return (*a.PartialUpdateUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ResetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiResetUserRequest { return ApiResetUserRequest{ ApiService: a, @@ -500,7 +543,7 @@ func (a DefaultAPIServiceMock) ResetUser(ctx context.Context, projectId string, } } -// ResetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ResetUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ResetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ResetUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) { if a.ResetUserExecuteMock == nil { var localVarReturnValue *ResetUserResponse @@ -510,6 +553,7 @@ func (a DefaultAPIServiceMock) ResetUserExecute(r ApiResetUserRequest) (*ResetUs return (*a.ResetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest { return ApiUpdateBackupScheduleRequest{ ApiService: a, @@ -519,7 +563,7 @@ func (a DefaultAPIServiceMock) UpdateBackupSchedule(ctx context.Context, project } } -// UpdateBackupScheduleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateBackupScheduleExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateBackupScheduleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateBackupScheduleExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error { if a.UpdateBackupScheduleExecuteMock == nil { return nil @@ -528,6 +572,7 @@ func (a DefaultAPIServiceMock) UpdateBackupScheduleExecute(r ApiUpdateBackupSche return (*a.UpdateBackupScheduleExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateInstance(ctx context.Context, projectId string, instanceId string) ApiUpdateInstanceRequest { return ApiUpdateInstanceRequest{ ApiService: a, @@ -537,7 +582,7 @@ func (a DefaultAPIServiceMock) UpdateInstance(ctx context.Context, projectId str } } -// UpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { if a.UpdateInstanceExecuteMock == nil { var localVarReturnValue *PartialUpdateInstanceResponse @@ -547,6 +592,7 @@ func (a DefaultAPIServiceMock) UpdateInstanceExecute(r ApiUpdateInstanceRequest) return (*a.UpdateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ ApiService: a, @@ -557,7 +603,7 @@ func (a DefaultAPIServiceMock) UpdateUser(ctx context.Context, projectId string, } } -// UpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateUserExecute(r ApiUpdateUserRequest) error { if a.UpdateUserExecuteMock == nil { return nil diff --git a/services/postgresflex/v1api/client.go b/services/postgresflex/v1api/client.go index f1e05d5ac2..bded862956 100644 --- a/services/postgresflex/v1api/client.go +++ b/services/postgresflex/v1api/client.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/configuration.go b/services/postgresflex/v1api/configuration.go index 4befa1c48a..d6bd563372 100644 --- a/services/postgresflex/v1api/configuration.go +++ b/services/postgresflex/v1api/configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -22,15 +22,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://postgres-flex-service.api.{region}stackit.cloud", + URL: "https://postgres-flex-service.api.stackit.cloud", Description: "No description provided", Variables: map[string]config.ServerVariable{ "region": { Description: "No description provided", - DefaultValue: "eu01.", - EnumValues: []string{ - "eu01.", - }, + DefaultValue: "global", }, }, }, diff --git a/services/postgresflex/v1api/model_acl.go b/services/postgresflex/v1api/model_acl.go index b7de719b8f..fc2f0f8535 100644 --- a/services/postgresflex/v1api/model_acl.go +++ b/services/postgresflex/v1api/model_acl.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_api_configuration.go b/services/postgresflex/v1api/model_api_configuration.go index 4d8d4d1bff..5cfec4ac1e 100644 --- a/services/postgresflex/v1api/model_api_configuration.go +++ b/services/postgresflex/v1api/model_api_configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_api_extension_config_load_response.go b/services/postgresflex/v1api/model_api_extension_config_load_response.go deleted file mode 100644 index ccd0685517..0000000000 --- a/services/postgresflex/v1api/model_api_extension_config_load_response.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionConfigLoadResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionConfigLoadResponse{} - -// ApiExtensionConfigLoadResponse struct for ApiExtensionConfigLoadResponse -type ApiExtensionConfigLoadResponse struct { - // Returns marshalled JSON of the new configuration of whatever extension is called - Configuration []ApiConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionConfigLoadResponse ApiExtensionConfigLoadResponse - -// NewApiExtensionConfigLoadResponse instantiates a new ApiExtensionConfigLoadResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionConfigLoadResponse() *ApiExtensionConfigLoadResponse { - this := ApiExtensionConfigLoadResponse{} - return &this -} - -// NewApiExtensionConfigLoadResponseWithDefaults instantiates a new ApiExtensionConfigLoadResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionConfigLoadResponseWithDefaults() *ApiExtensionConfigLoadResponse { - this := ApiExtensionConfigLoadResponse{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ApiExtensionConfigLoadResponse) GetConfiguration() []ApiConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ApiConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionConfigLoadResponse) GetConfigurationOk() ([]ApiConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ApiExtensionConfigLoadResponse) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ApiConfiguration and assigns it to the Configuration field. -func (o *ApiExtensionConfigLoadResponse) SetConfiguration(v []ApiConfiguration) { - o.Configuration = v -} - -func (o ApiExtensionConfigLoadResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionConfigLoadResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionConfigLoadResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionConfigLoadResponse := _ApiExtensionConfigLoadResponse{} - - err = json.Unmarshal(data, &varApiExtensionConfigLoadResponse) - - if err != nil { - return err - } - - *o = ApiExtensionConfigLoadResponse(varApiExtensionConfigLoadResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionConfigLoadResponse struct { - value *ApiExtensionConfigLoadResponse - isSet bool -} - -func (v NullableApiExtensionConfigLoadResponse) Get() *ApiExtensionConfigLoadResponse { - return v.value -} - -func (v *NullableApiExtensionConfigLoadResponse) Set(val *ApiExtensionConfigLoadResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionConfigLoadResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionConfigLoadResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionConfigLoadResponse(val *ApiExtensionConfigLoadResponse) *NullableApiExtensionConfigLoadResponse { - return &NullableApiExtensionConfigLoadResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionConfigLoadResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionConfigLoadResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_configure_response.go b/services/postgresflex/v1api/model_api_extension_configure_response.go deleted file mode 100644 index 4795aaa2f4..0000000000 --- a/services/postgresflex/v1api/model_api_extension_configure_response.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionConfigureResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionConfigureResponse{} - -// ApiExtensionConfigureResponse struct for ApiExtensionConfigureResponse -type ApiExtensionConfigureResponse struct { - // Returns marshalled JSON of the new configuration of whatever extension is called - Configuration []ApiConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionConfigureResponse ApiExtensionConfigureResponse - -// NewApiExtensionConfigureResponse instantiates a new ApiExtensionConfigureResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionConfigureResponse() *ApiExtensionConfigureResponse { - this := ApiExtensionConfigureResponse{} - return &this -} - -// NewApiExtensionConfigureResponseWithDefaults instantiates a new ApiExtensionConfigureResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionConfigureResponseWithDefaults() *ApiExtensionConfigureResponse { - this := ApiExtensionConfigureResponse{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ApiExtensionConfigureResponse) GetConfiguration() []ApiConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ApiConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionConfigureResponse) GetConfigurationOk() ([]ApiConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ApiExtensionConfigureResponse) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ApiConfiguration and assigns it to the Configuration field. -func (o *ApiExtensionConfigureResponse) SetConfiguration(v []ApiConfiguration) { - o.Configuration = v -} - -func (o ApiExtensionConfigureResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionConfigureResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionConfigureResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionConfigureResponse := _ApiExtensionConfigureResponse{} - - err = json.Unmarshal(data, &varApiExtensionConfigureResponse) - - if err != nil { - return err - } - - *o = ApiExtensionConfigureResponse(varApiExtensionConfigureResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionConfigureResponse struct { - value *ApiExtensionConfigureResponse - isSet bool -} - -func (v NullableApiExtensionConfigureResponse) Get() *ApiExtensionConfigureResponse { - return v.value -} - -func (v *NullableApiExtensionConfigureResponse) Set(val *ApiExtensionConfigureResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionConfigureResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionConfigureResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionConfigureResponse(val *ApiExtensionConfigureResponse) *NullableApiExtensionConfigureResponse { - return &NullableApiExtensionConfigureResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionConfigureResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionConfigureResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_delete_response.go b/services/postgresflex/v1api/model_api_extension_delete_response.go deleted file mode 100644 index d72f77cb77..0000000000 --- a/services/postgresflex/v1api/model_api_extension_delete_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionDeleteResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionDeleteResponse{} - -// ApiExtensionDeleteResponse struct for ApiExtensionDeleteResponse -type ApiExtensionDeleteResponse struct { - IsSucceded *bool `json:"isSucceded,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionDeleteResponse ApiExtensionDeleteResponse - -// NewApiExtensionDeleteResponse instantiates a new ApiExtensionDeleteResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionDeleteResponse() *ApiExtensionDeleteResponse { - this := ApiExtensionDeleteResponse{} - return &this -} - -// NewApiExtensionDeleteResponseWithDefaults instantiates a new ApiExtensionDeleteResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionDeleteResponseWithDefaults() *ApiExtensionDeleteResponse { - this := ApiExtensionDeleteResponse{} - return &this -} - -// GetIsSucceded returns the IsSucceded field value if set, zero value otherwise. -func (o *ApiExtensionDeleteResponse) GetIsSucceded() bool { - if o == nil || IsNil(o.IsSucceded) { - var ret bool - return ret - } - return *o.IsSucceded -} - -// GetIsSuccededOk returns a tuple with the IsSucceded field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionDeleteResponse) GetIsSuccededOk() (*bool, bool) { - if o == nil || IsNil(o.IsSucceded) { - return nil, false - } - return o.IsSucceded, true -} - -// HasIsSucceded returns a boolean if a field has been set. -func (o *ApiExtensionDeleteResponse) HasIsSucceded() bool { - if o != nil && !IsNil(o.IsSucceded) { - return true - } - - return false -} - -// SetIsSucceded gets a reference to the given bool and assigns it to the IsSucceded field. -func (o *ApiExtensionDeleteResponse) SetIsSucceded(v bool) { - o.IsSucceded = &v -} - -func (o ApiExtensionDeleteResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionDeleteResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.IsSucceded) { - toSerialize["isSucceded"] = o.IsSucceded - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionDeleteResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionDeleteResponse := _ApiExtensionDeleteResponse{} - - err = json.Unmarshal(data, &varApiExtensionDeleteResponse) - - if err != nil { - return err - } - - *o = ApiExtensionDeleteResponse(varApiExtensionDeleteResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "isSucceded") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionDeleteResponse struct { - value *ApiExtensionDeleteResponse - isSet bool -} - -func (v NullableApiExtensionDeleteResponse) Get() *ApiExtensionDeleteResponse { - return v.value -} - -func (v *NullableApiExtensionDeleteResponse) Set(val *ApiExtensionDeleteResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionDeleteResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionDeleteResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionDeleteResponse(val *ApiExtensionDeleteResponse) *NullableApiExtensionDeleteResponse { - return &NullableApiExtensionDeleteResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionDeleteResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionDeleteResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_list.go b/services/postgresflex/v1api/model_api_extension_list.go deleted file mode 100644 index 95f0222018..0000000000 --- a/services/postgresflex/v1api/model_api_extension_list.go +++ /dev/null @@ -1,228 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionList{} - -// ApiExtensionList struct for ApiExtensionList -type ApiExtensionList struct { - ID *int32 `json:"ID,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionList ApiExtensionList - -// NewApiExtensionList instantiates a new ApiExtensionList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionList() *ApiExtensionList { - this := ApiExtensionList{} - return &this -} - -// NewApiExtensionListWithDefaults instantiates a new ApiExtensionList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionListWithDefaults() *ApiExtensionList { - this := ApiExtensionList{} - return &this -} - -// GetID returns the ID field value if set, zero value otherwise. -func (o *ApiExtensionList) GetID() int32 { - if o == nil || IsNil(o.ID) { - var ret int32 - return ret - } - return *o.ID -} - -// GetIDOk returns a tuple with the ID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetIDOk() (*int32, bool) { - if o == nil || IsNil(o.ID) { - return nil, false - } - return o.ID, true -} - -// HasID returns a boolean if a field has been set. -func (o *ApiExtensionList) HasID() bool { - if o != nil && !IsNil(o.ID) { - return true - } - - return false -} - -// SetID gets a reference to the given int32 and assigns it to the ID field. -func (o *ApiExtensionList) SetID(v int32) { - o.ID = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ApiExtensionList) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ApiExtensionList) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ApiExtensionList) SetDescription(v string) { - o.Description = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ApiExtensionList) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ApiExtensionList) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ApiExtensionList) SetName(v string) { - o.Name = &v -} - -func (o ApiExtensionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ID) { - toSerialize["ID"] = o.ID - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionList) UnmarshalJSON(data []byte) (err error) { - varApiExtensionList := _ApiExtensionList{} - - err = json.Unmarshal(data, &varApiExtensionList) - - if err != nil { - return err - } - - *o = ApiExtensionList(varApiExtensionList) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "ID") - delete(additionalProperties, "description") - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionList struct { - value *ApiExtensionList - isSet bool -} - -func (v NullableApiExtensionList) Get() *ApiExtensionList { - return v.value -} - -func (v *NullableApiExtensionList) Set(val *ApiExtensionList) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionList) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionList(val *ApiExtensionList) *NullableApiExtensionList { - return &NullableApiExtensionList{value: val, isSet: true} -} - -func (v NullableApiExtensionList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_load_response.go b/services/postgresflex/v1api/model_api_extension_load_response.go deleted file mode 100644 index 4725eecf34..0000000000 --- a/services/postgresflex/v1api/model_api_extension_load_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionLoadResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionLoadResponse{} - -// ApiExtensionLoadResponse struct for ApiExtensionLoadResponse -type ApiExtensionLoadResponse struct { - Extension *ApiExtensionList `json:"extension,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionLoadResponse ApiExtensionLoadResponse - -// NewApiExtensionLoadResponse instantiates a new ApiExtensionLoadResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionLoadResponse() *ApiExtensionLoadResponse { - this := ApiExtensionLoadResponse{} - return &this -} - -// NewApiExtensionLoadResponseWithDefaults instantiates a new ApiExtensionLoadResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionLoadResponseWithDefaults() *ApiExtensionLoadResponse { - this := ApiExtensionLoadResponse{} - return &this -} - -// GetExtension returns the Extension field value if set, zero value otherwise. -func (o *ApiExtensionLoadResponse) GetExtension() ApiExtensionList { - if o == nil || IsNil(o.Extension) { - var ret ApiExtensionList - return ret - } - return *o.Extension -} - -// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionLoadResponse) GetExtensionOk() (*ApiExtensionList, bool) { - if o == nil || IsNil(o.Extension) { - return nil, false - } - return o.Extension, true -} - -// HasExtension returns a boolean if a field has been set. -func (o *ApiExtensionLoadResponse) HasExtension() bool { - if o != nil && !IsNil(o.Extension) { - return true - } - - return false -} - -// SetExtension gets a reference to the given ApiExtensionList and assigns it to the Extension field. -func (o *ApiExtensionLoadResponse) SetExtension(v ApiExtensionList) { - o.Extension = &v -} - -func (o ApiExtensionLoadResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionLoadResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Extension) { - toSerialize["extension"] = o.Extension - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionLoadResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionLoadResponse := _ApiExtensionLoadResponse{} - - err = json.Unmarshal(data, &varApiExtensionLoadResponse) - - if err != nil { - return err - } - - *o = ApiExtensionLoadResponse(varApiExtensionLoadResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extension") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionLoadResponse struct { - value *ApiExtensionLoadResponse - isSet bool -} - -func (v NullableApiExtensionLoadResponse) Get() *ApiExtensionLoadResponse { - return v.value -} - -func (v *NullableApiExtensionLoadResponse) Set(val *ApiExtensionLoadResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionLoadResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionLoadResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionLoadResponse(val *ApiExtensionLoadResponse) *NullableApiExtensionLoadResponse { - return &NullableApiExtensionLoadResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionLoadResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionLoadResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_install_response.go b/services/postgresflex/v1api/model_api_install_response.go deleted file mode 100644 index dfadc1dcba..0000000000 --- a/services/postgresflex/v1api/model_api_install_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiInstallResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiInstallResponse{} - -// ApiInstallResponse struct for ApiInstallResponse -type ApiInstallResponse struct { - Extension *ApiExtensionList `json:"extension,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiInstallResponse ApiInstallResponse - -// NewApiInstallResponse instantiates a new ApiInstallResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiInstallResponse() *ApiInstallResponse { - this := ApiInstallResponse{} - return &this -} - -// NewApiInstallResponseWithDefaults instantiates a new ApiInstallResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiInstallResponseWithDefaults() *ApiInstallResponse { - this := ApiInstallResponse{} - return &this -} - -// GetExtension returns the Extension field value if set, zero value otherwise. -func (o *ApiInstallResponse) GetExtension() ApiExtensionList { - if o == nil || IsNil(o.Extension) { - var ret ApiExtensionList - return ret - } - return *o.Extension -} - -// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiInstallResponse) GetExtensionOk() (*ApiExtensionList, bool) { - if o == nil || IsNil(o.Extension) { - return nil, false - } - return o.Extension, true -} - -// HasExtension returns a boolean if a field has been set. -func (o *ApiInstallResponse) HasExtension() bool { - if o != nil && !IsNil(o.Extension) { - return true - } - - return false -} - -// SetExtension gets a reference to the given ApiExtensionList and assigns it to the Extension field. -func (o *ApiInstallResponse) SetExtension(v ApiExtensionList) { - o.Extension = &v -} - -func (o ApiInstallResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiInstallResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Extension) { - toSerialize["extension"] = o.Extension - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiInstallResponse) UnmarshalJSON(data []byte) (err error) { - varApiInstallResponse := _ApiInstallResponse{} - - err = json.Unmarshal(data, &varApiInstallResponse) - - if err != nil { - return err - } - - *o = ApiInstallResponse(varApiInstallResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extension") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiInstallResponse struct { - value *ApiInstallResponse - isSet bool -} - -func (v NullableApiInstallResponse) Get() *ApiInstallResponse { - return v.value -} - -func (v *NullableApiInstallResponse) Set(val *ApiInstallResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiInstallResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiInstallResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiInstallResponse(val *ApiInstallResponse) *NullableApiInstallResponse { - return &NullableApiInstallResponse{value: val, isSet: true} -} - -func (v NullableApiInstallResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiInstallResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_installed_list_response.go b/services/postgresflex/v1api/model_api_installed_list_response.go deleted file mode 100644 index 7e1e0d571b..0000000000 --- a/services/postgresflex/v1api/model_api_installed_list_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiInstalledListResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiInstalledListResponse{} - -// ApiInstalledListResponse struct for ApiInstalledListResponse -type ApiInstalledListResponse struct { - Installed []ApiExtensionList `json:"installed,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiInstalledListResponse ApiInstalledListResponse - -// NewApiInstalledListResponse instantiates a new ApiInstalledListResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiInstalledListResponse() *ApiInstalledListResponse { - this := ApiInstalledListResponse{} - return &this -} - -// NewApiInstalledListResponseWithDefaults instantiates a new ApiInstalledListResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiInstalledListResponseWithDefaults() *ApiInstalledListResponse { - this := ApiInstalledListResponse{} - return &this -} - -// GetInstalled returns the Installed field value if set, zero value otherwise. -func (o *ApiInstalledListResponse) GetInstalled() []ApiExtensionList { - if o == nil || IsNil(o.Installed) { - var ret []ApiExtensionList - return ret - } - return o.Installed -} - -// GetInstalledOk returns a tuple with the Installed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiInstalledListResponse) GetInstalledOk() ([]ApiExtensionList, bool) { - if o == nil || IsNil(o.Installed) { - return nil, false - } - return o.Installed, true -} - -// HasInstalled returns a boolean if a field has been set. -func (o *ApiInstalledListResponse) HasInstalled() bool { - if o != nil && !IsNil(o.Installed) { - return true - } - - return false -} - -// SetInstalled gets a reference to the given []ApiExtensionList and assigns it to the Installed field. -func (o *ApiInstalledListResponse) SetInstalled(v []ApiExtensionList) { - o.Installed = v -} - -func (o ApiInstalledListResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiInstalledListResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Installed) { - toSerialize["installed"] = o.Installed - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiInstalledListResponse) UnmarshalJSON(data []byte) (err error) { - varApiInstalledListResponse := _ApiInstalledListResponse{} - - err = json.Unmarshal(data, &varApiInstalledListResponse) - - if err != nil { - return err - } - - *o = ApiInstalledListResponse(varApiInstalledListResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiInstalledListResponse struct { - value *ApiInstalledListResponse - isSet bool -} - -func (v NullableApiInstalledListResponse) Get() *ApiInstalledListResponse { - return v.value -} - -func (v *NullableApiInstalledListResponse) Set(val *ApiInstalledListResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiInstalledListResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiInstalledListResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiInstalledListResponse(val *ApiInstalledListResponse) *NullableApiInstalledListResponse { - return &NullableApiInstalledListResponse{value: val, isSet: true} -} - -func (v NullableApiInstalledListResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiInstalledListResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_backup.go b/services/postgresflex/v1api/model_backup.go index c6698fa104..251b9bb6c7 100644 --- a/services/postgresflex/v1api/model_backup.go +++ b/services/postgresflex/v1api/model_backup.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -26,7 +26,7 @@ type Backup struct { Labels []string `json:"labels,omitempty"` Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` - Size *int32 `json:"size,omitempty"` + Size *int64 `json:"size,omitempty"` StartTime *string `json:"startTime,omitempty"` AdditionalProperties map[string]interface{} } @@ -243,9 +243,9 @@ func (o *Backup) SetOptions(v map[string]string) { } // GetSize returns the Size field value if set, zero value otherwise. -func (o *Backup) GetSize() int32 { +func (o *Backup) GetSize() int64 { if o == nil || IsNil(o.Size) { - var ret int32 + var ret int64 return ret } return *o.Size @@ -253,7 +253,7 @@ func (o *Backup) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Backup) GetSizeOk() (*int32, bool) { +func (o *Backup) GetSizeOk() (*int64, bool) { if o == nil || IsNil(o.Size) { return nil, false } @@ -269,8 +269,8 @@ func (o *Backup) HasSize() bool { return false } -// SetSize gets a reference to the given int32 and assigns it to the Size field. -func (o *Backup) SetSize(v int32) { +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *Backup) SetSize(v int64) { o.Size = &v } diff --git a/services/postgresflex/v1api/model_clone_instance_payload.go b/services/postgresflex/v1api/model_clone_instance_payload.go index 46adab9dd1..cb8bd56aa1 100644 --- a/services/postgresflex/v1api/model_clone_instance_payload.go +++ b/services/postgresflex/v1api/model_clone_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,7 +21,7 @@ var _ MappedNullable = &CloneInstancePayload{} // CloneInstancePayload struct for CloneInstancePayload type CloneInstancePayload struct { Class *string `json:"class,omitempty"` - Size *int32 `json:"size,omitempty"` + Size *int64 `json:"size,omitempty"` // The timestamp should be specified in UTC time following the format provided in the example. Timestamp *string `json:"timestamp,omitempty"` AdditionalProperties map[string]interface{} @@ -79,9 +79,9 @@ func (o *CloneInstancePayload) SetClass(v string) { } // GetSize returns the Size field value if set, zero value otherwise. -func (o *CloneInstancePayload) GetSize() int32 { +func (o *CloneInstancePayload) GetSize() int64 { if o == nil || IsNil(o.Size) { - var ret int32 + var ret int64 return ret } return *o.Size @@ -89,7 +89,7 @@ func (o *CloneInstancePayload) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CloneInstancePayload) GetSizeOk() (*int32, bool) { +func (o *CloneInstancePayload) GetSizeOk() (*int64, bool) { if o == nil || IsNil(o.Size) { return nil, false } @@ -105,8 +105,8 @@ func (o *CloneInstancePayload) HasSize() bool { return false } -// SetSize gets a reference to the given int32 and assigns it to the Size field. -func (o *CloneInstancePayload) SetSize(v int32) { +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *CloneInstancePayload) SetSize(v int64) { o.Size = &v } diff --git a/services/postgresflex/v1api/model_clone_instance_response.go b/services/postgresflex/v1api/model_clone_instance_response.go index dbca412113..c2339db338 100644 --- a/services/postgresflex/v1api/model_clone_instance_response.go +++ b/services/postgresflex/v1api/model_clone_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_database_payload.go b/services/postgresflex/v1api/model_create_database_payload.go index d0307856fe..69cfbfbdaf 100644 --- a/services/postgresflex/v1api/model_create_database_payload.go +++ b/services/postgresflex/v1api/model_create_database_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_instance_payload.go b/services/postgresflex/v1api/model_create_instance_payload.go index 877474d7f4..e23c7a7878 100644 --- a/services/postgresflex/v1api/model_create_instance_payload.go +++ b/services/postgresflex/v1api/model_create_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -27,8 +27,8 @@ type CreateInstancePayload struct { // Labels field is not certain/clear Labels *map[string]string `json:"labels,omitempty"` Name string `json:"name"` - Options map[string]string `json:"options"` - Replicas int32 `json:"replicas"` + Options *map[string]string `json:"options,omitempty"` + Replicas int64 `json:"replicas"` Storage Storage `json:"storage"` Version string `json:"version"` AdditionalProperties map[string]interface{} @@ -40,13 +40,12 @@ type _CreateInstancePayload CreateInstancePayload // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int32, storage Storage, version string) *CreateInstancePayload { +func NewCreateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, replicas int64, storage Storage, version string) *CreateInstancePayload { this := CreateInstancePayload{} this.Acl = acl this.BackupSchedule = backupSchedule this.FlavorId = flavorId this.Name = name - this.Options = options this.Replicas = replicas this.Storage = storage this.Version = version @@ -189,34 +188,42 @@ func (o *CreateInstancePayload) SetName(v string) { o.Name = v } -// GetOptions returns the Options field value +// GetOptions returns the Options field value if set, zero value otherwise. func (o *CreateInstancePayload) GetOptions() map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret map[string]string return ret } - - return o.Options + return *o.Options } -// GetOptionsOk returns a tuple with the Options field value +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateInstancePayload) GetOptionsOk() (*map[string]string, bool) { - if o == nil { + if o == nil || IsNil(o.Options) { return nil, false } - return &o.Options, true + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasOptions() bool { + if o != nil && !IsNil(o.Options) { + return true + } + + return false } -// SetOptions sets field value +// SetOptions gets a reference to the given map[string]string and assigns it to the Options field. func (o *CreateInstancePayload) SetOptions(v map[string]string) { - o.Options = v + o.Options = &v } // GetReplicas returns the Replicas field value -func (o *CreateInstancePayload) GetReplicas() int32 { +func (o *CreateInstancePayload) GetReplicas() int64 { if o == nil { - var ret int32 + var ret int64 return ret } @@ -225,7 +232,7 @@ func (o *CreateInstancePayload) GetReplicas() int32 { // GetReplicasOk returns a tuple with the Replicas field value // and a boolean to check if the value has been set. -func (o *CreateInstancePayload) GetReplicasOk() (*int32, bool) { +func (o *CreateInstancePayload) GetReplicasOk() (*int64, bool) { if o == nil { return nil, false } @@ -233,7 +240,7 @@ func (o *CreateInstancePayload) GetReplicasOk() (*int32, bool) { } // SetReplicas sets field value -func (o *CreateInstancePayload) SetReplicas(v int32) { +func (o *CreateInstancePayload) SetReplicas(v int64) { o.Replicas = v } @@ -302,7 +309,9 @@ func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize["labels"] = o.Labels } toSerialize["name"] = o.Name - toSerialize["options"] = o.Options + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } toSerialize["replicas"] = o.Replicas toSerialize["storage"] = o.Storage toSerialize["version"] = o.Version @@ -323,7 +332,6 @@ func (o *CreateInstancePayload) UnmarshalJSON(data []byte) (err error) { "backupSchedule", "flavorId", "name", - "options", "replicas", "storage", "version", diff --git a/services/postgresflex/v1api/model_create_instance_response.go b/services/postgresflex/v1api/model_create_instance_response.go index 9ddded44bd..c5f7069f97 100644 --- a/services/postgresflex/v1api/model_create_instance_response.go +++ b/services/postgresflex/v1api/model_create_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_user_payload.go b/services/postgresflex/v1api/model_create_user_payload.go index 76e5edcaba..b46ae4b57b 100644 --- a/services/postgresflex/v1api/model_create_user_payload.go +++ b/services/postgresflex/v1api/model_create_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_user_response.go b/services/postgresflex/v1api/model_create_user_response.go index 688f551b2c..6da80a3beb 100644 --- a/services/postgresflex/v1api/model_create_user_response.go +++ b/services/postgresflex/v1api/model_create_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_error.go b/services/postgresflex/v1api/model_error.go index e8d2c6b88d..7772c6f8e2 100644 --- a/services/postgresflex/v1api/model_error.go +++ b/services/postgresflex/v1api/model_error.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_extensions_configuration.go b/services/postgresflex/v1api/model_extensions_configuration.go deleted file mode 100644 index 86d93d0f07..0000000000 --- a/services/postgresflex/v1api/model_extensions_configuration.go +++ /dev/null @@ -1,191 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsConfiguration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsConfiguration{} - -// ExtensionsConfiguration struct for ExtensionsConfiguration -type ExtensionsConfiguration struct { - Name *string `json:"name,omitempty"` - Setting *string `json:"setting,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsConfiguration ExtensionsConfiguration - -// NewExtensionsConfiguration instantiates a new ExtensionsConfiguration object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsConfiguration() *ExtensionsConfiguration { - this := ExtensionsConfiguration{} - return &this -} - -// NewExtensionsConfigurationWithDefaults instantiates a new ExtensionsConfiguration object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsConfigurationWithDefaults() *ExtensionsConfiguration { - this := ExtensionsConfiguration{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ExtensionsConfiguration) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsConfiguration) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ExtensionsConfiguration) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ExtensionsConfiguration) SetName(v string) { - o.Name = &v -} - -// GetSetting returns the Setting field value if set, zero value otherwise. -func (o *ExtensionsConfiguration) GetSetting() string { - if o == nil || IsNil(o.Setting) { - var ret string - return ret - } - return *o.Setting -} - -// GetSettingOk returns a tuple with the Setting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsConfiguration) GetSettingOk() (*string, bool) { - if o == nil || IsNil(o.Setting) { - return nil, false - } - return o.Setting, true -} - -// HasSetting returns a boolean if a field has been set. -func (o *ExtensionsConfiguration) HasSetting() bool { - if o != nil && !IsNil(o.Setting) { - return true - } - - return false -} - -// SetSetting gets a reference to the given string and assigns it to the Setting field. -func (o *ExtensionsConfiguration) SetSetting(v string) { - o.Setting = &v -} - -func (o ExtensionsConfiguration) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsConfiguration) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Setting) { - toSerialize["setting"] = o.Setting - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsConfiguration) UnmarshalJSON(data []byte) (err error) { - varExtensionsConfiguration := _ExtensionsConfiguration{} - - err = json.Unmarshal(data, &varExtensionsConfiguration) - - if err != nil { - return err - } - - *o = ExtensionsConfiguration(varExtensionsConfiguration) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "setting") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsConfiguration struct { - value *ExtensionsConfiguration - isSet bool -} - -func (v NullableExtensionsConfiguration) Get() *ExtensionsConfiguration { - return v.value -} - -func (v *NullableExtensionsConfiguration) Set(val *ExtensionsConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsConfiguration(val *ExtensionsConfiguration) *NullableExtensionsConfiguration { - return &NullableExtensionsConfiguration{value: val, isSet: true} -} - -func (v NullableExtensionsConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_extensions_extension_list_response.go b/services/postgresflex/v1api/model_extensions_extension_list_response.go deleted file mode 100644 index 5e48e6ab0f..0000000000 --- a/services/postgresflex/v1api/model_extensions_extension_list_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsExtensionListResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsExtensionListResponse{} - -// ExtensionsExtensionListResponse struct for ExtensionsExtensionListResponse -type ExtensionsExtensionListResponse struct { - List []ApiExtensionList `json:"list,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsExtensionListResponse ExtensionsExtensionListResponse - -// NewExtensionsExtensionListResponse instantiates a new ExtensionsExtensionListResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsExtensionListResponse() *ExtensionsExtensionListResponse { - this := ExtensionsExtensionListResponse{} - return &this -} - -// NewExtensionsExtensionListResponseWithDefaults instantiates a new ExtensionsExtensionListResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsExtensionListResponseWithDefaults() *ExtensionsExtensionListResponse { - this := ExtensionsExtensionListResponse{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *ExtensionsExtensionListResponse) GetList() []ApiExtensionList { - if o == nil || IsNil(o.List) { - var ret []ApiExtensionList - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsExtensionListResponse) GetListOk() ([]ApiExtensionList, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *ExtensionsExtensionListResponse) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []ApiExtensionList and assigns it to the List field. -func (o *ExtensionsExtensionListResponse) SetList(v []ApiExtensionList) { - o.List = v -} - -func (o ExtensionsExtensionListResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsExtensionListResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsExtensionListResponse) UnmarshalJSON(data []byte) (err error) { - varExtensionsExtensionListResponse := _ExtensionsExtensionListResponse{} - - err = json.Unmarshal(data, &varExtensionsExtensionListResponse) - - if err != nil { - return err - } - - *o = ExtensionsExtensionListResponse(varExtensionsExtensionListResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "list") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsExtensionListResponse struct { - value *ExtensionsExtensionListResponse - isSet bool -} - -func (v NullableExtensionsExtensionListResponse) Get() *ExtensionsExtensionListResponse { - return v.value -} - -func (v *NullableExtensionsExtensionListResponse) Set(val *ExtensionsExtensionListResponse) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsExtensionListResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsExtensionListResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsExtensionListResponse(val *ExtensionsExtensionListResponse) *NullableExtensionsExtensionListResponse { - return &NullableExtensionsExtensionListResponse{value: val, isSet: true} -} - -func (v NullableExtensionsExtensionListResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsExtensionListResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_extensions_new_config.go b/services/postgresflex/v1api/model_extensions_new_config.go deleted file mode 100644 index 8a6264669e..0000000000 --- a/services/postgresflex/v1api/model_extensions_new_config.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsNewConfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsNewConfig{} - -// ExtensionsNewConfig struct for ExtensionsNewConfig -type ExtensionsNewConfig struct { - Configuration []ExtensionsConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsNewConfig ExtensionsNewConfig - -// NewExtensionsNewConfig instantiates a new ExtensionsNewConfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsNewConfig() *ExtensionsNewConfig { - this := ExtensionsNewConfig{} - return &this -} - -// NewExtensionsNewConfigWithDefaults instantiates a new ExtensionsNewConfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsNewConfigWithDefaults() *ExtensionsNewConfig { - this := ExtensionsNewConfig{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ExtensionsNewConfig) GetConfiguration() []ExtensionsConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ExtensionsConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsNewConfig) GetConfigurationOk() ([]ExtensionsConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ExtensionsNewConfig) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ExtensionsConfiguration and assigns it to the Configuration field. -func (o *ExtensionsNewConfig) SetConfiguration(v []ExtensionsConfiguration) { - o.Configuration = v -} - -func (o ExtensionsNewConfig) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsNewConfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsNewConfig) UnmarshalJSON(data []byte) (err error) { - varExtensionsNewConfig := _ExtensionsNewConfig{} - - err = json.Unmarshal(data, &varExtensionsNewConfig) - - if err != nil { - return err - } - - *o = ExtensionsNewConfig(varExtensionsNewConfig) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsNewConfig struct { - value *ExtensionsNewConfig - isSet bool -} - -func (v NullableExtensionsNewConfig) Get() *ExtensionsNewConfig { - return v.value -} - -func (v *NullableExtensionsNewConfig) Set(val *ExtensionsNewConfig) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsNewConfig) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsNewConfig) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsNewConfig(val *ExtensionsNewConfig) *NullableExtensionsNewConfig { - return &NullableExtensionsNewConfig{value: val, isSet: true} -} - -func (v NullableExtensionsNewConfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsNewConfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_flavor.go b/services/postgresflex/v1api/model_flavor.go index 13fba34a42..07a854bb6d 100644 --- a/services/postgresflex/v1api/model_flavor.go +++ b/services/postgresflex/v1api/model_flavor.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_get_backup_response.go b/services/postgresflex/v1api/model_get_backup_response.go index 7f8d70ea32..2588aecb66 100644 --- a/services/postgresflex/v1api/model_get_backup_response.go +++ b/services/postgresflex/v1api/model_get_backup_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_get_user_response.go b/services/postgresflex/v1api/model_get_user_response.go index db593a43c7..af59194cdd 100644 --- a/services/postgresflex/v1api/model_get_user_response.go +++ b/services/postgresflex/v1api/model_get_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance.go b/services/postgresflex/v1api/model_instance.go index 34dcdb1736..d61cb74931 100644 --- a/services/postgresflex/v1api/model_instance.go +++ b/services/postgresflex/v1api/model_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_create_database_response.go b/services/postgresflex/v1api/model_instance_create_database_response.go index 0a2cdfa141..5ecd61bca1 100644 --- a/services/postgresflex/v1api/model_instance_create_database_response.go +++ b/services/postgresflex/v1api/model_instance_create_database_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_data_point.go b/services/postgresflex/v1api/model_instance_data_point.go index 64e3ddc645..49f0333046 100644 --- a/services/postgresflex/v1api/model_instance_data_point.go +++ b/services/postgresflex/v1api/model_instance_data_point.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_database.go b/services/postgresflex/v1api/model_instance_database.go index b548fc22f2..234daf0878 100644 --- a/services/postgresflex/v1api/model_instance_database.go +++ b/services/postgresflex/v1api/model_instance_database.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_host.go b/services/postgresflex/v1api/model_instance_host.go index a4d3e57979..013785b60e 100644 --- a/services/postgresflex/v1api/model_instance_host.go +++ b/services/postgresflex/v1api/model_instance_host.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_host_metric.go b/services/postgresflex/v1api/model_instance_host_metric.go index 85c263be60..ef0e8fc260 100644 --- a/services/postgresflex/v1api/model_instance_host_metric.go +++ b/services/postgresflex/v1api/model_instance_host_metric.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_list_databases_response.go b/services/postgresflex/v1api/model_instance_list_databases_response.go index acda24814b..16574eee88 100644 --- a/services/postgresflex/v1api/model_instance_list_databases_response.go +++ b/services/postgresflex/v1api/model_instance_list_databases_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_list_instance.go b/services/postgresflex/v1api/model_instance_list_instance.go index ffe8605a92..a5e9597ebf 100644 --- a/services/postgresflex/v1api/model_instance_list_instance.go +++ b/services/postgresflex/v1api/model_instance_list_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_metrics_response.go b/services/postgresflex/v1api/model_instance_metrics_response.go index 5812d515ca..9473ae1c57 100644 --- a/services/postgresflex/v1api/model_instance_metrics_response.go +++ b/services/postgresflex/v1api/model_instance_metrics_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_response.go b/services/postgresflex/v1api/model_instance_response.go index 36a8fa5984..5260add256 100644 --- a/services/postgresflex/v1api/model_instance_response.go +++ b/services/postgresflex/v1api/model_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_backups_response.go b/services/postgresflex/v1api/model_list_backups_response.go index 2e8db4d18d..ff2e16f037 100644 --- a/services/postgresflex/v1api/model_list_backups_response.go +++ b/services/postgresflex/v1api/model_list_backups_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListBackupsResponse{} // ListBackupsResponse struct for ListBackupsResponse type ListBackupsResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []Backup `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListBackupsResponseWithDefaults() *ListBackupsResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListBackupsResponse) GetCount() int32 { +func (o *ListBackupsResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListBackupsResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListBackupsResponse) GetCountOk() (*int32, bool) { +func (o *ListBackupsResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListBackupsResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListBackupsResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListBackupsResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_flavors_response.go b/services/postgresflex/v1api/model_list_flavors_response.go index b48ef0185a..979c85ac6d 100644 --- a/services/postgresflex/v1api/model_list_flavors_response.go +++ b/services/postgresflex/v1api/model_list_flavors_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_instances_response.go b/services/postgresflex/v1api/model_list_instances_response.go index 63308763b3..ef2aa72285 100644 --- a/services/postgresflex/v1api/model_list_instances_response.go +++ b/services/postgresflex/v1api/model_list_instances_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListInstancesResponse{} // ListInstancesResponse struct for ListInstancesResponse type ListInstancesResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []InstanceListInstance `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListInstancesResponseWithDefaults() *ListInstancesResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListInstancesResponse) GetCount() int32 { +func (o *ListInstancesResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListInstancesResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListInstancesResponse) GetCountOk() (*int32, bool) { +func (o *ListInstancesResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListInstancesResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListInstancesResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListInstancesResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_storages_response.go b/services/postgresflex/v1api/model_list_storages_response.go index f6b8a3caf3..f077c34efe 100644 --- a/services/postgresflex/v1api/model_list_storages_response.go +++ b/services/postgresflex/v1api/model_list_storages_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_users_response.go b/services/postgresflex/v1api/model_list_users_response.go index 2aa81b94a6..950ed9c9f3 100644 --- a/services/postgresflex/v1api/model_list_users_response.go +++ b/services/postgresflex/v1api/model_list_users_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListUsersResponse{} // ListUsersResponse struct for ListUsersResponse type ListUsersResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []ListUsersResponseItem `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListUsersResponseWithDefaults() *ListUsersResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListUsersResponse) GetCount() int32 { +func (o *ListUsersResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListUsersResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListUsersResponse) GetCountOk() (*int32, bool) { +func (o *ListUsersResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListUsersResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListUsersResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListUsersResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_users_response_item.go b/services/postgresflex/v1api/model_list_users_response_item.go index e216ba1c5a..1dbb9e90f4 100644 --- a/services/postgresflex/v1api/model_list_users_response_item.go +++ b/services/postgresflex/v1api/model_list_users_response_item.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_versions_response.go b/services/postgresflex/v1api/model_list_versions_response.go index cec8e5dae9..488e9a1c81 100644 --- a/services/postgresflex/v1api/model_list_versions_response.go +++ b/services/postgresflex/v1api/model_list_versions_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_instance_payload.go b/services/postgresflex/v1api/model_partial_update_instance_payload.go index 350a507388..64b8d62196 100644 --- a/services/postgresflex/v1api/model_partial_update_instance_payload.go +++ b/services/postgresflex/v1api/model_partial_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_instance_response.go b/services/postgresflex/v1api/model_partial_update_instance_response.go index 9bda4f607c..cc82bddd7d 100644 --- a/services/postgresflex/v1api/model_partial_update_instance_response.go +++ b/services/postgresflex/v1api/model_partial_update_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_user_payload.go b/services/postgresflex/v1api/model_partial_update_user_payload.go index e310319e24..eae7ec3f2b 100644 --- a/services/postgresflex/v1api/model_partial_update_user_payload.go +++ b/services/postgresflex/v1api/model_partial_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_postgres_database_parameter.go b/services/postgresflex/v1api/model_postgres_database_parameter.go index 573920a8ae..b459d91084 100644 --- a/services/postgresflex/v1api/model_postgres_database_parameter.go +++ b/services/postgresflex/v1api/model_postgres_database_parameter.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_postgres_database_parameter_response.go b/services/postgresflex/v1api/model_postgres_database_parameter_response.go index 3f24aca092..8b1728d32e 100644 --- a/services/postgresflex/v1api/model_postgres_database_parameter_response.go +++ b/services/postgresflex/v1api/model_postgres_database_parameter_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_reset_user_response.go b/services/postgresflex/v1api/model_reset_user_response.go index 90cede8792..046339debd 100644 --- a/services/postgresflex/v1api/model_reset_user_response.go +++ b/services/postgresflex/v1api/model_reset_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_storage.go b/services/postgresflex/v1api/model_storage.go index be183ec1cb..3abbfe2397 100644 --- a/services/postgresflex/v1api/model_storage.go +++ b/services/postgresflex/v1api/model_storage.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_storage_range.go b/services/postgresflex/v1api/model_storage_range.go index 48b7b48878..c97bfc4122 100644 --- a/services/postgresflex/v1api/model_storage_range.go +++ b/services/postgresflex/v1api/model_storage_range.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,8 +20,8 @@ var _ MappedNullable = &StorageRange{} // StorageRange struct for StorageRange type StorageRange struct { - Max *int32 `json:"max,omitempty"` - Min *int32 `json:"min,omitempty"` + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewStorageRangeWithDefaults() *StorageRange { } // GetMax returns the Max field value if set, zero value otherwise. -func (o *StorageRange) GetMax() int32 { +func (o *StorageRange) GetMax() int64 { if o == nil || IsNil(o.Max) { - var ret int32 + var ret int64 return ret } return *o.Max @@ -55,7 +55,7 @@ func (o *StorageRange) GetMax() int32 { // GetMaxOk returns a tuple with the Max field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StorageRange) GetMaxOk() (*int32, bool) { +func (o *StorageRange) GetMaxOk() (*int64, bool) { if o == nil || IsNil(o.Max) { return nil, false } @@ -71,15 +71,15 @@ func (o *StorageRange) HasMax() bool { return false } -// SetMax gets a reference to the given int32 and assigns it to the Max field. -func (o *StorageRange) SetMax(v int32) { +// SetMax gets a reference to the given int64 and assigns it to the Max field. +func (o *StorageRange) SetMax(v int64) { o.Max = &v } // GetMin returns the Min field value if set, zero value otherwise. -func (o *StorageRange) GetMin() int32 { +func (o *StorageRange) GetMin() int64 { if o == nil || IsNil(o.Min) { - var ret int32 + var ret int64 return ret } return *o.Min @@ -87,7 +87,7 @@ func (o *StorageRange) GetMin() int32 { // GetMinOk returns a tuple with the Min field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StorageRange) GetMinOk() (*int32, bool) { +func (o *StorageRange) GetMinOk() (*int64, bool) { if o == nil || IsNil(o.Min) { return nil, false } @@ -103,8 +103,8 @@ func (o *StorageRange) HasMin() bool { return false } -// SetMin gets a reference to the given int32 and assigns it to the Min field. -func (o *StorageRange) SetMin(v int32) { +// SetMin gets a reference to the given int64 and assigns it to the Min field. +func (o *StorageRange) SetMin(v int64) { o.Min = &v } diff --git a/services/postgresflex/v1api/model_storage_update.go b/services/postgresflex/v1api/model_storage_update.go index f277a58b7a..c368042bf4 100644 --- a/services/postgresflex/v1api/model_storage_update.go +++ b/services/postgresflex/v1api/model_storage_update.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,7 +21,6 @@ var _ MappedNullable = &StorageUpdate{} // StorageUpdate struct for StorageUpdate type StorageUpdate struct { // ⚠️ **DEPRECATED AND NON-FUNCTIONAL:** Updating the performance class field is not possible. - // Deprecated Class *string `json:"class,omitempty"` Size *int64 `json:"size,omitempty"` AdditionalProperties map[string]interface{} @@ -47,7 +46,6 @@ func NewStorageUpdateWithDefaults() *StorageUpdate { } // GetClass returns the Class field value if set, zero value otherwise. -// Deprecated func (o *StorageUpdate) GetClass() string { if o == nil || IsNil(o.Class) { var ret string @@ -58,7 +56,6 @@ func (o *StorageUpdate) GetClass() string { // GetClassOk returns a tuple with the Class field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated func (o *StorageUpdate) GetClassOk() (*string, bool) { if o == nil || IsNil(o.Class) { return nil, false @@ -76,7 +73,6 @@ func (o *StorageUpdate) HasClass() bool { } // SetClass gets a reference to the given string and assigns it to the Class field. -// Deprecated func (o *StorageUpdate) SetClass(v string) { o.Class = &v } diff --git a/services/postgresflex/v1api/model_update_backup_schedule_payload.go b/services/postgresflex/v1api/model_update_backup_schedule_payload.go index 3e2345e1dd..9a9e61e3a1 100644 --- a/services/postgresflex/v1api/model_update_backup_schedule_payload.go +++ b/services/postgresflex/v1api/model_update_backup_schedule_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_update_instance_payload.go b/services/postgresflex/v1api/model_update_instance_payload.go index 980c4e68f9..91d25d0788 100644 --- a/services/postgresflex/v1api/model_update_instance_payload.go +++ b/services/postgresflex/v1api/model_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_update_user_payload.go b/services/postgresflex/v1api/model_update_user_payload.go index 97e2c5b74f..2a9fa1d97b 100644 --- a/services/postgresflex/v1api/model_update_user_payload.go +++ b/services/postgresflex/v1api/model_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_user.go b/services/postgresflex/v1api/model_user.go index 9db9bc72f6..78e6c26e77 100644 --- a/services/postgresflex/v1api/model_user.go +++ b/services/postgresflex/v1api/model_user.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -24,7 +24,7 @@ type User struct { Host *string `json:"host,omitempty"` Id *string `json:"id,omitempty"` Password *string `json:"password,omitempty"` - Port *int32 `json:"port,omitempty"` + Port *int64 `json:"port,omitempty"` Roles []string `json:"roles,omitempty"` Uri *string `json:"uri,omitempty"` Username *string `json:"username,omitempty"` @@ -179,9 +179,9 @@ func (o *User) SetPassword(v string) { } // GetPort returns the Port field value if set, zero value otherwise. -func (o *User) GetPort() int32 { +func (o *User) GetPort() int64 { if o == nil || IsNil(o.Port) { - var ret int32 + var ret int64 return ret } return *o.Port @@ -189,7 +189,7 @@ func (o *User) GetPort() int32 { // GetPortOk returns a tuple with the Port field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *User) GetPortOk() (*int32, bool) { +func (o *User) GetPortOk() (*int64, bool) { if o == nil || IsNil(o.Port) { return nil, false } @@ -205,8 +205,8 @@ func (o *User) HasPort() bool { return false } -// SetPort gets a reference to the given int32 and assigns it to the Port field. -func (o *User) SetPort(v int32) { +// SetPort gets a reference to the given int64 and assigns it to the Port field. +func (o *User) SetPort(v int64) { o.Port = &v } diff --git a/services/postgresflex/v1api/model_user_response.go b/services/postgresflex/v1api/model_user_response.go index fbbd4a3a3a..8aeb53cb01 100644 --- a/services/postgresflex/v1api/model_user_response.go +++ b/services/postgresflex/v1api/model_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -22,7 +22,7 @@ var _ MappedNullable = &UserResponse{} type UserResponse struct { Host *string `json:"host,omitempty"` Id *string `json:"id,omitempty"` - Port *int32 `json:"port,omitempty"` + Port *int64 `json:"port,omitempty"` Roles []string `json:"roles,omitempty"` Username *string `json:"username,omitempty"` AdditionalProperties map[string]interface{} @@ -112,9 +112,9 @@ func (o *UserResponse) SetId(v string) { } // GetPort returns the Port field value if set, zero value otherwise. -func (o *UserResponse) GetPort() int32 { +func (o *UserResponse) GetPort() int64 { if o == nil || IsNil(o.Port) { - var ret int32 + var ret int64 return ret } return *o.Port @@ -122,7 +122,7 @@ func (o *UserResponse) GetPort() int32 { // GetPortOk returns a tuple with the Port field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserResponse) GetPortOk() (*int32, bool) { +func (o *UserResponse) GetPortOk() (*int64, bool) { if o == nil || IsNil(o.Port) { return nil, false } @@ -138,8 +138,8 @@ func (o *UserResponse) HasPort() bool { return false } -// SetPort gets a reference to the given int32 and assigns it to the Port field. -func (o *UserResponse) SetPort(v int32) { +// SetPort gets a reference to the given int64 and assigns it to the Port field. +func (o *UserResponse) SetPort(v int64) { o.Port = &v } diff --git a/services/postgresflex/v1api/response.go b/services/postgresflex/v1api/response.go index 3d52748d84..e56a01a7a4 100644 --- a/services/postgresflex/v1api/response.go +++ b/services/postgresflex/v1api/response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/utils.go b/services/postgresflex/v1api/utils.go index 0ea859d504..27e141eda2 100644 --- a/services/postgresflex/v1api/utils.go +++ b/services/postgresflex/v1api/utils.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/api_default.go b/services/postgresflex/v2api/api_default.go index 428e75ee94..ee81e48264 100644 --- a/services/postgresflex/v2api/api_default.go +++ b/services/postgresflex/v2api/api_default.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud @@ -34,11 +34,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiCloneInstanceRequest + + Deprecated */ CloneInstance(ctx context.Context, projectId string, region string, instanceId string) ApiCloneInstanceRequest // CloneInstanceExecute executes the request // @return CloneInstanceResponse + // Deprecated CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) /* @@ -52,11 +55,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiCreateDatabaseRequest + + Deprecated */ CreateDatabase(ctx context.Context, projectId string, region string, instanceId string) ApiCreateDatabaseRequest // CreateDatabaseExecute executes the request // @return InstanceCreateDatabaseResponse + // Deprecated CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) /* @@ -68,11 +74,14 @@ type DefaultAPI interface { @param projectId Project ID @param region The region which should be addressed @return ApiCreateInstanceRequest + + Deprecated */ CreateInstance(ctx context.Context, projectId string, region string) ApiCreateInstanceRequest // CreateInstanceExecute executes the request // @return CreateInstanceResponse + // Deprecated CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) /* @@ -85,11 +94,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiCreateUserRequest + + Deprecated */ CreateUser(ctx context.Context, projectId string, region string, instanceId string) ApiCreateUserRequest // CreateUserExecute executes the request // @return CreateUserResponse + // Deprecated CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) /* @@ -103,10 +115,13 @@ type DefaultAPI interface { @param instanceId Instance ID @param databaseId Database ID @return ApiDeleteDatabaseRequest + + Deprecated */ DeleteDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId string) ApiDeleteDatabaseRequest // DeleteDatabaseExecute executes the request + // Deprecated DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error /* @@ -119,10 +134,13 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiDeleteInstanceRequest + + Deprecated */ DeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiDeleteInstanceRequest // DeleteInstanceExecute executes the request + // Deprecated DeleteInstanceExecute(r ApiDeleteInstanceRequest) error /* @@ -136,10 +154,13 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId User ID @return ApiDeleteUserRequest + + Deprecated */ DeleteUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiDeleteUserRequest // DeleteUserExecute executes the request + // Deprecated DeleteUserExecute(r ApiDeleteUserRequest) error /* @@ -152,10 +173,13 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiForceDeleteInstanceRequest + + Deprecated */ ForceDeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiForceDeleteInstanceRequest // ForceDeleteInstanceExecute executes the request + // Deprecated ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error /* @@ -169,11 +193,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param backupId Backup ID @return ApiGetBackupRequest + + Deprecated */ GetBackup(ctx context.Context, projectId string, region string, instanceId string, backupId string) ApiGetBackupRequest // GetBackupExecute executes the request // @return GetBackupResponse + // Deprecated GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) /* @@ -186,11 +213,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiGetInstanceRequest + + Deprecated */ GetInstance(ctx context.Context, projectId string, region string, instanceId string) ApiGetInstanceRequest // GetInstanceExecute executes the request // @return InstanceResponse + // Deprecated GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) /* @@ -204,11 +234,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId User ID @return ApiGetUserRequest + + Deprecated */ GetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiGetUserRequest // GetUserExecute executes the request // @return GetUserResponse + // Deprecated GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) /* @@ -221,11 +254,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiListBackupsRequest + + Deprecated */ ListBackups(ctx context.Context, projectId string, region string, instanceId string) ApiListBackupsRequest // ListBackupsExecute executes the request // @return ListBackupsResponse + // Deprecated ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) /* @@ -238,11 +274,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiListDatabaseParametersRequest + + Deprecated */ ListDatabaseParameters(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabaseParametersRequest // ListDatabaseParametersExecute executes the request // @return PostgresDatabaseParameterResponse + // Deprecated ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) /* @@ -255,11 +294,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiListDatabasesRequest + + Deprecated */ ListDatabases(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabasesRequest // ListDatabasesExecute executes the request // @return InstanceListDatabasesResponse + // Deprecated ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) /* @@ -271,11 +313,14 @@ type DefaultAPI interface { @param projectId Project ID @param region The region which should be addressed @return ApiListFlavorsRequest + + Deprecated */ ListFlavors(ctx context.Context, projectId string, region string) ApiListFlavorsRequest // ListFlavorsExecute executes the request // @return ListFlavorsResponse + // Deprecated ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) /* @@ -287,11 +332,14 @@ type DefaultAPI interface { @param projectId Project ID @param region The region which should be addressed @return ApiListInstancesRequest + + Deprecated */ ListInstances(ctx context.Context, projectId string, region string) ApiListInstancesRequest // ListInstancesExecute executes the request // @return ListInstancesResponse + // Deprecated ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) /* @@ -303,13 +351,16 @@ type DefaultAPI interface { @param projectId The UUID of the project. @param region The region which should be addressed @param instanceId The UUID of the instance. - @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. + @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest + + Deprecated */ ListMetrics(ctx context.Context, projectId string, region string, instanceId string, metric string) ApiListMetricsRequest // ListMetricsExecute executes the request // @return InstanceMetricsResponse + // Deprecated ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) /* @@ -322,11 +373,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param flavorId Flavor ID @return ApiListStoragesRequest + + Deprecated */ ListStorages(ctx context.Context, projectId string, region string, flavorId string) ApiListStoragesRequest // ListStoragesExecute executes the request // @return ListStoragesResponse + // Deprecated ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) /* @@ -339,11 +393,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiListUsersRequest + + Deprecated */ ListUsers(ctx context.Context, projectId string, region string, instanceId string) ApiListUsersRequest // ListUsersExecute executes the request // @return ListUsersResponse + // Deprecated ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) /* @@ -355,11 +412,14 @@ type DefaultAPI interface { @param projectId Project ID @param region The region which should be addressed @return ApiListVersionsRequest + + Deprecated */ ListVersions(ctx context.Context, projectId string, region string) ApiListVersionsRequest // ListVersionsExecute executes the request // @return ListVersionsResponse + // Deprecated ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) /* @@ -372,11 +432,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiPartialUpdateInstanceRequest + + Deprecated */ PartialUpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiPartialUpdateInstanceRequest // PartialUpdateInstanceExecute executes the request // @return PartialUpdateInstanceResponse + // Deprecated PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) /* @@ -390,10 +453,13 @@ type DefaultAPI interface { @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiPartialUpdateUserRequest + + Deprecated */ PartialUpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiPartialUpdateUserRequest // PartialUpdateUserExecute executes the request + // Deprecated PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error /* @@ -407,11 +473,14 @@ type DefaultAPI interface { @param instanceId Instance ID @param userId user ID @return ApiResetUserRequest + + Deprecated */ ResetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiResetUserRequest // ResetUserExecute executes the request // @return ResetUserResponse + // Deprecated ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) /* @@ -424,10 +493,13 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiUpdateBackupScheduleRequest + + Deprecated */ UpdateBackupSchedule(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateBackupScheduleRequest // UpdateBackupScheduleExecute executes the request + // Deprecated UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error /* @@ -440,11 +512,14 @@ type DefaultAPI interface { @param region The region which should be addressed @param instanceId Instance ID @return ApiUpdateInstanceRequest + + Deprecated */ UpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceRequest // UpdateInstanceExecute executes the request // @return PartialUpdateInstanceResponse + // Deprecated UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) /* @@ -458,10 +533,13 @@ type DefaultAPI interface { @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiUpdateUserRequest + + Deprecated */ UpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiUpdateUserRequest // UpdateUserExecute executes the request + // Deprecated UpdateUserExecute(r ApiUpdateUserRequest) error } @@ -497,6 +575,8 @@ Clone an existing instance of a postgres database to a new destination instance @param region The region which should be addressed @param instanceId Instance ID @return ApiCloneInstanceRequest + +Deprecated */ func (a *DefaultAPIService) CloneInstance(ctx context.Context, projectId string, region string, instanceId string) ApiCloneInstanceRequest { return ApiCloneInstanceRequest{ @@ -511,6 +591,8 @@ func (a *DefaultAPIService) CloneInstance(ctx context.Context, projectId string, // Execute executes the request // // @return CloneInstanceResponse +// +// Deprecated func (a *DefaultAPIService) CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -655,6 +737,8 @@ Note: The name of a valid user must be provided in the "options" map field using @param region The region which should be addressed @param instanceId Instance ID @return ApiCreateDatabaseRequest + +Deprecated */ func (a *DefaultAPIService) CreateDatabase(ctx context.Context, projectId string, region string, instanceId string) ApiCreateDatabaseRequest { return ApiCreateDatabaseRequest{ @@ -669,6 +753,8 @@ func (a *DefaultAPIService) CreateDatabase(ctx context.Context, projectId string // Execute executes the request // // @return InstanceCreateDatabaseResponse +// +// Deprecated func (a *DefaultAPIService) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -810,6 +896,8 @@ Create a new instance of a postgres database @param projectId Project ID @param region The region which should be addressed @return ApiCreateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string, region string) ApiCreateInstanceRequest { return ApiCreateInstanceRequest{ @@ -823,6 +911,8 @@ func (a *DefaultAPIService) CreateInstance(ctx context.Context, projectId string // Execute executes the request // // @return CreateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -965,6 +1055,8 @@ Create user for an instance @param region The region which should be addressed @param instanceId Instance ID @return ApiCreateUserRequest + +Deprecated */ func (a *DefaultAPIService) CreateUser(ctx context.Context, projectId string, region string, instanceId string) ApiCreateUserRequest { return ApiCreateUserRequest{ @@ -979,6 +1071,8 @@ func (a *DefaultAPIService) CreateUser(ctx context.Context, projectId string, re // Execute executes the request // // @return CreateUserResponse +// +// Deprecated func (a *DefaultAPIService) CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -1117,6 +1211,8 @@ Delete database for an instance @param instanceId Instance ID @param databaseId Database ID @return ApiDeleteDatabaseRequest + +Deprecated */ func (a *DefaultAPIService) DeleteDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId string) ApiDeleteDatabaseRequest { return ApiDeleteDatabaseRequest{ @@ -1130,6 +1226,7 @@ func (a *DefaultAPIService) DeleteDatabase(ctx context.Context, projectId string } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1251,6 +1348,8 @@ Delete available instance @param region The region which should be addressed @param instanceId Instance ID @return ApiDeleteInstanceRequest + +Deprecated */ func (a *DefaultAPIService) DeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiDeleteInstanceRequest { return ApiDeleteInstanceRequest{ @@ -1263,6 +1362,7 @@ func (a *DefaultAPIService) DeleteInstance(ctx context.Context, projectId string } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1406,6 +1506,8 @@ Delete user for an instance @param instanceId Instance ID @param userId User ID @return ApiDeleteUserRequest + +Deprecated */ func (a *DefaultAPIService) DeleteUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ @@ -1419,6 +1521,7 @@ func (a *DefaultAPIService) DeleteUser(ctx context.Context, projectId string, re } // Execute executes the request +// Deprecated func (a *DefaultAPIService) DeleteUserExecute(r ApiDeleteUserRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1540,6 +1643,8 @@ Forces the deletion of an delayed deleted instance @param region The region which should be addressed @param instanceId Instance ID @return ApiForceDeleteInstanceRequest + +Deprecated */ func (a *DefaultAPIService) ForceDeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiForceDeleteInstanceRequest { return ApiForceDeleteInstanceRequest{ @@ -1552,6 +1657,7 @@ func (a *DefaultAPIService) ForceDeleteInstance(ctx context.Context, projectId s } // Execute executes the request +// Deprecated func (a *DefaultAPIService) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error { var ( localVarHTTPMethod = http.MethodDelete @@ -1695,6 +1801,8 @@ Get specific available backup @param instanceId Instance ID @param backupId Backup ID @return ApiGetBackupRequest + +Deprecated */ func (a *DefaultAPIService) GetBackup(ctx context.Context, projectId string, region string, instanceId string, backupId string) ApiGetBackupRequest { return ApiGetBackupRequest{ @@ -1710,6 +1818,8 @@ func (a *DefaultAPIService) GetBackup(ctx context.Context, projectId string, reg // Execute executes the request // // @return GetBackupResponse +// +// Deprecated func (a *DefaultAPIService) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1842,6 +1952,8 @@ Get specific available instances @param region The region which should be addressed @param instanceId Instance ID @return ApiGetInstanceRequest + +Deprecated */ func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, region string, instanceId string) ApiGetInstanceRequest { return ApiGetInstanceRequest{ @@ -1856,6 +1968,8 @@ func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, r // Execute executes the request // // @return InstanceResponse +// +// Deprecated func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1989,6 +2103,8 @@ Get specific available user for an instance @param instanceId Instance ID @param userId User ID @return ApiGetUserRequest + +Deprecated */ func (a *DefaultAPIService) GetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiGetUserRequest { return ApiGetUserRequest{ @@ -2004,6 +2120,8 @@ func (a *DefaultAPIService) GetUser(ctx context.Context, projectId string, regio // Execute executes the request // // @return GetUserResponse +// +// Deprecated func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2136,6 +2254,8 @@ List all backups which are available for a specific instance @param region The region which should be addressed @param instanceId Instance ID @return ApiListBackupsRequest + +Deprecated */ func (a *DefaultAPIService) ListBackups(ctx context.Context, projectId string, region string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ @@ -2150,6 +2270,8 @@ func (a *DefaultAPIService) ListBackups(ctx context.Context, projectId string, r // Execute executes the request // // @return ListBackupsResponse +// +// Deprecated func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2281,6 +2403,8 @@ List available databases parameter @param region The region which should be addressed @param instanceId Instance ID @return ApiListDatabaseParametersRequest + +Deprecated */ func (a *DefaultAPIService) ListDatabaseParameters(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabaseParametersRequest { return ApiListDatabaseParametersRequest{ @@ -2295,6 +2419,8 @@ func (a *DefaultAPIService) ListDatabaseParameters(ctx context.Context, projectI // Execute executes the request // // @return PostgresDatabaseParameterResponse +// +// Deprecated func (a *DefaultAPIService) ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2426,6 +2552,8 @@ List available databases for an instance @param region The region which should be addressed @param instanceId Instance ID @return ApiListDatabasesRequest + +Deprecated */ func (a *DefaultAPIService) ListDatabases(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabasesRequest { return ApiListDatabasesRequest{ @@ -2440,6 +2568,8 @@ func (a *DefaultAPIService) ListDatabases(ctx context.Context, projectId string, // Execute executes the request // // @return InstanceListDatabasesResponse +// +// Deprecated func (a *DefaultAPIService) ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2569,6 +2699,8 @@ Get available flavors for a specific projectID @param projectId Project ID @param region The region which should be addressed @return ApiListFlavorsRequest + +Deprecated */ func (a *DefaultAPIService) ListFlavors(ctx context.Context, projectId string, region string) ApiListFlavorsRequest { return ApiListFlavorsRequest{ @@ -2582,6 +2714,8 @@ func (a *DefaultAPIService) ListFlavors(ctx context.Context, projectId string, r // Execute executes the request // // @return ListFlavorsResponse +// +// Deprecated func (a *DefaultAPIService) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2710,6 +2844,8 @@ List available instances @param projectId Project ID @param region The region which should be addressed @return ApiListInstancesRequest + +Deprecated */ func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string, region string) ApiListInstancesRequest { return ApiListInstancesRequest{ @@ -2723,6 +2859,8 @@ func (a *DefaultAPIService) ListInstances(ctx context.Context, projectId string, // Execute executes the request // // @return ListInstancesResponse +// +// Deprecated func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2881,8 +3019,10 @@ Returns a metric for an instance. The metric will only be for the master pod if @param projectId The UUID of the project. @param region The region which should be addressed @param instanceId The UUID of the instance. - @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. + @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest + +Deprecated */ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, region string, instanceId string, metric string) ApiListMetricsRequest { return ApiListMetricsRequest{ @@ -2898,6 +3038,8 @@ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, r // Execute executes the request // // @return InstanceMetricsResponse +// +// Deprecated func (a *DefaultAPIService) ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3064,6 +3206,8 @@ Get available storages for a specific flavor @param region The region which should be addressed @param flavorId Flavor ID @return ApiListStoragesRequest + +Deprecated */ func (a *DefaultAPIService) ListStorages(ctx context.Context, projectId string, region string, flavorId string) ApiListStoragesRequest { return ApiListStoragesRequest{ @@ -3078,6 +3222,8 @@ func (a *DefaultAPIService) ListStorages(ctx context.Context, projectId string, // Execute executes the request // // @return ListStoragesResponse +// +// Deprecated func (a *DefaultAPIService) ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3209,6 +3355,8 @@ List available users for an instance @param region The region which should be addressed @param instanceId Instance ID @return ApiListUsersRequest + +Deprecated */ func (a *DefaultAPIService) ListUsers(ctx context.Context, projectId string, region string, instanceId string) ApiListUsersRequest { return ApiListUsersRequest{ @@ -3223,6 +3371,8 @@ func (a *DefaultAPIService) ListUsers(ctx context.Context, projectId string, reg // Execute executes the request // // @return ListUsersResponse +// +// Deprecated func (a *DefaultAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3359,6 +3509,8 @@ Get available versions for postgres database @param projectId Project ID @param region The region which should be addressed @return ApiListVersionsRequest + +Deprecated */ func (a *DefaultAPIService) ListVersions(ctx context.Context, projectId string, region string) ApiListVersionsRequest { return ApiListVersionsRequest{ @@ -3372,6 +3524,8 @@ func (a *DefaultAPIService) ListVersions(ctx context.Context, projectId string, // Execute executes the request // // @return ListVersionsResponse +// +// Deprecated func (a *DefaultAPIService) ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -3512,6 +3666,8 @@ Update available instance of a postgres database. Supported Versions are 12, 13, @param region The region which should be addressed @param instanceId Instance ID @return ApiPartialUpdateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiPartialUpdateInstanceRequest { return ApiPartialUpdateInstanceRequest{ @@ -3526,6 +3682,8 @@ func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId // Execute executes the request // // @return PartialUpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -3671,6 +3829,8 @@ Update user for an instance. Only the roles are updatable. @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiPartialUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) PartialUpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiPartialUpdateUserRequest { return ApiPartialUpdateUserRequest{ @@ -3684,6 +3844,7 @@ func (a *DefaultAPIService) PartialUpdateUser(ctx context.Context, projectId str } // Execute executes the request +// Deprecated func (a *DefaultAPIService) PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error { var ( localVarHTTPMethod = http.MethodPatch @@ -3819,6 +3980,8 @@ Reset user password for a postgres instance @param instanceId Instance ID @param userId user ID @return ApiResetUserRequest + +Deprecated */ func (a *DefaultAPIService) ResetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiResetUserRequest { return ApiResetUserRequest{ @@ -3834,6 +3997,8 @@ func (a *DefaultAPIService) ResetUser(ctx context.Context, projectId string, reg // Execute executes the request // // @return ResetUserResponse +// +// Deprecated func (a *DefaultAPIService) ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3994,6 +4159,8 @@ Update backup schedule @param region The region which should be addressed @param instanceId Instance ID @return ApiUpdateBackupScheduleRequest + +Deprecated */ func (a *DefaultAPIService) UpdateBackupSchedule(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateBackupScheduleRequest { return ApiUpdateBackupScheduleRequest{ @@ -4006,6 +4173,7 @@ func (a *DefaultAPIService) UpdateBackupSchedule(ctx context.Context, projectId } // Execute executes the request +// Deprecated func (a *DefaultAPIService) UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error { var ( localVarHTTPMethod = http.MethodPut @@ -4138,6 +4306,8 @@ Update available instance of a postgres database. Supported Versions are 12, 13, @param region The region which should be addressed @param instanceId Instance ID @return ApiUpdateInstanceRequest + +Deprecated */ func (a *DefaultAPIService) UpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceRequest { return ApiUpdateInstanceRequest{ @@ -4152,6 +4322,8 @@ func (a *DefaultAPIService) UpdateInstance(ctx context.Context, projectId string // Execute executes the request // // @return PartialUpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -4297,6 +4469,8 @@ Update user for an instance. Only the roles are updatable. @param instanceId The ID of the instance @param userId The ID of the user in the database @return ApiUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) UpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ @@ -4310,6 +4484,7 @@ func (a *DefaultAPIService) UpdateUser(ctx context.Context, projectId string, re } // Execute executes the request +// Deprecated func (a *DefaultAPIService) UpdateUserExecute(r ApiUpdateUserRequest) error { var ( localVarHTTPMethod = http.MethodPut diff --git a/services/postgresflex/v2api/api_default_mock.go b/services/postgresflex/v2api/api_default_mock.go index fabb3151dc..e9f30700db 100644 --- a/services/postgresflex/v2api/api_default_mock.go +++ b/services/postgresflex/v2api/api_default_mock.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud @@ -21,60 +21,61 @@ var _ DefaultAPI = &DefaultAPIServiceMock{} // DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. // By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. type DefaultAPIServiceMock struct { - // CloneInstanceExecuteMock can be populated to implement the behavior of the CloneInstanceExecute function of this mock + // Deprecated: CloneInstanceExecuteMock can be populated to implement the behavior of the CloneInstanceExecute function of this mock CloneInstanceExecuteMock *func(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) - // CreateDatabaseExecuteMock can be populated to implement the behavior of the CreateDatabaseExecute function of this mock + // Deprecated: CreateDatabaseExecuteMock can be populated to implement the behavior of the CreateDatabaseExecute function of this mock CreateDatabaseExecuteMock *func(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) - // CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock + // Deprecated: CreateInstanceExecuteMock can be populated to implement the behavior of the CreateInstanceExecute function of this mock CreateInstanceExecuteMock *func(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) - // CreateUserExecuteMock can be populated to implement the behavior of the CreateUserExecute function of this mock + // Deprecated: CreateUserExecuteMock can be populated to implement the behavior of the CreateUserExecute function of this mock CreateUserExecuteMock *func(r ApiCreateUserRequest) (*CreateUserResponse, error) - // DeleteDatabaseExecuteMock can be populated to implement the behavior of the DeleteDatabaseExecute function of this mock + // Deprecated: DeleteDatabaseExecuteMock can be populated to implement the behavior of the DeleteDatabaseExecute function of this mock DeleteDatabaseExecuteMock *func(r ApiDeleteDatabaseRequest) error - // DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock + // Deprecated: DeleteInstanceExecuteMock can be populated to implement the behavior of the DeleteInstanceExecute function of this mock DeleteInstanceExecuteMock *func(r ApiDeleteInstanceRequest) error - // DeleteUserExecuteMock can be populated to implement the behavior of the DeleteUserExecute function of this mock + // Deprecated: DeleteUserExecuteMock can be populated to implement the behavior of the DeleteUserExecute function of this mock DeleteUserExecuteMock *func(r ApiDeleteUserRequest) error - // ForceDeleteInstanceExecuteMock can be populated to implement the behavior of the ForceDeleteInstanceExecute function of this mock + // Deprecated: ForceDeleteInstanceExecuteMock can be populated to implement the behavior of the ForceDeleteInstanceExecute function of this mock ForceDeleteInstanceExecuteMock *func(r ApiForceDeleteInstanceRequest) error - // GetBackupExecuteMock can be populated to implement the behavior of the GetBackupExecute function of this mock + // Deprecated: GetBackupExecuteMock can be populated to implement the behavior of the GetBackupExecute function of this mock GetBackupExecuteMock *func(r ApiGetBackupRequest) (*GetBackupResponse, error) - // GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock + // Deprecated: GetInstanceExecuteMock can be populated to implement the behavior of the GetInstanceExecute function of this mock GetInstanceExecuteMock *func(r ApiGetInstanceRequest) (*InstanceResponse, error) - // GetUserExecuteMock can be populated to implement the behavior of the GetUserExecute function of this mock + // Deprecated: GetUserExecuteMock can be populated to implement the behavior of the GetUserExecute function of this mock GetUserExecuteMock *func(r ApiGetUserRequest) (*GetUserResponse, error) - // ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock + // Deprecated: ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock ListBackupsExecuteMock *func(r ApiListBackupsRequest) (*ListBackupsResponse, error) - // ListDatabaseParametersExecuteMock can be populated to implement the behavior of the ListDatabaseParametersExecute function of this mock + // Deprecated: ListDatabaseParametersExecuteMock can be populated to implement the behavior of the ListDatabaseParametersExecute function of this mock ListDatabaseParametersExecuteMock *func(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) - // ListDatabasesExecuteMock can be populated to implement the behavior of the ListDatabasesExecute function of this mock + // Deprecated: ListDatabasesExecuteMock can be populated to implement the behavior of the ListDatabasesExecute function of this mock ListDatabasesExecuteMock *func(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) - // ListFlavorsExecuteMock can be populated to implement the behavior of the ListFlavorsExecute function of this mock + // Deprecated: ListFlavorsExecuteMock can be populated to implement the behavior of the ListFlavorsExecute function of this mock ListFlavorsExecuteMock *func(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) - // ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock + // Deprecated: ListInstancesExecuteMock can be populated to implement the behavior of the ListInstancesExecute function of this mock ListInstancesExecuteMock *func(r ApiListInstancesRequest) (*ListInstancesResponse, error) - // ListMetricsExecuteMock can be populated to implement the behavior of the ListMetricsExecute function of this mock + // Deprecated: ListMetricsExecuteMock can be populated to implement the behavior of the ListMetricsExecute function of this mock ListMetricsExecuteMock *func(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) - // ListStoragesExecuteMock can be populated to implement the behavior of the ListStoragesExecute function of this mock + // Deprecated: ListStoragesExecuteMock can be populated to implement the behavior of the ListStoragesExecute function of this mock ListStoragesExecuteMock *func(r ApiListStoragesRequest) (*ListStoragesResponse, error) - // ListUsersExecuteMock can be populated to implement the behavior of the ListUsersExecute function of this mock + // Deprecated: ListUsersExecuteMock can be populated to implement the behavior of the ListUsersExecute function of this mock ListUsersExecuteMock *func(r ApiListUsersRequest) (*ListUsersResponse, error) - // ListVersionsExecuteMock can be populated to implement the behavior of the ListVersionsExecute function of this mock + // Deprecated: ListVersionsExecuteMock can be populated to implement the behavior of the ListVersionsExecute function of this mock ListVersionsExecuteMock *func(r ApiListVersionsRequest) (*ListVersionsResponse, error) - // PartialUpdateInstanceExecuteMock can be populated to implement the behavior of the PartialUpdateInstanceExecute function of this mock + // Deprecated: PartialUpdateInstanceExecuteMock can be populated to implement the behavior of the PartialUpdateInstanceExecute function of this mock PartialUpdateInstanceExecuteMock *func(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) - // PartialUpdateUserExecuteMock can be populated to implement the behavior of the PartialUpdateUserExecute function of this mock + // Deprecated: PartialUpdateUserExecuteMock can be populated to implement the behavior of the PartialUpdateUserExecute function of this mock PartialUpdateUserExecuteMock *func(r ApiPartialUpdateUserRequest) error - // ResetUserExecuteMock can be populated to implement the behavior of the ResetUserExecute function of this mock + // Deprecated: ResetUserExecuteMock can be populated to implement the behavior of the ResetUserExecute function of this mock ResetUserExecuteMock *func(r ApiResetUserRequest) (*ResetUserResponse, error) - // UpdateBackupScheduleExecuteMock can be populated to implement the behavior of the UpdateBackupScheduleExecute function of this mock + // Deprecated: UpdateBackupScheduleExecuteMock can be populated to implement the behavior of the UpdateBackupScheduleExecute function of this mock UpdateBackupScheduleExecuteMock *func(r ApiUpdateBackupScheduleRequest) error - // UpdateInstanceExecuteMock can be populated to implement the behavior of the UpdateInstanceExecute function of this mock + // Deprecated: UpdateInstanceExecuteMock can be populated to implement the behavior of the UpdateInstanceExecute function of this mock UpdateInstanceExecuteMock *func(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) - // UpdateUserExecuteMock can be populated to implement the behavior of the UpdateUserExecute function of this mock + // Deprecated: UpdateUserExecuteMock can be populated to implement the behavior of the UpdateUserExecute function of this mock UpdateUserExecuteMock *func(r ApiUpdateUserRequest) error } +// Deprecated func (a DefaultAPIServiceMock) CloneInstance(ctx context.Context, projectId string, region string, instanceId string) ApiCloneInstanceRequest { return ApiCloneInstanceRequest{ ApiService: a, @@ -85,7 +86,7 @@ func (a DefaultAPIServiceMock) CloneInstance(ctx context.Context, projectId stri } } -// CloneInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CloneInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CloneInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CloneInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CloneInstanceExecute(r ApiCloneInstanceRequest) (*CloneInstanceResponse, error) { if a.CloneInstanceExecuteMock == nil { var localVarReturnValue *CloneInstanceResponse @@ -95,6 +96,7 @@ func (a DefaultAPIServiceMock) CloneInstanceExecute(r ApiCloneInstanceRequest) ( return (*a.CloneInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateDatabase(ctx context.Context, projectId string, region string, instanceId string) ApiCreateDatabaseRequest { return ApiCreateDatabaseRequest{ ApiService: a, @@ -105,7 +107,7 @@ func (a DefaultAPIServiceMock) CreateDatabase(ctx context.Context, projectId str } } -// CreateDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDatabaseExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateDatabaseExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (*InstanceCreateDatabaseResponse, error) { if a.CreateDatabaseExecuteMock == nil { var localVarReturnValue *InstanceCreateDatabaseResponse @@ -115,6 +117,7 @@ func (a DefaultAPIServiceMock) CreateDatabaseExecute(r ApiCreateDatabaseRequest) return (*a.CreateDatabaseExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId string, region string) ApiCreateInstanceRequest { return ApiCreateInstanceRequest{ ApiService: a, @@ -124,7 +127,7 @@ func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId str } } -// CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) (*CreateInstanceResponse, error) { if a.CreateInstanceExecuteMock == nil { var localVarReturnValue *CreateInstanceResponse @@ -134,6 +137,7 @@ func (a DefaultAPIServiceMock) CreateInstanceExecute(r ApiCreateInstanceRequest) return (*a.CreateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateUser(ctx context.Context, projectId string, region string, instanceId string) ApiCreateUserRequest { return ApiCreateUserRequest{ ApiService: a, @@ -144,7 +148,7 @@ func (a DefaultAPIServiceMock) CreateUser(ctx context.Context, projectId string, } } -// CreateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: CreateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) CreateUserExecute(r ApiCreateUserRequest) (*CreateUserResponse, error) { if a.CreateUserExecuteMock == nil { var localVarReturnValue *CreateUserResponse @@ -154,6 +158,7 @@ func (a DefaultAPIServiceMock) CreateUserExecute(r ApiCreateUserRequest) (*Creat return (*a.CreateUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId string) ApiDeleteDatabaseRequest { return ApiDeleteDatabaseRequest{ ApiService: a, @@ -165,7 +170,7 @@ func (a DefaultAPIServiceMock) DeleteDatabase(ctx context.Context, projectId str } } -// DeleteDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDatabaseExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteDatabaseExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteDatabaseExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) error { if a.DeleteDatabaseExecuteMock == nil { return nil @@ -174,6 +179,7 @@ func (a DefaultAPIServiceMock) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) return (*a.DeleteDatabaseExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiDeleteInstanceRequest { return ApiDeleteInstanceRequest{ ApiService: a, @@ -184,7 +190,7 @@ func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId str } } -// DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) error { if a.DeleteInstanceExecuteMock == nil { return nil @@ -193,6 +199,7 @@ func (a DefaultAPIServiceMock) DeleteInstanceExecute(r ApiDeleteInstanceRequest) return (*a.DeleteInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ ApiService: a, @@ -204,7 +211,7 @@ func (a DefaultAPIServiceMock) DeleteUser(ctx context.Context, projectId string, } } -// DeleteUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: DeleteUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { if a.DeleteUserExecuteMock == nil { return nil @@ -213,6 +220,7 @@ func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { return (*a.DeleteUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ForceDeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiForceDeleteInstanceRequest { return ApiForceDeleteInstanceRequest{ ApiService: a, @@ -223,7 +231,7 @@ func (a DefaultAPIServiceMock) ForceDeleteInstance(ctx context.Context, projectI } } -// ForceDeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ForceDeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ForceDeleteInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ForceDeleteInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceRequest) error { if a.ForceDeleteInstanceExecuteMock == nil { return nil @@ -232,6 +240,7 @@ func (a DefaultAPIServiceMock) ForceDeleteInstanceExecute(r ApiForceDeleteInstan return (*a.ForceDeleteInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetBackup(ctx context.Context, projectId string, region string, instanceId string, backupId string) ApiGetBackupRequest { return ApiGetBackupRequest{ ApiService: a, @@ -243,7 +252,7 @@ func (a DefaultAPIServiceMock) GetBackup(ctx context.Context, projectId string, } } -// GetBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetBackupExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetBackupExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetBackupExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupResponse, error) { if a.GetBackupExecuteMock == nil { var localVarReturnValue *GetBackupResponse @@ -253,6 +262,7 @@ func (a DefaultAPIServiceMock) GetBackupExecute(r ApiGetBackupRequest) (*GetBack return (*a.GetBackupExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, projectId string, region string, instanceId string) ApiGetInstanceRequest { return ApiGetInstanceRequest{ ApiService: a, @@ -263,7 +273,7 @@ func (a DefaultAPIServiceMock) GetInstance(ctx context.Context, projectId string } } -// GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*InstanceResponse, error) { if a.GetInstanceExecuteMock == nil { var localVarReturnValue *InstanceResponse @@ -273,6 +283,7 @@ func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*Ins return (*a.GetInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiGetUserRequest { return ApiGetUserRequest{ ApiService: a, @@ -284,7 +295,7 @@ func (a DefaultAPIServiceMock) GetUser(ctx context.Context, projectId string, re } } -// GetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: GetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) GetUserExecute(r ApiGetUserRequest) (*GetUserResponse, error) { if a.GetUserExecuteMock == nil { var localVarReturnValue *GetUserResponse @@ -294,6 +305,7 @@ func (a DefaultAPIServiceMock) GetUserExecute(r ApiGetUserRequest) (*GetUserResp return (*a.GetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string, region string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ ApiService: a, @@ -304,7 +316,7 @@ func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string } } -// ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListBackupsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListBackupsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*ListBackupsResponse, error) { if a.ListBackupsExecuteMock == nil { var localVarReturnValue *ListBackupsResponse @@ -314,6 +326,7 @@ func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*Lis return (*a.ListBackupsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListDatabaseParameters(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabaseParametersRequest { return ApiListDatabaseParametersRequest{ ApiService: a, @@ -324,7 +337,7 @@ func (a DefaultAPIServiceMock) ListDatabaseParameters(ctx context.Context, proje } } -// ListDatabaseParametersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabaseParametersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListDatabaseParametersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabaseParametersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListDatabaseParametersExecute(r ApiListDatabaseParametersRequest) (*PostgresDatabaseParameterResponse, error) { if a.ListDatabaseParametersExecuteMock == nil { var localVarReturnValue *PostgresDatabaseParameterResponse @@ -334,6 +347,7 @@ func (a DefaultAPIServiceMock) ListDatabaseParametersExecute(r ApiListDatabasePa return (*a.ListDatabaseParametersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListDatabases(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabasesRequest { return ApiListDatabasesRequest{ ApiService: a, @@ -344,7 +358,7 @@ func (a DefaultAPIServiceMock) ListDatabases(ctx context.Context, projectId stri } } -// ListDatabasesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabasesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListDatabasesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListDatabasesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListDatabasesExecute(r ApiListDatabasesRequest) (*InstanceListDatabasesResponse, error) { if a.ListDatabasesExecuteMock == nil { var localVarReturnValue *InstanceListDatabasesResponse @@ -354,6 +368,7 @@ func (a DefaultAPIServiceMock) ListDatabasesExecute(r ApiListDatabasesRequest) ( return (*a.ListDatabasesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListFlavors(ctx context.Context, projectId string, region string) ApiListFlavorsRequest { return ApiListFlavorsRequest{ ApiService: a, @@ -363,7 +378,7 @@ func (a DefaultAPIServiceMock) ListFlavors(ctx context.Context, projectId string } } -// ListFlavorsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListFlavorsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListFlavorsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListFlavorsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFlavorsResponse, error) { if a.ListFlavorsExecuteMock == nil { var localVarReturnValue *ListFlavorsResponse @@ -373,6 +388,7 @@ func (a DefaultAPIServiceMock) ListFlavorsExecute(r ApiListFlavorsRequest) (*Lis return (*a.ListFlavorsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId string, region string) ApiListInstancesRequest { return ApiListInstancesRequest{ ApiService: a, @@ -382,7 +398,7 @@ func (a DefaultAPIServiceMock) ListInstances(ctx context.Context, projectId stri } } -// ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListInstancesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListInstancesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) (*ListInstancesResponse, error) { if a.ListInstancesExecuteMock == nil { var localVarReturnValue *ListInstancesResponse @@ -392,6 +408,7 @@ func (a DefaultAPIServiceMock) ListInstancesExecute(r ApiListInstancesRequest) ( return (*a.ListInstancesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListMetrics(ctx context.Context, projectId string, region string, instanceId string, metric string) ApiListMetricsRequest { return ApiListMetricsRequest{ ApiService: a, @@ -403,7 +420,7 @@ func (a DefaultAPIServiceMock) ListMetrics(ctx context.Context, projectId string } } -// ListMetricsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMetricsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListMetricsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListMetricsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListMetricsExecute(r ApiListMetricsRequest) (*InstanceMetricsResponse, error) { if a.ListMetricsExecuteMock == nil { var localVarReturnValue *InstanceMetricsResponse @@ -413,6 +430,7 @@ func (a DefaultAPIServiceMock) ListMetricsExecute(r ApiListMetricsRequest) (*Ins return (*a.ListMetricsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListStorages(ctx context.Context, projectId string, region string, flavorId string) ApiListStoragesRequest { return ApiListStoragesRequest{ ApiService: a, @@ -423,7 +441,7 @@ func (a DefaultAPIServiceMock) ListStorages(ctx context.Context, projectId strin } } -// ListStoragesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListStoragesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListStoragesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListStoragesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) { if a.ListStoragesExecuteMock == nil { var localVarReturnValue *ListStoragesResponse @@ -433,6 +451,7 @@ func (a DefaultAPIServiceMock) ListStoragesExecute(r ApiListStoragesRequest) (*L return (*a.ListStoragesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListUsers(ctx context.Context, projectId string, region string, instanceId string) ApiListUsersRequest { return ApiListUsersRequest{ ApiService: a, @@ -443,7 +462,7 @@ func (a DefaultAPIServiceMock) ListUsers(ctx context.Context, projectId string, } } -// ListUsersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUsersExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListUsersExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListUsersExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListUsersExecute(r ApiListUsersRequest) (*ListUsersResponse, error) { if a.ListUsersExecuteMock == nil { var localVarReturnValue *ListUsersResponse @@ -453,6 +472,7 @@ func (a DefaultAPIServiceMock) ListUsersExecute(r ApiListUsersRequest) (*ListUse return (*a.ListUsersExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListVersions(ctx context.Context, projectId string, region string) ApiListVersionsRequest { return ApiListVersionsRequest{ ApiService: a, @@ -462,7 +482,7 @@ func (a DefaultAPIServiceMock) ListVersions(ctx context.Context, projectId strin } } -// ListVersionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListVersionsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListVersionsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListVersionsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) { if a.ListVersionsExecuteMock == nil { var localVarReturnValue *ListVersionsResponse @@ -472,6 +492,7 @@ func (a DefaultAPIServiceMock) ListVersionsExecute(r ApiListVersionsRequest) (*L return (*a.ListVersionsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PartialUpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiPartialUpdateInstanceRequest { return ApiPartialUpdateInstanceRequest{ ApiService: a, @@ -482,7 +503,7 @@ func (a DefaultAPIServiceMock) PartialUpdateInstance(ctx context.Context, projec } } -// PartialUpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PartialUpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { if a.PartialUpdateInstanceExecuteMock == nil { var localVarReturnValue *PartialUpdateInstanceResponse @@ -492,6 +513,7 @@ func (a DefaultAPIServiceMock) PartialUpdateInstanceExecute(r ApiPartialUpdateIn return (*a.PartialUpdateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) PartialUpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiPartialUpdateUserRequest { return ApiPartialUpdateUserRequest{ ApiService: a, @@ -503,7 +525,7 @@ func (a DefaultAPIServiceMock) PartialUpdateUser(ctx context.Context, projectId } } -// PartialUpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: PartialUpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error { if a.PartialUpdateUserExecuteMock == nil { return nil @@ -512,6 +534,7 @@ func (a DefaultAPIServiceMock) PartialUpdateUserExecute(r ApiPartialUpdateUserRe return (*a.PartialUpdateUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ResetUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiResetUserRequest { return ApiResetUserRequest{ ApiService: a, @@ -523,7 +546,7 @@ func (a DefaultAPIServiceMock) ResetUser(ctx context.Context, projectId string, } } -// ResetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ResetUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ResetUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ResetUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ResetUserExecute(r ApiResetUserRequest) (*ResetUserResponse, error) { if a.ResetUserExecuteMock == nil { var localVarReturnValue *ResetUserResponse @@ -533,6 +556,7 @@ func (a DefaultAPIServiceMock) ResetUserExecute(r ApiResetUserRequest) (*ResetUs return (*a.ResetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateBackupSchedule(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateBackupScheduleRequest { return ApiUpdateBackupScheduleRequest{ ApiService: a, @@ -543,7 +567,7 @@ func (a DefaultAPIServiceMock) UpdateBackupSchedule(ctx context.Context, project } } -// UpdateBackupScheduleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateBackupScheduleExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateBackupScheduleExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateBackupScheduleExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) error { if a.UpdateBackupScheduleExecuteMock == nil { return nil @@ -552,6 +576,7 @@ func (a DefaultAPIServiceMock) UpdateBackupScheduleExecute(r ApiUpdateBackupSche return (*a.UpdateBackupScheduleExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceRequest { return ApiUpdateInstanceRequest{ ApiService: a, @@ -562,7 +587,7 @@ func (a DefaultAPIServiceMock) UpdateInstance(ctx context.Context, projectId str } } -// UpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*PartialUpdateInstanceResponse, error) { if a.UpdateInstanceExecuteMock == nil { var localVarReturnValue *PartialUpdateInstanceResponse @@ -572,6 +597,7 @@ func (a DefaultAPIServiceMock) UpdateInstanceExecute(r ApiUpdateInstanceRequest) return (*a.UpdateInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ ApiService: a, @@ -583,7 +609,7 @@ func (a DefaultAPIServiceMock) UpdateUser(ctx context.Context, projectId string, } } -// UpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateUserExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: UpdateUserExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateUserExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) UpdateUserExecute(r ApiUpdateUserRequest) error { if a.UpdateUserExecuteMock == nil { return nil diff --git a/services/postgresflex/v2api/client.go b/services/postgresflex/v2api/client.go index f4bffb7fa9..2be8d367be 100644 --- a/services/postgresflex/v2api/client.go +++ b/services/postgresflex/v2api/client.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/configuration.go b/services/postgresflex/v2api/configuration.go index 73f1e531c3..82bb3453c0 100644 --- a/services/postgresflex/v2api/configuration.go +++ b/services/postgresflex/v2api/configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_acl.go b/services/postgresflex/v2api/model_acl.go index 7253e860fb..487e5bb216 100644 --- a/services/postgresflex/v2api/model_acl.go +++ b/services/postgresflex/v2api/model_acl.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_configuration.go b/services/postgresflex/v2api/model_api_configuration.go index 850e463b85..462bcaf146 100644 --- a/services/postgresflex/v2api/model_api_configuration.go +++ b/services/postgresflex/v2api/model_api_configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_config_load_response.go b/services/postgresflex/v2api/model_api_extension_config_load_response.go index 03b7e61f0d..0e72ecde15 100644 --- a/services/postgresflex/v2api/model_api_extension_config_load_response.go +++ b/services/postgresflex/v2api/model_api_extension_config_load_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_configure_response.go b/services/postgresflex/v2api/model_api_extension_configure_response.go index a13cab34e9..b2d79f1a9a 100644 --- a/services/postgresflex/v2api/model_api_extension_configure_response.go +++ b/services/postgresflex/v2api/model_api_extension_configure_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_delete_response.go b/services/postgresflex/v2api/model_api_extension_delete_response.go index f3f60c25e9..4d08bc29f7 100644 --- a/services/postgresflex/v2api/model_api_extension_delete_response.go +++ b/services/postgresflex/v2api/model_api_extension_delete_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_list.go b/services/postgresflex/v2api/model_api_extension_list.go index 7537ca9ef6..b6e526db84 100644 --- a/services/postgresflex/v2api/model_api_extension_list.go +++ b/services/postgresflex/v2api/model_api_extension_list.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_load_response.go b/services/postgresflex/v2api/model_api_extension_load_response.go index e694d052e6..52be3099fa 100644 --- a/services/postgresflex/v2api/model_api_extension_load_response.go +++ b/services/postgresflex/v2api/model_api_extension_load_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_install_response.go b/services/postgresflex/v2api/model_api_install_response.go index 063e9ceb12..d5feb17ce0 100644 --- a/services/postgresflex/v2api/model_api_install_response.go +++ b/services/postgresflex/v2api/model_api_install_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_installed_list_response.go b/services/postgresflex/v2api/model_api_installed_list_response.go index 665ec01127..86e1e348a6 100644 --- a/services/postgresflex/v2api/model_api_installed_list_response.go +++ b/services/postgresflex/v2api/model_api_installed_list_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_backup.go b/services/postgresflex/v2api/model_backup.go index 963a16dd63..9286853592 100644 --- a/services/postgresflex/v2api/model_backup.go +++ b/services/postgresflex/v2api/model_backup.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_clone_instance_payload.go b/services/postgresflex/v2api/model_clone_instance_payload.go index f4ac2ceef8..c44b2ce0e7 100644 --- a/services/postgresflex/v2api/model_clone_instance_payload.go +++ b/services/postgresflex/v2api/model_clone_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_clone_instance_response.go b/services/postgresflex/v2api/model_clone_instance_response.go index 8044f7be7b..b9dce5f46f 100644 --- a/services/postgresflex/v2api/model_clone_instance_response.go +++ b/services/postgresflex/v2api/model_clone_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_database_payload.go b/services/postgresflex/v2api/model_create_database_payload.go index 59e841f513..6264ebf015 100644 --- a/services/postgresflex/v2api/model_create_database_payload.go +++ b/services/postgresflex/v2api/model_create_database_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_instance_payload.go b/services/postgresflex/v2api/model_create_instance_payload.go index b5bc3512c3..aa4fdc1834 100644 --- a/services/postgresflex/v2api/model_create_instance_payload.go +++ b/services/postgresflex/v2api/model_create_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_instance_response.go b/services/postgresflex/v2api/model_create_instance_response.go index a29421ec50..2c3e72c919 100644 --- a/services/postgresflex/v2api/model_create_instance_response.go +++ b/services/postgresflex/v2api/model_create_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_user_payload.go b/services/postgresflex/v2api/model_create_user_payload.go index b085a31168..a558c906c8 100644 --- a/services/postgresflex/v2api/model_create_user_payload.go +++ b/services/postgresflex/v2api/model_create_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_user_response.go b/services/postgresflex/v2api/model_create_user_response.go index 27c0702ce5..fc2d0728e8 100644 --- a/services/postgresflex/v2api/model_create_user_response.go +++ b/services/postgresflex/v2api/model_create_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_error.go b/services/postgresflex/v2api/model_error.go index 81cd91da8d..cc8ea47cca 100644 --- a/services/postgresflex/v2api/model_error.go +++ b/services/postgresflex/v2api/model_error.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_configuration.go b/services/postgresflex/v2api/model_extensions_configuration.go index 4acf6a1fc6..c41d046875 100644 --- a/services/postgresflex/v2api/model_extensions_configuration.go +++ b/services/postgresflex/v2api/model_extensions_configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_extension_list_response.go b/services/postgresflex/v2api/model_extensions_extension_list_response.go index 644b03e045..d4b4a6140c 100644 --- a/services/postgresflex/v2api/model_extensions_extension_list_response.go +++ b/services/postgresflex/v2api/model_extensions_extension_list_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_new_config.go b/services/postgresflex/v2api/model_extensions_new_config.go index 767b66bbaf..b89b0c7577 100644 --- a/services/postgresflex/v2api/model_extensions_new_config.go +++ b/services/postgresflex/v2api/model_extensions_new_config.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_flavor.go b/services/postgresflex/v2api/model_flavor.go index 5451dd2e83..e95043c257 100644 --- a/services/postgresflex/v2api/model_flavor.go +++ b/services/postgresflex/v2api/model_flavor.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_get_backup_response.go b/services/postgresflex/v2api/model_get_backup_response.go index 1f5f6a963d..6ac8ad8228 100644 --- a/services/postgresflex/v2api/model_get_backup_response.go +++ b/services/postgresflex/v2api/model_get_backup_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_get_user_response.go b/services/postgresflex/v2api/model_get_user_response.go index 7587a78150..f5f5d00979 100644 --- a/services/postgresflex/v2api/model_get_user_response.go +++ b/services/postgresflex/v2api/model_get_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance.go b/services/postgresflex/v2api/model_instance.go index d6ffeb5044..c17a452dfe 100644 --- a/services/postgresflex/v2api/model_instance.go +++ b/services/postgresflex/v2api/model_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_create_database_response.go b/services/postgresflex/v2api/model_instance_create_database_response.go index 8e97ce4fb8..cf2dfe973f 100644 --- a/services/postgresflex/v2api/model_instance_create_database_response.go +++ b/services/postgresflex/v2api/model_instance_create_database_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_data_point.go b/services/postgresflex/v2api/model_instance_data_point.go index 80b8896e58..4c8926f6d1 100644 --- a/services/postgresflex/v2api/model_instance_data_point.go +++ b/services/postgresflex/v2api/model_instance_data_point.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_database.go b/services/postgresflex/v2api/model_instance_database.go index daa25970da..13e0d0752c 100644 --- a/services/postgresflex/v2api/model_instance_database.go +++ b/services/postgresflex/v2api/model_instance_database.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_host.go b/services/postgresflex/v2api/model_instance_host.go index bf0c87e623..25597b6540 100644 --- a/services/postgresflex/v2api/model_instance_host.go +++ b/services/postgresflex/v2api/model_instance_host.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_host_metric.go b/services/postgresflex/v2api/model_instance_host_metric.go index c82aade6f3..0f0c1dc3bb 100644 --- a/services/postgresflex/v2api/model_instance_host_metric.go +++ b/services/postgresflex/v2api/model_instance_host_metric.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_list_databases_response.go b/services/postgresflex/v2api/model_instance_list_databases_response.go index b181af3439..814f2a73b5 100644 --- a/services/postgresflex/v2api/model_instance_list_databases_response.go +++ b/services/postgresflex/v2api/model_instance_list_databases_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_list_instance.go b/services/postgresflex/v2api/model_instance_list_instance.go index e62625da13..19d46676c6 100644 --- a/services/postgresflex/v2api/model_instance_list_instance.go +++ b/services/postgresflex/v2api/model_instance_list_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_metrics_response.go b/services/postgresflex/v2api/model_instance_metrics_response.go index adcbc4e39e..243e9eb3fa 100644 --- a/services/postgresflex/v2api/model_instance_metrics_response.go +++ b/services/postgresflex/v2api/model_instance_metrics_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_response.go b/services/postgresflex/v2api/model_instance_response.go index d73a174e21..162942d787 100644 --- a/services/postgresflex/v2api/model_instance_response.go +++ b/services/postgresflex/v2api/model_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_backups_response.go b/services/postgresflex/v2api/model_list_backups_response.go index 8d5b2e0e96..2dd7d54ea6 100644 --- a/services/postgresflex/v2api/model_list_backups_response.go +++ b/services/postgresflex/v2api/model_list_backups_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_flavors_response.go b/services/postgresflex/v2api/model_list_flavors_response.go index 3f53139415..189a4ca005 100644 --- a/services/postgresflex/v2api/model_list_flavors_response.go +++ b/services/postgresflex/v2api/model_list_flavors_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_instances_response.go b/services/postgresflex/v2api/model_list_instances_response.go index 08c4799cf5..676070f040 100644 --- a/services/postgresflex/v2api/model_list_instances_response.go +++ b/services/postgresflex/v2api/model_list_instances_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_storages_response.go b/services/postgresflex/v2api/model_list_storages_response.go index 4410a39a3c..9836bde56f 100644 --- a/services/postgresflex/v2api/model_list_storages_response.go +++ b/services/postgresflex/v2api/model_list_storages_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_users_response.go b/services/postgresflex/v2api/model_list_users_response.go index e45589dcd3..3ed050ccb5 100644 --- a/services/postgresflex/v2api/model_list_users_response.go +++ b/services/postgresflex/v2api/model_list_users_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_users_response_item.go b/services/postgresflex/v2api/model_list_users_response_item.go index 75bb675ce2..62de90a853 100644 --- a/services/postgresflex/v2api/model_list_users_response_item.go +++ b/services/postgresflex/v2api/model_list_users_response_item.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_versions_response.go b/services/postgresflex/v2api/model_list_versions_response.go index 9dd084629e..db781529f8 100644 --- a/services/postgresflex/v2api/model_list_versions_response.go +++ b/services/postgresflex/v2api/model_list_versions_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_instance_payload.go b/services/postgresflex/v2api/model_partial_update_instance_payload.go index e20f5488a6..625706a28c 100644 --- a/services/postgresflex/v2api/model_partial_update_instance_payload.go +++ b/services/postgresflex/v2api/model_partial_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_instance_response.go b/services/postgresflex/v2api/model_partial_update_instance_response.go index 8a7e37a58e..6bda60e715 100644 --- a/services/postgresflex/v2api/model_partial_update_instance_response.go +++ b/services/postgresflex/v2api/model_partial_update_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_user_payload.go b/services/postgresflex/v2api/model_partial_update_user_payload.go index f13b133385..103bb4021c 100644 --- a/services/postgresflex/v2api/model_partial_update_user_payload.go +++ b/services/postgresflex/v2api/model_partial_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_postgres_database_parameter.go b/services/postgresflex/v2api/model_postgres_database_parameter.go index 63df858458..30f0b0c057 100644 --- a/services/postgresflex/v2api/model_postgres_database_parameter.go +++ b/services/postgresflex/v2api/model_postgres_database_parameter.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_postgres_database_parameter_response.go b/services/postgresflex/v2api/model_postgres_database_parameter_response.go index d3df75a117..5c5b42918e 100644 --- a/services/postgresflex/v2api/model_postgres_database_parameter_response.go +++ b/services/postgresflex/v2api/model_postgres_database_parameter_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_reset_user_response.go b/services/postgresflex/v2api/model_reset_user_response.go index 82b3118399..269328e23f 100644 --- a/services/postgresflex/v2api/model_reset_user_response.go +++ b/services/postgresflex/v2api/model_reset_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage.go b/services/postgresflex/v2api/model_storage.go index 72a0a69592..9da22b68d9 100644 --- a/services/postgresflex/v2api/model_storage.go +++ b/services/postgresflex/v2api/model_storage.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage_range.go b/services/postgresflex/v2api/model_storage_range.go index c3eb59e51a..9a0fe77f52 100644 --- a/services/postgresflex/v2api/model_storage_range.go +++ b/services/postgresflex/v2api/model_storage_range.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage_update.go b/services/postgresflex/v2api/model_storage_update.go index e09d1475af..266a8ee14f 100644 --- a/services/postgresflex/v2api/model_storage_update.go +++ b/services/postgresflex/v2api/model_storage_update.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud @@ -21,7 +21,6 @@ var _ MappedNullable = &StorageUpdate{} // StorageUpdate struct for StorageUpdate type StorageUpdate struct { // ⚠️ **DEPRECATED AND NON-FUNCTIONAL:** Updating the performance class field is not possible. - // Deprecated Class *string `json:"class,omitempty"` Size *int64 `json:"size,omitempty"` AdditionalProperties map[string]interface{} @@ -47,7 +46,6 @@ func NewStorageUpdateWithDefaults() *StorageUpdate { } // GetClass returns the Class field value if set, zero value otherwise. -// Deprecated func (o *StorageUpdate) GetClass() string { if o == nil || IsNil(o.Class) { var ret string @@ -58,7 +56,6 @@ func (o *StorageUpdate) GetClass() string { // GetClassOk returns a tuple with the Class field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated func (o *StorageUpdate) GetClassOk() (*string, bool) { if o == nil || IsNil(o.Class) { return nil, false @@ -76,7 +73,6 @@ func (o *StorageUpdate) HasClass() bool { } // SetClass gets a reference to the given string and assigns it to the Class field. -// Deprecated func (o *StorageUpdate) SetClass(v string) { o.Class = &v } diff --git a/services/postgresflex/v2api/model_update_backup_schedule_payload.go b/services/postgresflex/v2api/model_update_backup_schedule_payload.go index 63d0735999..c20383ccd3 100644 --- a/services/postgresflex/v2api/model_update_backup_schedule_payload.go +++ b/services/postgresflex/v2api/model_update_backup_schedule_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_update_instance_payload.go b/services/postgresflex/v2api/model_update_instance_payload.go index 1e84279132..dc1e4c1841 100644 --- a/services/postgresflex/v2api/model_update_instance_payload.go +++ b/services/postgresflex/v2api/model_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_update_user_payload.go b/services/postgresflex/v2api/model_update_user_payload.go index f6d0e7a1ff..44ffdbbb99 100644 --- a/services/postgresflex/v2api/model_update_user_payload.go +++ b/services/postgresflex/v2api/model_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_user.go b/services/postgresflex/v2api/model_user.go index e05e6298b4..170098e443 100644 --- a/services/postgresflex/v2api/model_user.go +++ b/services/postgresflex/v2api/model_user.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_user_response.go b/services/postgresflex/v2api/model_user_response.go index 65da0d981c..5809aed088 100644 --- a/services/postgresflex/v2api/model_user_response.go +++ b/services/postgresflex/v2api/model_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/response.go b/services/postgresflex/v2api/response.go index 8c5f647975..9dcdc3bb2c 100644 --- a/services/postgresflex/v2api/response.go +++ b/services/postgresflex/v2api/response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/utils.go b/services/postgresflex/v2api/utils.go index b455ded95e..acb7bc86a3 100644 --- a/services/postgresflex/v2api/utils.go +++ b/services/postgresflex/v2api/utils.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v3alpha1api/model_create_database_request_payload.go b/services/postgresflex/v3alpha1api/model_create_database_request_payload.go index be4a3089f0..27fd540325 100644 --- a/services/postgresflex/v3alpha1api/model_create_database_request_payload.go +++ b/services/postgresflex/v3alpha1api/model_create_database_request_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &CreateDatabaseRequestPayload{} // CreateDatabaseRequestPayload struct for CreateDatabaseRequestPayload type CreateDatabaseRequestPayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3alpha1api/model_database_roles.go b/services/postgresflex/v3alpha1api/model_database_roles.go index 15ab473df5..ee8a327240 100644 --- a/services/postgresflex/v3alpha1api/model_database_roles.go +++ b/services/postgresflex/v3alpha1api/model_database_roles.go @@ -21,8 +21,8 @@ var _ MappedNullable = &DatabaseRoles{} // DatabaseRoles The name and the roles for a database for a user. type DatabaseRoles struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The name and the roles for a database Roles []string `json:"roles"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3alpha1api/model_get_database_response.go b/services/postgresflex/v3alpha1api/model_get_database_response.go index 9407a2079e..afde7a23bd 100644 --- a/services/postgresflex/v3alpha1api/model_get_database_response.go +++ b/services/postgresflex/v3alpha1api/model_get_database_response.go @@ -23,8 +23,8 @@ var _ MappedNullable = &GetDatabaseResponse{} type GetDatabaseResponse struct { // The id of the database. Id int32 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3alpha1api/model_list_database.go b/services/postgresflex/v3alpha1api/model_list_database.go index 3a1a6080ff..84928e5a53 100644 --- a/services/postgresflex/v3alpha1api/model_list_database.go +++ b/services/postgresflex/v3alpha1api/model_list_database.go @@ -23,8 +23,8 @@ var _ MappedNullable = &ListDatabase{} type ListDatabase struct { // The id of the database. Id int32 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3alpha1api/model_update_database_partially_request_payload.go b/services/postgresflex/v3alpha1api/model_update_database_partially_request_payload.go index f65053e4dd..9b0a95c766 100644 --- a/services/postgresflex/v3alpha1api/model_update_database_partially_request_payload.go +++ b/services/postgresflex/v3alpha1api/model_update_database_partially_request_payload.go @@ -20,8 +20,8 @@ var _ MappedNullable = &UpdateDatabasePartiallyRequestPayload{} // UpdateDatabasePartiallyRequestPayload struct for UpdateDatabasePartiallyRequestPayload type UpdateDatabasePartiallyRequestPayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name *string `json:"name,omitempty" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name *string `json:"name,omitempty" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3alpha1api/model_update_database_request_payload.go b/services/postgresflex/v3alpha1api/model_update_database_request_payload.go index 5c540c07c4..8b67a0dbe9 100644 --- a/services/postgresflex/v3alpha1api/model_update_database_request_payload.go +++ b/services/postgresflex/v3alpha1api/model_update_database_request_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &UpdateDatabaseRequestPayload{} // UpdateDatabaseRequestPayload struct for UpdateDatabaseRequestPayload type UpdateDatabaseRequestPayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_create_database_payload.go b/services/postgresflex/v3api/model_create_database_payload.go index 55c8eac0cf..b7f66b51c9 100644 --- a/services/postgresflex/v3api/model_create_database_payload.go +++ b/services/postgresflex/v3api/model_create_database_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &CreateDatabasePayload{} // CreateDatabasePayload struct for CreateDatabasePayload type CreateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_database_roles.go b/services/postgresflex/v3api/model_database_roles.go index c2f28d4d1b..6ef6d3159e 100644 --- a/services/postgresflex/v3api/model_database_roles.go +++ b/services/postgresflex/v3api/model_database_roles.go @@ -21,8 +21,8 @@ var _ MappedNullable = &DatabaseRoles{} // DatabaseRoles The name and the roles for a database for a user. type DatabaseRoles struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The name and the roles for a database Roles []string `json:"roles"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_get_database_response.go b/services/postgresflex/v3api/model_get_database_response.go index a3986d9ac1..52dd2938e4 100644 --- a/services/postgresflex/v3api/model_get_database_response.go +++ b/services/postgresflex/v3api/model_get_database_response.go @@ -23,8 +23,8 @@ var _ MappedNullable = &GetDatabaseResponse{} type GetDatabaseResponse struct { // The id of the database. Id int64 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_list_database.go b/services/postgresflex/v3api/model_list_database.go index 80715b2c83..0a7f46c747 100644 --- a/services/postgresflex/v3api/model_list_database.go +++ b/services/postgresflex/v3api/model_list_database.go @@ -23,8 +23,8 @@ var _ MappedNullable = &ListDatabase{} type ListDatabase struct { // The id of the database. Id int64 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_partial_update_database_payload.go b/services/postgresflex/v3api/model_partial_update_database_payload.go index 38afd416dd..5800cf8595 100644 --- a/services/postgresflex/v3api/model_partial_update_database_payload.go +++ b/services/postgresflex/v3api/model_partial_update_database_payload.go @@ -20,8 +20,8 @@ var _ MappedNullable = &PartialUpdateDatabasePayload{} // PartialUpdateDatabasePayload struct for PartialUpdateDatabasePayload type PartialUpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name *string `json:"name,omitempty" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name *string `json:"name,omitempty" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3api/model_update_database_payload.go b/services/postgresflex/v3api/model_update_database_payload.go index fa2202a0a4..3ba66972cf 100644 --- a/services/postgresflex/v3api/model_update_database_payload.go +++ b/services/postgresflex/v3api/model_update_database_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &UpdateDatabasePayload{} // UpdateDatabasePayload struct for UpdateDatabasePayload type UpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_create_database_payload.go b/services/postgresflex/v3beta1api/model_create_database_payload.go index ba94623de1..df037f29d0 100644 --- a/services/postgresflex/v3beta1api/model_create_database_payload.go +++ b/services/postgresflex/v3beta1api/model_create_database_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &CreateDatabasePayload{} // CreateDatabasePayload struct for CreateDatabasePayload type CreateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_database_roles.go b/services/postgresflex/v3beta1api/model_database_roles.go index 0e6f2523fe..fbf62c8a34 100644 --- a/services/postgresflex/v3beta1api/model_database_roles.go +++ b/services/postgresflex/v3beta1api/model_database_roles.go @@ -21,8 +21,8 @@ var _ MappedNullable = &DatabaseRoles{} // DatabaseRoles The name and the roles for a database for a user. type DatabaseRoles struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The name and the roles for a database Roles []string `json:"roles"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_get_database_response.go b/services/postgresflex/v3beta1api/model_get_database_response.go index 6e8462f64a..953cef80ff 100644 --- a/services/postgresflex/v3beta1api/model_get_database_response.go +++ b/services/postgresflex/v3beta1api/model_get_database_response.go @@ -23,8 +23,8 @@ var _ MappedNullable = &GetDatabaseResponse{} type GetDatabaseResponse struct { // The id of the database. Id int64 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_list_database.go b/services/postgresflex/v3beta1api/model_list_database.go index e81b8f8f61..af745b56a0 100644 --- a/services/postgresflex/v3beta1api/model_list_database.go +++ b/services/postgresflex/v3beta1api/model_list_database.go @@ -23,8 +23,8 @@ var _ MappedNullable = &ListDatabase{} type ListDatabase struct { // The id of the database. Id int64 `json:"id"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_partial_update_database_payload.go b/services/postgresflex/v3beta1api/model_partial_update_database_payload.go index 6990e91925..b7a162b3b3 100644 --- a/services/postgresflex/v3beta1api/model_partial_update_database_payload.go +++ b/services/postgresflex/v3beta1api/model_partial_update_database_payload.go @@ -20,8 +20,8 @@ var _ MappedNullable = &PartialUpdateDatabasePayload{} // PartialUpdateDatabasePayload struct for PartialUpdateDatabasePayload type PartialUpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name *string `json:"name,omitempty" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name *string `json:"name,omitempty" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner *string `json:"owner,omitempty"` AdditionalProperties map[string]interface{} diff --git a/services/postgresflex/v3beta1api/model_update_database_payload.go b/services/postgresflex/v3beta1api/model_update_database_payload.go index 1fb3ea0860..a78d7e8879 100644 --- a/services/postgresflex/v3beta1api/model_update_database_payload.go +++ b/services/postgresflex/v3beta1api/model_update_database_payload.go @@ -21,8 +21,8 @@ var _ MappedNullable = &UpdateDatabasePayload{} // UpdateDatabasePayload struct for UpdateDatabasePayload type UpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name string `json:"name" validate:"regexp=^[a-z_][a-z0-9_]*$"` + // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, underscores, or hyphens. It cannot end with a hyphen.\" + Name string `json:"name" validate:"regexp=^[a-z_]([a-z0-9_\\-]{0\\,61}[a-z0-9_])?$"` // The owner of the database. Owner string `json:"owner"` AdditionalProperties map[string]interface{}