From f7575cbf315fb378eb53baf03f1c89d515f9ce97 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 29 Oct 2026 11:43:08 +0000 Subject: [PATCH] Generate mongodbflex --- services/mongodbflex/oas_commit | 2 +- services/mongodbflex/v1api/api_default.go | 173 +++++++++++++++- .../mongodbflex/v1api/api_default_mock.go | 127 +++++++----- services/mongodbflex/v1api/client.go | 2 +- services/mongodbflex/v1api/configuration.go | 2 +- services/mongodbflex/v1api/model_acl.go | 2 +- services/mongodbflex/v1api/model_backup.go | 2 +- .../v1api/model_backup_schedule.go | 2 +- .../v1api/model_clone_instance_payload.go | 2 +- .../v1api/model_clone_instance_response.go | 2 +- .../v1api/model_create_instance_payload.go | 2 +- .../v1api/model_create_instance_response.go | 2 +- .../v1api/model_create_user_payload.go | 2 +- .../v1api/model_create_user_response.go | 2 +- .../mongodbflex/v1api/model_data_point.go | 2 +- services/mongodbflex/v1api/model_error.go | 2 +- services/mongodbflex/v1api/model_flavor.go | 2 +- .../v1api/model_get_backup_response.go | 2 +- .../v1api/model_get_instance_response.go | 2 +- .../v1api/model_get_user_response.go | 2 +- .../v1api/model_handlers_infra_flavor.go | 2 +- ...del_handlers_infra_get_flavors_response.go | 2 +- ...andlers_instances_get_instance_response.go | 2 +- ...andlers_instances_slow_queries_response.go | 2 +- ...rs_instances_suggested_indexes_response.go | 2 +- services/mongodbflex/v1api/model_host.go | 2 +- .../mongodbflex/v1api/model_host_metric.go | 2 +- services/mongodbflex/v1api/model_instance.go | 2 +- .../v1api/model_instance_list_instance.go | 2 +- .../model_instance_list_instance_status.go | 2 +- .../v1api/model_instance_response_user.go | 2 +- .../v1api/model_instance_status.go | 2 +- .../v1api/model_list_backups_response.go | 2 +- .../v1api/model_list_flavors_response.go | 2 +- .../v1api/model_list_instances_response.go | 2 +- .../v1api/model_list_metrics_response.go | 2 +- .../v1api/model_list_restore_jobs_response.go | 2 +- .../v1api/model_list_storages_response.go | 2 +- services/mongodbflex/v1api/model_list_user.go | 2 +- .../v1api/model_list_users_response.go | 2 +- .../v1api/model_list_versions_response.go | 2 +- .../v1api/model_mongodbatlas_operation.go | 2 +- .../v1api/model_mongodbatlas_stats.go | 2 +- .../model_partial_update_instance_payload.go | 14 +- .../model_partial_update_user_payload.go | 2 +- .../v1api/model_restore_instance_payload.go | 2 +- .../v1api/model_restore_instance_response.go | 2 +- .../v1api/model_restore_instance_status.go | 2 +- services/mongodbflex/v1api/model_shape.go | 2 +- .../mongodbflex/v1api/model_slow_query.go | 2 +- services/mongodbflex/v1api/model_storage.go | 2 +- .../mongodbflex/v1api/model_storage_range.go | 2 +- .../mongodbflex/v1api/model_storage_update.go | 196 ++++++++++++++++++ .../v1api/model_suggested_index.go | 2 +- .../model_update_backup_schedule_payload.go | 2 +- .../v1api/model_update_instance_payload.go | 14 +- .../v1api/model_update_instance_response.go | 2 +- .../v1api/model_update_user_payload.go | 2 +- services/mongodbflex/v1api/model_user.go | 2 +- services/mongodbflex/v1api/response.go | 2 +- services/mongodbflex/v1api/utils.go | 2 +- .../model_partial_update_instance_payload.go | 12 +- .../mongodbflex/v2api/model_storage_update.go | 196 ++++++++++++++++++ .../v2api/model_update_instance_payload.go | 12 +- 64 files changed, 722 insertions(+), 134 deletions(-) create mode 100644 services/mongodbflex/v1api/model_storage_update.go create mode 100644 services/mongodbflex/v2api/model_storage_update.go diff --git a/services/mongodbflex/oas_commit b/services/mongodbflex/oas_commit index 71a76821d4..9510a89460 100644 --- a/services/mongodbflex/oas_commit +++ b/services/mongodbflex/oas_commit @@ -1 +1 @@ -0afa5e4924e6bf230fdade5cb294ecfd97dd63e5 +c9fb47b3087043293b6f77e5d3b778784de27ef2 diff --git a/services/mongodbflex/v1api/api_default.go b/services/mongodbflex/v1api/api_default.go index b6b97a39ef..7c2ebd8628 100644 --- a/services/mongodbflex/v1api/api_default.go +++ b/services/mongodbflex/v1api/api_default.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud @@ -34,11 +34,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) /* @@ -49,11 +52,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) /* @@ -65,11 +71,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) /* @@ -81,10 +90,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 /* @@ -97,10 +109,13 @@ 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 /* @@ -113,11 +128,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) /* @@ -129,11 +147,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 GetInstanceResponse + // Deprecated GetInstanceExecute(r ApiGetInstanceRequest) (*GetInstanceResponse, error) /* @@ -146,11 +167,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) /* @@ -162,11 +186,14 @@ type DefaultAPI interface { @param projectId project id @param instanceId instance id @return ApiListAdvisorSlowQueriesRequest + + Deprecated */ ListAdvisorSlowQueries(ctx context.Context, projectId string, instanceId string) ApiListAdvisorSlowQueriesRequest // ListAdvisorSlowQueriesExecute executes the request // @return HandlersInstancesSlowQueriesResponse + // Deprecated ListAdvisorSlowQueriesExecute(r ApiListAdvisorSlowQueriesRequest) (*HandlersInstancesSlowQueriesResponse, error) /* @@ -178,11 +205,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) /* @@ -193,11 +223,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) /* @@ -208,11 +241,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) /* @@ -225,11 +261,14 @@ type DefaultAPI interface { @param instanceId instance id @param metric metric type @return ApiListMetricsRequest + + Deprecated */ ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest // ListMetricsExecute executes the request // @return ListMetricsResponse + // Deprecated ListMetricsExecute(r ApiListMetricsRequest) (*ListMetricsResponse, error) /* @@ -241,11 +280,14 @@ type DefaultAPI interface { @param projectId project id @param instanceId instance id @return ApiListRestoreJobsRequest + + Deprecated */ ListRestoreJobs(ctx context.Context, projectId string, instanceId string) ApiListRestoreJobsRequest // ListRestoreJobsExecute executes the request // @return ListRestoreJobsResponse + // Deprecated ListRestoreJobsExecute(r ApiListRestoreJobsRequest) (*ListRestoreJobsResponse, error) /* @@ -257,11 +299,14 @@ type DefaultAPI interface { @param projectId project id @param flavor flavor id @return ApiListStoragesRequest + + Deprecated */ ListStorages(ctx context.Context, projectId string, flavor string) ApiListStoragesRequest // ListStoragesExecute executes the request // @return ListStoragesResponse + // Deprecated ListStoragesExecute(r ApiListStoragesRequest) (*ListStoragesResponse, error) /* @@ -273,11 +318,14 @@ type DefaultAPI interface { @param projectId project id @param instanceId instance id @return ApiListSuggestedIndexesRequest + + Deprecated */ ListSuggestedIndexes(ctx context.Context, projectId string, instanceId string) ApiListSuggestedIndexesRequest // ListSuggestedIndexesExecute executes the request // @return HandlersInstancesSuggestedIndexesResponse + // Deprecated ListSuggestedIndexesExecute(r ApiListSuggestedIndexesRequest) (*HandlersInstancesSuggestedIndexesResponse, error) /* @@ -289,11 +337,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) /* @@ -304,11 +355,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 ApiListVersionsRequest + + Deprecated */ ListVersions(ctx context.Context, projectId string) ApiListVersionsRequest // ListVersionsExecute executes the request // @return ListVersionsResponse + // Deprecated ListVersionsExecute(r ApiListVersionsRequest) (*ListVersionsResponse, error) /* @@ -320,11 +374,14 @@ type DefaultAPI interface { @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 UpdateInstanceResponse + // Deprecated PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*UpdateInstanceResponse, error) /* @@ -337,10 +394,13 @@ type DefaultAPI interface { @param instanceId instance id @param userId user id @return ApiPartialUpdateUserRequest + + Deprecated */ PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest // PartialUpdateUserExecute executes the request + // Deprecated PartialUpdateUserExecute(r ApiPartialUpdateUserRequest) error /* @@ -353,11 +413,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 User + // Deprecated ResetUserExecute(r ApiResetUserRequest) (*User, error) /* @@ -369,11 +432,14 @@ type DefaultAPI interface { @param projectId project id @param instanceId instance id @return ApiRestoreInstanceRequest + + Deprecated */ RestoreInstance(ctx context.Context, projectId string, instanceId string) ApiRestoreInstanceRequest // RestoreInstanceExecute executes the request // @return RestoreInstanceResponse + // Deprecated RestoreInstanceExecute(r ApiRestoreInstanceRequest) (*RestoreInstanceResponse, error) /* @@ -385,11 +451,14 @@ 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 // @return BackupSchedule + // Deprecated UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) (*BackupSchedule, error) /* @@ -401,11 +470,14 @@ type DefaultAPI interface { @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 UpdateInstanceResponse + // Deprecated UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*UpdateInstanceResponse, error) /* @@ -418,10 +490,13 @@ type DefaultAPI interface { @param instanceId instance id @param userId user id @return ApiUpdateUserRequest + + Deprecated */ UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest // UpdateUserExecute executes the request + // Deprecated UpdateUserExecute(r ApiUpdateUserRequest) error } @@ -456,6 +531,8 @@ As an example a valid timestamp look like "2023-04-20T15:05:15Z" @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{ @@ -469,6 +546,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 @@ -606,6 +685,8 @@ Create and deploys an instance
Note that the time format for the backupSche @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{ @@ -618,6 +699,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 @@ -767,6 +850,8 @@ create a new user for a mongodb 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{ @@ -780,6 +865,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 @@ -934,6 +1021,8 @@ removes an 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{ @@ -945,6 +1034,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 @@ -1074,6 +1164,8 @@ delete mongodb user @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{ @@ -1086,6 +1178,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 @@ -1205,6 +1298,8 @@ Get details about a specific 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{ @@ -1219,6 +1314,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 @@ -1347,6 +1444,8 @@ gets information of an instance @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{ @@ -1360,6 +1459,8 @@ func (a *DefaultAPIService) GetInstance(ctx context.Context, projectId string, i // Execute executes the request // // @return GetInstanceResponse +// +// Deprecated func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*GetInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1489,6 +1590,8 @@ get detailed information of a user of a mongodb 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{ @@ -1503,6 +1606,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 @@ -1631,6 +1736,8 @@ gets slow queries from the Opsmanager performance advisor @param projectId project id @param instanceId instance id @return ApiListAdvisorSlowQueriesRequest + +Deprecated */ func (a *DefaultAPIService) ListAdvisorSlowQueries(ctx context.Context, projectId string, instanceId string) ApiListAdvisorSlowQueriesRequest { return ApiListAdvisorSlowQueriesRequest{ @@ -1644,6 +1751,8 @@ func (a *DefaultAPIService) ListAdvisorSlowQueries(ctx context.Context, projectI // Execute executes the request // // @return HandlersInstancesSlowQueriesResponse +// +// Deprecated func (a *DefaultAPIService) ListAdvisorSlowQueriesExecute(r ApiListAdvisorSlowQueriesRequest) (*HandlersInstancesSlowQueriesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1782,6 +1891,8 @@ List backups of an 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{ @@ -1795,6 +1906,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 @@ -1920,6 +2033,8 @@ returns all possible flavors @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{ @@ -1932,6 +2047,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 @@ -2063,6 +2180,8 @@ list all instances for a projectID @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{ @@ -2075,6 +2194,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 @@ -2235,6 +2356,8 @@ returns metrics for an instance @param instanceId instance id @param metric metric type @return ApiListMetricsRequest + +Deprecated */ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, instanceId string, metric string) ApiListMetricsRequest { return ApiListMetricsRequest{ @@ -2249,6 +2372,8 @@ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, i // Execute executes the request // // @return ListMetricsResponse +// +// Deprecated func (a *DefaultAPIService) ListMetricsExecute(r ApiListMetricsRequest) (*ListMetricsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2401,6 +2526,8 @@ List restore jobs of an instance @param projectId project id @param instanceId instance id @return ApiListRestoreJobsRequest + +Deprecated */ func (a *DefaultAPIService) ListRestoreJobs(ctx context.Context, projectId string, instanceId string) ApiListRestoreJobsRequest { return ApiListRestoreJobsRequest{ @@ -2414,6 +2541,8 @@ func (a *DefaultAPIService) ListRestoreJobs(ctx context.Context, projectId strin // Execute executes the request // // @return ListRestoreJobsResponse +// +// Deprecated func (a *DefaultAPIService) ListRestoreJobsExecute(r ApiListRestoreJobsRequest) (*ListRestoreJobsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2541,6 +2670,8 @@ returns the storage for a certain flavor @param projectId project id @param flavor flavor id @return ApiListStoragesRequest + +Deprecated */ func (a *DefaultAPIService) ListStorages(ctx context.Context, projectId string, flavor string) ApiListStoragesRequest { return ApiListStoragesRequest{ @@ -2554,6 +2685,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 @@ -2681,6 +2814,8 @@ gets suggested indexes from the Opsmanager performance advisor @param projectId project id @param instanceId instance id @return ApiListSuggestedIndexesRequest + +Deprecated */ func (a *DefaultAPIService) ListSuggestedIndexes(ctx context.Context, projectId string, instanceId string) ApiListSuggestedIndexesRequest { return ApiListSuggestedIndexesRequest{ @@ -2694,6 +2829,8 @@ func (a *DefaultAPIService) ListSuggestedIndexes(ctx context.Context, projectId // Execute executes the request // // @return HandlersInstancesSuggestedIndexesResponse +// +// Deprecated func (a *DefaultAPIService) ListSuggestedIndexesExecute(r ApiListSuggestedIndexesRequest) (*HandlersInstancesSuggestedIndexesResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -2832,6 +2969,8 @@ list all users for a mongodb 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{ @@ -2845,6 +2984,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 @@ -2970,6 +3111,8 @@ returns all available versions for creating endpoint @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{ @@ -2982,6 +3125,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 @@ -3104,6 +3249,8 @@ Updates a deployment plan
Note that the time format for the backupSchedule @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{ @@ -3117,6 +3264,8 @@ func (a *DefaultAPIService) PartialUpdateInstance(ctx context.Context, projectId // Execute executes the request // // @return UpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInstanceRequest) (*UpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -3280,6 +3429,8 @@ updates user for a mongodb instance @param instanceId instance id @param userId user id @return ApiPartialUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) PartialUpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiPartialUpdateUserRequest { return ApiPartialUpdateUserRequest{ @@ -3292,6 +3443,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 @@ -3427,6 +3579,8 @@ resets mongodb user's password @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{ @@ -3441,6 +3595,8 @@ func (a *DefaultAPIService) ResetUser(ctx context.Context, projectId string, ins // Execute executes the request // // @return User +// +// Deprecated func (a *DefaultAPIService) ResetUserExecute(r ApiResetUserRequest) (*User, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3576,6 +3732,8 @@ Restore an instance based on snapshot @param projectId project id @param instanceId instance id @return ApiRestoreInstanceRequest + +Deprecated */ func (a *DefaultAPIService) RestoreInstance(ctx context.Context, projectId string, instanceId string) ApiRestoreInstanceRequest { return ApiRestoreInstanceRequest{ @@ -3589,6 +3747,8 @@ func (a *DefaultAPIService) RestoreInstance(ctx context.Context, projectId strin // Execute executes the request // // @return RestoreInstanceResponse +// +// Deprecated func (a *DefaultAPIService) RestoreInstanceExecute(r ApiRestoreInstanceRequest) (*RestoreInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -3728,6 +3888,8 @@ Updates a backup schedule
Note that the time format is in UTC @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{ @@ -3741,6 +3903,8 @@ func (a *DefaultAPIService) UpdateBackupSchedule(ctx context.Context, projectId // Execute executes the request // // @return BackupSchedule +// +// Deprecated func (a *DefaultAPIService) UpdateBackupScheduleExecute(r ApiUpdateBackupScheduleRequest) (*BackupSchedule, error) { var ( localVarHTTPMethod = http.MethodPut @@ -3880,6 +4044,8 @@ Updates a deployment plan
Note that the time format for the backupSchedule @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{ @@ -3893,6 +4059,8 @@ func (a *DefaultAPIService) UpdateInstance(ctx context.Context, projectId string // Execute executes the request // // @return UpdateInstanceResponse +// +// Deprecated func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (*UpdateInstanceResponse, error) { var ( localVarHTTPMethod = http.MethodPut @@ -4056,6 +4224,8 @@ updates user for a mongodb instance @param instanceId instance id @param userId user id @return ApiUpdateUserRequest + +Deprecated */ func (a *DefaultAPIService) UpdateUser(ctx context.Context, projectId string, instanceId string, userId string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ @@ -4068,6 +4238,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 diff --git a/services/mongodbflex/v1api/api_default_mock.go b/services/mongodbflex/v1api/api_default_mock.go index b8475396c6..443787445d 100644 --- a/services/mongodbflex/v1api/api_default_mock.go +++ b/services/mongodbflex/v1api/api_default_mock.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,58 +21,59 @@ 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) - // 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) - // 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 - // 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) (*GetInstanceResponse, 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) - // ListAdvisorSlowQueriesExecuteMock can be populated to implement the behavior of the ListAdvisorSlowQueriesExecute function of this mock + // Deprecated: ListAdvisorSlowQueriesExecuteMock can be populated to implement the behavior of the ListAdvisorSlowQueriesExecute function of this mock ListAdvisorSlowQueriesExecuteMock *func(r ApiListAdvisorSlowQueriesRequest) (*HandlersInstancesSlowQueriesResponse, 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) - // 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) (*ListMetricsResponse, error) - // ListRestoreJobsExecuteMock can be populated to implement the behavior of the ListRestoreJobsExecute function of this mock + // Deprecated: ListRestoreJobsExecuteMock can be populated to implement the behavior of the ListRestoreJobsExecute function of this mock ListRestoreJobsExecuteMock *func(r ApiListRestoreJobsRequest) (*ListRestoreJobsResponse, 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) - // ListSuggestedIndexesExecuteMock can be populated to implement the behavior of the ListSuggestedIndexesExecute function of this mock + // Deprecated: ListSuggestedIndexesExecuteMock can be populated to implement the behavior of the ListSuggestedIndexesExecute function of this mock ListSuggestedIndexesExecuteMock *func(r ApiListSuggestedIndexesRequest) (*HandlersInstancesSuggestedIndexesResponse, 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) (*UpdateInstanceResponse, 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) (*User, error) - // RestoreInstanceExecuteMock can be populated to implement the behavior of the RestoreInstanceExecute function of this mock + // Deprecated: RestoreInstanceExecuteMock can be populated to implement the behavior of the RestoreInstanceExecute function of this mock RestoreInstanceExecuteMock *func(r ApiRestoreInstanceRequest) (*RestoreInstanceResponse, 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) (*BackupSchedule, 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) (*UpdateInstanceResponse, 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, @@ -82,7 +83,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 @@ -92,6 +93,7 @@ func (a DefaultAPIServiceMock) CloneInstanceExecute(r ApiCloneInstanceRequest) ( return (*a.CloneInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) CreateInstance(ctx context.Context, projectId string) ApiCreateInstanceRequest { return ApiCreateInstanceRequest{ ApiService: a, @@ -100,7 +102,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 @@ -110,6 +112,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, @@ -119,7 +122,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 @@ -129,6 +132,7 @@ func (a DefaultAPIServiceMock) CreateUserExecute(r ApiCreateUserRequest) (*Creat return (*a.CreateUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) DeleteInstance(ctx context.Context, projectId string, instanceId string) ApiDeleteInstanceRequest { return ApiDeleteInstanceRequest{ ApiService: a, @@ -138,7 +142,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 @@ -147,6 +151,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, @@ -157,7 +162,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 @@ -166,6 +171,7 @@ func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { return (*a.DeleteUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetBackup(ctx context.Context, projectId string, instanceId string, backupId string) ApiGetBackupRequest { return ApiGetBackupRequest{ ApiService: a, @@ -176,7 +182,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 @@ -186,6 +192,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, @@ -195,7 +202,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) (*GetInstanceResponse, error) { if a.GetInstanceExecuteMock == nil { var localVarReturnValue *GetInstanceResponse @@ -205,6 +212,7 @@ func (a DefaultAPIServiceMock) GetInstanceExecute(r ApiGetInstanceRequest) (*Get return (*a.GetInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) GetUser(ctx context.Context, projectId string, instanceId string, userId string) ApiGetUserRequest { return ApiGetUserRequest{ ApiService: a, @@ -215,7 +223,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 @@ -225,6 +233,7 @@ func (a DefaultAPIServiceMock) GetUserExecute(r ApiGetUserRequest) (*GetUserResp return (*a.GetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListAdvisorSlowQueries(ctx context.Context, projectId string, instanceId string) ApiListAdvisorSlowQueriesRequest { return ApiListAdvisorSlowQueriesRequest{ ApiService: a, @@ -234,7 +243,7 @@ func (a DefaultAPIServiceMock) ListAdvisorSlowQueries(ctx context.Context, proje } } -// ListAdvisorSlowQueriesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAdvisorSlowQueriesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListAdvisorSlowQueriesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListAdvisorSlowQueriesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListAdvisorSlowQueriesExecute(r ApiListAdvisorSlowQueriesRequest) (*HandlersInstancesSlowQueriesResponse, error) { if a.ListAdvisorSlowQueriesExecuteMock == nil { var localVarReturnValue *HandlersInstancesSlowQueriesResponse @@ -244,6 +253,7 @@ func (a DefaultAPIServiceMock) ListAdvisorSlowQueriesExecute(r ApiListAdvisorSlo return (*a.ListAdvisorSlowQueriesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ ApiService: a, @@ -253,7 +263,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 @@ -263,6 +273,7 @@ func (a DefaultAPIServiceMock) ListBackupsExecute(r ApiListBackupsRequest) (*Lis return (*a.ListBackupsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListFlavors(ctx context.Context, projectId string) ApiListFlavorsRequest { return ApiListFlavorsRequest{ ApiService: a, @@ -271,7 +282,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 @@ -281,6 +292,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, @@ -289,7 +301,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 @@ -299,6 +311,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, @@ -309,7 +322,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) (*ListMetricsResponse, error) { if a.ListMetricsExecuteMock == nil { var localVarReturnValue *ListMetricsResponse @@ -319,6 +332,7 @@ func (a DefaultAPIServiceMock) ListMetricsExecute(r ApiListMetricsRequest) (*Lis return (*a.ListMetricsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListRestoreJobs(ctx context.Context, projectId string, instanceId string) ApiListRestoreJobsRequest { return ApiListRestoreJobsRequest{ ApiService: a, @@ -328,7 +342,7 @@ func (a DefaultAPIServiceMock) ListRestoreJobs(ctx context.Context, projectId st } } -// ListRestoreJobsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRestoreJobsExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListRestoreJobsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListRestoreJobsExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListRestoreJobsExecute(r ApiListRestoreJobsRequest) (*ListRestoreJobsResponse, error) { if a.ListRestoreJobsExecuteMock == nil { var localVarReturnValue *ListRestoreJobsResponse @@ -338,6 +352,7 @@ func (a DefaultAPIServiceMock) ListRestoreJobsExecute(r ApiListRestoreJobsReques return (*a.ListRestoreJobsExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListStorages(ctx context.Context, projectId string, flavor string) ApiListStoragesRequest { return ApiListStoragesRequest{ ApiService: a, @@ -347,7 +362,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 @@ -357,6 +372,7 @@ func (a DefaultAPIServiceMock) ListStoragesExecute(r ApiListStoragesRequest) (*L return (*a.ListStoragesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListSuggestedIndexes(ctx context.Context, projectId string, instanceId string) ApiListSuggestedIndexesRequest { return ApiListSuggestedIndexesRequest{ ApiService: a, @@ -366,7 +382,7 @@ func (a DefaultAPIServiceMock) ListSuggestedIndexes(ctx context.Context, project } } -// ListSuggestedIndexesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListSuggestedIndexesExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: ListSuggestedIndexesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListSuggestedIndexesExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) ListSuggestedIndexesExecute(r ApiListSuggestedIndexesRequest) (*HandlersInstancesSuggestedIndexesResponse, error) { if a.ListSuggestedIndexesExecuteMock == nil { var localVarReturnValue *HandlersInstancesSuggestedIndexesResponse @@ -376,6 +392,7 @@ func (a DefaultAPIServiceMock) ListSuggestedIndexesExecute(r ApiListSuggestedInd return (*a.ListSuggestedIndexesExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) ListUsers(ctx context.Context, projectId string, instanceId string) ApiListUsersRequest { return ApiListUsersRequest{ ApiService: a, @@ -385,7 +402,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 @@ -395,6 +412,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, @@ -403,7 +421,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 @@ -413,6 +431,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, @@ -422,7 +441,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) (*UpdateInstanceResponse, error) { if a.PartialUpdateInstanceExecuteMock == nil { var localVarReturnValue *UpdateInstanceResponse @@ -432,6 +451,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, @@ -442,7 +462,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 @@ -451,6 +471,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, @@ -461,7 +482,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) (*User, error) { if a.ResetUserExecuteMock == nil { var localVarReturnValue *User @@ -471,6 +492,7 @@ func (a DefaultAPIServiceMock) ResetUserExecute(r ApiResetUserRequest) (*User, e return (*a.ResetUserExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) RestoreInstance(ctx context.Context, projectId string, instanceId string) ApiRestoreInstanceRequest { return ApiRestoreInstanceRequest{ ApiService: a, @@ -480,7 +502,7 @@ func (a DefaultAPIServiceMock) RestoreInstance(ctx context.Context, projectId st } } -// RestoreInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RestoreInstanceExecuteMock field in the DefaultAPIServiceMock struct. +// Deprecated: RestoreInstanceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the RestoreInstanceExecuteMock field in the DefaultAPIServiceMock struct. func (a DefaultAPIServiceMock) RestoreInstanceExecute(r ApiRestoreInstanceRequest) (*RestoreInstanceResponse, error) { if a.RestoreInstanceExecuteMock == nil { var localVarReturnValue *RestoreInstanceResponse @@ -490,6 +512,7 @@ func (a DefaultAPIServiceMock) RestoreInstanceExecute(r ApiRestoreInstanceReques return (*a.RestoreInstanceExecuteMock)(r) } +// Deprecated func (a DefaultAPIServiceMock) UpdateBackupSchedule(ctx context.Context, projectId string, instanceId string) ApiUpdateBackupScheduleRequest { return ApiUpdateBackupScheduleRequest{ ApiService: a, @@ -499,7 +522,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) (*BackupSchedule, error) { if a.UpdateBackupScheduleExecuteMock == nil { var localVarReturnValue *BackupSchedule @@ -509,6 +532,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, @@ -518,7 +542,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) (*UpdateInstanceResponse, error) { if a.UpdateInstanceExecuteMock == nil { var localVarReturnValue *UpdateInstanceResponse @@ -528,6 +552,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, @@ -538,7 +563,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/mongodbflex/v1api/client.go b/services/mongodbflex/v1api/client.go index f035f334fd..ba81080ef6 100644 --- a/services/mongodbflex/v1api/client.go +++ b/services/mongodbflex/v1api/client.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/configuration.go b/services/mongodbflex/v1api/configuration.go index d5f1401c7c..7dcfc4c329 100644 --- a/services/mongodbflex/v1api/configuration.go +++ b/services/mongodbflex/v1api/configuration.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_acl.go b/services/mongodbflex/v1api/model_acl.go index 2577ac3f25..b4610d05ed 100644 --- a/services/mongodbflex/v1api/model_acl.go +++ b/services/mongodbflex/v1api/model_acl.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_backup.go b/services/mongodbflex/v1api/model_backup.go index a7493581e0..f3b69ebbfc 100644 --- a/services/mongodbflex/v1api/model_backup.go +++ b/services/mongodbflex/v1api/model_backup.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_backup_schedule.go b/services/mongodbflex/v1api/model_backup_schedule.go index 16f8b57d13..893ef859f4 100644 --- a/services/mongodbflex/v1api/model_backup_schedule.go +++ b/services/mongodbflex/v1api/model_backup_schedule.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_clone_instance_payload.go b/services/mongodbflex/v1api/model_clone_instance_payload.go index c8ac6afec0..4917269a64 100644 --- a/services/mongodbflex/v1api/model_clone_instance_payload.go +++ b/services/mongodbflex/v1api/model_clone_instance_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_clone_instance_response.go b/services/mongodbflex/v1api/model_clone_instance_response.go index 0948f3253d..3f3c55649c 100644 --- a/services/mongodbflex/v1api/model_clone_instance_response.go +++ b/services/mongodbflex/v1api/model_clone_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_create_instance_payload.go b/services/mongodbflex/v1api/model_create_instance_payload.go index db730fd6da..2f0e9e2bb8 100644 --- a/services/mongodbflex/v1api/model_create_instance_payload.go +++ b/services/mongodbflex/v1api/model_create_instance_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_create_instance_response.go b/services/mongodbflex/v1api/model_create_instance_response.go index a1b2026f00..8234d8149f 100644 --- a/services/mongodbflex/v1api/model_create_instance_response.go +++ b/services/mongodbflex/v1api/model_create_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_create_user_payload.go b/services/mongodbflex/v1api/model_create_user_payload.go index 4bbef3f22b..031e6058ba 100644 --- a/services/mongodbflex/v1api/model_create_user_payload.go +++ b/services/mongodbflex/v1api/model_create_user_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_create_user_response.go b/services/mongodbflex/v1api/model_create_user_response.go index 8ca49a5293..0599ada45b 100644 --- a/services/mongodbflex/v1api/model_create_user_response.go +++ b/services/mongodbflex/v1api/model_create_user_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_data_point.go b/services/mongodbflex/v1api/model_data_point.go index 2301486fbb..a4449ea883 100644 --- a/services/mongodbflex/v1api/model_data_point.go +++ b/services/mongodbflex/v1api/model_data_point.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_error.go b/services/mongodbflex/v1api/model_error.go index 4558787433..fd21fab25d 100644 --- a/services/mongodbflex/v1api/model_error.go +++ b/services/mongodbflex/v1api/model_error.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_flavor.go b/services/mongodbflex/v1api/model_flavor.go index 4639e2169a..6d681b154d 100644 --- a/services/mongodbflex/v1api/model_flavor.go +++ b/services/mongodbflex/v1api/model_flavor.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_get_backup_response.go b/services/mongodbflex/v1api/model_get_backup_response.go index 02939d5832..51d1b175d2 100644 --- a/services/mongodbflex/v1api/model_get_backup_response.go +++ b/services/mongodbflex/v1api/model_get_backup_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_get_instance_response.go b/services/mongodbflex/v1api/model_get_instance_response.go index 4c8b66f0fb..ecb93baae1 100644 --- a/services/mongodbflex/v1api/model_get_instance_response.go +++ b/services/mongodbflex/v1api/model_get_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_get_user_response.go b/services/mongodbflex/v1api/model_get_user_response.go index 86477a95f4..685bf6d59a 100644 --- a/services/mongodbflex/v1api/model_get_user_response.go +++ b/services/mongodbflex/v1api/model_get_user_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_handlers_infra_flavor.go b/services/mongodbflex/v1api/model_handlers_infra_flavor.go index f1ed95f8c3..e344f088af 100644 --- a/services/mongodbflex/v1api/model_handlers_infra_flavor.go +++ b/services/mongodbflex/v1api/model_handlers_infra_flavor.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_handlers_infra_get_flavors_response.go b/services/mongodbflex/v1api/model_handlers_infra_get_flavors_response.go index 01ded2b8ea..a6a24f7c7f 100644 --- a/services/mongodbflex/v1api/model_handlers_infra_get_flavors_response.go +++ b/services/mongodbflex/v1api/model_handlers_infra_get_flavors_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_handlers_instances_get_instance_response.go b/services/mongodbflex/v1api/model_handlers_instances_get_instance_response.go index c70ccb921b..3f749756ba 100644 --- a/services/mongodbflex/v1api/model_handlers_instances_get_instance_response.go +++ b/services/mongodbflex/v1api/model_handlers_instances_get_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_handlers_instances_slow_queries_response.go b/services/mongodbflex/v1api/model_handlers_instances_slow_queries_response.go index 526c19c2a2..92d4ff234b 100644 --- a/services/mongodbflex/v1api/model_handlers_instances_slow_queries_response.go +++ b/services/mongodbflex/v1api/model_handlers_instances_slow_queries_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_handlers_instances_suggested_indexes_response.go b/services/mongodbflex/v1api/model_handlers_instances_suggested_indexes_response.go index ded3370fb7..504eea66cf 100644 --- a/services/mongodbflex/v1api/model_handlers_instances_suggested_indexes_response.go +++ b/services/mongodbflex/v1api/model_handlers_instances_suggested_indexes_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_host.go b/services/mongodbflex/v1api/model_host.go index ca072af75e..4a5fb3b81b 100644 --- a/services/mongodbflex/v1api/model_host.go +++ b/services/mongodbflex/v1api/model_host.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_host_metric.go b/services/mongodbflex/v1api/model_host_metric.go index 6a83613714..21c126e366 100644 --- a/services/mongodbflex/v1api/model_host_metric.go +++ b/services/mongodbflex/v1api/model_host_metric.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_instance.go b/services/mongodbflex/v1api/model_instance.go index 90e927ed58..53b78b8e82 100644 --- a/services/mongodbflex/v1api/model_instance.go +++ b/services/mongodbflex/v1api/model_instance.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_instance_list_instance.go b/services/mongodbflex/v1api/model_instance_list_instance.go index d9ce7012fd..08fd3cea9b 100644 --- a/services/mongodbflex/v1api/model_instance_list_instance.go +++ b/services/mongodbflex/v1api/model_instance_list_instance.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_instance_list_instance_status.go b/services/mongodbflex/v1api/model_instance_list_instance_status.go index ac8045d789..bcbec6d01b 100644 --- a/services/mongodbflex/v1api/model_instance_list_instance_status.go +++ b/services/mongodbflex/v1api/model_instance_list_instance_status.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_instance_response_user.go b/services/mongodbflex/v1api/model_instance_response_user.go index 74897eab25..9de9749862 100644 --- a/services/mongodbflex/v1api/model_instance_response_user.go +++ b/services/mongodbflex/v1api/model_instance_response_user.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_instance_status.go b/services/mongodbflex/v1api/model_instance_status.go index 9ce4ed17a0..e39957b641 100644 --- a/services/mongodbflex/v1api/model_instance_status.go +++ b/services/mongodbflex/v1api/model_instance_status.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_backups_response.go b/services/mongodbflex/v1api/model_list_backups_response.go index ca1255f720..9781fc0d63 100644 --- a/services/mongodbflex/v1api/model_list_backups_response.go +++ b/services/mongodbflex/v1api/model_list_backups_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_flavors_response.go b/services/mongodbflex/v1api/model_list_flavors_response.go index e22e6a2585..df6e3cff2f 100644 --- a/services/mongodbflex/v1api/model_list_flavors_response.go +++ b/services/mongodbflex/v1api/model_list_flavors_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_instances_response.go b/services/mongodbflex/v1api/model_list_instances_response.go index 8c8c911556..9716cd9f7c 100644 --- a/services/mongodbflex/v1api/model_list_instances_response.go +++ b/services/mongodbflex/v1api/model_list_instances_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_metrics_response.go b/services/mongodbflex/v1api/model_list_metrics_response.go index 7c3b31b4e2..03955cefb5 100644 --- a/services/mongodbflex/v1api/model_list_metrics_response.go +++ b/services/mongodbflex/v1api/model_list_metrics_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_restore_jobs_response.go b/services/mongodbflex/v1api/model_list_restore_jobs_response.go index af28ec6a38..e2b9869e76 100644 --- a/services/mongodbflex/v1api/model_list_restore_jobs_response.go +++ b/services/mongodbflex/v1api/model_list_restore_jobs_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_storages_response.go b/services/mongodbflex/v1api/model_list_storages_response.go index 6243befda4..64f0a53966 100644 --- a/services/mongodbflex/v1api/model_list_storages_response.go +++ b/services/mongodbflex/v1api/model_list_storages_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_user.go b/services/mongodbflex/v1api/model_list_user.go index 460fddbde9..86c16a5994 100644 --- a/services/mongodbflex/v1api/model_list_user.go +++ b/services/mongodbflex/v1api/model_list_user.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_users_response.go b/services/mongodbflex/v1api/model_list_users_response.go index 903c29f8f0..56c52c84e2 100644 --- a/services/mongodbflex/v1api/model_list_users_response.go +++ b/services/mongodbflex/v1api/model_list_users_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_list_versions_response.go b/services/mongodbflex/v1api/model_list_versions_response.go index ea343a1c4a..bf8dc1c2a9 100644 --- a/services/mongodbflex/v1api/model_list_versions_response.go +++ b/services/mongodbflex/v1api/model_list_versions_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_mongodbatlas_operation.go b/services/mongodbflex/v1api/model_mongodbatlas_operation.go index 16390790d0..c6e8103719 100644 --- a/services/mongodbflex/v1api/model_mongodbatlas_operation.go +++ b/services/mongodbflex/v1api/model_mongodbatlas_operation.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_mongodbatlas_stats.go b/services/mongodbflex/v1api/model_mongodbatlas_stats.go index 0ddc5313a5..42309b207a 100644 --- a/services/mongodbflex/v1api/model_mongodbatlas_stats.go +++ b/services/mongodbflex/v1api/model_mongodbatlas_stats.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_partial_update_instance_payload.go b/services/mongodbflex/v1api/model_partial_update_instance_payload.go index cab4cc0420..00301c1b9d 100644 --- a/services/mongodbflex/v1api/model_partial_update_instance_payload.go +++ b/services/mongodbflex/v1api/model_partial_update_instance_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud @@ -28,7 +28,7 @@ type PartialUpdateInstancePayload struct { Name *string `json:"name,omitempty" validate:"regexp=^[A-Za-z_][A-Za-z0-9-_]{1\\,61}[A-Za-z0-9_]$"` Options *map[string]string `json:"options,omitempty"` Replicas *int32 `json:"replicas,omitempty"` - Storage *Storage `json:"storage,omitempty"` + Storage *StorageUpdate `json:"storage,omitempty"` Version *string `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -277,9 +277,9 @@ func (o *PartialUpdateInstancePayload) SetReplicas(v int32) { } // GetStorage returns the Storage field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetStorage() Storage { +func (o *PartialUpdateInstancePayload) GetStorage() StorageUpdate { if o == nil || IsNil(o.Storage) { - var ret Storage + var ret StorageUpdate return ret } return *o.Storage @@ -287,7 +287,7 @@ func (o *PartialUpdateInstancePayload) GetStorage() Storage { // GetStorageOk returns a tuple with the Storage field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartialUpdateInstancePayload) GetStorageOk() (*Storage, bool) { +func (o *PartialUpdateInstancePayload) GetStorageOk() (*StorageUpdate, bool) { if o == nil || IsNil(o.Storage) { return nil, false } @@ -303,8 +303,8 @@ func (o *PartialUpdateInstancePayload) HasStorage() bool { return false } -// SetStorage gets a reference to the given Storage and assigns it to the Storage field. -func (o *PartialUpdateInstancePayload) SetStorage(v Storage) { +// SetStorage gets a reference to the given StorageUpdate and assigns it to the Storage field. +func (o *PartialUpdateInstancePayload) SetStorage(v StorageUpdate) { o.Storage = &v } diff --git a/services/mongodbflex/v1api/model_partial_update_user_payload.go b/services/mongodbflex/v1api/model_partial_update_user_payload.go index fd2d1ec040..5995a4ad43 100644 --- a/services/mongodbflex/v1api/model_partial_update_user_payload.go +++ b/services/mongodbflex/v1api/model_partial_update_user_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_restore_instance_payload.go b/services/mongodbflex/v1api/model_restore_instance_payload.go index f153e0dc4f..82f0233df9 100644 --- a/services/mongodbflex/v1api/model_restore_instance_payload.go +++ b/services/mongodbflex/v1api/model_restore_instance_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_restore_instance_response.go b/services/mongodbflex/v1api/model_restore_instance_response.go index 3d4d540dfc..b605ba6b05 100644 --- a/services/mongodbflex/v1api/model_restore_instance_response.go +++ b/services/mongodbflex/v1api/model_restore_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_restore_instance_status.go b/services/mongodbflex/v1api/model_restore_instance_status.go index d21c44ce1a..d677109036 100644 --- a/services/mongodbflex/v1api/model_restore_instance_status.go +++ b/services/mongodbflex/v1api/model_restore_instance_status.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_shape.go b/services/mongodbflex/v1api/model_shape.go index a70fe51195..633429f6be 100644 --- a/services/mongodbflex/v1api/model_shape.go +++ b/services/mongodbflex/v1api/model_shape.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_slow_query.go b/services/mongodbflex/v1api/model_slow_query.go index 219fbea0eb..08889562b4 100644 --- a/services/mongodbflex/v1api/model_slow_query.go +++ b/services/mongodbflex/v1api/model_slow_query.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_storage.go b/services/mongodbflex/v1api/model_storage.go index 8e79465514..7bc287e4df 100644 --- a/services/mongodbflex/v1api/model_storage.go +++ b/services/mongodbflex/v1api/model_storage.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_storage_range.go b/services/mongodbflex/v1api/model_storage_range.go index 3c682ed64d..6abfa4c823 100644 --- a/services/mongodbflex/v1api/model_storage_range.go +++ b/services/mongodbflex/v1api/model_storage_range.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_storage_update.go b/services/mongodbflex/v1api/model_storage_update.go new file mode 100644 index 0000000000..d9b37b9504 --- /dev/null +++ b/services/mongodbflex/v1api/model_storage_update.go @@ -0,0 +1,196 @@ +/* +[DEPRECATED] STACKIT MongoDB Service API + +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. + +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 StorageUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StorageUpdate{} + +// StorageUpdate struct for StorageUpdate +type StorageUpdate struct { + // DEPRECATED: Starting November 2026, the API will reject requests that attempt to modify the storage class. + // Deprecated + Class *string `json:"class,omitempty"` + Size *int32 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StorageUpdate StorageUpdate + +// NewStorageUpdate instantiates a new StorageUpdate 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 NewStorageUpdate() *StorageUpdate { + this := StorageUpdate{} + return &this +} + +// NewStorageUpdateWithDefaults instantiates a new StorageUpdate 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 NewStorageUpdateWithDefaults() *StorageUpdate { + this := StorageUpdate{} + return &this +} + +// 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 + return ret + } + return *o.Class +} + +// 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 + } + return o.Class, true +} + +// HasClass returns a boolean if a field has been set. +func (o *StorageUpdate) HasClass() bool { + if o != nil && !IsNil(o.Class) { + return true + } + + return false +} + +// 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 +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *StorageUpdate) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// 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 *StorageUpdate) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *StorageUpdate) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *StorageUpdate) SetSize(v int32) { + o.Size = &v +} + +func (o StorageUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StorageUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Class) { + toSerialize["class"] = o.Class + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StorageUpdate) UnmarshalJSON(data []byte) (err error) { + varStorageUpdate := _StorageUpdate{} + + err = json.Unmarshal(data, &varStorageUpdate) + + if err != nil { + return err + } + + *o = StorageUpdate(varStorageUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "class") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStorageUpdate struct { + value *StorageUpdate + isSet bool +} + +func (v NullableStorageUpdate) Get() *StorageUpdate { + return v.value +} + +func (v *NullableStorageUpdate) Set(val *StorageUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableStorageUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableStorageUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStorageUpdate(val *StorageUpdate) *NullableStorageUpdate { + return &NullableStorageUpdate{value: val, isSet: true} +} + +func (v NullableStorageUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStorageUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/mongodbflex/v1api/model_suggested_index.go b/services/mongodbflex/v1api/model_suggested_index.go index f17b2b3474..81caedbe71 100644 --- a/services/mongodbflex/v1api/model_suggested_index.go +++ b/services/mongodbflex/v1api/model_suggested_index.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_update_backup_schedule_payload.go b/services/mongodbflex/v1api/model_update_backup_schedule_payload.go index 9825a8f7e1..acef186942 100644 --- a/services/mongodbflex/v1api/model_update_backup_schedule_payload.go +++ b/services/mongodbflex/v1api/model_update_backup_schedule_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_update_instance_payload.go b/services/mongodbflex/v1api/model_update_instance_payload.go index ffac1f2825..de9f544426 100644 --- a/services/mongodbflex/v1api/model_update_instance_payload.go +++ b/services/mongodbflex/v1api/model_update_instance_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud @@ -29,7 +29,7 @@ type UpdateInstancePayload struct { Name string `json:"name" validate:"regexp=^[A-Za-z_][A-Za-z0-9-_]{1\\,61}[A-Za-z0-9_]$"` Options map[string]string `json:"options"` Replicas int32 `json:"replicas"` - Storage Storage `json:"storage"` + Storage StorageUpdate `json:"storage"` Version string `json:"version"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _UpdateInstancePayload UpdateInstancePayload // 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 NewUpdateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int32, storage Storage, version string) *UpdateInstancePayload { +func NewUpdateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int32, storage StorageUpdate, version string) *UpdateInstancePayload { this := UpdateInstancePayload{} this.Acl = acl this.BackupSchedule = backupSchedule @@ -238,9 +238,9 @@ func (o *UpdateInstancePayload) SetReplicas(v int32) { } // GetStorage returns the Storage field value -func (o *UpdateInstancePayload) GetStorage() Storage { +func (o *UpdateInstancePayload) GetStorage() StorageUpdate { if o == nil { - var ret Storage + var ret StorageUpdate return ret } @@ -249,7 +249,7 @@ func (o *UpdateInstancePayload) GetStorage() Storage { // GetStorageOk returns a tuple with the Storage field value // and a boolean to check if the value has been set. -func (o *UpdateInstancePayload) GetStorageOk() (*Storage, bool) { +func (o *UpdateInstancePayload) GetStorageOk() (*StorageUpdate, bool) { if o == nil { return nil, false } @@ -257,7 +257,7 @@ func (o *UpdateInstancePayload) GetStorageOk() (*Storage, bool) { } // SetStorage sets field value -func (o *UpdateInstancePayload) SetStorage(v Storage) { +func (o *UpdateInstancePayload) SetStorage(v StorageUpdate) { o.Storage = v } diff --git a/services/mongodbflex/v1api/model_update_instance_response.go b/services/mongodbflex/v1api/model_update_instance_response.go index 02c9c3b297..7cb11901df 100644 --- a/services/mongodbflex/v1api/model_update_instance_response.go +++ b/services/mongodbflex/v1api/model_update_instance_response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_update_user_payload.go b/services/mongodbflex/v1api/model_update_user_payload.go index ba3d0dbff6..4caee2d351 100644 --- a/services/mongodbflex/v1api/model_update_user_payload.go +++ b/services/mongodbflex/v1api/model_update_user_payload.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/model_user.go b/services/mongodbflex/v1api/model_user.go index 9bd03f4c87..fd0cc56978 100644 --- a/services/mongodbflex/v1api/model_user.go +++ b/services/mongodbflex/v1api/model_user.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/response.go b/services/mongodbflex/v1api/response.go index aea979420c..45d67471fb 100644 --- a/services/mongodbflex/v1api/response.go +++ b/services/mongodbflex/v1api/response.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v1api/utils.go b/services/mongodbflex/v1api/utils.go index 66ce4c58d3..7464d0ccac 100644 --- a/services/mongodbflex/v1api/utils.go +++ b/services/mongodbflex/v1api/utils.go @@ -1,7 +1,7 @@ /* [DEPRECATED] STACKIT MongoDB Service API -## ⚠️ WARNING: THIS API IS DEPRECATED Use V2 +> **⚠️ DEPRECATION NOTICE** > > **Version 1 of this API is deprecated but remains fully supported.** > We strongly recommend migrating to [Version 2 (v2)](https://docs.api.stackit.cloud/documentation/mongodb-flex-service/version/v2) for all new integrations to take advantage of the latest features. > > End-of-life (EOL) for v2 is planned for 2027-09-20. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/mongodbflex/v2api/model_partial_update_instance_payload.go b/services/mongodbflex/v2api/model_partial_update_instance_payload.go index 59102e6555..4d88c86533 100644 --- a/services/mongodbflex/v2api/model_partial_update_instance_payload.go +++ b/services/mongodbflex/v2api/model_partial_update_instance_payload.go @@ -28,7 +28,7 @@ type PartialUpdateInstancePayload struct { Name *string `json:"name,omitempty" validate:"regexp=^[A-Za-z_][A-Za-z0-9-_]{1\\,61}[A-Za-z0-9_]$"` Options *map[string]string `json:"options,omitempty"` Replicas *int32 `json:"replicas,omitempty"` - Storage *Storage `json:"storage,omitempty"` + Storage *StorageUpdate `json:"storage,omitempty"` Version *string `json:"version,omitempty"` AdditionalProperties map[string]interface{} } @@ -277,9 +277,9 @@ func (o *PartialUpdateInstancePayload) SetReplicas(v int32) { } // GetStorage returns the Storage field value if set, zero value otherwise. -func (o *PartialUpdateInstancePayload) GetStorage() Storage { +func (o *PartialUpdateInstancePayload) GetStorage() StorageUpdate { if o == nil || IsNil(o.Storage) { - var ret Storage + var ret StorageUpdate return ret } return *o.Storage @@ -287,7 +287,7 @@ func (o *PartialUpdateInstancePayload) GetStorage() Storage { // GetStorageOk returns a tuple with the Storage field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PartialUpdateInstancePayload) GetStorageOk() (*Storage, bool) { +func (o *PartialUpdateInstancePayload) GetStorageOk() (*StorageUpdate, bool) { if o == nil || IsNil(o.Storage) { return nil, false } @@ -303,8 +303,8 @@ func (o *PartialUpdateInstancePayload) HasStorage() bool { return false } -// SetStorage gets a reference to the given Storage and assigns it to the Storage field. -func (o *PartialUpdateInstancePayload) SetStorage(v Storage) { +// SetStorage gets a reference to the given StorageUpdate and assigns it to the Storage field. +func (o *PartialUpdateInstancePayload) SetStorage(v StorageUpdate) { o.Storage = &v } diff --git a/services/mongodbflex/v2api/model_storage_update.go b/services/mongodbflex/v2api/model_storage_update.go new file mode 100644 index 0000000000..d86293077e --- /dev/null +++ b/services/mongodbflex/v2api/model_storage_update.go @@ -0,0 +1,196 @@ +/* +STACKIT MongoDB Service API + +This is the documentation for the STACKIT MongoDB Flex Service API + +API version: 2.0.0 +Contact: support@stackit.cloud +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" +) + +// checks if the StorageUpdate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &StorageUpdate{} + +// StorageUpdate struct for StorageUpdate +type StorageUpdate struct { + // DEPRECATED: Starting November 2026, the API will reject requests that attempt to modify the storage class. + // Deprecated + Class *string `json:"class,omitempty"` + Size *int32 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _StorageUpdate StorageUpdate + +// NewStorageUpdate instantiates a new StorageUpdate 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 NewStorageUpdate() *StorageUpdate { + this := StorageUpdate{} + return &this +} + +// NewStorageUpdateWithDefaults instantiates a new StorageUpdate 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 NewStorageUpdateWithDefaults() *StorageUpdate { + this := StorageUpdate{} + return &this +} + +// 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 + return ret + } + return *o.Class +} + +// 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 + } + return o.Class, true +} + +// HasClass returns a boolean if a field has been set. +func (o *StorageUpdate) HasClass() bool { + if o != nil && !IsNil(o.Class) { + return true + } + + return false +} + +// 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 +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *StorageUpdate) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// 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 *StorageUpdate) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *StorageUpdate) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *StorageUpdate) SetSize(v int32) { + o.Size = &v +} + +func (o StorageUpdate) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o StorageUpdate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Class) { + toSerialize["class"] = o.Class + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *StorageUpdate) UnmarshalJSON(data []byte) (err error) { + varStorageUpdate := _StorageUpdate{} + + err = json.Unmarshal(data, &varStorageUpdate) + + if err != nil { + return err + } + + *o = StorageUpdate(varStorageUpdate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "class") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableStorageUpdate struct { + value *StorageUpdate + isSet bool +} + +func (v NullableStorageUpdate) Get() *StorageUpdate { + return v.value +} + +func (v *NullableStorageUpdate) Set(val *StorageUpdate) { + v.value = val + v.isSet = true +} + +func (v NullableStorageUpdate) IsSet() bool { + return v.isSet +} + +func (v *NullableStorageUpdate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableStorageUpdate(val *StorageUpdate) *NullableStorageUpdate { + return &NullableStorageUpdate{value: val, isSet: true} +} + +func (v NullableStorageUpdate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableStorageUpdate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/mongodbflex/v2api/model_update_instance_payload.go b/services/mongodbflex/v2api/model_update_instance_payload.go index 3f01b49b71..5a101dfa90 100644 --- a/services/mongodbflex/v2api/model_update_instance_payload.go +++ b/services/mongodbflex/v2api/model_update_instance_payload.go @@ -29,7 +29,7 @@ type UpdateInstancePayload struct { Name string `json:"name" validate:"regexp=^[A-Za-z_][A-Za-z0-9-_]{1\\,61}[A-Za-z0-9_]$"` Options map[string]string `json:"options"` Replicas int64 `json:"replicas"` - Storage Storage `json:"storage"` + Storage StorageUpdate `json:"storage"` Version string `json:"version"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _UpdateInstancePayload UpdateInstancePayload // 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 NewUpdateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int64, storage Storage, version string) *UpdateInstancePayload { +func NewUpdateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int64, storage StorageUpdate, version string) *UpdateInstancePayload { this := UpdateInstancePayload{} this.Acl = acl this.BackupSchedule = backupSchedule @@ -238,9 +238,9 @@ func (o *UpdateInstancePayload) SetReplicas(v int64) { } // GetStorage returns the Storage field value -func (o *UpdateInstancePayload) GetStorage() Storage { +func (o *UpdateInstancePayload) GetStorage() StorageUpdate { if o == nil { - var ret Storage + var ret StorageUpdate return ret } @@ -249,7 +249,7 @@ func (o *UpdateInstancePayload) GetStorage() Storage { // GetStorageOk returns a tuple with the Storage field value // and a boolean to check if the value has been set. -func (o *UpdateInstancePayload) GetStorageOk() (*Storage, bool) { +func (o *UpdateInstancePayload) GetStorageOk() (*StorageUpdate, bool) { if o == nil { return nil, false } @@ -257,7 +257,7 @@ func (o *UpdateInstancePayload) GetStorageOk() (*Storage, bool) { } // SetStorage sets field value -func (o *UpdateInstancePayload) SetStorage(v Storage) { +func (o *UpdateInstancePayload) SetStorage(v StorageUpdate) { o.Storage = v }