From 12109c0240df10a20132fcc277ab7ecaa76096a2 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 12 Oct 2026 14:07:10 +0000 Subject: [PATCH] Generate postgresflex --- .../postgresflex/.openapi-generator/VERSION | 1 - services/postgresflex/api_default.go | 6902 ----------------- services/postgresflex/client.go | 632 -- services/postgresflex/configuration.go | 40 - services/postgresflex/go.mod | 2 +- services/postgresflex/go.sum | 4 +- services/postgresflex/model_backup_data.go | 420 - .../postgresflex/model_backup_data_test.go | 11 - services/postgresflex/model_backup_sort.go | 162 - .../postgresflex/model_backup_sort_test.go | 11 - .../model_clone_instance_overrides.go | 263 - .../model_clone_instance_overrides_test.go | 11 - .../model_clone_instance_payload.go | 204 - .../model_clone_instance_payload_test.go | 11 - .../model_clone_instance_response.go | 150 - .../model_clone_instance_response_test.go | 11 - .../model_create_database_payload.go | 209 - .../model_create_database_payload_test.go | 11 - .../model_create_database_response.go | 150 - .../model_create_database_response_test.go | 11 - .../model_create_instance_payload.go | 592 -- .../model_create_instance_payload_test.go | 11 - .../model_create_instance_response.go | 150 - .../model_create_instance_response_test.go | 11 - .../postgresflex/model_create_user_payload.go | 209 - .../model_create_user_payload_test.go | 11 - .../model_create_user_response.go | 312 - .../model_create_user_response_test.go | 11 - services/postgresflex/model_database_roles.go | 204 - .../postgresflex/model_database_roles_test.go | 11 - services/postgresflex/model_database_sort.go | 150 - .../postgresflex/model_database_sort_test.go | 11 - services/postgresflex/model_error.go | 313 - services/postgresflex/model_error_test.go | 11 - services/postgresflex/model_flavor_sort.go | 174 - .../postgresflex/model_flavor_sort_test.go | 11 - ...el_flavor_storage_classes_storage_class.go | 257 - ...avor_storage_classes_storage_class_test.go | 11 - .../model_get_database_response.go | 258 - .../model_get_database_response_test.go | 11 - .../model_get_instance_response.go | 806 -- .../model_get_instance_response_test.go | 11 - .../postgresflex/model_get_user_response.go | 312 - .../model_get_user_response_test.go | 11 - .../model_instance_connection_info.go | 149 - .../model_instance_connection_info_test.go | 11 - .../model_instance_connection_info_write.go | 205 - ...del_instance_connection_info_write_test.go | 11 - .../postgresflex/model_instance_encryption.go | 311 - .../model_instance_encryption_test.go | 11 - .../postgresflex/model_instance_network.go | 326 - .../model_instance_network_access_scope.go | 132 - ...odel_instance_network_access_scope_test.go | 11 - .../model_instance_network_create.go | 210 - .../model_instance_network_create_test.go | 11 - .../model_instance_network_opt.go | 152 - .../model_instance_network_opt_test.go | 11 - .../model_instance_network_test.go | 11 - .../model_instance_network_update.go | 150 - .../model_instance_network_update_test.go | 11 - services/postgresflex/model_instance_sort.go | 150 - .../postgresflex/model_instance_sort_test.go | 11 - .../model_instance_storage_range.go | 206 - .../model_instance_storage_range_test.go | 11 - .../model_list_backups_response.go | 203 - .../model_list_backups_response_test.go | 11 - .../model_list_collations_response.go | 150 - .../model_list_collations_response_test.go | 11 - services/postgresflex/model_list_database.go | 258 - .../postgresflex/model_list_database_test.go | 11 - .../model_list_databases_response.go | 203 - .../model_list_databases_response_test.go | 11 - services/postgresflex/model_list_flavors.go | 530 -- .../model_list_flavors_response.go | 203 - .../model_list_flavors_response_test.go | 11 - .../postgresflex/model_list_flavors_test.go | 11 - services/postgresflex/model_list_instance.go | 311 - .../postgresflex/model_list_instance_test.go | 11 - .../model_list_instances_response.go | 203 - .../model_list_instances_response_test.go | 11 - .../postgresflex/model_list_roles_response.go | 150 - .../model_list_roles_response_test.go | 11 - services/postgresflex/model_list_user.go | 258 - services/postgresflex/model_list_user_test.go | 11 - .../postgresflex/model_list_users_response.go | 203 - .../model_list_users_response_test.go | 11 - .../model_list_versions_response.go | 150 - .../model_list_versions_response_test.go | 11 - services/postgresflex/model_pagination.go | 361 - .../postgresflex/model_pagination_test.go | 11 - .../model_partial_update_database_payload.go | 211 - ...el_partial_update_database_payload_test.go | 11 - .../model_partial_update_instance_payload.go | 564 -- ...el_partial_update_instance_payload_test.go | 11 - .../model_partial_update_user_payload.go | 211 - .../model_partial_update_user_payload_test.go | 11 - .../model_reset_user_password_response.go | 258 - ...model_reset_user_password_response_test.go | 11 - services/postgresflex/model_state.go | 144 - services/postgresflex/model_state_test.go | 11 - services/postgresflex/model_storage.go | 211 - services/postgresflex/model_storage_create.go | 204 - .../postgresflex/model_storage_create_test.go | 11 - services/postgresflex/model_storage_test.go | 11 - services/postgresflex/model_storage_update.go | 152 - .../postgresflex/model_storage_update_test.go | 11 - ...odel_update_database_partially_response.go | 149 - ...update_database_partially_response_test.go | 11 - .../model_update_database_payload.go | 204 - .../model_update_database_payload_test.go | 11 - .../model_update_database_response.go | 149 - .../model_update_database_response_test.go | 11 - .../model_update_instance_payload.go | 534 -- .../model_update_instance_payload_test.go | 11 - ...odel_update_instance_protection_payload.go | 150 - ...update_instance_protection_payload_test.go | 11 - ...del_update_instance_protection_response.go | 150 - ...pdate_instance_protection_response_test.go | 11 - .../postgresflex/model_update_user_payload.go | 209 - .../model_update_user_payload_test.go | 11 - services/postgresflex/model_user_sort.go | 144 - services/postgresflex/model_user_sort_test.go | 11 - .../postgresflex/model_validation_error.go | 205 - .../model_validation_error_test.go | 11 - ...model_validation_error_validation_inner.go | 202 - ..._validation_error_validation_inner_test.go | 11 - services/postgresflex/model_version.go | 312 - services/postgresflex/model_version_test.go | 11 - services/postgresflex/oas_commit | 2 +- services/postgresflex/package.go | 1 + services/postgresflex/utils.go | 466 -- services/postgresflex/v1api/api_default.go | 479 +- .../postgresflex/v1api/api_default_mock.go | 23 +- services/postgresflex/v1api/client.go | 6 +- services/postgresflex/v1api/configuration.go | 11 +- services/postgresflex/v1api/model_acl.go | 4 +- .../v1api/model_api_configuration.go | 4 +- ...odel_api_extension_config_load_response.go | 155 - .../model_api_extension_configure_response.go | 155 - .../model_api_extension_delete_response.go | 154 - .../v1api/model_api_extension_list.go | 228 - .../model_api_extension_load_response.go | 154 - .../v1api/model_api_install_response.go | 154 - .../model_api_installed_list_response.go | 154 - services/postgresflex/v1api/model_backup.go | 16 +- .../v1api/model_clone_instance_payload.go | 16 +- .../v1api/model_clone_instance_response.go | 4 +- .../v1api/model_create_database_payload.go | 4 +- .../v1api/model_create_instance_payload.go | 50 +- .../v1api/model_create_instance_response.go | 4 +- .../v1api/model_create_user_payload.go | 4 +- .../v1api/model_create_user_response.go | 4 +- services/postgresflex/v1api/model_error.go | 4 +- .../v1api/model_extensions_configuration.go | 191 - ...odel_extensions_extension_list_response.go | 154 - .../v1api/model_extensions_new_config.go | 154 - services/postgresflex/v1api/model_flavor.go | 4 +- .../v1api/model_get_backup_response.go | 4 +- .../v1api/model_get_user_response.go | 4 +- services/postgresflex/v1api/model_instance.go | 4 +- ...model_instance_create_database_response.go | 4 +- .../v1api/model_instance_data_point.go | 4 +- .../v1api/model_instance_database.go | 4 +- .../postgresflex/v1api/model_instance_host.go | 4 +- .../v1api/model_instance_host_metric.go | 4 +- .../model_instance_list_databases_response.go | 4 +- .../v1api/model_instance_list_instance.go | 4 +- .../v1api/model_instance_metrics_response.go | 4 +- .../v1api/model_instance_response.go | 4 +- .../v1api/model_list_backups_response.go | 16 +- .../v1api/model_list_flavors_response.go | 4 +- .../v1api/model_list_instances_response.go | 16 +- .../v1api/model_list_storages_response.go | 4 +- .../v1api/model_list_users_response.go | 16 +- .../v1api/model_list_users_response_item.go | 4 +- .../v1api/model_list_versions_response.go | 4 +- .../model_partial_update_instance_payload.go | 4 +- .../model_partial_update_instance_response.go | 4 +- .../model_partial_update_user_payload.go | 4 +- .../model_postgres_database_parameter.go | 4 +- ...el_postgres_database_parameter_response.go | 4 +- .../v1api/model_reset_user_response.go | 4 +- services/postgresflex/v1api/model_storage.go | 4 +- .../postgresflex/v1api/model_storage_range.go | 28 +- .../v1api/model_storage_update.go | 8 +- .../model_update_backup_schedule_payload.go | 4 +- .../v1api/model_update_instance_payload.go | 4 +- .../v1api/model_update_user_payload.go | 4 +- services/postgresflex/v1api/model_user.go | 16 +- .../postgresflex/v1api/model_user_response.go | 16 +- services/postgresflex/v1api/response.go | 4 +- services/postgresflex/v1api/utils.go | 4 +- services/postgresflex/v2api/api_default.go | 6 +- .../postgresflex/v2api/api_default_mock.go | 2 +- services/postgresflex/v2api/client.go | 2 +- services/postgresflex/v2api/configuration.go | 2 +- services/postgresflex/v2api/model_acl.go | 2 +- .../v2api/model_api_configuration.go | 2 +- ...odel_api_extension_config_load_response.go | 2 +- .../model_api_extension_configure_response.go | 2 +- .../model_api_extension_delete_response.go | 2 +- .../v2api/model_api_extension_list.go | 2 +- .../model_api_extension_load_response.go | 2 +- .../v2api/model_api_install_response.go | 2 +- .../model_api_installed_list_response.go | 2 +- services/postgresflex/v2api/model_backup.go | 2 +- .../v2api/model_clone_instance_payload.go | 2 +- .../v2api/model_clone_instance_response.go | 2 +- .../v2api/model_create_database_payload.go | 2 +- .../v2api/model_create_instance_payload.go | 2 +- .../v2api/model_create_instance_response.go | 2 +- .../v2api/model_create_user_payload.go | 2 +- .../v2api/model_create_user_response.go | 2 +- services/postgresflex/v2api/model_error.go | 2 +- .../v2api/model_extensions_configuration.go | 2 +- ...odel_extensions_extension_list_response.go | 2 +- .../v2api/model_extensions_new_config.go | 2 +- services/postgresflex/v2api/model_flavor.go | 2 +- .../v2api/model_get_backup_response.go | 2 +- .../v2api/model_get_user_response.go | 2 +- services/postgresflex/v2api/model_instance.go | 2 +- ...model_instance_create_database_response.go | 2 +- .../v2api/model_instance_data_point.go | 2 +- .../v2api/model_instance_database.go | 2 +- .../postgresflex/v2api/model_instance_host.go | 2 +- .../v2api/model_instance_host_metric.go | 2 +- .../model_instance_list_databases_response.go | 2 +- .../v2api/model_instance_list_instance.go | 2 +- .../v2api/model_instance_metrics_response.go | 2 +- .../v2api/model_instance_response.go | 2 +- .../v2api/model_list_backups_response.go | 2 +- .../v2api/model_list_flavors_response.go | 2 +- .../v2api/model_list_instances_response.go | 2 +- .../v2api/model_list_storages_response.go | 2 +- .../v2api/model_list_users_response.go | 2 +- .../v2api/model_list_users_response_item.go | 2 +- .../v2api/model_list_versions_response.go | 2 +- .../model_partial_update_instance_payload.go | 2 +- .../model_partial_update_instance_response.go | 2 +- .../model_partial_update_user_payload.go | 2 +- .../model_postgres_database_parameter.go | 2 +- ...el_postgres_database_parameter_response.go | 2 +- .../v2api/model_reset_user_response.go | 2 +- services/postgresflex/v2api/model_storage.go | 2 +- .../postgresflex/v2api/model_storage_range.go | 2 +- .../v2api/model_storage_update.go | 6 +- .../model_update_backup_schedule_payload.go | 2 +- .../v2api/model_update_instance_payload.go | 2 +- .../v2api/model_update_user_payload.go | 2 +- services/postgresflex/v2api/model_user.go | 2 +- .../postgresflex/v2api/model_user_response.go | 2 +- services/postgresflex/v2api/response.go | 2 +- services/postgresflex/v2api/utils.go | 2 +- services/postgresflex/wait/deprecation.go | 2 - services/postgresflex/wait/wait.go | 188 - services/postgresflex/wait/wait_test.go | 396 - 256 files changed, 744 insertions(+), 26043 deletions(-) delete mode 100644 services/postgresflex/.openapi-generator/VERSION delete mode 100644 services/postgresflex/api_default.go delete mode 100644 services/postgresflex/client.go delete mode 100644 services/postgresflex/configuration.go delete mode 100644 services/postgresflex/model_backup_data.go delete mode 100644 services/postgresflex/model_backup_data_test.go delete mode 100644 services/postgresflex/model_backup_sort.go delete mode 100644 services/postgresflex/model_backup_sort_test.go delete mode 100644 services/postgresflex/model_clone_instance_overrides.go delete mode 100644 services/postgresflex/model_clone_instance_overrides_test.go delete mode 100644 services/postgresflex/model_clone_instance_payload.go delete mode 100644 services/postgresflex/model_clone_instance_payload_test.go delete mode 100644 services/postgresflex/model_clone_instance_response.go delete mode 100644 services/postgresflex/model_clone_instance_response_test.go delete mode 100644 services/postgresflex/model_create_database_payload.go delete mode 100644 services/postgresflex/model_create_database_payload_test.go delete mode 100644 services/postgresflex/model_create_database_response.go delete mode 100644 services/postgresflex/model_create_database_response_test.go delete mode 100644 services/postgresflex/model_create_instance_payload.go delete mode 100644 services/postgresflex/model_create_instance_payload_test.go delete mode 100644 services/postgresflex/model_create_instance_response.go delete mode 100644 services/postgresflex/model_create_instance_response_test.go delete mode 100644 services/postgresflex/model_create_user_payload.go delete mode 100644 services/postgresflex/model_create_user_payload_test.go delete mode 100644 services/postgresflex/model_create_user_response.go delete mode 100644 services/postgresflex/model_create_user_response_test.go delete mode 100644 services/postgresflex/model_database_roles.go delete mode 100644 services/postgresflex/model_database_roles_test.go delete mode 100644 services/postgresflex/model_database_sort.go delete mode 100644 services/postgresflex/model_database_sort_test.go delete mode 100644 services/postgresflex/model_error.go delete mode 100644 services/postgresflex/model_error_test.go delete mode 100644 services/postgresflex/model_flavor_sort.go delete mode 100644 services/postgresflex/model_flavor_sort_test.go delete mode 100644 services/postgresflex/model_flavor_storage_classes_storage_class.go delete mode 100644 services/postgresflex/model_flavor_storage_classes_storage_class_test.go delete mode 100644 services/postgresflex/model_get_database_response.go delete mode 100644 services/postgresflex/model_get_database_response_test.go delete mode 100644 services/postgresflex/model_get_instance_response.go delete mode 100644 services/postgresflex/model_get_instance_response_test.go delete mode 100644 services/postgresflex/model_get_user_response.go delete mode 100644 services/postgresflex/model_get_user_response_test.go delete mode 100644 services/postgresflex/model_instance_connection_info.go delete mode 100644 services/postgresflex/model_instance_connection_info_test.go delete mode 100644 services/postgresflex/model_instance_connection_info_write.go delete mode 100644 services/postgresflex/model_instance_connection_info_write_test.go delete mode 100644 services/postgresflex/model_instance_encryption.go delete mode 100644 services/postgresflex/model_instance_encryption_test.go delete mode 100644 services/postgresflex/model_instance_network.go delete mode 100644 services/postgresflex/model_instance_network_access_scope.go delete mode 100644 services/postgresflex/model_instance_network_access_scope_test.go delete mode 100644 services/postgresflex/model_instance_network_create.go delete mode 100644 services/postgresflex/model_instance_network_create_test.go delete mode 100644 services/postgresflex/model_instance_network_opt.go delete mode 100644 services/postgresflex/model_instance_network_opt_test.go delete mode 100644 services/postgresflex/model_instance_network_test.go delete mode 100644 services/postgresflex/model_instance_network_update.go delete mode 100644 services/postgresflex/model_instance_network_update_test.go delete mode 100644 services/postgresflex/model_instance_sort.go delete mode 100644 services/postgresflex/model_instance_sort_test.go delete mode 100644 services/postgresflex/model_instance_storage_range.go delete mode 100644 services/postgresflex/model_instance_storage_range_test.go delete mode 100644 services/postgresflex/model_list_backups_response.go delete mode 100644 services/postgresflex/model_list_backups_response_test.go delete mode 100644 services/postgresflex/model_list_collations_response.go delete mode 100644 services/postgresflex/model_list_collations_response_test.go delete mode 100644 services/postgresflex/model_list_database.go delete mode 100644 services/postgresflex/model_list_database_test.go delete mode 100644 services/postgresflex/model_list_databases_response.go delete mode 100644 services/postgresflex/model_list_databases_response_test.go delete mode 100644 services/postgresflex/model_list_flavors.go delete mode 100644 services/postgresflex/model_list_flavors_response.go delete mode 100644 services/postgresflex/model_list_flavors_response_test.go delete mode 100644 services/postgresflex/model_list_flavors_test.go delete mode 100644 services/postgresflex/model_list_instance.go delete mode 100644 services/postgresflex/model_list_instance_test.go delete mode 100644 services/postgresflex/model_list_instances_response.go delete mode 100644 services/postgresflex/model_list_instances_response_test.go delete mode 100644 services/postgresflex/model_list_roles_response.go delete mode 100644 services/postgresflex/model_list_roles_response_test.go delete mode 100644 services/postgresflex/model_list_user.go delete mode 100644 services/postgresflex/model_list_user_test.go delete mode 100644 services/postgresflex/model_list_users_response.go delete mode 100644 services/postgresflex/model_list_users_response_test.go delete mode 100644 services/postgresflex/model_list_versions_response.go delete mode 100644 services/postgresflex/model_list_versions_response_test.go delete mode 100644 services/postgresflex/model_pagination.go delete mode 100644 services/postgresflex/model_pagination_test.go delete mode 100644 services/postgresflex/model_partial_update_database_payload.go delete mode 100644 services/postgresflex/model_partial_update_database_payload_test.go delete mode 100644 services/postgresflex/model_partial_update_instance_payload.go delete mode 100644 services/postgresflex/model_partial_update_instance_payload_test.go delete mode 100644 services/postgresflex/model_partial_update_user_payload.go delete mode 100644 services/postgresflex/model_partial_update_user_payload_test.go delete mode 100644 services/postgresflex/model_reset_user_password_response.go delete mode 100644 services/postgresflex/model_reset_user_password_response_test.go delete mode 100644 services/postgresflex/model_state.go delete mode 100644 services/postgresflex/model_state_test.go delete mode 100644 services/postgresflex/model_storage.go delete mode 100644 services/postgresflex/model_storage_create.go delete mode 100644 services/postgresflex/model_storage_create_test.go delete mode 100644 services/postgresflex/model_storage_test.go delete mode 100644 services/postgresflex/model_storage_update.go delete mode 100644 services/postgresflex/model_storage_update_test.go delete mode 100644 services/postgresflex/model_update_database_partially_response.go delete mode 100644 services/postgresflex/model_update_database_partially_response_test.go delete mode 100644 services/postgresflex/model_update_database_payload.go delete mode 100644 services/postgresflex/model_update_database_payload_test.go delete mode 100644 services/postgresflex/model_update_database_response.go delete mode 100644 services/postgresflex/model_update_database_response_test.go delete mode 100644 services/postgresflex/model_update_instance_payload.go delete mode 100644 services/postgresflex/model_update_instance_payload_test.go delete mode 100644 services/postgresflex/model_update_instance_protection_payload.go delete mode 100644 services/postgresflex/model_update_instance_protection_payload_test.go delete mode 100644 services/postgresflex/model_update_instance_protection_response.go delete mode 100644 services/postgresflex/model_update_instance_protection_response_test.go delete mode 100644 services/postgresflex/model_update_user_payload.go delete mode 100644 services/postgresflex/model_update_user_payload_test.go delete mode 100644 services/postgresflex/model_user_sort.go delete mode 100644 services/postgresflex/model_user_sort_test.go delete mode 100644 services/postgresflex/model_validation_error.go delete mode 100644 services/postgresflex/model_validation_error_test.go delete mode 100644 services/postgresflex/model_validation_error_validation_inner.go delete mode 100644 services/postgresflex/model_validation_error_validation_inner_test.go delete mode 100644 services/postgresflex/model_version.go delete mode 100644 services/postgresflex/model_version_test.go create mode 100644 services/postgresflex/package.go delete mode 100644 services/postgresflex/utils.go delete mode 100644 services/postgresflex/v1api/model_api_extension_config_load_response.go delete mode 100644 services/postgresflex/v1api/model_api_extension_configure_response.go delete mode 100644 services/postgresflex/v1api/model_api_extension_delete_response.go delete mode 100644 services/postgresflex/v1api/model_api_extension_list.go delete mode 100644 services/postgresflex/v1api/model_api_extension_load_response.go delete mode 100644 services/postgresflex/v1api/model_api_install_response.go delete mode 100644 services/postgresflex/v1api/model_api_installed_list_response.go delete mode 100644 services/postgresflex/v1api/model_extensions_configuration.go delete mode 100644 services/postgresflex/v1api/model_extensions_extension_list_response.go delete mode 100644 services/postgresflex/v1api/model_extensions_new_config.go delete mode 100644 services/postgresflex/wait/deprecation.go delete mode 100644 services/postgresflex/wait/wait.go delete mode 100644 services/postgresflex/wait/wait_test.go diff --git a/services/postgresflex/.openapi-generator/VERSION b/services/postgresflex/.openapi-generator/VERSION deleted file mode 100644 index cd802a1ec4..0000000000 --- a/services/postgresflex/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.6.0 \ No newline at end of file diff --git a/services/postgresflex/api_default.go b/services/postgresflex/api_default.go deleted file mode 100644 index 998536d5fd..0000000000 --- a/services/postgresflex/api_default.go +++ /dev/null @@ -1,6902 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "bytes" - "context" - "fmt" - "io" - "net/http" - "net/url" - "strings" - - "github.com/stackitcloud/stackit-sdk-go/core/config" - "github.com/stackitcloud/stackit-sdk-go/core/oapierror" -) - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DefaultApi interface { - /* - CloneInstance Clone Instance - Clone Instance - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCloneInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CloneInstance(ctx context.Context, projectId string, region string, instanceId string) ApiCloneInstanceRequest - /* - CloneInstanceExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return CloneInstanceResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CloneInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) (*CloneInstanceResponse, error) - /* - CreateDatabase Create Database - Create database for a user. Note: The name of a valid user must be provided in the 'options' map field using the key 'owner' - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCreateDatabaseRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateDatabase(ctx context.Context, projectId string, region string, instanceId string) ApiCreateDatabaseRequest - /* - CreateDatabaseExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return CreateDatabaseResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string) (*CreateDatabaseResponse, error) - /* - CreateInstance Create Instance - Create a new instance of a postgres database instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiCreateInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateInstance(ctx context.Context, projectId string, region string) ApiCreateInstanceRequest - /* - CreateInstanceExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return CreateInstanceResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateInstanceExecute(ctx context.Context, projectId string, region string) (*CreateInstanceResponse, error) - /* - CreateUser Create User - Create user for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCreateUserRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateUser(ctx context.Context, projectId string, region string, instanceId string) ApiCreateUserRequest - /* - CreateUserExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return CreateUserResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - CreateUserExecute(ctx context.Context, projectId string, region string, instanceId string) (*CreateUserResponse, error) - /* - DeleteDatabase Delete Database - Delete database for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiDeleteDatabaseRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiDeleteDatabaseRequest - /* - DeleteDatabaseExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error - /* - DeleteInstance Delete Instance - Delete an available postgres instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiDeleteInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiDeleteInstanceRequest - /* - DeleteInstanceExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error - /* - DeleteUser Delete User - Delete an user from a specific instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiDeleteUserRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiDeleteUserRequest - /* - DeleteUserExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - DeleteUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error - /* - GetBackup Get specific backup - Get information about a specific backup for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param backupId The ID of the backup. - @return ApiGetBackupRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetBackup(ctx context.Context, projectId string, region string, instanceId string, backupId int64) ApiGetBackupRequest - /* - GetBackupExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param backupId The ID of the backup. - @return BackupData - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetBackupExecute(ctx context.Context, projectId string, region string, instanceId string, backupId int64) (*BackupData, error) - /* - GetDatabase Get Specific Database - Get information about a specific database in an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiGetDatabaseRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiGetDatabaseRequest - /* - GetDatabaseExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return GetDatabaseResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) (*GetDatabaseResponse, error) - /* - GetInstance Get Specific Instance - Get information about a specific available instance - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiGetInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetInstance(ctx context.Context, projectId string, region string, instanceId string) ApiGetInstanceRequest - /* - GetInstanceExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return GetInstanceResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) (*GetInstanceResponse, error) - /* - GetUser Get User - Get a specific available user for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiGetUserRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiGetUserRequest - /* - GetUserExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return GetUserResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - GetUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) (*GetUserResponse, error) - /* - ListBackups List backups - List all backups which are available for a specific instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListBackupsRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListBackups(ctx context.Context, projectId string, region string, instanceId string) ApiListBackupsRequest - /* - ListBackupsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ListBackupsResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListBackupsExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListBackupsResponse, error) - /* - ListCollations Get Collations for an Instance - Get available collations for an instance - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListCollationsRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListCollations(ctx context.Context, projectId string, region string, instanceId string) ApiListCollationsRequest - /* - ListCollationsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ListCollationsResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListCollationsExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListCollationsResponse, error) - /* - ListDatabases List Databases - List available databases for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListDatabasesRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListDatabases(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabasesRequest - /* - ListDatabasesExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ListDatabasesResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListDatabasesExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListDatabasesResponse, error) - /* - ListFlavors Get Flavors - Get all available flavors for a project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListFlavorsRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListFlavors(ctx context.Context, projectId string, region string) ApiListFlavorsRequest - /* - ListFlavorsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ListFlavorsResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListFlavorsExecute(ctx context.Context, projectId string, region string) (*ListFlavorsResponse, error) - /* - ListInstances List Instances - List all available instances for your project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListInstancesRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListInstances(ctx context.Context, projectId string, region string) ApiListInstancesRequest - /* - ListInstancesExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ListInstancesResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListInstancesExecute(ctx context.Context, projectId string, region string) (*ListInstancesResponse, error) - /* - ListRoles List Roles - List available roles for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListRolesRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListRoles(ctx context.Context, projectId string, region string, instanceId string) ApiListRolesRequest - /* - ListRolesExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ListRolesResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListRolesExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListRolesResponse, error) - /* - ListUsers List Users - List available users for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListUsersRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListUsers(ctx context.Context, projectId string, region string, instanceId string) ApiListUsersRequest - /* - ListUsersExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ListUsersResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListUsersExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListUsersResponse, error) - /* - ListVersions Get Versions - Get available postgres versions for the project. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListVersionsRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListVersions(ctx context.Context, projectId string, region string) ApiListVersionsRequest - /* - ListVersionsExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ListVersionsResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ListVersionsExecute(ctx context.Context, projectId string, region string) (*ListVersionsResponse, error) - /* - PartialUpdateDatabase Update Database partially - Update a database partially in an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiPartialUpdateDatabaseRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiPartialUpdateDatabaseRequest - /* - PartialUpdateDatabaseExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error - /* - PartialUpdateInstance Update Instance Partially - Update an available instance of a postgres database. No fields are required. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiPartialUpdateInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiPartialUpdateInstanceRequest - /* - PartialUpdateInstanceExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error - /* - PartialUpdateUser Update User Partially - Update an user partially for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiPartialUpdateUserRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiPartialUpdateUserRequest - /* - PartialUpdateUserExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - PartialUpdateUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error - /* - ResetUserPassword Reset User - Reset an user from an specific instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiResetUserPasswordRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ResetUserPassword(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiResetUserPasswordRequest - /* - ResetUserPasswordExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ResetUserPasswordResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - ResetUserPasswordExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) (*ResetUserPasswordResponse, error) - /* - UpdateDatabase Update Database - Update a database in an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiUpdateDatabaseRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiUpdateDatabaseRequest - /* - UpdateDatabaseExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error - /* - UpdateInstance Update Instance - Updates an available instance of a postgres database - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiUpdateInstanceRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceRequest - /* - UpdateInstanceExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error - /* - UpdateInstanceProtection Toggle Instance Protection - Toggle the deletion protection for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiUpdateInstanceProtectionRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateInstanceProtection(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceProtectionRequest - /* - UpdateInstanceProtectionExecute executes the request - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return UpdateInstanceProtectionResponse - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateInstanceProtectionExecute(ctx context.Context, projectId string, region string, instanceId string) (*UpdateInstanceProtectionResponse, error) - /* - UpdateUser Update User - Update user for an instance. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiUpdateUserRequest - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiUpdateUserRequest - /* - UpdateUserExecute executes the request - - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - */ - UpdateUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCloneInstanceRequest interface { - // The request body with the parameters for cloning an instance by a point in time into a new instance. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CloneInstancePayload(cloneInstancePayload CloneInstancePayload) ApiCloneInstanceRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*CloneInstanceResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCreateDatabaseRequest interface { - // The request body containing the information for the new database. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CreateDatabasePayload(createDatabasePayload CreateDatabasePayload) ApiCreateDatabaseRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*CreateDatabaseResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCreateInstanceRequest interface { - // The request body with the parameters for the instance creation. Every parameter is required. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*CreateInstanceResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiCreateUserRequest interface { - // The request body containing the user details. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - CreateUserPayload(createUserPayload CreateUserPayload) ApiCreateUserRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*CreateUserResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiDeleteDatabaseRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiDeleteInstanceRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiDeleteUserRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetBackupRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*BackupData, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetDatabaseRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*GetDatabaseResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetInstanceRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*GetInstanceResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiGetUserRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*GetUserResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListBackupsRequest interface { - // Number of the page of items list to be returned. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Page(page int64) ApiListBackupsRequest - // Number of items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Size(size int64) ApiListBackupsRequest - // Sorting of the backups to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Sort(sort BackupSort) ApiListBackupsRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListBackupsResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListCollationsRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListCollationsResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListDatabasesRequest interface { - // Number of the page of items list to be returned. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Page(page int64) ApiListDatabasesRequest - // Number of items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Size(size int64) ApiListDatabasesRequest - // Sorting of the databases to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Sort(sort DatabaseSort) ApiListDatabasesRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListDatabasesResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListFlavorsRequest interface { - // Number of the page of items list to be returned. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Page(page int64) ApiListFlavorsRequest - // Number of items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Size(size int64) ApiListFlavorsRequest - // Sorting of the flavors to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Sort(sort FlavorSort) ApiListFlavorsRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListFlavorsResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListInstancesRequest interface { - // Number of the page of items list to be returned. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Page(page int64) ApiListInstancesRequest - // Number of items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Size(size int64) ApiListInstancesRequest - // Sorting of the items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Sort(sort InstanceSort) ApiListInstancesRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListInstancesResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListRolesRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListRolesResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListUsersRequest interface { - // Number of the page of items list to be returned. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Page(page int64) ApiListUsersRequest - // Number of items to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Size(size int64) ApiListUsersRequest - // Sorting of the users to be returned on each page. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Sort(sort UserSort) ApiListUsersRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListUsersResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiListVersionsRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ListVersionsResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiPartialUpdateDatabaseRequest interface { - // The request body containing the information for the database update. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - PartialUpdateDatabasePayload(partialUpdateDatabasePayload PartialUpdateDatabasePayload) ApiPartialUpdateDatabaseRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiPartialUpdateInstanceRequest interface { - // The request body with the parameters for updating the instance. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiPartialUpdateUserRequest interface { - // The Request body containing the new information for the user. If empty request body is send via patch, then login and createdb roles are removed from user. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - PartialUpdateUserPayload(partialUpdateUserPayload PartialUpdateUserPayload) ApiPartialUpdateUserRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiResetUserPasswordRequest interface { - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*ResetUserPasswordResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiUpdateDatabaseRequest interface { - // The request body containing the information for the database update. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - UpdateDatabasePayload(updateDatabasePayload UpdateDatabasePayload) ApiUpdateDatabaseRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiUpdateInstanceRequest interface { - // The request body with the parameters for updating the instance - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiUpdateInstanceProtectionRequest interface { - // The request body with flag isDeletable. Parameter is required. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - UpdateInstanceProtectionPayload(updateInstanceProtectionPayload UpdateInstanceProtectionPayload) ApiUpdateInstanceProtectionRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() (*UpdateInstanceProtectionResponse, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ApiUpdateUserRequest interface { - // The Request body containing the updated infos for the user. - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - UpdateUserPayload(updateUserPayload UpdateUserPayload) ApiUpdateUserRequest - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - Execute() error -} - -// DefaultApiService DefaultApi service -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DefaultApiService service - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - cloneInstancePayload *CloneInstancePayload -} - -// The request body with the parameters for cloning an instance by a point in time into a new instance. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CloneInstanceRequest) CloneInstancePayload(cloneInstancePayload CloneInstancePayload) ApiCloneInstanceRequest { - r.cloneInstancePayload = &cloneInstancePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CloneInstanceRequest) Execute() (*CloneInstanceResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CloneInstanceResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CloneInstance") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/clone" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.cloneInstancePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CloneInstance: Clone Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCloneInstanceRequest -*/ -func (a *APIClient) CloneInstance(ctx context.Context, projectId string, region string, instanceId string) ApiCloneInstanceRequest { - return CloneInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CloneInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) (*CloneInstanceResponse, error) { - r := CloneInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabaseRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - createDatabasePayload *CreateDatabasePayload -} - -// The request body containing the information for the new database. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateDatabaseRequest) CreateDatabasePayload(createDatabasePayload CreateDatabasePayload) ApiCreateDatabaseRequest { - r.createDatabasePayload = &createDatabasePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateDatabaseRequest) Execute() (*CreateDatabaseResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateDatabaseResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateDatabase") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createDatabasePayload == nil { - return localVarReturnValue, fmt.Errorf("createDatabasePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createDatabasePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CreateDatabase: Create Database - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCreateDatabaseRequest -*/ -func (a *APIClient) CreateDatabase(ctx context.Context, projectId string, region string, instanceId string) ApiCreateDatabaseRequest { - return CreateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CreateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string) (*CreateDatabaseResponse, error) { - r := CreateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - createInstancePayload *CreateInstancePayload -} - -// The request body with the parameters for the instance creation. Every parameter is required. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateInstanceRequest) CreateInstancePayload(createInstancePayload CreateInstancePayload) ApiCreateInstanceRequest { - r.createInstancePayload = &createInstancePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateInstanceRequest) Execute() (*CreateInstanceResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateInstanceResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateInstance") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createInstancePayload == nil { - return localVarReturnValue, fmt.Errorf("createInstancePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createInstancePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CreateInstance: Create Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiCreateInstanceRequest -*/ -func (a *APIClient) CreateInstance(ctx context.Context, projectId string, region string) ApiCreateInstanceRequest { - return CreateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CreateInstanceExecute(ctx context.Context, projectId string, region string) (*CreateInstanceResponse, error) { - r := CreateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - createUserPayload *CreateUserPayload -} - -// The request body containing the user details. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateUserRequest) CreateUserPayload(createUserPayload CreateUserPayload) ApiCreateUserRequest { - r.createUserPayload = &createUserPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r CreateUserRequest) Execute() (*CreateUserResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CreateUserResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.CreateUser") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.createUserPayload == nil { - return localVarReturnValue, fmt.Errorf("createUserPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.createUserPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -CreateUser: Create User - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiCreateUserRequest -*/ -func (a *APIClient) CreateUser(ctx context.Context, projectId string, region string, instanceId string) ApiCreateUserRequest { - return CreateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) CreateUserExecute(ctx context.Context, projectId string, region string, instanceId string) (*CreateUserResponse, error) { - r := CreateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DeleteDatabaseRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - databaseId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r DeleteDatabaseRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteDatabase") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"databaseId"+"}", url.PathEscape(ParameterValueToString(r.databaseId, "databaseId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -DeleteDatabase: Delete Database - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiDeleteDatabaseRequest -*/ -func (a *APIClient) DeleteDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiDeleteDatabaseRequest { - return DeleteDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) DeleteDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error { - r := DeleteDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DeleteInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r DeleteInstanceRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteInstance") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 412 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -DeleteInstance: Delete Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiDeleteInstanceRequest -*/ -func (a *APIClient) DeleteInstance(ctx context.Context, projectId string, region string, instanceId string) ApiDeleteInstanceRequest { - return DeleteInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) DeleteInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error { - r := DeleteInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DeleteUserRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - userId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r DeleteUserRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.DeleteUser") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(ParameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 409 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -DeleteUser: Delete User - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiDeleteUserRequest -*/ -func (a *APIClient) DeleteUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiDeleteUserRequest { - return DeleteUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) DeleteUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error { - r := DeleteUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetBackupRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - backupId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetBackupRequest) Execute() (*BackupData, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *BackupData - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetBackup") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups/{backupId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"backupId"+"}", url.PathEscape(ParameterValueToString(r.backupId, "backupId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetBackup: Get specific backup - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param backupId The ID of the backup. - @return ApiGetBackupRequest -*/ -func (a *APIClient) GetBackup(ctx context.Context, projectId string, region string, instanceId string, backupId int64) ApiGetBackupRequest { - return GetBackupRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - backupId: backupId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetBackupExecute(ctx context.Context, projectId string, region string, instanceId string, backupId int64) (*BackupData, error) { - r := GetBackupRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - backupId: backupId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - databaseId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetDatabaseRequest) Execute() (*GetDatabaseResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetDatabaseResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetDatabase") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"databaseId"+"}", url.PathEscape(ParameterValueToString(r.databaseId, "databaseId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetDatabase: Get Specific Database - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiGetDatabaseRequest -*/ -func (a *APIClient) GetDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiGetDatabaseRequest { - return GetDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) (*GetDatabaseResponse, error) { - r := GetDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetInstanceRequest) Execute() (*GetInstanceResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetInstanceResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetInstance") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetInstance: Get Specific Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiGetInstanceRequest -*/ -func (a *APIClient) GetInstance(ctx context.Context, projectId string, region string, instanceId string) ApiGetInstanceRequest { - return GetInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) (*GetInstanceResponse, error) { - r := GetInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - userId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r GetUserRequest) Execute() (*GetUserResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *GetUserResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.GetUser") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(ParameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -GetUser: Get User - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiGetUserRequest -*/ -func (a *APIClient) GetUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiGetUserRequest { - return GetUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) GetUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) (*GetUserResponse, error) { - r := GetUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - page *int64 - size *int64 - sort *BackupSort -} - -// Number of the page of items list to be returned. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListBackupsRequest) Page(page int64) ApiListBackupsRequest { - r.page = &page - return r -} - -// Number of items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListBackupsRequest) Size(size int64) ApiListBackupsRequest { - r.size = &size - return r -} - -// Sorting of the backups to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListBackupsRequest) Sort(sort BackupSort) ApiListBackupsRequest { - r.sort = &sort - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListBackupsRequest) Execute() (*ListBackupsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListBackupsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListBackups") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/backups" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListBackups: List backups - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListBackupsRequest -*/ -func (a *APIClient) ListBackups(ctx context.Context, projectId string, region string, instanceId string) ApiListBackupsRequest { - return ListBackupsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListBackupsExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListBackupsResponse, error) { - r := ListBackupsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListCollationsRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListCollationsRequest) Execute() (*ListCollationsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListCollationsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListCollations") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/collations" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListCollations: Get Collations for an Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListCollationsRequest -*/ -func (a *APIClient) ListCollations(ctx context.Context, projectId string, region string, instanceId string) ApiListCollationsRequest { - return ListCollationsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListCollationsExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListCollationsResponse, error) { - r := ListCollationsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - page *int64 - size *int64 - sort *DatabaseSort -} - -// Number of the page of items list to be returned. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListDatabasesRequest) Page(page int64) ApiListDatabasesRequest { - r.page = &page - return r -} - -// Number of items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListDatabasesRequest) Size(size int64) ApiListDatabasesRequest { - r.size = &size - return r -} - -// Sorting of the databases to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListDatabasesRequest) Sort(sort DatabaseSort) ApiListDatabasesRequest { - r.sort = &sort - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListDatabasesRequest) Execute() (*ListDatabasesResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListDatabasesResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListDatabases") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListDatabases: List Databases - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListDatabasesRequest -*/ -func (a *APIClient) ListDatabases(ctx context.Context, projectId string, region string, instanceId string) ApiListDatabasesRequest { - return ListDatabasesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListDatabasesExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListDatabasesResponse, error) { - r := ListDatabasesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - page *int64 - size *int64 - sort *FlavorSort -} - -// Number of the page of items list to be returned. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListFlavorsRequest) Page(page int64) ApiListFlavorsRequest { - r.page = &page - return r -} - -// Number of items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListFlavorsRequest) Size(size int64) ApiListFlavorsRequest { - r.size = &size - return r -} - -// Sorting of the flavors to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListFlavorsRequest) Sort(sort FlavorSort) ApiListFlavorsRequest { - r.sort = &sort - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListFlavorsRequest) Execute() (*ListFlavorsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListFlavorsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListFlavors") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/flavors" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListFlavors: Get Flavors - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListFlavorsRequest -*/ -func (a *APIClient) ListFlavors(ctx context.Context, projectId string, region string) ApiListFlavorsRequest { - return ListFlavorsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListFlavorsExecute(ctx context.Context, projectId string, region string) (*ListFlavorsResponse, error) { - r := ListFlavorsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - page *int64 - size *int64 - sort *InstanceSort -} - -// Number of the page of items list to be returned. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListInstancesRequest) Page(page int64) ApiListInstancesRequest { - r.page = &page - return r -} - -// Number of items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListInstancesRequest) Size(size int64) ApiListInstancesRequest { - r.size = &size - return r -} - -// Sorting of the items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListInstancesRequest) Sort(sort InstanceSort) ApiListInstancesRequest { - r.sort = &sort - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListInstancesRequest) Execute() (*ListInstancesResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListInstancesResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListInstances") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListInstances: List Instances - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListInstancesRequest -*/ -func (a *APIClient) ListInstances(ctx context.Context, projectId string, region string) ApiListInstancesRequest { - return ListInstancesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string, region string) (*ListInstancesResponse, error) { - r := ListInstancesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListRolesRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListRolesRequest) Execute() (*ListRolesResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListRolesResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListRoles") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/roles" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListRoles: List Roles - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListRolesRequest -*/ -func (a *APIClient) ListRoles(ctx context.Context, projectId string, region string, instanceId string) ApiListRolesRequest { - return ListRolesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListRolesExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListRolesResponse, error) { - r := ListRolesRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - page *int64 - size *int64 - sort *UserSort -} - -// Number of the page of items list to be returned. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListUsersRequest) Page(page int64) ApiListUsersRequest { - r.page = &page - return r -} - -// Number of items to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListUsersRequest) Size(size int64) ApiListUsersRequest { - r.size = &size - return r -} - -// Sorting of the users to be returned on each page. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListUsersRequest) Sort(sort UserSort) ApiListUsersRequest { - r.sort = &sort - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListUsersRequest) Execute() (*ListUsersResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListUsersResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListUsers") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.page != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "page", r.page, "") - } - if r.size != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "size", r.size, "") - } - if r.sort != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sort", r.sort, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListUsers: List Users - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiListUsersRequest -*/ -func (a *APIClient) ListUsers(ctx context.Context, projectId string, region string, instanceId string) ApiListUsersRequest { - return ListUsersRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListUsersExecute(ctx context.Context, projectId string, region string, instanceId string) (*ListUsersResponse, error) { - r := ListUsersRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListVersionsRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ListVersionsRequest) Execute() (*ListVersionsResponse, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ListVersionsResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ListVersions") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/versions" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ListVersions: Get Versions - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @return ApiListVersionsRequest -*/ -func (a *APIClient) ListVersions(ctx context.Context, projectId string, region string) ApiListVersionsRequest { - return ListVersionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ListVersionsExecute(ctx context.Context, projectId string, region string) (*ListVersionsResponse, error) { - r := ListVersionsRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabaseRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - databaseId int64 - partialUpdateDatabasePayload *PartialUpdateDatabasePayload -} - -// The request body containing the information for the database update. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateDatabaseRequest) PartialUpdateDatabasePayload(partialUpdateDatabasePayload PartialUpdateDatabasePayload) ApiPartialUpdateDatabaseRequest { - r.partialUpdateDatabasePayload = &partialUpdateDatabasePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateDatabaseRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateDatabase") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"databaseId"+"}", url.PathEscape(ParameterValueToString(r.databaseId, "databaseId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.partialUpdateDatabasePayload == nil { - return fmt.Errorf("partialUpdateDatabasePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.partialUpdateDatabasePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -PartialUpdateDatabase: Update Database partially - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiPartialUpdateDatabaseRequest -*/ -func (a *APIClient) PartialUpdateDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiPartialUpdateDatabaseRequest { - return PartialUpdateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) PartialUpdateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error { - r := PartialUpdateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - partialUpdateInstancePayload *PartialUpdateInstancePayload -} - -// The request body with the parameters for updating the instance. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateInstanceRequest) PartialUpdateInstancePayload(partialUpdateInstancePayload PartialUpdateInstancePayload) ApiPartialUpdateInstanceRequest { - r.partialUpdateInstancePayload = &partialUpdateInstancePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateInstanceRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateInstance") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.partialUpdateInstancePayload == nil { - return fmt.Errorf("partialUpdateInstancePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.partialUpdateInstancePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 412 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -PartialUpdateInstance: Update Instance Partially - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiPartialUpdateInstanceRequest -*/ -func (a *APIClient) PartialUpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiPartialUpdateInstanceRequest { - return PartialUpdateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) PartialUpdateInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error { - r := PartialUpdateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - userId int64 - partialUpdateUserPayload *PartialUpdateUserPayload -} - -// The Request body containing the new information for the user. If empty request body is send via patch, then login and createdb roles are removed from user. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateUserRequest) PartialUpdateUserPayload(partialUpdateUserPayload PartialUpdateUserPayload) ApiPartialUpdateUserRequest { - r.partialUpdateUserPayload = &partialUpdateUserPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r PartialUpdateUserRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.PartialUpdateUser") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(ParameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.partialUpdateUserPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -PartialUpdateUser: Update User Partially - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiPartialUpdateUserRequest -*/ -func (a *APIClient) PartialUpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiPartialUpdateUserRequest { - return PartialUpdateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) PartialUpdateUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error { - r := PartialUpdateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - userId int64 -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r ResetUserPasswordRequest) Execute() (*ResetUserPasswordResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ResetUserPasswordResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.ResetUserPassword") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}/reset" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(ParameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -ResetUserPassword: Reset User - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiResetUserPasswordRequest -*/ -func (a *APIClient) ResetUserPassword(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiResetUserPasswordRequest { - return ResetUserPasswordRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) ResetUserPasswordExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) (*ResetUserPasswordResponse, error) { - r := ResetUserPasswordRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabaseRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - databaseId int64 - updateDatabasePayload *UpdateDatabasePayload -} - -// The request body containing the information for the database update. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateDatabaseRequest) UpdateDatabasePayload(updateDatabasePayload UpdateDatabasePayload) ApiUpdateDatabaseRequest { - r.updateDatabasePayload = &updateDatabasePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateDatabaseRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateDatabase") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/databases/{databaseId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"databaseId"+"}", url.PathEscape(ParameterValueToString(r.databaseId, "databaseId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateDatabasePayload == nil { - return fmt.Errorf("updateDatabasePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateDatabasePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -UpdateDatabase: Update Database - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param databaseId The ID of the database. - @return ApiUpdateDatabaseRequest -*/ -func (a *APIClient) UpdateDatabase(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) ApiUpdateDatabaseRequest { - return UpdateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) UpdateDatabaseExecute(ctx context.Context, projectId string, region string, instanceId string, databaseId int64) error { - r := UpdateDatabaseRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - databaseId: databaseId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - updateInstancePayload *UpdateInstancePayload -} - -// The request body with the parameters for updating the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateInstanceRequest) UpdateInstancePayload(updateInstancePayload UpdateInstancePayload) ApiUpdateInstanceRequest { - r.updateInstancePayload = &updateInstancePayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateInstanceRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateInstance") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateInstancePayload == nil { - return fmt.Errorf("updateInstancePayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateInstancePayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 412 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -UpdateInstance: Update Instance - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiUpdateInstanceRequest -*/ -func (a *APIClient) UpdateInstance(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceRequest { - return UpdateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) UpdateInstanceExecute(ctx context.Context, projectId string, region string, instanceId string) error { - r := UpdateInstanceRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - updateInstanceProtectionPayload *UpdateInstanceProtectionPayload -} - -// The request body with flag isDeletable. Parameter is required. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateInstanceProtectionRequest) UpdateInstanceProtectionPayload(updateInstanceProtectionPayload UpdateInstanceProtectionPayload) ApiUpdateInstanceProtectionRequest { - r.updateInstanceProtectionPayload = &updateInstanceProtectionPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateInstanceProtectionRequest) Execute() (*UpdateInstanceProtectionResponse, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *UpdateInstanceProtectionResponse - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return localVarReturnValue, fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateInstanceProtection") - if err != nil { - return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/protections" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateInstanceProtectionPayload == nil { - return localVarReturnValue, fmt.Errorf("updateInstanceProtectionPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateInstanceProtectionPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 501 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return localVarReturnValue, newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return localVarReturnValue, newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return localVarReturnValue, newErr - } - - err = client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: err.Error(), - } - return localVarReturnValue, newErr - } - - return localVarReturnValue, nil -} - -/* -UpdateInstanceProtection: Toggle Instance Protection - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @return ApiUpdateInstanceProtectionRequest -*/ -func (a *APIClient) UpdateInstanceProtection(ctx context.Context, projectId string, region string, instanceId string) ApiUpdateInstanceProtectionRequest { - return UpdateInstanceProtectionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) UpdateInstanceProtectionExecute(ctx context.Context, projectId string, region string, instanceId string) (*UpdateInstanceProtectionResponse, error) { - r := UpdateInstanceProtectionRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - } - return r.Execute() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserRequest struct { - ctx context.Context - apiService *DefaultApiService - projectId string - region string - instanceId string - userId int64 - updateUserPayload *UpdateUserPayload -} - -// The Request body containing the updated infos for the user. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateUserRequest) UpdateUserPayload(updateUserPayload UpdateUserPayload) ApiUpdateUserRequest { - r.updateUserPayload = &updateUserPayload - return r -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (r UpdateUserRequest) Execute() error { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - ) - a := r.apiService - client, ok := a.client.(*APIClient) - if !ok { - return fmt.Errorf("could not parse client to type APIClient") - } - localBasePath, err := client.cfg.ServerURLWithContext(r.ctx, "DefaultApiService.UpdateUser") - if err != nil { - return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} - } - - localVarPath := localBasePath + "/v3/projects/{projectId}/regions/{region}/instances/{instanceId}/users/{userId}" - localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(ParameterValueToString(r.projectId, "projectId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"region"+"}", url.PathEscape(ParameterValueToString(r.region, "region")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(ParameterValueToString(r.instanceId, "instanceId")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"userId"+"}", url.PathEscape(ParameterValueToString(r.userId, "userId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.updateUserPayload == nil { - return fmt.Errorf("updateUserPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.updateUserPayload - req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return err - } - - contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) - if ok { - *contextHTTPRequest = req - } - - localVarHTTPResponse, err := client.callAPI(req) - contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) - if ok { - *contextHTTPResponse = localVarHTTPResponse - } - if err != nil || localVarHTTPResponse == nil { - return err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &oapierror.GenericOpenAPIError{ - StatusCode: localVarHTTPResponse.StatusCode, - Body: localVarBody, - ErrorMessage: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 422 { - var v ValidationError - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 423 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 500 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - return newErr - } - if localVarHTTPResponse.StatusCode == 503 { - var v Error - err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.ErrorMessage = err.Error() - return newErr - } - newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.Model = v - } - return newErr - } - - return nil -} - -/* -UpdateUser: Update User - -Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param projectId The STACKIT project ID. - @param region The region which should be addressed - @param instanceId The ID of the instance. - @param userId The ID of the user. - @return ApiUpdateUserRequest -*/ -func (a *APIClient) UpdateUser(ctx context.Context, projectId string, region string, instanceId string, userId int64) ApiUpdateUserRequest { - return UpdateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (a *APIClient) UpdateUserExecute(ctx context.Context, projectId string, region string, instanceId string, userId int64) error { - r := UpdateUserRequest{ - apiService: a.defaultApi, - ctx: ctx, - projectId: projectId, - region: region, - instanceId: instanceId, - userId: userId, - } - return r.Execute() -} diff --git a/services/postgresflex/client.go b/services/postgresflex/client.go deleted file mode 100644 index 83675a809f..0000000000 --- a/services/postgresflex/client.go +++ /dev/null @@ -1,632 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "fmt" - "io" - "log" - "mime/multipart" - "net/http" - "net/http/httputil" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "github.com/stackitcloud/stackit-sdk-go/core/auth" - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) - queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") -) - -// APIClient manages communication with the STACKIT PostgreSQL Flex API API v3.0.0 -// In most cases there should be only one, shared, APIClient. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type APIClient struct { - cfg *config.Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - defaultApi *DefaultApiService -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type service struct { - client DefaultApi -} - -// NewAPIClient creates a new API client. -// Optionally receives configuration options -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { - cfg := NewConfiguration() - - for _, option := range opts { - err := option(cfg) - if err != nil { - return nil, fmt.Errorf("configuring the client: %w", err) - } - } - - // using new regional api, so no region is set here - - if cfg.HTTPClient == nil { - cfg.HTTPClient = &http.Client{} - } - - authRoundTripper, err := auth.SetupAuth(cfg) - if err != nil { - return nil, fmt.Errorf("setting up authentication: %w", err) - } - - roundTripper := authRoundTripper - if cfg.Middleware != nil { - roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) - } - - cfg.HTTPClient.Transport = roundTripper - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - c.defaultApi = (*DefaultApiService)(&c.common) - - return c, nil -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insensitive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.EqualFold(a, needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func ParameterValueToString(obj interface{}, key string) string { - if reflect.TypeOf(obj).Kind() != reflect.Ptr { - return fmt.Sprintf("%v", obj) - } - var param, ok = obj.(MappedNullable) - if !ok { - return "" - } - dataMap, err := param.ToMap() - if err != nil { - return "" - } - return fmt.Sprintf("%v", dataMap[key]) -} - -// parameterAddToHeaderOrQuery adds the provided object to the request header or url query -// supporting deep object syntax -func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { - var v = reflect.ValueOf(obj) - var value = "" - if v == reflect.ValueOf(nil) { - value = "null" - } else { - switch v.Kind() { - case reflect.Invalid: - value = "invalid" - - case reflect.Struct: - if t, ok := obj.(MappedNullable); ok { - dataMap, err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) - return - } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i := 0; i < lenIndValue; i++ { - var arrayValue = indValue.Index(i) - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, arrayValue.Interface(), collectionType) - } - return - - case reflect.Map: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - iter := indValue.MapRange() - for iter.Next() { - k, v := iter.Key(), iter.Value() - parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), collectionType) - } - return - - case reflect.Interface: - fallthrough - case reflect.Ptr: - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), collectionType) - return - - case reflect.Int, reflect.Int8, reflect.Int16, - reflect.Int32, reflect.Int64: - value = strconv.FormatInt(v.Int(), 10) - case reflect.Uint, reflect.Uint8, reflect.Uint16, - reflect.Uint32, reflect.Uint64, reflect.Uintptr: - value = strconv.FormatUint(v.Uint(), 10) - case reflect.Float32, reflect.Float64: - value = strconv.FormatFloat(v.Float(), 'g', -1, 32) - case reflect.Bool: - value = strconv.FormatBool(v.Bool()) - case reflect.String: - value = v.String() - default: - value = v.Type().String() + " value" - } - } - - switch valuesMap := headerOrQueryParams.(type) { - case url.Values: - if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { - valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) - } else { - valuesMap.Add(keyPrefix, value) - } - break - case map[string]string: - valuesMap[keyPrefix] = value - break - } -} - -// helper for converting interface{} parameters to json strings -func parameterToJson(obj interface{}) (string, error) { - jsonBuf, err := json.Marshal(obj) - if err != nil { - return "", err - } - return string(jsonBuf), err -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - if c.cfg.Debug { - dump, err := httputil.DumpRequestOut(request, true) - if err != nil { - return nil, err - } - log.Printf("\n%s\n", string(dump)) - } - - resp, err := c.cfg.HTTPClient.Do(request) - if err != nil { - return resp, err - } - - if c.cfg.Debug { - dump, err := httputil.DumpResponse(resp, true) - if err != nil { - return resp, err - } - log.Printf("\n%s\n", string(dump)) - } - return resp, err -} - -// Allow modification of underlying config for alternate implementations and testing -// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (c *APIClient) GetConfig() *config.Configuration { - return c.cfg -} - -type formFile struct { - fileBytes []byte - fileName string - formFileName string -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - formFiles []formFile) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if !IsNil(postBody) { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { - if body != nil { - return nil, fmt.Errorf("cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - for _, formFile := range formFiles { - if len(formFile.fileBytes) > 0 && formFile.fileName != "" { - w.Boundary() - part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(formFile.fileBytes) - if err != nil { - return nil, err - } - } - } - - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { - if body != nil { - return nil, fmt.Errorf("cannot specify postBody and x-www-form-urlencoded form at the same time.") - } - body = &bytes.Buffer{} - body.WriteString(formParams.Encode()) - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Override request host, if applicable - if c.cfg.Host != "" { - url.Host = c.cfg.Host - } - - // Override request scheme, if applicable - if c.cfg.Scheme != "" { - url.Scheme = c.cfg.Scheme - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { - pieces := strings.Split(s, "=") - pieces[0] = queryDescape.Replace(pieces[0]) - return strings.Join(pieces, "=") - }) - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers[h] = []string{v} - } - localVarRequest.Header = headers - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if len(b) == 0 { - return nil - } - if s, ok := v.(*string); ok { - *s = string(b) - return nil - } - if f, ok := v.(*os.File); ok { - f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = f.Write(b) - if err != nil { - return - } - _, err = f.Seek(0, io.SeekStart) - return - } - if f, ok := v.(**os.File); ok { - *f, err = os.CreateTemp("", "HttpClientFile") - if err != nil { - return - } - _, err = (*f).Write(b) - if err != nil { - return - } - _, err = (*f).Seek(0, io.SeekStart) - return - } - if xmlCheck.MatchString(contentType) { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } - if jsonCheck.MatchString(contentType) { - if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas - if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined - if err = unmarshalObj.UnmarshalJSON(b); err != nil { - return err - } - } else { - return fmt.Errorf("unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") - } - } else if err = json.Unmarshal(b, v); err != nil { // simple model - return err - } - return nil - } - return fmt.Errorf("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(filepath.Clean(path)) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// A wrapper for strict JSON decoding -func newStrictDecoder(data []byte) *json.Decoder { - dec := json.NewDecoder(bytes.NewBuffer(data)) - dec.DisallowUnknownFields() - return dec -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if fp, ok := body.(*os.File); ok { - _, err = bodyBuf.ReadFrom(fp) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - err = xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("invalid body type %s", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } else { - expires = now.Add(lifetime) - } - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} diff --git a/services/postgresflex/configuration.go b/services/postgresflex/configuration.go deleted file mode 100644 index ea413c1f73..0000000000 --- a/services/postgresflex/configuration.go +++ /dev/null @@ -1,40 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "github.com/stackitcloud/stackit-sdk-go/core/config" -) - -// NewConfiguration returns a new Configuration object -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewConfiguration() *config.Configuration { - cfg := &config.Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "stackit-sdk-go/postgresflex", - Debug: false, - Servers: config.ServerConfigurations{ - { - URL: "https://postgres-flex-service.api.stackit.cloud", - Description: "No description provided", - Variables: map[string]config.ServerVariable{ - "region": { - Description: "No description provided", - DefaultValue: "global", - }, - }, - }, - }, - OperationServers: map[string]config.ServerConfigurations{}, - } - return cfg -} diff --git a/services/postgresflex/go.mod b/services/postgresflex/go.mod index 46130c96a5..ba13748957 100644 --- a/services/postgresflex/go.mod +++ b/services/postgresflex/go.mod @@ -4,7 +4,7 @@ go 1.25 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.27.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 ) require ( diff --git a/services/postgresflex/go.sum b/services/postgresflex/go.sum index 042f4a71a5..5bae1d1250 100644 --- a/services/postgresflex/go.sum +++ b/services/postgresflex/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= +github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/postgresflex/model_backup_data.go b/services/postgresflex/model_backup_data.go deleted file mode 100644 index f1a17b9bf9..0000000000 --- a/services/postgresflex/model_backup_data.go +++ /dev/null @@ -1,420 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the BackupData type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &BackupData{} - -/* - types and functions for completionTime -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetCompletionTimeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetCompletionTimeAttributeTypeOk(arg BackupDataGetCompletionTimeAttributeType) (ret BackupDataGetCompletionTimeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetCompletionTimeAttributeType(arg *BackupDataGetCompletionTimeAttributeType, val BackupDataGetCompletionTimeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetCompletionTimeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetCompletionTimeRetType = string - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetIdAttributeTypeOk(arg BackupDataGetIdAttributeType) (ret BackupDataGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetIdAttributeType(arg *BackupDataGetIdAttributeType, val BackupDataGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetNameAttributeTypeOk(arg BackupDataGetNameAttributeType) (ret BackupDataGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetNameAttributeType(arg *BackupDataGetNameAttributeType, val BackupDataGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetNameRetType = string - -/* - types and functions for retainedUntil -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetRetainedUntilAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetRetainedUntilAttributeTypeOk(arg BackupDataGetRetainedUntilAttributeType) (ret BackupDataGetRetainedUntilRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetRetainedUntilAttributeType(arg *BackupDataGetRetainedUntilAttributeType, val BackupDataGetRetainedUntilRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetRetainedUntilArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetRetainedUntilRetType = string - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetSizeAttributeTypeOk(arg BackupDataGetSizeAttributeType) (ret BackupDataGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetSizeAttributeType(arg *BackupDataGetSizeAttributeType, val BackupDataGetSizeRetType) { - *arg = &val -} - -/* - types and functions for type -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getBackupDataGetTypeAttributeTypeOk(arg BackupDataGetTypeAttributeType) (ret BackupDataGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setBackupDataGetTypeAttributeType(arg *BackupDataGetTypeAttributeType, val BackupDataGetTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupDataGetTypeRetType = string - -// BackupData struct for BackupData -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupData struct { - // The time when the backup was completed in RFC3339 format. - // REQUIRED - CompletionTime BackupDataGetCompletionTimeAttributeType `json:"completionTime" required:"true"` - // The ID of the backup. - // REQUIRED - Id BackupDataGetIdAttributeType `json:"id" required:"true"` - // The name of the backup. - // REQUIRED - Name BackupDataGetNameAttributeType `json:"name" required:"true"` - // The time until the backup will be retained. - // REQUIRED - RetainedUntil BackupDataGetRetainedUntilAttributeType `json:"retainedUntil" required:"true"` - // The size of the backup in bytes. - // REQUIRED - Size BackupDataGetSizeAttributeType `json:"size" required:"true"` - // The type of the backup, which can be automated or manual triggered. - // REQUIRED - Type BackupDataGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _BackupData BackupData - -// NewBackupData instantiates a new BackupData 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewBackupData(completionTime BackupDataGetCompletionTimeArgType, id BackupDataGetIdArgType, name BackupDataGetNameArgType, retainedUntil BackupDataGetRetainedUntilArgType, size BackupDataGetSizeArgType, types BackupDataGetTypeArgType) *BackupData { - this := BackupData{} - setBackupDataGetCompletionTimeAttributeType(&this.CompletionTime, completionTime) - setBackupDataGetIdAttributeType(&this.Id, id) - setBackupDataGetNameAttributeType(&this.Name, name) - setBackupDataGetRetainedUntilAttributeType(&this.RetainedUntil, retainedUntil) - setBackupDataGetSizeAttributeType(&this.Size, size) - setBackupDataGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewBackupDataWithDefaults instantiates a new BackupData 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewBackupDataWithDefaults() *BackupData { - this := BackupData{} - return &this -} - -// GetCompletionTime returns the CompletionTime field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetCompletionTime() (ret BackupDataGetCompletionTimeRetType) { - ret, _ = o.GetCompletionTimeOk() - return ret -} - -// GetCompletionTimeOk returns a tuple with the CompletionTime field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetCompletionTimeOk() (ret BackupDataGetCompletionTimeRetType, ok bool) { - return getBackupDataGetCompletionTimeAttributeTypeOk(o.CompletionTime) -} - -// SetCompletionTime sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetCompletionTime(v BackupDataGetCompletionTimeRetType) { - setBackupDataGetCompletionTimeAttributeType(&o.CompletionTime, v) -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetId() (ret BackupDataGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetIdOk() (ret BackupDataGetIdRetType, ok bool) { - return getBackupDataGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetId(v BackupDataGetIdRetType) { - setBackupDataGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetName() (ret BackupDataGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetNameOk() (ret BackupDataGetNameRetType, ok bool) { - return getBackupDataGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetName(v BackupDataGetNameRetType) { - setBackupDataGetNameAttributeType(&o.Name, v) -} - -// GetRetainedUntil returns the RetainedUntil field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetRetainedUntil() (ret BackupDataGetRetainedUntilRetType) { - ret, _ = o.GetRetainedUntilOk() - return ret -} - -// GetRetainedUntilOk returns a tuple with the RetainedUntil field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetRetainedUntilOk() (ret BackupDataGetRetainedUntilRetType, ok bool) { - return getBackupDataGetRetainedUntilAttributeTypeOk(o.RetainedUntil) -} - -// SetRetainedUntil sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetRetainedUntil(v BackupDataGetRetainedUntilRetType) { - setBackupDataGetRetainedUntilAttributeType(&o.RetainedUntil, v) -} - -// GetSize returns the Size field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetSize() (ret BackupDataGetSizeRetType) { - ret, _ = o.GetSizeOk() - return ret -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetSizeOk() (ret BackupDataGetSizeRetType, ok bool) { - return getBackupDataGetSizeAttributeTypeOk(o.Size) -} - -// SetSize sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetSize(v BackupDataGetSizeRetType) { - setBackupDataGetSizeAttributeType(&o.Size, v) -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetType() (ret BackupDataGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) GetTypeOk() (ret BackupDataGetTypeRetType, ok bool) { - return getBackupDataGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *BackupData) SetType(v BackupDataGetTypeRetType) { - setBackupDataGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o BackupData) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getBackupDataGetCompletionTimeAttributeTypeOk(o.CompletionTime); ok { - toSerialize["CompletionTime"] = val - } - if val, ok := getBackupDataGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getBackupDataGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getBackupDataGetRetainedUntilAttributeTypeOk(o.RetainedUntil); ok { - toSerialize["RetainedUntil"] = val - } - if val, ok := getBackupDataGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - if val, ok := getBackupDataGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableBackupData struct { - value *BackupData - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupData) Get() *BackupData { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupData) Set(val *BackupData) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupData) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupData) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableBackupData(val *BackupData) *NullableBackupData { - return &NullableBackupData{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupData) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupData) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_backup_data_test.go b/services/postgresflex/model_backup_data_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_backup_data_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_backup_sort.go b/services/postgresflex/model_backup_sort.go deleted file mode 100644 index ed591324e3..0000000000 --- a/services/postgresflex/model_backup_sort.go +++ /dev/null @@ -1,162 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// BackupSort the model 'BackupSort' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type BackupSort string - -// List of backup.sort -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_COMPLETION_TIME_DESC BackupSort = "completion_time.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_COMPLETION_TIME_ASC BackupSort = "completion_time.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_END_TIME_DESC BackupSort = "end_time.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_END_TIME_ASC BackupSort = "end_time.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_NAME_DESC BackupSort = "name.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_NAME_ASC BackupSort = "name.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_RETAINED_UNTIL_DESC BackupSort = "retained_until.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_RETAINED_UNTIL_ASC BackupSort = "retained_until.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_SIZE_DESC BackupSort = "size.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_SIZE_ASC BackupSort = "size.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_TYPE_DESC BackupSort = "type.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - BACKUPSORT_TYPE_ASC BackupSort = "type.asc" -) - -// All allowed values of BackupSort enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedBackupSortEnumValues = []BackupSort{ - "completion_time.desc", - "completion_time.asc", - "end_time.desc", - "end_time.asc", - "name.desc", - "name.asc", - "retained_until.desc", - "retained_until.asc", - "size.desc", - "size.asc", - "type.desc", - "type.asc", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *BackupSort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := BackupSort(value) - for _, existing := range AllowedBackupSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid BackupSort", value) -} - -// NewBackupSortFromValue returns a pointer to a valid BackupSort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewBackupSortFromValue(v string) (*BackupSort, error) { - ev := BackupSort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for BackupSort: valid values are %v", v, AllowedBackupSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v BackupSort) IsValid() bool { - for _, existing := range AllowedBackupSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to backup.sort value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v BackupSort) Ptr() *BackupSort { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableBackupSort struct { - value *BackupSort - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupSort) Get() *BackupSort { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupSort) Set(val *BackupSort) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupSort) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupSort) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableBackupSort(val *BackupSort) *NullableBackupSort { - return &NullableBackupSort{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBackupSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBackupSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_backup_sort_test.go b/services/postgresflex/model_backup_sort_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_backup_sort_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_clone_instance_overrides.go b/services/postgresflex/model_clone_instance_overrides.go deleted file mode 100644 index dcbc8495de..0000000000 --- a/services/postgresflex/model_clone_instance_overrides.go +++ /dev/null @@ -1,263 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CloneInstanceOverrides type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CloneInstanceOverrides{} - -/* - types and functions for class -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetClassAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstanceOverridesGetClassAttributeTypeOk(arg CloneInstanceOverridesGetClassAttributeType) (ret CloneInstanceOverridesGetClassRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstanceOverridesGetClassAttributeType(arg *CloneInstanceOverridesGetClassAttributeType, val CloneInstanceOverridesGetClassRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetClassArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetClassRetType = string - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstanceOverridesGetNameAttributeTypeOk(arg CloneInstanceOverridesGetNameAttributeType) (ret CloneInstanceOverridesGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstanceOverridesGetNameAttributeType(arg *CloneInstanceOverridesGetNameAttributeType, val CloneInstanceOverridesGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetNameRetType = string - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverridesGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstanceOverridesGetSizeAttributeTypeOk(arg CloneInstanceOverridesGetSizeAttributeType) (ret CloneInstanceOverridesGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstanceOverridesGetSizeAttributeType(arg *CloneInstanceOverridesGetSizeAttributeType, val CloneInstanceOverridesGetSizeRetType) { - *arg = &val -} - -// CloneInstanceOverrides struct for CloneInstanceOverrides -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceOverrides struct { - // The storage class for the storage. - // REQUIRED - Class CloneInstanceOverridesGetClassAttributeType `json:"class" required:"true"` - // The name of the cloned instance. If not provided, the default naming behavior of appending '-clone' to the source instance name is used. - Name CloneInstanceOverridesGetNameAttributeType `json:"name,omitempty"` - // The storage size in Gigabytes. - // REQUIRED - Size CloneInstanceOverridesGetSizeAttributeType `json:"size" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CloneInstanceOverrides CloneInstanceOverrides - -// NewCloneInstanceOverrides instantiates a new CloneInstanceOverrides 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstanceOverrides(class CloneInstanceOverridesGetClassArgType, size CloneInstanceOverridesGetSizeArgType) *CloneInstanceOverrides { - this := CloneInstanceOverrides{} - setCloneInstanceOverridesGetClassAttributeType(&this.Class, class) - setCloneInstanceOverridesGetSizeAttributeType(&this.Size, size) - return &this -} - -// NewCloneInstanceOverridesWithDefaults instantiates a new CloneInstanceOverrides 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstanceOverridesWithDefaults() *CloneInstanceOverrides { - this := CloneInstanceOverrides{} - return &this -} - -// GetClass returns the Class field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetClass() (ret CloneInstanceOverridesGetClassRetType) { - ret, _ = o.GetClassOk() - return ret -} - -// GetClassOk returns a tuple with the Class field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetClassOk() (ret CloneInstanceOverridesGetClassRetType, ok bool) { - return getCloneInstanceOverridesGetClassAttributeTypeOk(o.Class) -} - -// SetClass sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) SetClass(v CloneInstanceOverridesGetClassRetType) { - setCloneInstanceOverridesGetClassAttributeType(&o.Class, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetName() (res CloneInstanceOverridesGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetNameOk() (ret CloneInstanceOverridesGetNameRetType, ok bool) { - return getCloneInstanceOverridesGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) SetName(v CloneInstanceOverridesGetNameRetType) { - setCloneInstanceOverridesGetNameAttributeType(&o.Name, v) -} - -// GetSize returns the Size field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetSize() (ret CloneInstanceOverridesGetSizeRetType) { - ret, _ = o.GetSizeOk() - return ret -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) GetSizeOk() (ret CloneInstanceOverridesGetSizeRetType, ok bool) { - return getCloneInstanceOverridesGetSizeAttributeTypeOk(o.Size) -} - -// SetSize sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceOverrides) SetSize(v CloneInstanceOverridesGetSizeRetType) { - setCloneInstanceOverridesGetSizeAttributeType(&o.Size, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CloneInstanceOverrides) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCloneInstanceOverridesGetClassAttributeTypeOk(o.Class); ok { - toSerialize["Class"] = val - } - if val, ok := getCloneInstanceOverridesGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCloneInstanceOverridesGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCloneInstanceOverrides struct { - value *CloneInstanceOverrides - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceOverrides) Get() *CloneInstanceOverrides { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceOverrides) Set(val *CloneInstanceOverrides) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceOverrides) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceOverrides) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCloneInstanceOverrides(val *CloneInstanceOverrides) *NullableCloneInstanceOverrides { - return &NullableCloneInstanceOverrides{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceOverrides) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceOverrides) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_clone_instance_overrides_test.go b/services/postgresflex/model_clone_instance_overrides_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_clone_instance_overrides_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_clone_instance_payload.go b/services/postgresflex/model_clone_instance_payload.go deleted file mode 100644 index b5671edd47..0000000000 --- a/services/postgresflex/model_clone_instance_payload.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "time" -) - -// checks if the CloneInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CloneInstancePayload{} - -/* - types and functions for instanceOverrides -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetInstanceOverridesAttributeType = *CloneInstanceOverrides - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetInstanceOverridesArgType = CloneInstanceOverrides - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetInstanceOverridesRetType = CloneInstanceOverrides - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstancePayloadGetInstanceOverridesAttributeTypeOk(arg CloneInstancePayloadGetInstanceOverridesAttributeType) (ret CloneInstancePayloadGetInstanceOverridesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstancePayloadGetInstanceOverridesAttributeType(arg *CloneInstancePayloadGetInstanceOverridesAttributeType, val CloneInstancePayloadGetInstanceOverridesRetType) { - *arg = &val -} - -/* - types and functions for pointInTime -*/ - -// isDateTime -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetPointInTimeAttributeType = *time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetPointInTimeArgType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayloadGetPointInTimeRetType = time.Time - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstancePayloadGetPointInTimeAttributeTypeOk(arg CloneInstancePayloadGetPointInTimeAttributeType) (ret CloneInstancePayloadGetPointInTimeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstancePayloadGetPointInTimeAttributeType(arg *CloneInstancePayloadGetPointInTimeAttributeType, val CloneInstancePayloadGetPointInTimeRetType) { - *arg = &val -} - -// CloneInstancePayload struct for CloneInstancePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstancePayload struct { - // REQUIRED - InstanceOverrides CloneInstancePayloadGetInstanceOverridesAttributeType `json:"instanceOverrides" required:"true"` - // the time for the point in time recovery it will be calculated between first backup and last backup - // REQUIRED - PointInTime CloneInstancePayloadGetPointInTimeAttributeType `json:"pointInTime" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CloneInstancePayload CloneInstancePayload - -// NewCloneInstancePayload instantiates a new CloneInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstancePayload(instanceOverrides CloneInstancePayloadGetInstanceOverridesArgType, pointInTime CloneInstancePayloadGetPointInTimeArgType) *CloneInstancePayload { - this := CloneInstancePayload{} - setCloneInstancePayloadGetInstanceOverridesAttributeType(&this.InstanceOverrides, instanceOverrides) - setCloneInstancePayloadGetPointInTimeAttributeType(&this.PointInTime, pointInTime) - return &this -} - -// NewCloneInstancePayloadWithDefaults instantiates a new CloneInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstancePayloadWithDefaults() *CloneInstancePayload { - this := CloneInstancePayload{} - return &this -} - -// GetInstanceOverrides returns the InstanceOverrides field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) GetInstanceOverrides() (ret CloneInstancePayloadGetInstanceOverridesRetType) { - ret, _ = o.GetInstanceOverridesOk() - return ret -} - -// GetInstanceOverridesOk returns a tuple with the InstanceOverrides field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) GetInstanceOverridesOk() (ret CloneInstancePayloadGetInstanceOverridesRetType, ok bool) { - return getCloneInstancePayloadGetInstanceOverridesAttributeTypeOk(o.InstanceOverrides) -} - -// SetInstanceOverrides sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) SetInstanceOverrides(v CloneInstancePayloadGetInstanceOverridesRetType) { - setCloneInstancePayloadGetInstanceOverridesAttributeType(&o.InstanceOverrides, v) -} - -// GetPointInTime returns the PointInTime field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) GetPointInTime() (ret CloneInstancePayloadGetPointInTimeRetType) { - ret, _ = o.GetPointInTimeOk() - return ret -} - -// GetPointInTimeOk returns a tuple with the PointInTime field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) GetPointInTimeOk() (ret CloneInstancePayloadGetPointInTimeRetType, ok bool) { - return getCloneInstancePayloadGetPointInTimeAttributeTypeOk(o.PointInTime) -} - -// SetPointInTime sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstancePayload) SetPointInTime(v CloneInstancePayloadGetPointInTimeRetType) { - setCloneInstancePayloadGetPointInTimeAttributeType(&o.PointInTime, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CloneInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCloneInstancePayloadGetInstanceOverridesAttributeTypeOk(o.InstanceOverrides); ok { - toSerialize["InstanceOverrides"] = val - } - if val, ok := getCloneInstancePayloadGetPointInTimeAttributeTypeOk(o.PointInTime); ok { - toSerialize["PointInTime"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCloneInstancePayload struct { - value *CloneInstancePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstancePayload) Get() *CloneInstancePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstancePayload) Set(val *CloneInstancePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstancePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCloneInstancePayload(val *CloneInstancePayload) *NullableCloneInstancePayload { - return &NullableCloneInstancePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_clone_instance_payload_test.go b/services/postgresflex/model_clone_instance_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_clone_instance_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_clone_instance_response.go b/services/postgresflex/model_clone_instance_response.go deleted file mode 100644 index 758d9c523d..0000000000 --- a/services/postgresflex/model_clone_instance_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CloneInstanceResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CloneInstanceResponse{} - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceResponseGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCloneInstanceResponseGetIdAttributeTypeOk(arg CloneInstanceResponseGetIdAttributeType) (ret CloneInstanceResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCloneInstanceResponseGetIdAttributeType(arg *CloneInstanceResponseGetIdAttributeType, val CloneInstanceResponseGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceResponseGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceResponseGetIdRetType = string - -// CloneInstanceResponse struct for CloneInstanceResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CloneInstanceResponse struct { - // The ID of the instance. - // REQUIRED - Id CloneInstanceResponseGetIdAttributeType `json:"id" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CloneInstanceResponse CloneInstanceResponse - -// NewCloneInstanceResponse instantiates a new CloneInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstanceResponse(id CloneInstanceResponseGetIdArgType) *CloneInstanceResponse { - this := CloneInstanceResponse{} - setCloneInstanceResponseGetIdAttributeType(&this.Id, id) - return &this -} - -// NewCloneInstanceResponseWithDefaults instantiates a new CloneInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCloneInstanceResponseWithDefaults() *CloneInstanceResponse { - this := CloneInstanceResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceResponse) GetId() (ret CloneInstanceResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceResponse) GetIdOk() (ret CloneInstanceResponseGetIdRetType, ok bool) { - return getCloneInstanceResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CloneInstanceResponse) SetId(v CloneInstanceResponseGetIdRetType) { - setCloneInstanceResponseGetIdAttributeType(&o.Id, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CloneInstanceResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCloneInstanceResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCloneInstanceResponse struct { - value *CloneInstanceResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceResponse) Get() *CloneInstanceResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceResponse) Set(val *CloneInstanceResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCloneInstanceResponse(val *CloneInstanceResponse) *NullableCloneInstanceResponse { - return &NullableCloneInstanceResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCloneInstanceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCloneInstanceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_clone_instance_response_test.go b/services/postgresflex/model_clone_instance_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_clone_instance_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_database_payload.go b/services/postgresflex/model_create_database_payload.go deleted file mode 100644 index f75261785f..0000000000 --- a/services/postgresflex/model_create_database_payload.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateDatabasePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateDatabasePayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateDatabasePayloadGetNameAttributeTypeOk(arg CreateDatabasePayloadGetNameAttributeType) (ret CreateDatabasePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateDatabasePayloadGetNameAttributeType(arg *CreateDatabasePayloadGetNameAttributeType, val CreateDatabasePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetNameRetType = string - -/* - types and functions for owner -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetOwnerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateDatabasePayloadGetOwnerAttributeTypeOk(arg CreateDatabasePayloadGetOwnerAttributeType) (ret CreateDatabasePayloadGetOwnerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateDatabasePayloadGetOwnerAttributeType(arg *CreateDatabasePayloadGetOwnerAttributeType, val CreateDatabasePayloadGetOwnerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetOwnerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayloadGetOwnerRetType = string - -// CreateDatabasePayload struct for CreateDatabasePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - // REQUIRED - Name CreateDatabasePayloadGetNameAttributeType `json:"name" required:"true"` - // The owner of the database. - Owner CreateDatabasePayloadGetOwnerAttributeType `json:"owner,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateDatabasePayload CreateDatabasePayload - -// NewCreateDatabasePayload instantiates a new CreateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateDatabasePayload(name CreateDatabasePayloadGetNameArgType) *CreateDatabasePayload { - this := CreateDatabasePayload{} - setCreateDatabasePayloadGetNameAttributeType(&this.Name, name) - return &this -} - -// NewCreateDatabasePayloadWithDefaults instantiates a new CreateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateDatabasePayloadWithDefaults() *CreateDatabasePayload { - this := CreateDatabasePayload{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) GetName() (ret CreateDatabasePayloadGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) GetNameOk() (ret CreateDatabasePayloadGetNameRetType, ok bool) { - return getCreateDatabasePayloadGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) SetName(v CreateDatabasePayloadGetNameRetType) { - setCreateDatabasePayloadGetNameAttributeType(&o.Name, v) -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) GetOwner() (res CreateDatabasePayloadGetOwnerRetType) { - res, _ = o.GetOwnerOk() - return -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) GetOwnerOk() (ret CreateDatabasePayloadGetOwnerRetType, ok bool) { - return getCreateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner) -} - -// HasOwner returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) HasOwner() bool { - _, ok := o.GetOwnerOk() - return ok -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabasePayload) SetOwner(v CreateDatabasePayloadGetOwnerRetType) { - setCreateDatabasePayloadGetOwnerAttributeType(&o.Owner, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateDatabasePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateDatabasePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCreateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner); ok { - toSerialize["Owner"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateDatabasePayload struct { - value *CreateDatabasePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabasePayload) Get() *CreateDatabasePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabasePayload) Set(val *CreateDatabasePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabasePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabasePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateDatabasePayload(val *CreateDatabasePayload) *NullableCreateDatabasePayload { - return &NullableCreateDatabasePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabasePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabasePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_database_payload_test.go b/services/postgresflex/model_create_database_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_database_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_database_response.go b/services/postgresflex/model_create_database_response.go deleted file mode 100644 index 40d56a2341..0000000000 --- a/services/postgresflex/model_create_database_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateDatabaseResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateDatabaseResponse{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabaseResponseGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabaseResponseGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabaseResponseGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateDatabaseResponseGetIdAttributeTypeOk(arg CreateDatabaseResponseGetIdAttributeType) (ret CreateDatabaseResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateDatabaseResponseGetIdAttributeType(arg *CreateDatabaseResponseGetIdAttributeType, val CreateDatabaseResponseGetIdRetType) { - *arg = &val -} - -// CreateDatabaseResponse struct for CreateDatabaseResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateDatabaseResponse struct { - // The id of the database. - // REQUIRED - Id CreateDatabaseResponseGetIdAttributeType `json:"id" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateDatabaseResponse CreateDatabaseResponse - -// NewCreateDatabaseResponse instantiates a new CreateDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateDatabaseResponse(id CreateDatabaseResponseGetIdArgType) *CreateDatabaseResponse { - this := CreateDatabaseResponse{} - setCreateDatabaseResponseGetIdAttributeType(&this.Id, id) - return &this -} - -// NewCreateDatabaseResponseWithDefaults instantiates a new CreateDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateDatabaseResponseWithDefaults() *CreateDatabaseResponse { - this := CreateDatabaseResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabaseResponse) GetId() (ret CreateDatabaseResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabaseResponse) GetIdOk() (ret CreateDatabaseResponseGetIdRetType, ok bool) { - return getCreateDatabaseResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateDatabaseResponse) SetId(v CreateDatabaseResponseGetIdRetType) { - setCreateDatabaseResponseGetIdAttributeType(&o.Id, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateDatabaseResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateDatabaseResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateDatabaseResponse struct { - value *CreateDatabaseResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabaseResponse) Get() *CreateDatabaseResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabaseResponse) Set(val *CreateDatabaseResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabaseResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabaseResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateDatabaseResponse(val *CreateDatabaseResponse) *NullableCreateDatabaseResponse { - return &NullableCreateDatabaseResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateDatabaseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateDatabaseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_database_response_test.go b/services/postgresflex/model_create_database_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_database_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_instance_payload.go b/services/postgresflex/model_create_instance_payload.go deleted file mode 100644 index 725f3af945..0000000000 --- a/services/postgresflex/model_create_instance_payload.go +++ /dev/null @@ -1,592 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateInstancePayload{} - -/* - types and functions for backupSchedule -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetBackupScheduleAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetBackupScheduleAttributeTypeOk(arg CreateInstancePayloadGetBackupScheduleAttributeType) (ret CreateInstancePayloadGetBackupScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetBackupScheduleAttributeType(arg *CreateInstancePayloadGetBackupScheduleAttributeType, val CreateInstancePayloadGetBackupScheduleRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetBackupScheduleArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetBackupScheduleRetType = string - -/* - types and functions for encryption -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetEncryptionAttributeType = *InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetEncryptionArgType = InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetEncryptionRetType = InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetEncryptionAttributeTypeOk(arg CreateInstancePayloadGetEncryptionAttributeType) (ret CreateInstancePayloadGetEncryptionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetEncryptionAttributeType(arg *CreateInstancePayloadGetEncryptionAttributeType, val CreateInstancePayloadGetEncryptionRetType) { - *arg = &val -} - -/* - types and functions for flavorId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetFlavorIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetFlavorIdAttributeTypeOk(arg CreateInstancePayloadGetFlavorIdAttributeType) (ret CreateInstancePayloadGetFlavorIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetFlavorIdAttributeType(arg *CreateInstancePayloadGetFlavorIdAttributeType, val CreateInstancePayloadGetFlavorIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetFlavorIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetFlavorIdRetType = string - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetLabelsAttributeTypeOk(arg CreateInstancePayloadGetLabelsAttributeType) (ret CreateInstancePayloadGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetLabelsAttributeType(arg *CreateInstancePayloadGetLabelsAttributeType, val CreateInstancePayloadGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetNameAttributeTypeOk(arg CreateInstancePayloadGetNameAttributeType) (ret CreateInstancePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetNameAttributeType(arg *CreateInstancePayloadGetNameAttributeType, val CreateInstancePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNameRetType = string - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNetworkAttributeType = *InstanceNetworkCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNetworkArgType = InstanceNetworkCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetNetworkRetType = InstanceNetworkCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetNetworkAttributeTypeOk(arg CreateInstancePayloadGetNetworkAttributeType) (ret CreateInstancePayloadGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetNetworkAttributeType(arg *CreateInstancePayloadGetNetworkAttributeType, val CreateInstancePayloadGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for retentionDays -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetRetentionDaysAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetRetentionDaysArgType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetRetentionDaysRetType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetRetentionDaysAttributeTypeOk(arg CreateInstancePayloadGetRetentionDaysAttributeType) (ret CreateInstancePayloadGetRetentionDaysRetType, ok bool) { - if arg == nil { - return nil, false - } - return arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetRetentionDaysAttributeType(arg *CreateInstancePayloadGetRetentionDaysAttributeType, val CreateInstancePayloadGetRetentionDaysRetType) { - *arg = val -} - -/* - types and functions for storage -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetStorageAttributeType = *StorageCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetStorageArgType = StorageCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetStorageRetType = StorageCreate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetStorageAttributeTypeOk(arg CreateInstancePayloadGetStorageAttributeType) (ret CreateInstancePayloadGetStorageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetStorageAttributeType(arg *CreateInstancePayloadGetStorageAttributeType, val CreateInstancePayloadGetStorageRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstancePayloadGetVersionAttributeTypeOk(arg CreateInstancePayloadGetVersionAttributeType) (ret CreateInstancePayloadGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstancePayloadGetVersionAttributeType(arg *CreateInstancePayloadGetVersionAttributeType, val CreateInstancePayloadGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayloadGetVersionRetType = string - -// CreateInstancePayload struct for CreateInstancePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstancePayload struct { - // The schedule for when the database backup will be created. Currently, ONLY daily schedules are supported (every 24 hours). The schedule is written as a cron schedule. - // REQUIRED - BackupSchedule CreateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` - Encryption CreateInstancePayloadGetEncryptionAttributeType `json:"encryption,omitempty"` - // The id of the instance flavor. - // REQUIRED - FlavorId CreateInstancePayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"` - // Key-value pairs, 63 characters max, begin and end with an alphanumerical character, may contain dashes (-), underscores (_), dots (.), and alphanumerics between. Key MUST be at least 1 character. Max 64 labels Regex for keys: ^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ Regex for values: ^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$ The stackit- prefix is reserved and cannot be used for Keys. - Labels CreateInstancePayloadGetLabelsAttributeType `json:"labels,omitempty"` - // The name of the instance. - // REQUIRED - Name CreateInstancePayloadGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - Network CreateInstancePayloadGetNetworkAttributeType `json:"network" required:"true"` - // How long backups are retained. The value can only be between 32 and 90 days. - // Can be cast to int32 without loss of precision. - // REQUIRED - RetentionDays CreateInstancePayloadGetRetentionDaysAttributeType `json:"retentionDays" required:"true"` - // REQUIRED - Storage CreateInstancePayloadGetStorageAttributeType `json:"storage" required:"true"` - // The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3#tag/Version) for supported version parameters. - // REQUIRED - Version CreateInstancePayloadGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateInstancePayload CreateInstancePayload - -// NewCreateInstancePayload instantiates a new CreateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateInstancePayload(backupSchedule CreateInstancePayloadGetBackupScheduleArgType, flavorId CreateInstancePayloadGetFlavorIdArgType, name CreateInstancePayloadGetNameArgType, network CreateInstancePayloadGetNetworkArgType, retentionDays CreateInstancePayloadGetRetentionDaysArgType, storage CreateInstancePayloadGetStorageArgType, version CreateInstancePayloadGetVersionArgType) *CreateInstancePayload { - this := CreateInstancePayload{} - setCreateInstancePayloadGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule) - setCreateInstancePayloadGetFlavorIdAttributeType(&this.FlavorId, flavorId) - setCreateInstancePayloadGetNameAttributeType(&this.Name, name) - setCreateInstancePayloadGetNetworkAttributeType(&this.Network, network) - setCreateInstancePayloadGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays) - setCreateInstancePayloadGetStorageAttributeType(&this.Storage, storage) - setCreateInstancePayloadGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewCreateInstancePayloadWithDefaults instantiates a new CreateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateInstancePayloadWithDefaults() *CreateInstancePayload { - this := CreateInstancePayload{} - return &this -} - -// GetBackupSchedule returns the BackupSchedule field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetBackupSchedule() (ret CreateInstancePayloadGetBackupScheduleRetType) { - ret, _ = o.GetBackupScheduleOk() - return ret -} - -// GetBackupScheduleOk returns a tuple with the BackupSchedule field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetBackupScheduleOk() (ret CreateInstancePayloadGetBackupScheduleRetType, ok bool) { - return getCreateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule) -} - -// SetBackupSchedule sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetBackupSchedule(v CreateInstancePayloadGetBackupScheduleRetType) { - setCreateInstancePayloadGetBackupScheduleAttributeType(&o.BackupSchedule, v) -} - -// GetEncryption returns the Encryption field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetEncryption() (res CreateInstancePayloadGetEncryptionRetType) { - res, _ = o.GetEncryptionOk() - return -} - -// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetEncryptionOk() (ret CreateInstancePayloadGetEncryptionRetType, ok bool) { - return getCreateInstancePayloadGetEncryptionAttributeTypeOk(o.Encryption) -} - -// HasEncryption returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) HasEncryption() bool { - _, ok := o.GetEncryptionOk() - return ok -} - -// SetEncryption gets a reference to the given InstanceEncryption and assigns it to the Encryption field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetEncryption(v CreateInstancePayloadGetEncryptionRetType) { - setCreateInstancePayloadGetEncryptionAttributeType(&o.Encryption, v) -} - -// GetFlavorId returns the FlavorId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetFlavorId() (ret CreateInstancePayloadGetFlavorIdRetType) { - ret, _ = o.GetFlavorIdOk() - return ret -} - -// GetFlavorIdOk returns a tuple with the FlavorId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetFlavorIdOk() (ret CreateInstancePayloadGetFlavorIdRetType, ok bool) { - return getCreateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId) -} - -// SetFlavorId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetFlavorId(v CreateInstancePayloadGetFlavorIdRetType) { - setCreateInstancePayloadGetFlavorIdAttributeType(&o.FlavorId, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetLabels() (res CreateInstancePayloadGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetLabelsOk() (ret CreateInstancePayloadGetLabelsRetType, ok bool) { - return getCreateInstancePayloadGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetLabels(v CreateInstancePayloadGetLabelsRetType) { - setCreateInstancePayloadGetLabelsAttributeType(&o.Labels, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetName() (ret CreateInstancePayloadGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetNameOk() (ret CreateInstancePayloadGetNameRetType, ok bool) { - return getCreateInstancePayloadGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetName(v CreateInstancePayloadGetNameRetType) { - setCreateInstancePayloadGetNameAttributeType(&o.Name, v) -} - -// GetNetwork returns the Network field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetNetwork() (ret CreateInstancePayloadGetNetworkRetType) { - ret, _ = o.GetNetworkOk() - return ret -} - -// GetNetworkOk returns a tuple with the Network field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetNetworkOk() (ret CreateInstancePayloadGetNetworkRetType, ok bool) { - return getCreateInstancePayloadGetNetworkAttributeTypeOk(o.Network) -} - -// SetNetwork sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetNetwork(v CreateInstancePayloadGetNetworkRetType) { - setCreateInstancePayloadGetNetworkAttributeType(&o.Network, v) -} - -// GetRetentionDays returns the RetentionDays field value -// If the value is explicit nil, the zero value for int32 will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetRetentionDays() (ret CreateInstancePayloadGetRetentionDaysRetType) { - ret, _ = o.GetRetentionDaysOk() - return ret -} - -// GetRetentionDaysOk returns a tuple with the RetentionDays field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetRetentionDaysOk() (ret CreateInstancePayloadGetRetentionDaysRetType, ok bool) { - return getCreateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays) -} - -// SetRetentionDays sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetRetentionDays(v CreateInstancePayloadGetRetentionDaysRetType) { - setCreateInstancePayloadGetRetentionDaysAttributeType(&o.RetentionDays, v) -} - -// GetStorage returns the Storage field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetStorage() (ret CreateInstancePayloadGetStorageRetType) { - ret, _ = o.GetStorageOk() - return ret -} - -// GetStorageOk returns a tuple with the Storage field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetStorageOk() (ret CreateInstancePayloadGetStorageRetType, ok bool) { - return getCreateInstancePayloadGetStorageAttributeTypeOk(o.Storage) -} - -// SetStorage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetStorage(v CreateInstancePayloadGetStorageRetType) { - setCreateInstancePayloadGetStorageAttributeType(&o.Storage, v) -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetVersion() (ret CreateInstancePayloadGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) GetVersionOk() (ret CreateInstancePayloadGetVersionRetType, ok bool) { - return getCreateInstancePayloadGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstancePayload) SetVersion(v CreateInstancePayloadGetVersionRetType) { - setCreateInstancePayloadGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok { - toSerialize["BackupSchedule"] = val - } - if val, ok := getCreateInstancePayloadGetEncryptionAttributeTypeOk(o.Encryption); ok { - toSerialize["Encryption"] = val - } - if val, ok := getCreateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId); ok { - toSerialize["FlavorId"] = val - } - if val, ok := getCreateInstancePayloadGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getCreateInstancePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCreateInstancePayloadGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getCreateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok { - toSerialize["RetentionDays"] = val - } - if val, ok := getCreateInstancePayloadGetStorageAttributeTypeOk(o.Storage); ok { - toSerialize["Storage"] = val - } - if val, ok := getCreateInstancePayloadGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateInstancePayload struct { - value *CreateInstancePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstancePayload) Get() *CreateInstancePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstancePayload) Set(val *CreateInstancePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstancePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateInstancePayload(val *CreateInstancePayload) *NullableCreateInstancePayload { - return &NullableCreateInstancePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_instance_payload_test.go b/services/postgresflex/model_create_instance_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_instance_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_instance_response.go b/services/postgresflex/model_create_instance_response.go deleted file mode 100644 index 405ec8e30d..0000000000 --- a/services/postgresflex/model_create_instance_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateInstanceResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateInstanceResponse{} - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstanceResponseGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateInstanceResponseGetIdAttributeTypeOk(arg CreateInstanceResponseGetIdAttributeType) (ret CreateInstanceResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateInstanceResponseGetIdAttributeType(arg *CreateInstanceResponseGetIdAttributeType, val CreateInstanceResponseGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstanceResponseGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstanceResponseGetIdRetType = string - -// CreateInstanceResponse struct for CreateInstanceResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateInstanceResponse struct { - // The ID of the instance. - // REQUIRED - Id CreateInstanceResponseGetIdAttributeType `json:"id" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateInstanceResponse CreateInstanceResponse - -// NewCreateInstanceResponse instantiates a new CreateInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateInstanceResponse(id CreateInstanceResponseGetIdArgType) *CreateInstanceResponse { - this := CreateInstanceResponse{} - setCreateInstanceResponseGetIdAttributeType(&this.Id, id) - return &this -} - -// NewCreateInstanceResponseWithDefaults instantiates a new CreateInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateInstanceResponseWithDefaults() *CreateInstanceResponse { - this := CreateInstanceResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstanceResponse) GetId() (ret CreateInstanceResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstanceResponse) GetIdOk() (ret CreateInstanceResponseGetIdRetType, ok bool) { - return getCreateInstanceResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateInstanceResponse) SetId(v CreateInstanceResponseGetIdRetType) { - setCreateInstanceResponseGetIdAttributeType(&o.Id, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateInstanceResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateInstanceResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateInstanceResponse struct { - value *CreateInstanceResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstanceResponse) Get() *CreateInstanceResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstanceResponse) Set(val *CreateInstanceResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstanceResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstanceResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateInstanceResponse(val *CreateInstanceResponse) *NullableCreateInstanceResponse { - return &NullableCreateInstanceResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateInstanceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateInstanceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_instance_response_test.go b/services/postgresflex/model_create_instance_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_instance_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_user_payload.go b/services/postgresflex/model_create_user_payload.go deleted file mode 100644 index c94ad78290..0000000000 --- a/services/postgresflex/model_create_user_payload.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateUserPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateUserPayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserPayloadGetNameAttributeTypeOk(arg CreateUserPayloadGetNameAttributeType) (ret CreateUserPayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserPayloadGetNameAttributeType(arg *CreateUserPayloadGetNameAttributeType, val CreateUserPayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetNameRetType = string - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayloadGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserPayloadGetRolesAttributeTypeOk(arg CreateUserPayloadGetRolesAttributeType) (ret CreateUserPayloadGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserPayloadGetRolesAttributeType(arg *CreateUserPayloadGetRolesAttributeType, val CreateUserPayloadGetRolesRetType) { - *arg = &val -} - -// CreateUserPayload struct for CreateUserPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserPayload struct { - // The name of the user. - // REQUIRED - Name CreateUserPayloadGetNameAttributeType `json:"name" required:"true"` - // A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. - Roles CreateUserPayloadGetRolesAttributeType `json:"roles,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateUserPayload CreateUserPayload - -// NewCreateUserPayload instantiates a new CreateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateUserPayload(name CreateUserPayloadGetNameArgType) *CreateUserPayload { - this := CreateUserPayload{} - setCreateUserPayloadGetNameAttributeType(&this.Name, name) - return &this -} - -// NewCreateUserPayloadWithDefaults instantiates a new CreateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateUserPayloadWithDefaults() *CreateUserPayload { - this := CreateUserPayload{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) GetName() (ret CreateUserPayloadGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) GetNameOk() (ret CreateUserPayloadGetNameRetType, ok bool) { - return getCreateUserPayloadGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) SetName(v CreateUserPayloadGetNameRetType) { - setCreateUserPayloadGetNameAttributeType(&o.Name, v) -} - -// GetRoles returns the Roles field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) GetRoles() (res CreateUserPayloadGetRolesRetType) { - res, _ = o.GetRolesOk() - return -} - -// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) GetRolesOk() (ret CreateUserPayloadGetRolesRetType, ok bool) { - return getCreateUserPayloadGetRolesAttributeTypeOk(o.Roles) -} - -// HasRoles returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) HasRoles() bool { - _, ok := o.GetRolesOk() - return ok -} - -// SetRoles gets a reference to the given []string and assigns it to the Roles field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserPayload) SetRoles(v CreateUserPayloadGetRolesRetType) { - setCreateUserPayloadGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateUserPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateUserPayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCreateUserPayloadGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateUserPayload struct { - value *CreateUserPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserPayload) Get() *CreateUserPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserPayload) Set(val *CreateUserPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateUserPayload(val *CreateUserPayload) *NullableCreateUserPayload { - return &NullableCreateUserPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_user_payload_test.go b/services/postgresflex/model_create_user_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_user_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_create_user_response.go b/services/postgresflex/model_create_user_response.go deleted file mode 100644 index 8ee82726d7..0000000000 --- a/services/postgresflex/model_create_user_response.go +++ /dev/null @@ -1,312 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the CreateUserResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &CreateUserResponse{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserResponseGetIdAttributeTypeOk(arg CreateUserResponseGetIdAttributeType) (ret CreateUserResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserResponseGetIdAttributeType(arg *CreateUserResponseGetIdAttributeType, val CreateUserResponseGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserResponseGetNameAttributeTypeOk(arg CreateUserResponseGetNameAttributeType) (ret CreateUserResponseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserResponseGetNameAttributeType(arg *CreateUserResponseGetNameAttributeType, val CreateUserResponseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetNameRetType = string - -/* - types and functions for password -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetPasswordAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserResponseGetPasswordAttributeTypeOk(arg CreateUserResponseGetPasswordAttributeType) (ret CreateUserResponseGetPasswordRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserResponseGetPasswordAttributeType(arg *CreateUserResponseGetPasswordAttributeType, val CreateUserResponseGetPasswordRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetPasswordArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetPasswordRetType = string - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getCreateUserResponseGetStateAttributeTypeOk(arg CreateUserResponseGetStateAttributeType) (ret CreateUserResponseGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setCreateUserResponseGetStateAttributeType(arg *CreateUserResponseGetStateAttributeType, val CreateUserResponseGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponseGetStateRetType = string - -// CreateUserResponse struct for CreateUserResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type CreateUserResponse struct { - // The ID of the user. - // REQUIRED - Id CreateUserResponseGetIdAttributeType `json:"id" required:"true"` - // The name of the user. - // REQUIRED - Name CreateUserResponseGetNameAttributeType `json:"name" required:"true"` - // The password for the user. - // REQUIRED - Password CreateUserResponseGetPasswordAttributeType `json:"password" required:"true"` - // The current state of the user. - // REQUIRED - State CreateUserResponseGetStateAttributeType `json:"state" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _CreateUserResponse CreateUserResponse - -// NewCreateUserResponse instantiates a new CreateUserResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateUserResponse(id CreateUserResponseGetIdArgType, name CreateUserResponseGetNameArgType, password CreateUserResponseGetPasswordArgType, state CreateUserResponseGetStateArgType) *CreateUserResponse { - this := CreateUserResponse{} - setCreateUserResponseGetIdAttributeType(&this.Id, id) - setCreateUserResponseGetNameAttributeType(&this.Name, name) - setCreateUserResponseGetPasswordAttributeType(&this.Password, password) - setCreateUserResponseGetStateAttributeType(&this.State, state) - return &this -} - -// NewCreateUserResponseWithDefaults instantiates a new CreateUserResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewCreateUserResponseWithDefaults() *CreateUserResponse { - this := CreateUserResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetId() (ret CreateUserResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetIdOk() (ret CreateUserResponseGetIdRetType, ok bool) { - return getCreateUserResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) SetId(v CreateUserResponseGetIdRetType) { - setCreateUserResponseGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetName() (ret CreateUserResponseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetNameOk() (ret CreateUserResponseGetNameRetType, ok bool) { - return getCreateUserResponseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) SetName(v CreateUserResponseGetNameRetType) { - setCreateUserResponseGetNameAttributeType(&o.Name, v) -} - -// GetPassword returns the Password field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetPassword() (ret CreateUserResponseGetPasswordRetType) { - ret, _ = o.GetPasswordOk() - return ret -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetPasswordOk() (ret CreateUserResponseGetPasswordRetType, ok bool) { - return getCreateUserResponseGetPasswordAttributeTypeOk(o.Password) -} - -// SetPassword sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) SetPassword(v CreateUserResponseGetPasswordRetType) { - setCreateUserResponseGetPasswordAttributeType(&o.Password, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetState() (ret CreateUserResponseGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) GetStateOk() (ret CreateUserResponseGetStateRetType, ok bool) { - return getCreateUserResponseGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *CreateUserResponse) SetState(v CreateUserResponseGetStateRetType) { - setCreateUserResponseGetStateAttributeType(&o.State, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o CreateUserResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getCreateUserResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getCreateUserResponseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getCreateUserResponseGetPasswordAttributeTypeOk(o.Password); ok { - toSerialize["Password"] = val - } - if val, ok := getCreateUserResponseGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableCreateUserResponse struct { - value *CreateUserResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserResponse) Get() *CreateUserResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserResponse) Set(val *CreateUserResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableCreateUserResponse(val *CreateUserResponse) *NullableCreateUserResponse { - return &NullableCreateUserResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableCreateUserResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableCreateUserResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_create_user_response_test.go b/services/postgresflex/model_create_user_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_create_user_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_database_roles.go b/services/postgresflex/model_database_roles.go deleted file mode 100644 index 3f10cc6648..0000000000 --- a/services/postgresflex/model_database_roles.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the DatabaseRoles type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &DatabaseRoles{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getDatabaseRolesGetNameAttributeTypeOk(arg DatabaseRolesGetNameAttributeType) (ret DatabaseRolesGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setDatabaseRolesGetNameAttributeType(arg *DatabaseRolesGetNameAttributeType, val DatabaseRolesGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetNameRetType = string - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRolesGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getDatabaseRolesGetRolesAttributeTypeOk(arg DatabaseRolesGetRolesAttributeType) (ret DatabaseRolesGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setDatabaseRolesGetRolesAttributeType(arg *DatabaseRolesGetRolesAttributeType, val DatabaseRolesGetRolesRetType) { - *arg = &val -} - -// DatabaseRoles The name and the roles for a database for a user. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseRoles struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - // REQUIRED - Name DatabaseRolesGetNameAttributeType `json:"name" required:"true"` - // The name and the roles for a database - // REQUIRED - Roles DatabaseRolesGetRolesAttributeType `json:"roles" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _DatabaseRoles DatabaseRoles - -// NewDatabaseRoles instantiates a new DatabaseRoles 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewDatabaseRoles(name DatabaseRolesGetNameArgType, roles DatabaseRolesGetRolesArgType) *DatabaseRoles { - this := DatabaseRoles{} - setDatabaseRolesGetNameAttributeType(&this.Name, name) - setDatabaseRolesGetRolesAttributeType(&this.Roles, roles) - return &this -} - -// NewDatabaseRolesWithDefaults instantiates a new DatabaseRoles 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewDatabaseRolesWithDefaults() *DatabaseRoles { - this := DatabaseRoles{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) GetName() (ret DatabaseRolesGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) GetNameOk() (ret DatabaseRolesGetNameRetType, ok bool) { - return getDatabaseRolesGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) SetName(v DatabaseRolesGetNameRetType) { - setDatabaseRolesGetNameAttributeType(&o.Name, v) -} - -// GetRoles returns the Roles field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) GetRoles() (ret DatabaseRolesGetRolesRetType) { - ret, _ = o.GetRolesOk() - return ret -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) GetRolesOk() (ret DatabaseRolesGetRolesRetType, ok bool) { - return getDatabaseRolesGetRolesAttributeTypeOk(o.Roles) -} - -// SetRoles sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *DatabaseRoles) SetRoles(v DatabaseRolesGetRolesRetType) { - setDatabaseRolesGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o DatabaseRoles) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getDatabaseRolesGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getDatabaseRolesGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableDatabaseRoles struct { - value *DatabaseRoles - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseRoles) Get() *DatabaseRoles { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseRoles) Set(val *DatabaseRoles) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseRoles) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseRoles) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableDatabaseRoles(val *DatabaseRoles) *NullableDatabaseRoles { - return &NullableDatabaseRoles{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseRoles) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseRoles) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_database_roles_test.go b/services/postgresflex/model_database_roles_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_database_roles_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_database_sort.go b/services/postgresflex/model_database_sort.go deleted file mode 100644 index d576f4e6f2..0000000000 --- a/services/postgresflex/model_database_sort.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// DatabaseSort the model 'DatabaseSort' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type DatabaseSort string - -// List of database.sort -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_CREATED_AT_DESC DatabaseSort = "created_at.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_CREATED_AT_ASC DatabaseSort = "created_at.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_ID_DESC DatabaseSort = "database_id.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_ID_ASC DatabaseSort = "database_id.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_NAME_DESC DatabaseSort = "database_name.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_NAME_ASC DatabaseSort = "database_name.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_OWNER_DESC DatabaseSort = "database_owner.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - DATABASESORT_DATABASE_OWNER_ASC DatabaseSort = "database_owner.asc" -) - -// All allowed values of DatabaseSort enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedDatabaseSortEnumValues = []DatabaseSort{ - "created_at.desc", - "created_at.asc", - "database_id.desc", - "database_id.asc", - "database_name.desc", - "database_name.asc", - "database_owner.desc", - "database_owner.asc", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *DatabaseSort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := DatabaseSort(value) - for _, existing := range AllowedDatabaseSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid DatabaseSort", value) -} - -// NewDatabaseSortFromValue returns a pointer to a valid DatabaseSort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewDatabaseSortFromValue(v string) (*DatabaseSort, error) { - ev := DatabaseSort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for DatabaseSort: valid values are %v", v, AllowedDatabaseSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v DatabaseSort) IsValid() bool { - for _, existing := range AllowedDatabaseSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to database.sort value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v DatabaseSort) Ptr() *DatabaseSort { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableDatabaseSort struct { - value *DatabaseSort - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseSort) Get() *DatabaseSort { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseSort) Set(val *DatabaseSort) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseSort) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseSort) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableDatabaseSort(val *DatabaseSort) *NullableDatabaseSort { - return &NullableDatabaseSort{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableDatabaseSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableDatabaseSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_database_sort_test.go b/services/postgresflex/model_database_sort_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_database_sort_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_error.go b/services/postgresflex/model_error.go deleted file mode 100644 index c03fd5a154..0000000000 --- a/services/postgresflex/model_error.go +++ /dev/null @@ -1,313 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the Error type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Error{} - -/* - types and functions for code -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetCodeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetCodeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetCodeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getErrorGetCodeAttributeTypeOk(arg ErrorGetCodeAttributeType) (ret ErrorGetCodeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setErrorGetCodeAttributeType(arg *ErrorGetCodeAttributeType, val ErrorGetCodeRetType) { - *arg = &val -} - -/* - types and functions for message -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetMessageAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getErrorGetMessageAttributeTypeOk(arg ErrorGetMessageAttributeType) (ret ErrorGetMessageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setErrorGetMessageAttributeType(arg *ErrorGetMessageAttributeType, val ErrorGetMessageRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetMessageArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetMessageRetType = string - -/* - types and functions for traceId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTraceIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getErrorGetTraceIdAttributeTypeOk(arg ErrorGetTraceIdAttributeType) (ret ErrorGetTraceIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setErrorGetTraceIdAttributeType(arg *ErrorGetTraceIdAttributeType, val ErrorGetTraceIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTraceIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTraceIdRetType = string - -/* - types and functions for type -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getErrorGetTypeAttributeTypeOk(arg ErrorGetTypeAttributeType) (ret ErrorGetTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setErrorGetTypeAttributeType(arg *ErrorGetTypeAttributeType, val ErrorGetTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ErrorGetTypeRetType = string - -// Error struct for Error -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Error struct { - // The http error code of the error. - // Can be cast to int32 without loss of precision. - // REQUIRED - Code ErrorGetCodeAttributeType `json:"code" required:"true"` - // More detailed information about the error. - // REQUIRED - Message ErrorGetMessageAttributeType `json:"message" required:"true"` - // The trace id of the request. - // REQUIRED - TraceId ErrorGetTraceIdAttributeType `json:"traceId" required:"true"` - // Describes in which state the api was when the error happened. - // REQUIRED - Type ErrorGetTypeAttributeType `json:"type" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Error Error - -// NewError instantiates a new Error 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewError(code ErrorGetCodeArgType, message ErrorGetMessageArgType, traceId ErrorGetTraceIdArgType, types ErrorGetTypeArgType) *Error { - this := Error{} - setErrorGetCodeAttributeType(&this.Code, code) - setErrorGetMessageAttributeType(&this.Message, message) - setErrorGetTraceIdAttributeType(&this.TraceId, traceId) - setErrorGetTypeAttributeType(&this.Type, types) - return &this -} - -// NewErrorWithDefaults instantiates a new Error 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewErrorWithDefaults() *Error { - this := Error{} - return &this -} - -// GetCode returns the Code field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetCode() (ret ErrorGetCodeRetType) { - ret, _ = o.GetCodeOk() - return ret -} - -// GetCodeOk returns a tuple with the Code field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetCodeOk() (ret ErrorGetCodeRetType, ok bool) { - return getErrorGetCodeAttributeTypeOk(o.Code) -} - -// SetCode sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) SetCode(v ErrorGetCodeRetType) { - setErrorGetCodeAttributeType(&o.Code, v) -} - -// GetMessage returns the Message field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetMessage() (ret ErrorGetMessageRetType) { - ret, _ = o.GetMessageOk() - return ret -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetMessageOk() (ret ErrorGetMessageRetType, ok bool) { - return getErrorGetMessageAttributeTypeOk(o.Message) -} - -// SetMessage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) SetMessage(v ErrorGetMessageRetType) { - setErrorGetMessageAttributeType(&o.Message, v) -} - -// GetTraceId returns the TraceId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetTraceId() (ret ErrorGetTraceIdRetType) { - ret, _ = o.GetTraceIdOk() - return ret -} - -// GetTraceIdOk returns a tuple with the TraceId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetTraceIdOk() (ret ErrorGetTraceIdRetType, ok bool) { - return getErrorGetTraceIdAttributeTypeOk(o.TraceId) -} - -// SetTraceId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) SetTraceId(v ErrorGetTraceIdRetType) { - setErrorGetTraceIdAttributeType(&o.TraceId, v) -} - -// GetType returns the Type field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetType() (ret ErrorGetTypeRetType) { - ret, _ = o.GetTypeOk() - return ret -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) GetTypeOk() (ret ErrorGetTypeRetType, ok bool) { - return getErrorGetTypeAttributeTypeOk(o.Type) -} - -// SetType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Error) SetType(v ErrorGetTypeRetType) { - setErrorGetTypeAttributeType(&o.Type, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Error) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getErrorGetCodeAttributeTypeOk(o.Code); ok { - toSerialize["Code"] = val - } - if val, ok := getErrorGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - if val, ok := getErrorGetTraceIdAttributeTypeOk(o.TraceId); ok { - toSerialize["TraceId"] = val - } - if val, ok := getErrorGetTypeAttributeTypeOk(o.Type); ok { - toSerialize["Type"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableError struct { - value *Error - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableError) Get() *Error { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableError) Set(val *Error) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableError) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableError) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableError(val *Error) *NullableError { - return &NullableError{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_error_test.go b/services/postgresflex/model_error_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_error_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_flavor_sort.go b/services/postgresflex/model_flavor_sort.go deleted file mode 100644 index 994d0bf469..0000000000 --- a/services/postgresflex/model_flavor_sort.go +++ /dev/null @@ -1,174 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// FlavorSort the model 'FlavorSort' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorSort string - -// List of flavor.sort -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_CPU_DESC FlavorSort = "cpu.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_CPU_ASC FlavorSort = "cpu.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_FLAVOR_DESCRIPTION_ASC FlavorSort = "flavor_description.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_FLAVOR_DESCRIPTION_DESC FlavorSort = "flavor_description.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_ID_DESC FlavorSort = "id.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_ID_ASC FlavorSort = "id.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_SIZE_MAX_DESC FlavorSort = "size_max.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_SIZE_MAX_ASC FlavorSort = "size_max.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_RAM_DESC FlavorSort = "ram.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_RAM_ASC FlavorSort = "ram.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_SIZE_MIN_DESC FlavorSort = "size_min.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_SIZE_MIN_ASC FlavorSort = "size_min.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_STORAGE_CLASS_ASC FlavorSort = "storage_class.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_STORAGE_CLASS_DESC FlavorSort = "storage_class.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_NODE_TYPE_ASC FlavorSort = "node_type.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - FLAVORSORT_NODE_TYPE_DESC FlavorSort = "node_type.desc" -) - -// All allowed values of FlavorSort enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedFlavorSortEnumValues = []FlavorSort{ - "cpu.desc", - "cpu.asc", - "flavor_description.asc", - "flavor_description.desc", - "id.desc", - "id.asc", - "size_max.desc", - "size_max.asc", - "ram.desc", - "ram.asc", - "size_min.desc", - "size_min.asc", - "storage_class.asc", - "storage_class.desc", - "node_type.asc", - "node_type.desc", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *FlavorSort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := FlavorSort(value) - for _, existing := range AllowedFlavorSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid FlavorSort", value) -} - -// NewFlavorSortFromValue returns a pointer to a valid FlavorSort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewFlavorSortFromValue(v string) (*FlavorSort, error) { - ev := FlavorSort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for FlavorSort: valid values are %v", v, AllowedFlavorSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v FlavorSort) IsValid() bool { - for _, existing := range AllowedFlavorSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to flavor.sort value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v FlavorSort) Ptr() *FlavorSort { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFlavorSort struct { - value *FlavorSort - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorSort) Get() *FlavorSort { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorSort) Set(val *FlavorSort) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorSort) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorSort) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFlavorSort(val *FlavorSort) *NullableFlavorSort { - return &NullableFlavorSort{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_flavor_sort_test.go b/services/postgresflex/model_flavor_sort_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_flavor_sort_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_flavor_storage_classes_storage_class.go b/services/postgresflex/model_flavor_storage_classes_storage_class.go deleted file mode 100644 index 3465243ffa..0000000000 --- a/services/postgresflex/model_flavor_storage_classes_storage_class.go +++ /dev/null @@ -1,257 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the FlavorStorageClassesStorageClass type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FlavorStorageClassesStorageClass{} - -/* - types and functions for class -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetClassAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(arg FlavorStorageClassesStorageClassGetClassAttributeType) (ret FlavorStorageClassesStorageClassGetClassRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setFlavorStorageClassesStorageClassGetClassAttributeType(arg *FlavorStorageClassesStorageClassGetClassAttributeType, val FlavorStorageClassesStorageClassGetClassRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetClassArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetClassRetType = string - -/* - types and functions for maxIoPerSec -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxIoPerSecArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxIoPerSecRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(arg FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType) (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(arg *FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType, val FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) { - *arg = &val -} - -/* - types and functions for maxThroughInMb -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxThroughInMbArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClassGetMaxThroughInMbRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(arg FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType) (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(arg *FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType, val FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) { - *arg = &val -} - -// FlavorStorageClassesStorageClass a storageClass defines how efficient the storage can work -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type FlavorStorageClassesStorageClass struct { - // REQUIRED - Class FlavorStorageClassesStorageClassGetClassAttributeType `json:"class" required:"true"` - // Can be cast to int32 without loss of precision. - // REQUIRED - MaxIoPerSec FlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType `json:"maxIoPerSec" required:"true"` - // Can be cast to int32 without loss of precision. - // REQUIRED - MaxThroughInMb FlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType `json:"maxThroughInMb" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _FlavorStorageClassesStorageClass FlavorStorageClassesStorageClass - -// NewFlavorStorageClassesStorageClass instantiates a new FlavorStorageClassesStorageClass 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewFlavorStorageClassesStorageClass(class FlavorStorageClassesStorageClassGetClassArgType, maxIoPerSec FlavorStorageClassesStorageClassGetMaxIoPerSecArgType, maxThroughInMb FlavorStorageClassesStorageClassGetMaxThroughInMbArgType) *FlavorStorageClassesStorageClass { - this := FlavorStorageClassesStorageClass{} - setFlavorStorageClassesStorageClassGetClassAttributeType(&this.Class, class) - setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(&this.MaxIoPerSec, maxIoPerSec) - setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(&this.MaxThroughInMb, maxThroughInMb) - return &this -} - -// NewFlavorStorageClassesStorageClassWithDefaults instantiates a new FlavorStorageClassesStorageClass 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewFlavorStorageClassesStorageClassWithDefaults() *FlavorStorageClassesStorageClass { - this := FlavorStorageClassesStorageClass{} - return &this -} - -// GetClass returns the Class field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetClass() (ret FlavorStorageClassesStorageClassGetClassRetType) { - ret, _ = o.GetClassOk() - return ret -} - -// GetClassOk returns a tuple with the Class field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetClassOk() (ret FlavorStorageClassesStorageClassGetClassRetType, ok bool) { - return getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(o.Class) -} - -// SetClass sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) SetClass(v FlavorStorageClassesStorageClassGetClassRetType) { - setFlavorStorageClassesStorageClassGetClassAttributeType(&o.Class, v) -} - -// GetMaxIoPerSec returns the MaxIoPerSec field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetMaxIoPerSec() (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) { - ret, _ = o.GetMaxIoPerSecOk() - return ret -} - -// GetMaxIoPerSecOk returns a tuple with the MaxIoPerSec field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetMaxIoPerSecOk() (ret FlavorStorageClassesStorageClassGetMaxIoPerSecRetType, ok bool) { - return getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(o.MaxIoPerSec) -} - -// SetMaxIoPerSec sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) SetMaxIoPerSec(v FlavorStorageClassesStorageClassGetMaxIoPerSecRetType) { - setFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeType(&o.MaxIoPerSec, v) -} - -// GetMaxThroughInMb returns the MaxThroughInMb field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetMaxThroughInMb() (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) { - ret, _ = o.GetMaxThroughInMbOk() - return ret -} - -// GetMaxThroughInMbOk returns a tuple with the MaxThroughInMb field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) GetMaxThroughInMbOk() (ret FlavorStorageClassesStorageClassGetMaxThroughInMbRetType, ok bool) { - return getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(o.MaxThroughInMb) -} - -// SetMaxThroughInMb sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *FlavorStorageClassesStorageClass) SetMaxThroughInMb(v FlavorStorageClassesStorageClassGetMaxThroughInMbRetType) { - setFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeType(&o.MaxThroughInMb, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o FlavorStorageClassesStorageClass) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getFlavorStorageClassesStorageClassGetClassAttributeTypeOk(o.Class); ok { - toSerialize["Class"] = val - } - if val, ok := getFlavorStorageClassesStorageClassGetMaxIoPerSecAttributeTypeOk(o.MaxIoPerSec); ok { - toSerialize["MaxIoPerSec"] = val - } - if val, ok := getFlavorStorageClassesStorageClassGetMaxThroughInMbAttributeTypeOk(o.MaxThroughInMb); ok { - toSerialize["MaxThroughInMb"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFlavorStorageClassesStorageClass struct { - value *FlavorStorageClassesStorageClass - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorStorageClassesStorageClass) Get() *FlavorStorageClassesStorageClass { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorStorageClassesStorageClass) Set(val *FlavorStorageClassesStorageClass) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorStorageClassesStorageClass) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorStorageClassesStorageClass) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFlavorStorageClassesStorageClass(val *FlavorStorageClassesStorageClass) *NullableFlavorStorageClassesStorageClass { - return &NullableFlavorStorageClassesStorageClass{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFlavorStorageClassesStorageClass) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFlavorStorageClassesStorageClass) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_flavor_storage_classes_storage_class_test.go b/services/postgresflex/model_flavor_storage_classes_storage_class_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_flavor_storage_classes_storage_class_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_get_database_response.go b/services/postgresflex/model_get_database_response.go deleted file mode 100644 index 8a1b13173d..0000000000 --- a/services/postgresflex/model_get_database_response.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the GetDatabaseResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetDatabaseResponse{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetDatabaseResponseGetIdAttributeTypeOk(arg GetDatabaseResponseGetIdAttributeType) (ret GetDatabaseResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetDatabaseResponseGetIdAttributeType(arg *GetDatabaseResponseGetIdAttributeType, val GetDatabaseResponseGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetDatabaseResponseGetNameAttributeTypeOk(arg GetDatabaseResponseGetNameAttributeType) (ret GetDatabaseResponseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetDatabaseResponseGetNameAttributeType(arg *GetDatabaseResponseGetNameAttributeType, val GetDatabaseResponseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetNameRetType = string - -/* - types and functions for owner -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetOwnerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetDatabaseResponseGetOwnerAttributeTypeOk(arg GetDatabaseResponseGetOwnerAttributeType) (ret GetDatabaseResponseGetOwnerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetDatabaseResponseGetOwnerAttributeType(arg *GetDatabaseResponseGetOwnerAttributeType, val GetDatabaseResponseGetOwnerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetOwnerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponseGetOwnerRetType = string - -// GetDatabaseResponse struct for GetDatabaseResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetDatabaseResponse struct { - // The id of the database. - // REQUIRED - Id GetDatabaseResponseGetIdAttributeType `json:"id" required:"true"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - // REQUIRED - Name GetDatabaseResponseGetNameAttributeType `json:"name" required:"true"` - // The owner of the database. - // REQUIRED - Owner GetDatabaseResponseGetOwnerAttributeType `json:"owner" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _GetDatabaseResponse GetDatabaseResponse - -// NewGetDatabaseResponse instantiates a new GetDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetDatabaseResponse(id GetDatabaseResponseGetIdArgType, name GetDatabaseResponseGetNameArgType, owner GetDatabaseResponseGetOwnerArgType) *GetDatabaseResponse { - this := GetDatabaseResponse{} - setGetDatabaseResponseGetIdAttributeType(&this.Id, id) - setGetDatabaseResponseGetNameAttributeType(&this.Name, name) - setGetDatabaseResponseGetOwnerAttributeType(&this.Owner, owner) - return &this -} - -// NewGetDatabaseResponseWithDefaults instantiates a new GetDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetDatabaseResponseWithDefaults() *GetDatabaseResponse { - this := GetDatabaseResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetId() (ret GetDatabaseResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetIdOk() (ret GetDatabaseResponseGetIdRetType, ok bool) { - return getGetDatabaseResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) SetId(v GetDatabaseResponseGetIdRetType) { - setGetDatabaseResponseGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetName() (ret GetDatabaseResponseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetNameOk() (ret GetDatabaseResponseGetNameRetType, ok bool) { - return getGetDatabaseResponseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) SetName(v GetDatabaseResponseGetNameRetType) { - setGetDatabaseResponseGetNameAttributeType(&o.Name, v) -} - -// GetOwner returns the Owner field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetOwner() (ret GetDatabaseResponseGetOwnerRetType) { - ret, _ = o.GetOwnerOk() - return ret -} - -// GetOwnerOk returns a tuple with the Owner field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) GetOwnerOk() (ret GetDatabaseResponseGetOwnerRetType, ok bool) { - return getGetDatabaseResponseGetOwnerAttributeTypeOk(o.Owner) -} - -// SetOwner sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetDatabaseResponse) SetOwner(v GetDatabaseResponseGetOwnerRetType) { - setGetDatabaseResponseGetOwnerAttributeType(&o.Owner, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o GetDatabaseResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getGetDatabaseResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getGetDatabaseResponseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getGetDatabaseResponseGetOwnerAttributeTypeOk(o.Owner); ok { - toSerialize["Owner"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableGetDatabaseResponse struct { - value *GetDatabaseResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetDatabaseResponse) Get() *GetDatabaseResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetDatabaseResponse) Set(val *GetDatabaseResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetDatabaseResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetDatabaseResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableGetDatabaseResponse(val *GetDatabaseResponse) *NullableGetDatabaseResponse { - return &NullableGetDatabaseResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetDatabaseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetDatabaseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_get_database_response_test.go b/services/postgresflex/model_get_database_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_get_database_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_get_instance_response.go b/services/postgresflex/model_get_instance_response.go deleted file mode 100644 index 2915d7bd95..0000000000 --- a/services/postgresflex/model_get_instance_response.go +++ /dev/null @@ -1,806 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the GetInstanceResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetInstanceResponse{} - -/* - types and functions for backupSchedule -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetBackupScheduleAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetBackupScheduleAttributeTypeOk(arg GetInstanceResponseGetBackupScheduleAttributeType) (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetBackupScheduleAttributeType(arg *GetInstanceResponseGetBackupScheduleAttributeType, val GetInstanceResponseGetBackupScheduleRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetBackupScheduleArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetBackupScheduleRetType = string - -/* - types and functions for connectionInfo -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetConnectionInfoAttributeType = *InstanceConnectionInfo - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetConnectionInfoArgType = InstanceConnectionInfo - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetConnectionInfoRetType = InstanceConnectionInfo - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetConnectionInfoAttributeTypeOk(arg GetInstanceResponseGetConnectionInfoAttributeType) (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetConnectionInfoAttributeType(arg *GetInstanceResponseGetConnectionInfoAttributeType, val GetInstanceResponseGetConnectionInfoRetType) { - *arg = &val -} - -/* - types and functions for encryption -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetEncryptionAttributeType = *InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetEncryptionArgType = InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetEncryptionRetType = InstanceEncryption - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetEncryptionAttributeTypeOk(arg GetInstanceResponseGetEncryptionAttributeType) (ret GetInstanceResponseGetEncryptionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetEncryptionAttributeType(arg *GetInstanceResponseGetEncryptionAttributeType, val GetInstanceResponseGetEncryptionRetType) { - *arg = &val -} - -/* - types and functions for flavorId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetFlavorIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetFlavorIdAttributeTypeOk(arg GetInstanceResponseGetFlavorIdAttributeType) (ret GetInstanceResponseGetFlavorIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetFlavorIdAttributeType(arg *GetInstanceResponseGetFlavorIdAttributeType, val GetInstanceResponseGetFlavorIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetFlavorIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetFlavorIdRetType = string - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetIdAttributeTypeOk(arg GetInstanceResponseGetIdAttributeType) (ret GetInstanceResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetIdAttributeType(arg *GetInstanceResponseGetIdAttributeType, val GetInstanceResponseGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetIdRetType = string - -/* - types and functions for isDeletable -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponsegetIsDeletableAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponsegetIsDeletableArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponsegetIsDeletableRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponsegetIsDeletableAttributeTypeOk(arg GetInstanceResponsegetIsDeletableAttributeType) (ret GetInstanceResponsegetIsDeletableRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponsegetIsDeletableAttributeType(arg *GetInstanceResponsegetIsDeletableAttributeType, val GetInstanceResponsegetIsDeletableRetType) { - *arg = &val -} - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetLabelsAttributeTypeOk(arg GetInstanceResponseGetLabelsAttributeType) (ret GetInstanceResponseGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetLabelsAttributeType(arg *GetInstanceResponseGetLabelsAttributeType, val GetInstanceResponseGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetNameAttributeTypeOk(arg GetInstanceResponseGetNameAttributeType) (ret GetInstanceResponseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetNameAttributeType(arg *GetInstanceResponseGetNameAttributeType, val GetInstanceResponseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNameRetType = string - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNetworkAttributeType = *InstanceNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNetworkArgType = InstanceNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetNetworkRetType = InstanceNetwork - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetNetworkAttributeTypeOk(arg GetInstanceResponseGetNetworkAttributeType) (ret GetInstanceResponseGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetNetworkAttributeType(arg *GetInstanceResponseGetNetworkAttributeType, val GetInstanceResponseGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for retentionDays -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetRetentionDaysAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetRetentionDaysArgType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetRetentionDaysRetType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetRetentionDaysAttributeTypeOk(arg GetInstanceResponseGetRetentionDaysAttributeType) (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) { - if arg == nil { - return nil, false - } - return arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetRetentionDaysAttributeType(arg *GetInstanceResponseGetRetentionDaysAttributeType, val GetInstanceResponseGetRetentionDaysRetType) { - *arg = val -} - -/* - types and functions for state -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStateAttributeType = *State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStateArgType = State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStateRetType = State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetStateAttributeTypeOk(arg GetInstanceResponseGetStateAttributeType) (ret GetInstanceResponseGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetStateAttributeType(arg *GetInstanceResponseGetStateAttributeType, val GetInstanceResponseGetStateRetType) { - *arg = &val -} - -/* - types and functions for storage -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStorageAttributeType = *Storage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStorageArgType = Storage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetStorageRetType = Storage - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetStorageAttributeTypeOk(arg GetInstanceResponseGetStorageAttributeType) (ret GetInstanceResponseGetStorageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetStorageAttributeType(arg *GetInstanceResponseGetStorageAttributeType, val GetInstanceResponseGetStorageRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetInstanceResponseGetVersionAttributeTypeOk(arg GetInstanceResponseGetVersionAttributeType) (ret GetInstanceResponseGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetInstanceResponseGetVersionAttributeType(arg *GetInstanceResponseGetVersionAttributeType, val GetInstanceResponseGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponseGetVersionRetType = string - -// GetInstanceResponse struct for GetInstanceResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetInstanceResponse struct { - // The schedule for when the database backup will be created. Currently, ONLY daily schedules are supported (every 24 hours). The schedule is written as a cron schedule. - // REQUIRED - BackupSchedule GetInstanceResponseGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` - // REQUIRED - ConnectionInfo GetInstanceResponseGetConnectionInfoAttributeType `json:"connectionInfo" required:"true"` - Encryption GetInstanceResponseGetEncryptionAttributeType `json:"encryption,omitempty"` - // The id of the instance flavor. - // REQUIRED - FlavorId GetInstanceResponseGetFlavorIdAttributeType `json:"flavorId" required:"true"` - // The ID of the instance. - // REQUIRED - Id GetInstanceResponseGetIdAttributeType `json:"id" required:"true"` - // Whether the instance can be deleted or not. - // REQUIRED - IsDeletable GetInstanceResponsegetIsDeletableAttributeType `json:"isDeletable" required:"true"` - // Key-value pairs, 63 characters max, begin and end with an alphanumerical character, may contain dashes (-), underscores (_), dots (.), and alphanumerics between. Key MUST be at least 1 character. Max 64 labels Regex for keys: ^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ Regex for values: ^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$ The stackit- prefix is reserved and cannot be used for Keys. - Labels GetInstanceResponseGetLabelsAttributeType `json:"labels,omitempty"` - // The name of the instance. - // REQUIRED - Name GetInstanceResponseGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - Network GetInstanceResponseGetNetworkAttributeType `json:"network" required:"true"` - // How long backups are retained. The value can only be between 32 and 90 days. - // Can be cast to int32 without loss of precision. - // REQUIRED - RetentionDays GetInstanceResponseGetRetentionDaysAttributeType `json:"retentionDays" required:"true"` - // REQUIRED - State GetInstanceResponseGetStateAttributeType `json:"state" required:"true"` - // REQUIRED - Storage GetInstanceResponseGetStorageAttributeType `json:"storage" required:"true"` - // The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3#tag/Version) for supported version parameters. - // REQUIRED - Version GetInstanceResponseGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _GetInstanceResponse GetInstanceResponse - -// NewGetInstanceResponse instantiates a new GetInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetInstanceResponse(backupSchedule GetInstanceResponseGetBackupScheduleArgType, connectionInfo GetInstanceResponseGetConnectionInfoArgType, flavorId GetInstanceResponseGetFlavorIdArgType, id GetInstanceResponseGetIdArgType, isDeletable GetInstanceResponsegetIsDeletableArgType, name GetInstanceResponseGetNameArgType, network GetInstanceResponseGetNetworkArgType, retentionDays GetInstanceResponseGetRetentionDaysArgType, state GetInstanceResponseGetStateArgType, storage GetInstanceResponseGetStorageArgType, version GetInstanceResponseGetVersionArgType) *GetInstanceResponse { - this := GetInstanceResponse{} - setGetInstanceResponseGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule) - setGetInstanceResponseGetConnectionInfoAttributeType(&this.ConnectionInfo, connectionInfo) - setGetInstanceResponseGetFlavorIdAttributeType(&this.FlavorId, flavorId) - setGetInstanceResponseGetIdAttributeType(&this.Id, id) - setGetInstanceResponsegetIsDeletableAttributeType(&this.IsDeletable, isDeletable) - setGetInstanceResponseGetNameAttributeType(&this.Name, name) - setGetInstanceResponseGetNetworkAttributeType(&this.Network, network) - setGetInstanceResponseGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays) - setGetInstanceResponseGetStateAttributeType(&this.State, state) - setGetInstanceResponseGetStorageAttributeType(&this.Storage, storage) - setGetInstanceResponseGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewGetInstanceResponseWithDefaults instantiates a new GetInstanceResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetInstanceResponseWithDefaults() *GetInstanceResponse { - this := GetInstanceResponse{} - return &this -} - -// GetBackupSchedule returns the BackupSchedule field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetBackupSchedule() (ret GetInstanceResponseGetBackupScheduleRetType) { - ret, _ = o.GetBackupScheduleOk() - return ret -} - -// GetBackupScheduleOk returns a tuple with the BackupSchedule field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetBackupScheduleOk() (ret GetInstanceResponseGetBackupScheduleRetType, ok bool) { - return getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule) -} - -// SetBackupSchedule sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetBackupSchedule(v GetInstanceResponseGetBackupScheduleRetType) { - setGetInstanceResponseGetBackupScheduleAttributeType(&o.BackupSchedule, v) -} - -// GetConnectionInfo returns the ConnectionInfo field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetConnectionInfo() (ret GetInstanceResponseGetConnectionInfoRetType) { - ret, _ = o.GetConnectionInfoOk() - return ret -} - -// GetConnectionInfoOk returns a tuple with the ConnectionInfo field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetConnectionInfoOk() (ret GetInstanceResponseGetConnectionInfoRetType, ok bool) { - return getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo) -} - -// SetConnectionInfo sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetConnectionInfo(v GetInstanceResponseGetConnectionInfoRetType) { - setGetInstanceResponseGetConnectionInfoAttributeType(&o.ConnectionInfo, v) -} - -// GetEncryption returns the Encryption field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetEncryption() (res GetInstanceResponseGetEncryptionRetType) { - res, _ = o.GetEncryptionOk() - return -} - -// GetEncryptionOk returns a tuple with the Encryption field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetEncryptionOk() (ret GetInstanceResponseGetEncryptionRetType, ok bool) { - return getGetInstanceResponseGetEncryptionAttributeTypeOk(o.Encryption) -} - -// HasEncryption returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) HasEncryption() bool { - _, ok := o.GetEncryptionOk() - return ok -} - -// SetEncryption gets a reference to the given InstanceEncryption and assigns it to the Encryption field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetEncryption(v GetInstanceResponseGetEncryptionRetType) { - setGetInstanceResponseGetEncryptionAttributeType(&o.Encryption, v) -} - -// GetFlavorId returns the FlavorId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetFlavorId() (ret GetInstanceResponseGetFlavorIdRetType) { - ret, _ = o.GetFlavorIdOk() - return ret -} - -// GetFlavorIdOk returns a tuple with the FlavorId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetFlavorIdOk() (ret GetInstanceResponseGetFlavorIdRetType, ok bool) { - return getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId) -} - -// SetFlavorId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetFlavorId(v GetInstanceResponseGetFlavorIdRetType) { - setGetInstanceResponseGetFlavorIdAttributeType(&o.FlavorId, v) -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetId() (ret GetInstanceResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetIdOk() (ret GetInstanceResponseGetIdRetType, ok bool) { - return getGetInstanceResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetId(v GetInstanceResponseGetIdRetType) { - setGetInstanceResponseGetIdAttributeType(&o.Id, v) -} - -// GetIsDeletable returns the IsDeletable field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetIsDeletable() (ret GetInstanceResponsegetIsDeletableRetType) { - ret, _ = o.GetIsDeletableOk() - return ret -} - -// GetIsDeletableOk returns a tuple with the IsDeletable field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetIsDeletableOk() (ret GetInstanceResponsegetIsDeletableRetType, ok bool) { - return getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable) -} - -// SetIsDeletable sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetIsDeletable(v GetInstanceResponsegetIsDeletableRetType) { - setGetInstanceResponsegetIsDeletableAttributeType(&o.IsDeletable, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetLabels() (res GetInstanceResponseGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetLabelsOk() (ret GetInstanceResponseGetLabelsRetType, ok bool) { - return getGetInstanceResponseGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetLabels(v GetInstanceResponseGetLabelsRetType) { - setGetInstanceResponseGetLabelsAttributeType(&o.Labels, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetName() (ret GetInstanceResponseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetNameOk() (ret GetInstanceResponseGetNameRetType, ok bool) { - return getGetInstanceResponseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetName(v GetInstanceResponseGetNameRetType) { - setGetInstanceResponseGetNameAttributeType(&o.Name, v) -} - -// GetNetwork returns the Network field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetNetwork() (ret GetInstanceResponseGetNetworkRetType) { - ret, _ = o.GetNetworkOk() - return ret -} - -// GetNetworkOk returns a tuple with the Network field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetNetworkOk() (ret GetInstanceResponseGetNetworkRetType, ok bool) { - return getGetInstanceResponseGetNetworkAttributeTypeOk(o.Network) -} - -// SetNetwork sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetNetwork(v GetInstanceResponseGetNetworkRetType) { - setGetInstanceResponseGetNetworkAttributeType(&o.Network, v) -} - -// GetRetentionDays returns the RetentionDays field value -// If the value is explicit nil, the zero value for int32 will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetRetentionDays() (ret GetInstanceResponseGetRetentionDaysRetType) { - ret, _ = o.GetRetentionDaysOk() - return ret -} - -// GetRetentionDaysOk returns a tuple with the RetentionDays field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetRetentionDaysOk() (ret GetInstanceResponseGetRetentionDaysRetType, ok bool) { - return getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays) -} - -// SetRetentionDays sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetRetentionDays(v GetInstanceResponseGetRetentionDaysRetType) { - setGetInstanceResponseGetRetentionDaysAttributeType(&o.RetentionDays, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetState() (ret GetInstanceResponseGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetStateOk() (ret GetInstanceResponseGetStateRetType, ok bool) { - return getGetInstanceResponseGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetState(v GetInstanceResponseGetStateRetType) { - setGetInstanceResponseGetStateAttributeType(&o.State, v) -} - -// GetStorage returns the Storage field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetStorage() (ret GetInstanceResponseGetStorageRetType) { - ret, _ = o.GetStorageOk() - return ret -} - -// GetStorageOk returns a tuple with the Storage field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetStorageOk() (ret GetInstanceResponseGetStorageRetType, ok bool) { - return getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage) -} - -// SetStorage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetStorage(v GetInstanceResponseGetStorageRetType) { - setGetInstanceResponseGetStorageAttributeType(&o.Storage, v) -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetVersion() (ret GetInstanceResponseGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) GetVersionOk() (ret GetInstanceResponseGetVersionRetType, ok bool) { - return getGetInstanceResponseGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetInstanceResponse) SetVersion(v GetInstanceResponseGetVersionRetType) { - setGetInstanceResponseGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o GetInstanceResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getGetInstanceResponseGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok { - toSerialize["BackupSchedule"] = val - } - if val, ok := getGetInstanceResponseGetConnectionInfoAttributeTypeOk(o.ConnectionInfo); ok { - toSerialize["ConnectionInfo"] = val - } - if val, ok := getGetInstanceResponseGetEncryptionAttributeTypeOk(o.Encryption); ok { - toSerialize["Encryption"] = val - } - if val, ok := getGetInstanceResponseGetFlavorIdAttributeTypeOk(o.FlavorId); ok { - toSerialize["FlavorId"] = val - } - if val, ok := getGetInstanceResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getGetInstanceResponsegetIsDeletableAttributeTypeOk(o.IsDeletable); ok { - toSerialize["IsDeletable"] = val - } - if val, ok := getGetInstanceResponseGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getGetInstanceResponseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getGetInstanceResponseGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getGetInstanceResponseGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok { - toSerialize["RetentionDays"] = val - } - if val, ok := getGetInstanceResponseGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - if val, ok := getGetInstanceResponseGetStorageAttributeTypeOk(o.Storage); ok { - toSerialize["Storage"] = val - } - if val, ok := getGetInstanceResponseGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableGetInstanceResponse struct { - value *GetInstanceResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetInstanceResponse) Get() *GetInstanceResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetInstanceResponse) Set(val *GetInstanceResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetInstanceResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetInstanceResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableGetInstanceResponse(val *GetInstanceResponse) *NullableGetInstanceResponse { - return &NullableGetInstanceResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetInstanceResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetInstanceResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_get_instance_response_test.go b/services/postgresflex/model_get_instance_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_get_instance_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_get_user_response.go b/services/postgresflex/model_get_user_response.go deleted file mode 100644 index 197ad96e72..0000000000 --- a/services/postgresflex/model_get_user_response.go +++ /dev/null @@ -1,312 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the GetUserResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &GetUserResponse{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetUserResponseGetIdAttributeTypeOk(arg GetUserResponseGetIdAttributeType) (ret GetUserResponseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetUserResponseGetIdAttributeType(arg *GetUserResponseGetIdAttributeType, val GetUserResponseGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetUserResponseGetNameAttributeTypeOk(arg GetUserResponseGetNameAttributeType) (ret GetUserResponseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetUserResponseGetNameAttributeType(arg *GetUserResponseGetNameAttributeType, val GetUserResponseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetNameRetType = string - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetUserResponseGetRolesAttributeTypeOk(arg GetUserResponseGetRolesAttributeType) (ret GetUserResponseGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetUserResponseGetRolesAttributeType(arg *GetUserResponseGetRolesAttributeType, val GetUserResponseGetRolesRetType) { - *arg = &val -} - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getGetUserResponseGetStateAttributeTypeOk(arg GetUserResponseGetStateAttributeType) (ret GetUserResponseGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setGetUserResponseGetStateAttributeType(arg *GetUserResponseGetStateAttributeType, val GetUserResponseGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponseGetStateRetType = string - -// GetUserResponse struct for GetUserResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type GetUserResponse struct { - // The ID of the user. - // REQUIRED - Id GetUserResponseGetIdAttributeType `json:"id" required:"true"` - // The name of the user. - // REQUIRED - Name GetUserResponseGetNameAttributeType `json:"name" required:"true"` - // A list of user roles. - // REQUIRED - Roles GetUserResponseGetRolesAttributeType `json:"roles" required:"true"` - // The current state of the user. - // REQUIRED - State GetUserResponseGetStateAttributeType `json:"state" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _GetUserResponse GetUserResponse - -// NewGetUserResponse instantiates a new GetUserResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetUserResponse(id GetUserResponseGetIdArgType, name GetUserResponseGetNameArgType, roles GetUserResponseGetRolesArgType, state GetUserResponseGetStateArgType) *GetUserResponse { - this := GetUserResponse{} - setGetUserResponseGetIdAttributeType(&this.Id, id) - setGetUserResponseGetNameAttributeType(&this.Name, name) - setGetUserResponseGetRolesAttributeType(&this.Roles, roles) - setGetUserResponseGetStateAttributeType(&this.State, state) - return &this -} - -// NewGetUserResponseWithDefaults instantiates a new GetUserResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewGetUserResponseWithDefaults() *GetUserResponse { - this := GetUserResponse{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetId() (ret GetUserResponseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetIdOk() (ret GetUserResponseGetIdRetType, ok bool) { - return getGetUserResponseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) SetId(v GetUserResponseGetIdRetType) { - setGetUserResponseGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetName() (ret GetUserResponseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetNameOk() (ret GetUserResponseGetNameRetType, ok bool) { - return getGetUserResponseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) SetName(v GetUserResponseGetNameRetType) { - setGetUserResponseGetNameAttributeType(&o.Name, v) -} - -// GetRoles returns the Roles field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetRoles() (ret GetUserResponseGetRolesRetType) { - ret, _ = o.GetRolesOk() - return ret -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetRolesOk() (ret GetUserResponseGetRolesRetType, ok bool) { - return getGetUserResponseGetRolesAttributeTypeOk(o.Roles) -} - -// SetRoles sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) SetRoles(v GetUserResponseGetRolesRetType) { - setGetUserResponseGetRolesAttributeType(&o.Roles, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetState() (ret GetUserResponseGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) GetStateOk() (ret GetUserResponseGetStateRetType, ok bool) { - return getGetUserResponseGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *GetUserResponse) SetState(v GetUserResponseGetStateRetType) { - setGetUserResponseGetStateAttributeType(&o.State, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o GetUserResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getGetUserResponseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getGetUserResponseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getGetUserResponseGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - if val, ok := getGetUserResponseGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableGetUserResponse struct { - value *GetUserResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetUserResponse) Get() *GetUserResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetUserResponse) Set(val *GetUserResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetUserResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetUserResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableGetUserResponse(val *GetUserResponse) *NullableGetUserResponse { - return &NullableGetUserResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableGetUserResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableGetUserResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_get_user_response_test.go b/services/postgresflex/model_get_user_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_get_user_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_connection_info.go b/services/postgresflex/model_instance_connection_info.go deleted file mode 100644 index ffe11e31c3..0000000000 --- a/services/postgresflex/model_instance_connection_info.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceConnectionInfo type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceConnectionInfo{} - -/* - types and functions for write -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoGetWriteAttributeType = *InstanceConnectionInfoWrite - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoGetWriteArgType = InstanceConnectionInfoWrite - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoGetWriteRetType = InstanceConnectionInfoWrite - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceConnectionInfoGetWriteAttributeTypeOk(arg InstanceConnectionInfoGetWriteAttributeType) (ret InstanceConnectionInfoGetWriteRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceConnectionInfoGetWriteAttributeType(arg *InstanceConnectionInfoGetWriteAttributeType, val InstanceConnectionInfoGetWriteRetType) { - *arg = &val -} - -// InstanceConnectionInfo The connection information of the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfo struct { - // REQUIRED - Write InstanceConnectionInfoGetWriteAttributeType `json:"write" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceConnectionInfo InstanceConnectionInfo - -// NewInstanceConnectionInfo instantiates a new InstanceConnectionInfo 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceConnectionInfo(write InstanceConnectionInfoGetWriteArgType) *InstanceConnectionInfo { - this := InstanceConnectionInfo{} - setInstanceConnectionInfoGetWriteAttributeType(&this.Write, write) - return &this -} - -// NewInstanceConnectionInfoWithDefaults instantiates a new InstanceConnectionInfo 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceConnectionInfoWithDefaults() *InstanceConnectionInfo { - this := InstanceConnectionInfo{} - return &this -} - -// GetWrite returns the Write field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfo) GetWrite() (ret InstanceConnectionInfoGetWriteRetType) { - ret, _ = o.GetWriteOk() - return ret -} - -// GetWriteOk returns a tuple with the Write field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfo) GetWriteOk() (ret InstanceConnectionInfoGetWriteRetType, ok bool) { - return getInstanceConnectionInfoGetWriteAttributeTypeOk(o.Write) -} - -// SetWrite sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfo) SetWrite(v InstanceConnectionInfoGetWriteRetType) { - setInstanceConnectionInfoGetWriteAttributeType(&o.Write, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceConnectionInfo) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceConnectionInfoGetWriteAttributeTypeOk(o.Write); ok { - toSerialize["Write"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceConnectionInfo struct { - value *InstanceConnectionInfo - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfo) Get() *InstanceConnectionInfo { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfo) Set(val *InstanceConnectionInfo) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfo) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfo) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceConnectionInfo(val *InstanceConnectionInfo) *NullableInstanceConnectionInfo { - return &NullableInstanceConnectionInfo{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfo) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfo) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_connection_info_test.go b/services/postgresflex/model_instance_connection_info_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_connection_info_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_connection_info_write.go b/services/postgresflex/model_instance_connection_info_write.go deleted file mode 100644 index 885e749378..0000000000 --- a/services/postgresflex/model_instance_connection_info_write.go +++ /dev/null @@ -1,205 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceConnectionInfoWrite type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceConnectionInfoWrite{} - -/* - types and functions for host -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetHostAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceConnectionInfoWriteGetHostAttributeTypeOk(arg InstanceConnectionInfoWriteGetHostAttributeType) (ret InstanceConnectionInfoWriteGetHostRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceConnectionInfoWriteGetHostAttributeType(arg *InstanceConnectionInfoWriteGetHostAttributeType, val InstanceConnectionInfoWriteGetHostRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetHostArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetHostRetType = string - -/* - types and functions for port -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetPortAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetPortArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWriteGetPortRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceConnectionInfoWriteGetPortAttributeTypeOk(arg InstanceConnectionInfoWriteGetPortAttributeType) (ret InstanceConnectionInfoWriteGetPortRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceConnectionInfoWriteGetPortAttributeType(arg *InstanceConnectionInfoWriteGetPortAttributeType, val InstanceConnectionInfoWriteGetPortRetType) { - *arg = &val -} - -// InstanceConnectionInfoWrite The DNS name and port in the instance overview -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceConnectionInfoWrite struct { - // The host of the instance. - // REQUIRED - Host InstanceConnectionInfoWriteGetHostAttributeType `json:"host" required:"true"` - // The port of the instance. - // Can be cast to int32 without loss of precision. - // REQUIRED - Port InstanceConnectionInfoWriteGetPortAttributeType `json:"port" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceConnectionInfoWrite InstanceConnectionInfoWrite - -// NewInstanceConnectionInfoWrite instantiates a new InstanceConnectionInfoWrite 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceConnectionInfoWrite(host InstanceConnectionInfoWriteGetHostArgType, port InstanceConnectionInfoWriteGetPortArgType) *InstanceConnectionInfoWrite { - this := InstanceConnectionInfoWrite{} - setInstanceConnectionInfoWriteGetHostAttributeType(&this.Host, host) - setInstanceConnectionInfoWriteGetPortAttributeType(&this.Port, port) - return &this -} - -// NewInstanceConnectionInfoWriteWithDefaults instantiates a new InstanceConnectionInfoWrite 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceConnectionInfoWriteWithDefaults() *InstanceConnectionInfoWrite { - this := InstanceConnectionInfoWrite{} - return &this -} - -// GetHost returns the Host field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) GetHost() (ret InstanceConnectionInfoWriteGetHostRetType) { - ret, _ = o.GetHostOk() - return ret -} - -// GetHostOk returns a tuple with the Host field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) GetHostOk() (ret InstanceConnectionInfoWriteGetHostRetType, ok bool) { - return getInstanceConnectionInfoWriteGetHostAttributeTypeOk(o.Host) -} - -// SetHost sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) SetHost(v InstanceConnectionInfoWriteGetHostRetType) { - setInstanceConnectionInfoWriteGetHostAttributeType(&o.Host, v) -} - -// GetPort returns the Port field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) GetPort() (ret InstanceConnectionInfoWriteGetPortRetType) { - ret, _ = o.GetPortOk() - return ret -} - -// GetPortOk returns a tuple with the Port field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) GetPortOk() (ret InstanceConnectionInfoWriteGetPortRetType, ok bool) { - return getInstanceConnectionInfoWriteGetPortAttributeTypeOk(o.Port) -} - -// SetPort sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceConnectionInfoWrite) SetPort(v InstanceConnectionInfoWriteGetPortRetType) { - setInstanceConnectionInfoWriteGetPortAttributeType(&o.Port, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceConnectionInfoWrite) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceConnectionInfoWriteGetHostAttributeTypeOk(o.Host); ok { - toSerialize["Host"] = val - } - if val, ok := getInstanceConnectionInfoWriteGetPortAttributeTypeOk(o.Port); ok { - toSerialize["Port"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceConnectionInfoWrite struct { - value *InstanceConnectionInfoWrite - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfoWrite) Get() *InstanceConnectionInfoWrite { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfoWrite) Set(val *InstanceConnectionInfoWrite) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfoWrite) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfoWrite) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceConnectionInfoWrite(val *InstanceConnectionInfoWrite) *NullableInstanceConnectionInfoWrite { - return &NullableInstanceConnectionInfoWrite{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceConnectionInfoWrite) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceConnectionInfoWrite) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_connection_info_write_test.go b/services/postgresflex/model_instance_connection_info_write_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_connection_info_write_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_encryption.go b/services/postgresflex/model_instance_encryption.go deleted file mode 100644 index 42c705b81e..0000000000 --- a/services/postgresflex/model_instance_encryption.go +++ /dev/null @@ -1,311 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceEncryption type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceEncryption{} - -/* - types and functions for kekKeyId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceEncryptionGetKekKeyIdAttributeTypeOk(arg InstanceEncryptionGetKekKeyIdAttributeType) (ret InstanceEncryptionGetKekKeyIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceEncryptionGetKekKeyIdAttributeType(arg *InstanceEncryptionGetKekKeyIdAttributeType, val InstanceEncryptionGetKekKeyIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyIdRetType = string - -/* - types and functions for kekKeyRingId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyRingIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(arg InstanceEncryptionGetKekKeyRingIdAttributeType) (ret InstanceEncryptionGetKekKeyRingIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceEncryptionGetKekKeyRingIdAttributeType(arg *InstanceEncryptionGetKekKeyRingIdAttributeType, val InstanceEncryptionGetKekKeyRingIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyRingIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyRingIdRetType = string - -/* - types and functions for kekKeyVersion -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(arg InstanceEncryptionGetKekKeyVersionAttributeType) (ret InstanceEncryptionGetKekKeyVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceEncryptionGetKekKeyVersionAttributeType(arg *InstanceEncryptionGetKekKeyVersionAttributeType, val InstanceEncryptionGetKekKeyVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetKekKeyVersionRetType = string - -/* - types and functions for serviceAccount -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetServiceAccountAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceEncryptionGetServiceAccountAttributeTypeOk(arg InstanceEncryptionGetServiceAccountAttributeType) (ret InstanceEncryptionGetServiceAccountRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceEncryptionGetServiceAccountAttributeType(arg *InstanceEncryptionGetServiceAccountAttributeType, val InstanceEncryptionGetServiceAccountRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetServiceAccountArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryptionGetServiceAccountRetType = string - -// InstanceEncryption The configuration for instance's volume and backup storage encryption. ⚠️ **Note:** This feature is in private preview. Supplying this object is only permitted for enabled accounts. If your account does not have access, the request will be rejected. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceEncryption struct { - // The encryption-key key identifier - // REQUIRED - KekKeyId InstanceEncryptionGetKekKeyIdAttributeType `json:"kekKeyId" required:"true"` - // The encryption-key keyring identifier - // REQUIRED - KekKeyRingId InstanceEncryptionGetKekKeyRingIdAttributeType `json:"kekKeyRingId" required:"true"` - // The encryption-key version - // REQUIRED - KekKeyVersion InstanceEncryptionGetKekKeyVersionAttributeType `json:"kekKeyVersion" required:"true"` - // REQUIRED - ServiceAccount InstanceEncryptionGetServiceAccountAttributeType `json:"serviceAccount" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceEncryption InstanceEncryption - -// NewInstanceEncryption instantiates a new InstanceEncryption 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceEncryption(kekKeyId InstanceEncryptionGetKekKeyIdArgType, kekKeyRingId InstanceEncryptionGetKekKeyRingIdArgType, kekKeyVersion InstanceEncryptionGetKekKeyVersionArgType, serviceAccount InstanceEncryptionGetServiceAccountArgType) *InstanceEncryption { - this := InstanceEncryption{} - setInstanceEncryptionGetKekKeyIdAttributeType(&this.KekKeyId, kekKeyId) - setInstanceEncryptionGetKekKeyRingIdAttributeType(&this.KekKeyRingId, kekKeyRingId) - setInstanceEncryptionGetKekKeyVersionAttributeType(&this.KekKeyVersion, kekKeyVersion) - setInstanceEncryptionGetServiceAccountAttributeType(&this.ServiceAccount, serviceAccount) - return &this -} - -// NewInstanceEncryptionWithDefaults instantiates a new InstanceEncryption 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceEncryptionWithDefaults() *InstanceEncryption { - this := InstanceEncryption{} - return &this -} - -// GetKekKeyId returns the KekKeyId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyId() (ret InstanceEncryptionGetKekKeyIdRetType) { - ret, _ = o.GetKekKeyIdOk() - return ret -} - -// GetKekKeyIdOk returns a tuple with the KekKeyId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyIdOk() (ret InstanceEncryptionGetKekKeyIdRetType, ok bool) { - return getInstanceEncryptionGetKekKeyIdAttributeTypeOk(o.KekKeyId) -} - -// SetKekKeyId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) SetKekKeyId(v InstanceEncryptionGetKekKeyIdRetType) { - setInstanceEncryptionGetKekKeyIdAttributeType(&o.KekKeyId, v) -} - -// GetKekKeyRingId returns the KekKeyRingId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyRingId() (ret InstanceEncryptionGetKekKeyRingIdRetType) { - ret, _ = o.GetKekKeyRingIdOk() - return ret -} - -// GetKekKeyRingIdOk returns a tuple with the KekKeyRingId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyRingIdOk() (ret InstanceEncryptionGetKekKeyRingIdRetType, ok bool) { - return getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(o.KekKeyRingId) -} - -// SetKekKeyRingId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) SetKekKeyRingId(v InstanceEncryptionGetKekKeyRingIdRetType) { - setInstanceEncryptionGetKekKeyRingIdAttributeType(&o.KekKeyRingId, v) -} - -// GetKekKeyVersion returns the KekKeyVersion field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyVersion() (ret InstanceEncryptionGetKekKeyVersionRetType) { - ret, _ = o.GetKekKeyVersionOk() - return ret -} - -// GetKekKeyVersionOk returns a tuple with the KekKeyVersion field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetKekKeyVersionOk() (ret InstanceEncryptionGetKekKeyVersionRetType, ok bool) { - return getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(o.KekKeyVersion) -} - -// SetKekKeyVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) SetKekKeyVersion(v InstanceEncryptionGetKekKeyVersionRetType) { - setInstanceEncryptionGetKekKeyVersionAttributeType(&o.KekKeyVersion, v) -} - -// GetServiceAccount returns the ServiceAccount field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetServiceAccount() (ret InstanceEncryptionGetServiceAccountRetType) { - ret, _ = o.GetServiceAccountOk() - return ret -} - -// GetServiceAccountOk returns a tuple with the ServiceAccount field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) GetServiceAccountOk() (ret InstanceEncryptionGetServiceAccountRetType, ok bool) { - return getInstanceEncryptionGetServiceAccountAttributeTypeOk(o.ServiceAccount) -} - -// SetServiceAccount sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceEncryption) SetServiceAccount(v InstanceEncryptionGetServiceAccountRetType) { - setInstanceEncryptionGetServiceAccountAttributeType(&o.ServiceAccount, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceEncryption) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceEncryptionGetKekKeyIdAttributeTypeOk(o.KekKeyId); ok { - toSerialize["KekKeyId"] = val - } - if val, ok := getInstanceEncryptionGetKekKeyRingIdAttributeTypeOk(o.KekKeyRingId); ok { - toSerialize["KekKeyRingId"] = val - } - if val, ok := getInstanceEncryptionGetKekKeyVersionAttributeTypeOk(o.KekKeyVersion); ok { - toSerialize["KekKeyVersion"] = val - } - if val, ok := getInstanceEncryptionGetServiceAccountAttributeTypeOk(o.ServiceAccount); ok { - toSerialize["ServiceAccount"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceEncryption struct { - value *InstanceEncryption - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceEncryption) Get() *InstanceEncryption { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceEncryption) Set(val *InstanceEncryption) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceEncryption) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceEncryption) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceEncryption(val *InstanceEncryption) *NullableInstanceEncryption { - return &NullableInstanceEncryption{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceEncryption) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceEncryption) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_encryption_test.go b/services/postgresflex/model_instance_encryption_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_encryption_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_network.go b/services/postgresflex/model_instance_network.go deleted file mode 100644 index d3e7ae16aa..0000000000 --- a/services/postgresflex/model_instance_network.go +++ /dev/null @@ -1,326 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceNetwork type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceNetwork{} - -/* - types and functions for accessScope -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAccessScopeAttributeType = *InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAccessScopeArgType = InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAccessScopeRetType = InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkGetAccessScopeAttributeTypeOk(arg InstanceNetworkGetAccessScopeAttributeType) (ret InstanceNetworkGetAccessScopeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkGetAccessScopeAttributeType(arg *InstanceNetworkGetAccessScopeAttributeType, val InstanceNetworkGetAccessScopeRetType) { - *arg = &val -} - -/* - types and functions for acl -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAclAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAclArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetAclRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkGetAclAttributeTypeOk(arg InstanceNetworkGetAclAttributeType) (ret InstanceNetworkGetAclRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkGetAclAttributeType(arg *InstanceNetworkGetAclAttributeType, val InstanceNetworkGetAclRetType) { - *arg = &val -} - -/* - types and functions for instanceAddress -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetInstanceAddressAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkGetInstanceAddressAttributeTypeOk(arg InstanceNetworkGetInstanceAddressAttributeType) (ret InstanceNetworkGetInstanceAddressRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkGetInstanceAddressAttributeType(arg *InstanceNetworkGetInstanceAddressAttributeType, val InstanceNetworkGetInstanceAddressRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetInstanceAddressArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetInstanceAddressRetType = string - -/* - types and functions for routerAddress -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetRouterAddressAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkGetRouterAddressAttributeTypeOk(arg InstanceNetworkGetRouterAddressAttributeType) (ret InstanceNetworkGetRouterAddressRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkGetRouterAddressAttributeType(arg *InstanceNetworkGetRouterAddressAttributeType, val InstanceNetworkGetRouterAddressRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetRouterAddressArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkGetRouterAddressRetType = string - -// InstanceNetwork The access configuration of the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetwork struct { - AccessScope InstanceNetworkGetAccessScopeAttributeType `json:"accessScope,omitempty"` - // List of IPV4 cidr. - // REQUIRED - Acl InstanceNetworkGetAclAttributeType `json:"acl" required:"true"` - InstanceAddress InstanceNetworkGetInstanceAddressAttributeType `json:"instanceAddress,omitempty"` - RouterAddress InstanceNetworkGetRouterAddressAttributeType `json:"routerAddress,omitempty"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceNetwork InstanceNetwork - -// NewInstanceNetwork instantiates a new InstanceNetwork 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetwork(acl InstanceNetworkGetAclArgType) *InstanceNetwork { - this := InstanceNetwork{} - setInstanceNetworkGetAclAttributeType(&this.Acl, acl) - return &this -} - -// NewInstanceNetworkWithDefaults instantiates a new InstanceNetwork 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkWithDefaults() *InstanceNetwork { - this := InstanceNetwork{} - var accessScope InstanceNetworkAccessScope = INSTANCENETWORKACCESSSCOPE_PUBLIC - this.AccessScope = &accessScope - return &this -} - -// GetAccessScope returns the AccessScope field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetAccessScope() (res InstanceNetworkGetAccessScopeRetType) { - res, _ = o.GetAccessScopeOk() - return -} - -// GetAccessScopeOk returns a tuple with the AccessScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetAccessScopeOk() (ret InstanceNetworkGetAccessScopeRetType, ok bool) { - return getInstanceNetworkGetAccessScopeAttributeTypeOk(o.AccessScope) -} - -// HasAccessScope returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) HasAccessScope() bool { - _, ok := o.GetAccessScopeOk() - return ok -} - -// SetAccessScope gets a reference to the given InstanceNetworkAccessScope and assigns it to the AccessScope field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) SetAccessScope(v InstanceNetworkGetAccessScopeRetType) { - setInstanceNetworkGetAccessScopeAttributeType(&o.AccessScope, v) -} - -// GetAcl returns the Acl field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetAcl() (ret InstanceNetworkGetAclRetType) { - ret, _ = o.GetAclOk() - return ret -} - -// GetAclOk returns a tuple with the Acl field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetAclOk() (ret InstanceNetworkGetAclRetType, ok bool) { - return getInstanceNetworkGetAclAttributeTypeOk(o.Acl) -} - -// SetAcl sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) SetAcl(v InstanceNetworkGetAclRetType) { - setInstanceNetworkGetAclAttributeType(&o.Acl, v) -} - -// GetInstanceAddress returns the InstanceAddress field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetInstanceAddress() (res InstanceNetworkGetInstanceAddressRetType) { - res, _ = o.GetInstanceAddressOk() - return -} - -// GetInstanceAddressOk returns a tuple with the InstanceAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetInstanceAddressOk() (ret InstanceNetworkGetInstanceAddressRetType, ok bool) { - return getInstanceNetworkGetInstanceAddressAttributeTypeOk(o.InstanceAddress) -} - -// HasInstanceAddress returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) HasInstanceAddress() bool { - _, ok := o.GetInstanceAddressOk() - return ok -} - -// SetInstanceAddress gets a reference to the given string and assigns it to the InstanceAddress field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) SetInstanceAddress(v InstanceNetworkGetInstanceAddressRetType) { - setInstanceNetworkGetInstanceAddressAttributeType(&o.InstanceAddress, v) -} - -// GetRouterAddress returns the RouterAddress field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetRouterAddress() (res InstanceNetworkGetRouterAddressRetType) { - res, _ = o.GetRouterAddressOk() - return -} - -// GetRouterAddressOk returns a tuple with the RouterAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) GetRouterAddressOk() (ret InstanceNetworkGetRouterAddressRetType, ok bool) { - return getInstanceNetworkGetRouterAddressAttributeTypeOk(o.RouterAddress) -} - -// HasRouterAddress returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) HasRouterAddress() bool { - _, ok := o.GetRouterAddressOk() - return ok -} - -// SetRouterAddress gets a reference to the given string and assigns it to the RouterAddress field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetwork) SetRouterAddress(v InstanceNetworkGetRouterAddressRetType) { - setInstanceNetworkGetRouterAddressAttributeType(&o.RouterAddress, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceNetwork) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceNetworkGetAccessScopeAttributeTypeOk(o.AccessScope); ok { - toSerialize["AccessScope"] = val - } - if val, ok := getInstanceNetworkGetAclAttributeTypeOk(o.Acl); ok { - toSerialize["Acl"] = val - } - if val, ok := getInstanceNetworkGetInstanceAddressAttributeTypeOk(o.InstanceAddress); ok { - toSerialize["InstanceAddress"] = val - } - if val, ok := getInstanceNetworkGetRouterAddressAttributeTypeOk(o.RouterAddress); ok { - toSerialize["RouterAddress"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceNetwork struct { - value *InstanceNetwork - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetwork) Get() *InstanceNetwork { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetwork) Set(val *InstanceNetwork) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetwork) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetwork) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceNetwork(val *InstanceNetwork) *NullableInstanceNetwork { - return &NullableInstanceNetwork{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetwork) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetwork) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_network_access_scope.go b/services/postgresflex/model_instance_network_access_scope.go deleted file mode 100644 index dcb0ac6148..0000000000 --- a/services/postgresflex/model_instance_network_access_scope.go +++ /dev/null @@ -1,132 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// InstanceNetworkAccessScope The access scope of the instance. It defines if the instance is public or airgapped. ⚠️ **Note:** \"SNA\" value for the \"network.accessScope\" field is only permitted for enabled accounts. If your account does not have access, the request will be rejected. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkAccessScope string - -// List of instance.network.accessScope -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCENETWORKACCESSSCOPE_PUBLIC InstanceNetworkAccessScope = "PUBLIC" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCENETWORKACCESSSCOPE_SNA InstanceNetworkAccessScope = "SNA" -) - -// All allowed values of InstanceNetworkAccessScope enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedInstanceNetworkAccessScopeEnumValues = []InstanceNetworkAccessScope{ - "PUBLIC", - "SNA", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *InstanceNetworkAccessScope) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := InstanceNetworkAccessScope(value) - for _, existing := range AllowedInstanceNetworkAccessScopeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid InstanceNetworkAccessScope", value) -} - -// NewInstanceNetworkAccessScopeFromValue returns a pointer to a valid InstanceNetworkAccessScope -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkAccessScopeFromValue(v string) (*InstanceNetworkAccessScope, error) { - ev := InstanceNetworkAccessScope(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for InstanceNetworkAccessScope: valid values are %v", v, AllowedInstanceNetworkAccessScopeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v InstanceNetworkAccessScope) IsValid() bool { - for _, existing := range AllowedInstanceNetworkAccessScopeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to instance.network.accessScope value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v InstanceNetworkAccessScope) Ptr() *InstanceNetworkAccessScope { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceNetworkAccessScope struct { - value *InstanceNetworkAccessScope - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkAccessScope) Get() *InstanceNetworkAccessScope { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkAccessScope) Set(val *InstanceNetworkAccessScope) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkAccessScope) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkAccessScope) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceNetworkAccessScope(val *InstanceNetworkAccessScope) *NullableInstanceNetworkAccessScope { - return &NullableInstanceNetworkAccessScope{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkAccessScope) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkAccessScope) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_network_access_scope_test.go b/services/postgresflex/model_instance_network_access_scope_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_network_access_scope_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_network_create.go b/services/postgresflex/model_instance_network_create.go deleted file mode 100644 index 3e4557c301..0000000000 --- a/services/postgresflex/model_instance_network_create.go +++ /dev/null @@ -1,210 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceNetworkCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceNetworkCreate{} - -/* - types and functions for accessScope -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAccessScopeAttributeType = *InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAccessScopeArgType = InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAccessScopeRetType = InstanceNetworkAccessScope - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkCreateGetAccessScopeAttributeTypeOk(arg InstanceNetworkCreateGetAccessScopeAttributeType) (ret InstanceNetworkCreateGetAccessScopeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkCreateGetAccessScopeAttributeType(arg *InstanceNetworkCreateGetAccessScopeAttributeType, val InstanceNetworkCreateGetAccessScopeRetType) { - *arg = &val -} - -/* - types and functions for acl -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAclAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAclArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreateGetAclRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkCreateGetAclAttributeTypeOk(arg InstanceNetworkCreateGetAclAttributeType) (ret InstanceNetworkCreateGetAclRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkCreateGetAclAttributeType(arg *InstanceNetworkCreateGetAclAttributeType, val InstanceNetworkCreateGetAclRetType) { - *arg = &val -} - -// InstanceNetworkCreate The access configuration of the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkCreate struct { - AccessScope InstanceNetworkCreateGetAccessScopeAttributeType `json:"accessScope,omitempty"` - // List of IPV4 cidr. - // REQUIRED - Acl InstanceNetworkCreateGetAclAttributeType `json:"acl" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceNetworkCreate InstanceNetworkCreate - -// NewInstanceNetworkCreate instantiates a new InstanceNetworkCreate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkCreate(acl InstanceNetworkCreateGetAclArgType) *InstanceNetworkCreate { - this := InstanceNetworkCreate{} - setInstanceNetworkCreateGetAclAttributeType(&this.Acl, acl) - return &this -} - -// NewInstanceNetworkCreateWithDefaults instantiates a new InstanceNetworkCreate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkCreateWithDefaults() *InstanceNetworkCreate { - this := InstanceNetworkCreate{} - var accessScope InstanceNetworkAccessScope = INSTANCENETWORKACCESSSCOPE_PUBLIC - this.AccessScope = &accessScope - return &this -} - -// GetAccessScope returns the AccessScope field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) GetAccessScope() (res InstanceNetworkCreateGetAccessScopeRetType) { - res, _ = o.GetAccessScopeOk() - return -} - -// GetAccessScopeOk returns a tuple with the AccessScope field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) GetAccessScopeOk() (ret InstanceNetworkCreateGetAccessScopeRetType, ok bool) { - return getInstanceNetworkCreateGetAccessScopeAttributeTypeOk(o.AccessScope) -} - -// HasAccessScope returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) HasAccessScope() bool { - _, ok := o.GetAccessScopeOk() - return ok -} - -// SetAccessScope gets a reference to the given InstanceNetworkAccessScope and assigns it to the AccessScope field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) SetAccessScope(v InstanceNetworkCreateGetAccessScopeRetType) { - setInstanceNetworkCreateGetAccessScopeAttributeType(&o.AccessScope, v) -} - -// GetAcl returns the Acl field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) GetAcl() (ret InstanceNetworkCreateGetAclRetType) { - ret, _ = o.GetAclOk() - return ret -} - -// GetAclOk returns a tuple with the Acl field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) GetAclOk() (ret InstanceNetworkCreateGetAclRetType, ok bool) { - return getInstanceNetworkCreateGetAclAttributeTypeOk(o.Acl) -} - -// SetAcl sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkCreate) SetAcl(v InstanceNetworkCreateGetAclRetType) { - setInstanceNetworkCreateGetAclAttributeType(&o.Acl, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceNetworkCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceNetworkCreateGetAccessScopeAttributeTypeOk(o.AccessScope); ok { - toSerialize["AccessScope"] = val - } - if val, ok := getInstanceNetworkCreateGetAclAttributeTypeOk(o.Acl); ok { - toSerialize["Acl"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceNetworkCreate struct { - value *InstanceNetworkCreate - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkCreate) Get() *InstanceNetworkCreate { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkCreate) Set(val *InstanceNetworkCreate) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkCreate) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkCreate) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceNetworkCreate(val *InstanceNetworkCreate) *NullableInstanceNetworkCreate { - return &NullableInstanceNetworkCreate{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_network_create_test.go b/services/postgresflex/model_instance_network_create_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_network_create_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_network_opt.go b/services/postgresflex/model_instance_network_opt.go deleted file mode 100644 index 52a20034c7..0000000000 --- a/services/postgresflex/model_instance_network_opt.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceNetworkOpt type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceNetworkOpt{} - -/* - types and functions for acl -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkOptGetAclAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkOptGetAclArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkOptGetAclRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkOptGetAclAttributeTypeOk(arg InstanceNetworkOptGetAclAttributeType) (ret InstanceNetworkOptGetAclRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkOptGetAclAttributeType(arg *InstanceNetworkOptGetAclAttributeType, val InstanceNetworkOptGetAclRetType) { - *arg = &val -} - -// InstanceNetworkOpt The access configuration of the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkOpt struct { - // List of IPV4 cidr. - Acl InstanceNetworkOptGetAclAttributeType `json:"acl,omitempty"` -} - -// NewInstanceNetworkOpt instantiates a new InstanceNetworkOpt 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkOpt() *InstanceNetworkOpt { - this := InstanceNetworkOpt{} - return &this -} - -// NewInstanceNetworkOptWithDefaults instantiates a new InstanceNetworkOpt 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkOptWithDefaults() *InstanceNetworkOpt { - this := InstanceNetworkOpt{} - return &this -} - -// GetAcl returns the Acl field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkOpt) GetAcl() (res InstanceNetworkOptGetAclRetType) { - res, _ = o.GetAclOk() - return -} - -// GetAclOk returns a tuple with the Acl field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkOpt) GetAclOk() (ret InstanceNetworkOptGetAclRetType, ok bool) { - return getInstanceNetworkOptGetAclAttributeTypeOk(o.Acl) -} - -// HasAcl returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkOpt) HasAcl() bool { - _, ok := o.GetAclOk() - return ok -} - -// SetAcl gets a reference to the given []string and assigns it to the Acl field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkOpt) SetAcl(v InstanceNetworkOptGetAclRetType) { - setInstanceNetworkOptGetAclAttributeType(&o.Acl, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceNetworkOpt) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceNetworkOptGetAclAttributeTypeOk(o.Acl); ok { - toSerialize["Acl"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceNetworkOpt struct { - value *InstanceNetworkOpt - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkOpt) Get() *InstanceNetworkOpt { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkOpt) Set(val *InstanceNetworkOpt) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkOpt) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkOpt) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceNetworkOpt(val *InstanceNetworkOpt) *NullableInstanceNetworkOpt { - return &NullableInstanceNetworkOpt{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkOpt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkOpt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_network_opt_test.go b/services/postgresflex/model_instance_network_opt_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_network_opt_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_network_test.go b/services/postgresflex/model_instance_network_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_network_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_network_update.go b/services/postgresflex/model_instance_network_update.go deleted file mode 100644 index bfdc5c9beb..0000000000 --- a/services/postgresflex/model_instance_network_update.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceNetworkUpdate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceNetworkUpdate{} - -/* - types and functions for acl -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkUpdateGetAclAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkUpdateGetAclArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkUpdateGetAclRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceNetworkUpdateGetAclAttributeTypeOk(arg InstanceNetworkUpdateGetAclAttributeType) (ret InstanceNetworkUpdateGetAclRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceNetworkUpdateGetAclAttributeType(arg *InstanceNetworkUpdateGetAclAttributeType, val InstanceNetworkUpdateGetAclRetType) { - *arg = &val -} - -// InstanceNetworkUpdate The access configuration of the instance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceNetworkUpdate struct { - // List of IPV4 cidr. - // REQUIRED - Acl InstanceNetworkUpdateGetAclAttributeType `json:"acl" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceNetworkUpdate InstanceNetworkUpdate - -// NewInstanceNetworkUpdate instantiates a new InstanceNetworkUpdate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkUpdate(acl InstanceNetworkUpdateGetAclArgType) *InstanceNetworkUpdate { - this := InstanceNetworkUpdate{} - setInstanceNetworkUpdateGetAclAttributeType(&this.Acl, acl) - return &this -} - -// NewInstanceNetworkUpdateWithDefaults instantiates a new InstanceNetworkUpdate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceNetworkUpdateWithDefaults() *InstanceNetworkUpdate { - this := InstanceNetworkUpdate{} - return &this -} - -// GetAcl returns the Acl field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkUpdate) GetAcl() (ret InstanceNetworkUpdateGetAclRetType) { - ret, _ = o.GetAclOk() - return ret -} - -// GetAclOk returns a tuple with the Acl field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkUpdate) GetAclOk() (ret InstanceNetworkUpdateGetAclRetType, ok bool) { - return getInstanceNetworkUpdateGetAclAttributeTypeOk(o.Acl) -} - -// SetAcl sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceNetworkUpdate) SetAcl(v InstanceNetworkUpdateGetAclRetType) { - setInstanceNetworkUpdateGetAclAttributeType(&o.Acl, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceNetworkUpdate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceNetworkUpdateGetAclAttributeTypeOk(o.Acl); ok { - toSerialize["Acl"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceNetworkUpdate struct { - value *InstanceNetworkUpdate - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkUpdate) Get() *InstanceNetworkUpdate { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkUpdate) Set(val *InstanceNetworkUpdate) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkUpdate) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkUpdate) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceNetworkUpdate(val *InstanceNetworkUpdate) *NullableInstanceNetworkUpdate { - return &NullableInstanceNetworkUpdate{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceNetworkUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceNetworkUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_network_update_test.go b/services/postgresflex/model_instance_network_update_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_network_update_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_sort.go b/services/postgresflex/model_instance_sort.go deleted file mode 100644 index df06a1f203..0000000000 --- a/services/postgresflex/model_instance_sort.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// InstanceSort the model 'InstanceSort' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceSort string - -// List of instance.sort -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_ID_DESC InstanceSort = "id.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_ID_ASC InstanceSort = "id.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_IS_DELETABLE_DESC InstanceSort = "is_deletable.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_IS_DELETABLE_ASC InstanceSort = "is_deletable.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_NAME_ASC InstanceSort = "name.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_NAME_DESC InstanceSort = "name.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_STATE_ASC InstanceSort = "state.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - INSTANCESORT_STATE_DESC InstanceSort = "state.desc" -) - -// All allowed values of InstanceSort enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedInstanceSortEnumValues = []InstanceSort{ - "id.desc", - "id.asc", - "is_deletable.desc", - "is_deletable.asc", - "name.asc", - "name.desc", - "state.asc", - "state.desc", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *InstanceSort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := InstanceSort(value) - for _, existing := range AllowedInstanceSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid InstanceSort", value) -} - -// NewInstanceSortFromValue returns a pointer to a valid InstanceSort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceSortFromValue(v string) (*InstanceSort, error) { - ev := InstanceSort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for InstanceSort: valid values are %v", v, AllowedInstanceSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v InstanceSort) IsValid() bool { - for _, existing := range AllowedInstanceSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to instance.sort value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v InstanceSort) Ptr() *InstanceSort { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceSort struct { - value *InstanceSort - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceSort) Get() *InstanceSort { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceSort) Set(val *InstanceSort) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceSort) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceSort) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceSort(val *InstanceSort) *NullableInstanceSort { - return &NullableInstanceSort{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_sort_test.go b/services/postgresflex/model_instance_sort_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_sort_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_instance_storage_range.go b/services/postgresflex/model_instance_storage_range.go deleted file mode 100644 index 627e72d554..0000000000 --- a/services/postgresflex/model_instance_storage_range.go +++ /dev/null @@ -1,206 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the InstanceStorageRange type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InstanceStorageRange{} - -/* - types and functions for max -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMaxAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMaxArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMaxRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceStorageRangeGetMaxAttributeTypeOk(arg InstanceStorageRangeGetMaxAttributeType) (ret InstanceStorageRangeGetMaxRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceStorageRangeGetMaxAttributeType(arg *InstanceStorageRangeGetMaxAttributeType, val InstanceStorageRangeGetMaxRetType) { - *arg = &val -} - -/* - types and functions for min -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMinAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMinArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRangeGetMinRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getInstanceStorageRangeGetMinAttributeTypeOk(arg InstanceStorageRangeGetMinAttributeType) (ret InstanceStorageRangeGetMinRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setInstanceStorageRangeGetMinAttributeType(arg *InstanceStorageRangeGetMinAttributeType, val InstanceStorageRangeGetMinRetType) { - *arg = &val -} - -// InstanceStorageRange Contains the minimum and maximum storage space. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type InstanceStorageRange struct { - // The maximum available amount of storage. - // Can be cast to int32 without loss of precision. - // REQUIRED - Max InstanceStorageRangeGetMaxAttributeType `json:"max" required:"true"` - // The minimum available amount of storage. - // Can be cast to int32 without loss of precision. - // REQUIRED - Min InstanceStorageRangeGetMinAttributeType `json:"min" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _InstanceStorageRange InstanceStorageRange - -// NewInstanceStorageRange instantiates a new InstanceStorageRange 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceStorageRange(max InstanceStorageRangeGetMaxArgType, min InstanceStorageRangeGetMinArgType) *InstanceStorageRange { - this := InstanceStorageRange{} - setInstanceStorageRangeGetMaxAttributeType(&this.Max, max) - setInstanceStorageRangeGetMinAttributeType(&this.Min, min) - return &this -} - -// NewInstanceStorageRangeWithDefaults instantiates a new InstanceStorageRange 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewInstanceStorageRangeWithDefaults() *InstanceStorageRange { - this := InstanceStorageRange{} - return &this -} - -// GetMax returns the Max field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) GetMax() (ret InstanceStorageRangeGetMaxRetType) { - ret, _ = o.GetMaxOk() - return ret -} - -// GetMaxOk returns a tuple with the Max field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) GetMaxOk() (ret InstanceStorageRangeGetMaxRetType, ok bool) { - return getInstanceStorageRangeGetMaxAttributeTypeOk(o.Max) -} - -// SetMax sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) SetMax(v InstanceStorageRangeGetMaxRetType) { - setInstanceStorageRangeGetMaxAttributeType(&o.Max, v) -} - -// GetMin returns the Min field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) GetMin() (ret InstanceStorageRangeGetMinRetType) { - ret, _ = o.GetMinOk() - return ret -} - -// GetMinOk returns a tuple with the Min field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) GetMinOk() (ret InstanceStorageRangeGetMinRetType, ok bool) { - return getInstanceStorageRangeGetMinAttributeTypeOk(o.Min) -} - -// SetMin sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *InstanceStorageRange) SetMin(v InstanceStorageRangeGetMinRetType) { - setInstanceStorageRangeGetMinAttributeType(&o.Min, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o InstanceStorageRange) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getInstanceStorageRangeGetMaxAttributeTypeOk(o.Max); ok { - toSerialize["Max"] = val - } - if val, ok := getInstanceStorageRangeGetMinAttributeTypeOk(o.Min); ok { - toSerialize["Min"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInstanceStorageRange struct { - value *InstanceStorageRange - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceStorageRange) Get() *InstanceStorageRange { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceStorageRange) Set(val *InstanceStorageRange) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceStorageRange) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceStorageRange) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInstanceStorageRange(val *InstanceStorageRange) *NullableInstanceStorageRange { - return &NullableInstanceStorageRange{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInstanceStorageRange) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInstanceStorageRange) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_instance_storage_range_test.go b/services/postgresflex/model_instance_storage_range_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_instance_storage_range_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_backups_response.go b/services/postgresflex/model_list_backups_response.go deleted file mode 100644 index 739bb65b0a..0000000000 --- a/services/postgresflex/model_list_backups_response.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListBackupsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListBackupsResponse{} - -/* - types and functions for backups -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetBackupsAttributeType = *[]BackupData - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetBackupsArgType = []BackupData - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetBackupsRetType = []BackupData - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListBackupsResponseGetBackupsAttributeTypeOk(arg ListBackupsResponseGetBackupsAttributeType) (ret ListBackupsResponseGetBackupsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListBackupsResponseGetBackupsAttributeType(arg *ListBackupsResponseGetBackupsAttributeType, val ListBackupsResponseGetBackupsRetType) { - *arg = &val -} - -/* - types and functions for pagination -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetPaginationAttributeType = *Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetPaginationArgType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponseGetPaginationRetType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListBackupsResponseGetPaginationAttributeTypeOk(arg ListBackupsResponseGetPaginationAttributeType) (ret ListBackupsResponseGetPaginationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListBackupsResponseGetPaginationAttributeType(arg *ListBackupsResponseGetPaginationAttributeType, val ListBackupsResponseGetPaginationRetType) { - *arg = &val -} - -// ListBackupsResponse struct for ListBackupsResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListBackupsResponse struct { - // The list containing the information about the backups. - // REQUIRED - Backups ListBackupsResponseGetBackupsAttributeType `json:"backups" required:"true"` - // REQUIRED - Pagination ListBackupsResponseGetPaginationAttributeType `json:"pagination" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListBackupsResponse ListBackupsResponse - -// NewListBackupsResponse instantiates a new ListBackupsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListBackupsResponse(backups ListBackupsResponseGetBackupsArgType, pagination ListBackupsResponseGetPaginationArgType) *ListBackupsResponse { - this := ListBackupsResponse{} - setListBackupsResponseGetBackupsAttributeType(&this.Backups, backups) - setListBackupsResponseGetPaginationAttributeType(&this.Pagination, pagination) - return &this -} - -// NewListBackupsResponseWithDefaults instantiates a new ListBackupsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListBackupsResponseWithDefaults() *ListBackupsResponse { - this := ListBackupsResponse{} - return &this -} - -// GetBackups returns the Backups field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) GetBackups() (ret ListBackupsResponseGetBackupsRetType) { - ret, _ = o.GetBackupsOk() - return ret -} - -// GetBackupsOk returns a tuple with the Backups field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) GetBackupsOk() (ret ListBackupsResponseGetBackupsRetType, ok bool) { - return getListBackupsResponseGetBackupsAttributeTypeOk(o.Backups) -} - -// SetBackups sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) SetBackups(v ListBackupsResponseGetBackupsRetType) { - setListBackupsResponseGetBackupsAttributeType(&o.Backups, v) -} - -// GetPagination returns the Pagination field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) GetPagination() (ret ListBackupsResponseGetPaginationRetType) { - ret, _ = o.GetPaginationOk() - return ret -} - -// GetPaginationOk returns a tuple with the Pagination field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) GetPaginationOk() (ret ListBackupsResponseGetPaginationRetType, ok bool) { - return getListBackupsResponseGetPaginationAttributeTypeOk(o.Pagination) -} - -// SetPagination sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListBackupsResponse) SetPagination(v ListBackupsResponseGetPaginationRetType) { - setListBackupsResponseGetPaginationAttributeType(&o.Pagination, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListBackupsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListBackupsResponseGetBackupsAttributeTypeOk(o.Backups); ok { - toSerialize["Backups"] = val - } - if val, ok := getListBackupsResponseGetPaginationAttributeTypeOk(o.Pagination); ok { - toSerialize["Pagination"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListBackupsResponse struct { - value *ListBackupsResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListBackupsResponse) Get() *ListBackupsResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListBackupsResponse) Set(val *ListBackupsResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListBackupsResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListBackupsResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListBackupsResponse(val *ListBackupsResponse) *NullableListBackupsResponse { - return &NullableListBackupsResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListBackupsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListBackupsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_backups_response_test.go b/services/postgresflex/model_list_backups_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_backups_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_collations_response.go b/services/postgresflex/model_list_collations_response.go deleted file mode 100644 index 88c7db2493..0000000000 --- a/services/postgresflex/model_list_collations_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListCollationsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListCollationsResponse{} - -/* - types and functions for collations -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListCollationsResponseGetCollationsAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListCollationsResponseGetCollationsArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListCollationsResponseGetCollationsRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListCollationsResponseGetCollationsAttributeTypeOk(arg ListCollationsResponseGetCollationsAttributeType) (ret ListCollationsResponseGetCollationsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListCollationsResponseGetCollationsAttributeType(arg *ListCollationsResponseGetCollationsAttributeType, val ListCollationsResponseGetCollationsRetType) { - *arg = &val -} - -// ListCollationsResponse struct for ListCollationsResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListCollationsResponse struct { - // List of collations available for the instance. - // REQUIRED - Collations ListCollationsResponseGetCollationsAttributeType `json:"collations" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListCollationsResponse ListCollationsResponse - -// NewListCollationsResponse instantiates a new ListCollationsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListCollationsResponse(collations ListCollationsResponseGetCollationsArgType) *ListCollationsResponse { - this := ListCollationsResponse{} - setListCollationsResponseGetCollationsAttributeType(&this.Collations, collations) - return &this -} - -// NewListCollationsResponseWithDefaults instantiates a new ListCollationsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListCollationsResponseWithDefaults() *ListCollationsResponse { - this := ListCollationsResponse{} - return &this -} - -// GetCollations returns the Collations field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListCollationsResponse) GetCollations() (ret ListCollationsResponseGetCollationsRetType) { - ret, _ = o.GetCollationsOk() - return ret -} - -// GetCollationsOk returns a tuple with the Collations field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListCollationsResponse) GetCollationsOk() (ret ListCollationsResponseGetCollationsRetType, ok bool) { - return getListCollationsResponseGetCollationsAttributeTypeOk(o.Collations) -} - -// SetCollations sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListCollationsResponse) SetCollations(v ListCollationsResponseGetCollationsRetType) { - setListCollationsResponseGetCollationsAttributeType(&o.Collations, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListCollationsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListCollationsResponseGetCollationsAttributeTypeOk(o.Collations); ok { - toSerialize["Collations"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListCollationsResponse struct { - value *ListCollationsResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListCollationsResponse) Get() *ListCollationsResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListCollationsResponse) Set(val *ListCollationsResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListCollationsResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListCollationsResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListCollationsResponse(val *ListCollationsResponse) *NullableListCollationsResponse { - return &NullableListCollationsResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListCollationsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListCollationsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_collations_response_test.go b/services/postgresflex/model_list_collations_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_collations_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_database.go b/services/postgresflex/model_list_database.go deleted file mode 100644 index a1663a2ce8..0000000000 --- a/services/postgresflex/model_list_database.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListDatabase type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListDatabase{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListDatabaseGetIdAttributeTypeOk(arg ListDatabaseGetIdAttributeType) (ret ListDatabaseGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListDatabaseGetIdAttributeType(arg *ListDatabaseGetIdAttributeType, val ListDatabaseGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListDatabaseGetNameAttributeTypeOk(arg ListDatabaseGetNameAttributeType) (ret ListDatabaseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListDatabaseGetNameAttributeType(arg *ListDatabaseGetNameAttributeType, val ListDatabaseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetNameRetType = string - -/* - types and functions for owner -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetOwnerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListDatabaseGetOwnerAttributeTypeOk(arg ListDatabaseGetOwnerAttributeType) (ret ListDatabaseGetOwnerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListDatabaseGetOwnerAttributeType(arg *ListDatabaseGetOwnerAttributeType, val ListDatabaseGetOwnerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetOwnerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabaseGetOwnerRetType = string - -// ListDatabase struct for ListDatabase -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabase struct { - // The id of the database. - // REQUIRED - Id ListDatabaseGetIdAttributeType `json:"id" required:"true"` - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - // REQUIRED - Name ListDatabaseGetNameAttributeType `json:"name" required:"true"` - // The owner of the database. - // REQUIRED - Owner ListDatabaseGetOwnerAttributeType `json:"owner" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListDatabase ListDatabase - -// NewListDatabase instantiates a new ListDatabase 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListDatabase(id ListDatabaseGetIdArgType, name ListDatabaseGetNameArgType, owner ListDatabaseGetOwnerArgType) *ListDatabase { - this := ListDatabase{} - setListDatabaseGetIdAttributeType(&this.Id, id) - setListDatabaseGetNameAttributeType(&this.Name, name) - setListDatabaseGetOwnerAttributeType(&this.Owner, owner) - return &this -} - -// NewListDatabaseWithDefaults instantiates a new ListDatabase 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListDatabaseWithDefaults() *ListDatabase { - this := ListDatabase{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetId() (ret ListDatabaseGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetIdOk() (ret ListDatabaseGetIdRetType, ok bool) { - return getListDatabaseGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) SetId(v ListDatabaseGetIdRetType) { - setListDatabaseGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetName() (ret ListDatabaseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetNameOk() (ret ListDatabaseGetNameRetType, ok bool) { - return getListDatabaseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) SetName(v ListDatabaseGetNameRetType) { - setListDatabaseGetNameAttributeType(&o.Name, v) -} - -// GetOwner returns the Owner field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetOwner() (ret ListDatabaseGetOwnerRetType) { - ret, _ = o.GetOwnerOk() - return ret -} - -// GetOwnerOk returns a tuple with the Owner field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) GetOwnerOk() (ret ListDatabaseGetOwnerRetType, ok bool) { - return getListDatabaseGetOwnerAttributeTypeOk(o.Owner) -} - -// SetOwner sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabase) SetOwner(v ListDatabaseGetOwnerRetType) { - setListDatabaseGetOwnerAttributeType(&o.Owner, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListDatabase) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListDatabaseGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getListDatabaseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getListDatabaseGetOwnerAttributeTypeOk(o.Owner); ok { - toSerialize["Owner"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListDatabase struct { - value *ListDatabase - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabase) Get() *ListDatabase { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabase) Set(val *ListDatabase) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabase) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabase) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListDatabase(val *ListDatabase) *NullableListDatabase { - return &NullableListDatabase{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabase) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabase) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_database_test.go b/services/postgresflex/model_list_database_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_database_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_databases_response.go b/services/postgresflex/model_list_databases_response.go deleted file mode 100644 index 9579527bd6..0000000000 --- a/services/postgresflex/model_list_databases_response.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListDatabasesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListDatabasesResponse{} - -/* - types and functions for databases -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetDatabasesAttributeType = *[]ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetDatabasesArgType = []ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetDatabasesRetType = []ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListDatabasesResponseGetDatabasesAttributeTypeOk(arg ListDatabasesResponseGetDatabasesAttributeType) (ret ListDatabasesResponseGetDatabasesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListDatabasesResponseGetDatabasesAttributeType(arg *ListDatabasesResponseGetDatabasesAttributeType, val ListDatabasesResponseGetDatabasesRetType) { - *arg = &val -} - -/* - types and functions for pagination -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetPaginationAttributeType = *Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetPaginationArgType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponseGetPaginationRetType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListDatabasesResponseGetPaginationAttributeTypeOk(arg ListDatabasesResponseGetPaginationAttributeType) (ret ListDatabasesResponseGetPaginationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListDatabasesResponseGetPaginationAttributeType(arg *ListDatabasesResponseGetPaginationAttributeType, val ListDatabasesResponseGetPaginationRetType) { - *arg = &val -} - -// ListDatabasesResponse struct for ListDatabasesResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListDatabasesResponse struct { - // A list containing all databases for the instance. - // REQUIRED - Databases ListDatabasesResponseGetDatabasesAttributeType `json:"databases" required:"true"` - // REQUIRED - Pagination ListDatabasesResponseGetPaginationAttributeType `json:"pagination" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListDatabasesResponse ListDatabasesResponse - -// NewListDatabasesResponse instantiates a new ListDatabasesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListDatabasesResponse(databases ListDatabasesResponseGetDatabasesArgType, pagination ListDatabasesResponseGetPaginationArgType) *ListDatabasesResponse { - this := ListDatabasesResponse{} - setListDatabasesResponseGetDatabasesAttributeType(&this.Databases, databases) - setListDatabasesResponseGetPaginationAttributeType(&this.Pagination, pagination) - return &this -} - -// NewListDatabasesResponseWithDefaults instantiates a new ListDatabasesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListDatabasesResponseWithDefaults() *ListDatabasesResponse { - this := ListDatabasesResponse{} - return &this -} - -// GetDatabases returns the Databases field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) GetDatabases() (ret ListDatabasesResponseGetDatabasesRetType) { - ret, _ = o.GetDatabasesOk() - return ret -} - -// GetDatabasesOk returns a tuple with the Databases field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) GetDatabasesOk() (ret ListDatabasesResponseGetDatabasesRetType, ok bool) { - return getListDatabasesResponseGetDatabasesAttributeTypeOk(o.Databases) -} - -// SetDatabases sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) SetDatabases(v ListDatabasesResponseGetDatabasesRetType) { - setListDatabasesResponseGetDatabasesAttributeType(&o.Databases, v) -} - -// GetPagination returns the Pagination field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) GetPagination() (ret ListDatabasesResponseGetPaginationRetType) { - ret, _ = o.GetPaginationOk() - return ret -} - -// GetPaginationOk returns a tuple with the Pagination field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) GetPaginationOk() (ret ListDatabasesResponseGetPaginationRetType, ok bool) { - return getListDatabasesResponseGetPaginationAttributeTypeOk(o.Pagination) -} - -// SetPagination sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListDatabasesResponse) SetPagination(v ListDatabasesResponseGetPaginationRetType) { - setListDatabasesResponseGetPaginationAttributeType(&o.Pagination, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListDatabasesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListDatabasesResponseGetDatabasesAttributeTypeOk(o.Databases); ok { - toSerialize["Databases"] = val - } - if val, ok := getListDatabasesResponseGetPaginationAttributeTypeOk(o.Pagination); ok { - toSerialize["Pagination"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListDatabasesResponse struct { - value *ListDatabasesResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabasesResponse) Get() *ListDatabasesResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabasesResponse) Set(val *ListDatabasesResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabasesResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabasesResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListDatabasesResponse(val *ListDatabasesResponse) *NullableListDatabasesResponse { - return &NullableListDatabasesResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListDatabasesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListDatabasesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_databases_response_test.go b/services/postgresflex/model_list_databases_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_databases_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_flavors.go b/services/postgresflex/model_list_flavors.go deleted file mode 100644 index d47d7a25d6..0000000000 --- a/services/postgresflex/model_list_flavors.go +++ /dev/null @@ -1,530 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListFlavors type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListFlavors{} - -/* - types and functions for cpu -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetCpuAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetCpuArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetCpuRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetCpuAttributeTypeOk(arg ListFlavorsGetCpuAttributeType) (ret ListFlavorsGetCpuRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetCpuAttributeType(arg *ListFlavorsGetCpuAttributeType, val ListFlavorsGetCpuRetType) { - *arg = &val -} - -/* - types and functions for description -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetDescriptionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetDescriptionAttributeTypeOk(arg ListFlavorsGetDescriptionAttributeType) (ret ListFlavorsGetDescriptionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetDescriptionAttributeType(arg *ListFlavorsGetDescriptionAttributeType, val ListFlavorsGetDescriptionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetDescriptionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetDescriptionRetType = string - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetIdAttributeTypeOk(arg ListFlavorsGetIdAttributeType) (ret ListFlavorsGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetIdAttributeType(arg *ListFlavorsGetIdAttributeType, val ListFlavorsGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetIdRetType = string - -/* - types and functions for maxGB -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMaxGBAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMaxGBArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMaxGBRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetMaxGBAttributeTypeOk(arg ListFlavorsGetMaxGBAttributeType) (ret ListFlavorsGetMaxGBRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetMaxGBAttributeType(arg *ListFlavorsGetMaxGBAttributeType, val ListFlavorsGetMaxGBRetType) { - *arg = &val -} - -/* - types and functions for memory -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMemoryAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMemoryArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMemoryRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetMemoryAttributeTypeOk(arg ListFlavorsGetMemoryAttributeType) (ret ListFlavorsGetMemoryRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetMemoryAttributeType(arg *ListFlavorsGetMemoryAttributeType, val ListFlavorsGetMemoryRetType) { - *arg = &val -} - -/* - types and functions for minGB -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMinGBAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMinGBArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetMinGBRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetMinGBAttributeTypeOk(arg ListFlavorsGetMinGBAttributeType) (ret ListFlavorsGetMinGBRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetMinGBAttributeType(arg *ListFlavorsGetMinGBAttributeType, val ListFlavorsGetMinGBRetType) { - *arg = &val -} - -/* - types and functions for nodeType -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetNodeTypeAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetNodeTypeAttributeTypeOk(arg ListFlavorsGetNodeTypeAttributeType) (ret ListFlavorsGetNodeTypeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetNodeTypeAttributeType(arg *ListFlavorsGetNodeTypeAttributeType, val ListFlavorsGetNodeTypeRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetNodeTypeArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetNodeTypeRetType = string - -/* - types and functions for storageClasses -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetStorageClassesAttributeType = *[]FlavorStorageClassesStorageClass - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetStorageClassesArgType = []FlavorStorageClassesStorageClass - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsGetStorageClassesRetType = []FlavorStorageClassesStorageClass - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsGetStorageClassesAttributeTypeOk(arg ListFlavorsGetStorageClassesAttributeType) (ret ListFlavorsGetStorageClassesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsGetStorageClassesAttributeType(arg *ListFlavorsGetStorageClassesAttributeType, val ListFlavorsGetStorageClassesRetType) { - *arg = &val -} - -// ListFlavors The flavor of the instance containing the technical features. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavors struct { - // The cpu count of the instance. - // REQUIRED - Cpu ListFlavorsGetCpuAttributeType `json:"cpu" required:"true"` - // The flavor description. - // REQUIRED - Description ListFlavorsGetDescriptionAttributeType `json:"description" required:"true"` - // The id of the instance flavor. - // REQUIRED - Id ListFlavorsGetIdAttributeType `json:"id" required:"true"` - // maximum storage which can be ordered for the flavor in Gigabyte. - // Can be cast to int32 without loss of precision. - // REQUIRED - MaxGB ListFlavorsGetMaxGBAttributeType `json:"maxGB" required:"true"` - // The memory of the instance in Gibibyte. - // REQUIRED - Memory ListFlavorsGetMemoryAttributeType `json:"memory" required:"true"` - // minimum storage which is required to order in Gigabyte. - // Can be cast to int32 without loss of precision. - // REQUIRED - MinGB ListFlavorsGetMinGBAttributeType `json:"minGB" required:"true"` - // defines the nodeType it can be either single or replica - // REQUIRED - NodeType ListFlavorsGetNodeTypeAttributeType `json:"nodeType" required:"true"` - // maximum storage which can be ordered for the flavor in Gigabyte. - // REQUIRED - StorageClasses ListFlavorsGetStorageClassesAttributeType `json:"storageClasses" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListFlavors ListFlavors - -// NewListFlavors instantiates a new ListFlavors 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListFlavors(cpu ListFlavorsGetCpuArgType, description ListFlavorsGetDescriptionArgType, id ListFlavorsGetIdArgType, maxGB ListFlavorsGetMaxGBArgType, memory ListFlavorsGetMemoryArgType, minGB ListFlavorsGetMinGBArgType, nodeType ListFlavorsGetNodeTypeArgType, storageClasses ListFlavorsGetStorageClassesArgType) *ListFlavors { - this := ListFlavors{} - setListFlavorsGetCpuAttributeType(&this.Cpu, cpu) - setListFlavorsGetDescriptionAttributeType(&this.Description, description) - setListFlavorsGetIdAttributeType(&this.Id, id) - setListFlavorsGetMaxGBAttributeType(&this.MaxGB, maxGB) - setListFlavorsGetMemoryAttributeType(&this.Memory, memory) - setListFlavorsGetMinGBAttributeType(&this.MinGB, minGB) - setListFlavorsGetNodeTypeAttributeType(&this.NodeType, nodeType) - setListFlavorsGetStorageClassesAttributeType(&this.StorageClasses, storageClasses) - return &this -} - -// NewListFlavorsWithDefaults instantiates a new ListFlavors 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListFlavorsWithDefaults() *ListFlavors { - this := ListFlavors{} - return &this -} - -// GetCpu returns the Cpu field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetCpu() (ret ListFlavorsGetCpuRetType) { - ret, _ = o.GetCpuOk() - return ret -} - -// GetCpuOk returns a tuple with the Cpu field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetCpuOk() (ret ListFlavorsGetCpuRetType, ok bool) { - return getListFlavorsGetCpuAttributeTypeOk(o.Cpu) -} - -// SetCpu sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetCpu(v ListFlavorsGetCpuRetType) { - setListFlavorsGetCpuAttributeType(&o.Cpu, v) -} - -// GetDescription returns the Description field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetDescription() (ret ListFlavorsGetDescriptionRetType) { - ret, _ = o.GetDescriptionOk() - return ret -} - -// GetDescriptionOk returns a tuple with the Description field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetDescriptionOk() (ret ListFlavorsGetDescriptionRetType, ok bool) { - return getListFlavorsGetDescriptionAttributeTypeOk(o.Description) -} - -// SetDescription sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetDescription(v ListFlavorsGetDescriptionRetType) { - setListFlavorsGetDescriptionAttributeType(&o.Description, v) -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetId() (ret ListFlavorsGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetIdOk() (ret ListFlavorsGetIdRetType, ok bool) { - return getListFlavorsGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetId(v ListFlavorsGetIdRetType) { - setListFlavorsGetIdAttributeType(&o.Id, v) -} - -// GetMaxGB returns the MaxGB field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMaxGB() (ret ListFlavorsGetMaxGBRetType) { - ret, _ = o.GetMaxGBOk() - return ret -} - -// GetMaxGBOk returns a tuple with the MaxGB field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMaxGBOk() (ret ListFlavorsGetMaxGBRetType, ok bool) { - return getListFlavorsGetMaxGBAttributeTypeOk(o.MaxGB) -} - -// SetMaxGB sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetMaxGB(v ListFlavorsGetMaxGBRetType) { - setListFlavorsGetMaxGBAttributeType(&o.MaxGB, v) -} - -// GetMemory returns the Memory field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMemory() (ret ListFlavorsGetMemoryRetType) { - ret, _ = o.GetMemoryOk() - return ret -} - -// GetMemoryOk returns a tuple with the Memory field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMemoryOk() (ret ListFlavorsGetMemoryRetType, ok bool) { - return getListFlavorsGetMemoryAttributeTypeOk(o.Memory) -} - -// SetMemory sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetMemory(v ListFlavorsGetMemoryRetType) { - setListFlavorsGetMemoryAttributeType(&o.Memory, v) -} - -// GetMinGB returns the MinGB field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMinGB() (ret ListFlavorsGetMinGBRetType) { - ret, _ = o.GetMinGBOk() - return ret -} - -// GetMinGBOk returns a tuple with the MinGB field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetMinGBOk() (ret ListFlavorsGetMinGBRetType, ok bool) { - return getListFlavorsGetMinGBAttributeTypeOk(o.MinGB) -} - -// SetMinGB sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetMinGB(v ListFlavorsGetMinGBRetType) { - setListFlavorsGetMinGBAttributeType(&o.MinGB, v) -} - -// GetNodeType returns the NodeType field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetNodeType() (ret ListFlavorsGetNodeTypeRetType) { - ret, _ = o.GetNodeTypeOk() - return ret -} - -// GetNodeTypeOk returns a tuple with the NodeType field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetNodeTypeOk() (ret ListFlavorsGetNodeTypeRetType, ok bool) { - return getListFlavorsGetNodeTypeAttributeTypeOk(o.NodeType) -} - -// SetNodeType sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetNodeType(v ListFlavorsGetNodeTypeRetType) { - setListFlavorsGetNodeTypeAttributeType(&o.NodeType, v) -} - -// GetStorageClasses returns the StorageClasses field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetStorageClasses() (ret ListFlavorsGetStorageClassesRetType) { - ret, _ = o.GetStorageClassesOk() - return ret -} - -// GetStorageClassesOk returns a tuple with the StorageClasses field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) GetStorageClassesOk() (ret ListFlavorsGetStorageClassesRetType, ok bool) { - return getListFlavorsGetStorageClassesAttributeTypeOk(o.StorageClasses) -} - -// SetStorageClasses sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavors) SetStorageClasses(v ListFlavorsGetStorageClassesRetType) { - setListFlavorsGetStorageClassesAttributeType(&o.StorageClasses, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListFlavors) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListFlavorsGetCpuAttributeTypeOk(o.Cpu); ok { - toSerialize["Cpu"] = val - } - if val, ok := getListFlavorsGetDescriptionAttributeTypeOk(o.Description); ok { - toSerialize["Description"] = val - } - if val, ok := getListFlavorsGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getListFlavorsGetMaxGBAttributeTypeOk(o.MaxGB); ok { - toSerialize["MaxGB"] = val - } - if val, ok := getListFlavorsGetMemoryAttributeTypeOk(o.Memory); ok { - toSerialize["Memory"] = val - } - if val, ok := getListFlavorsGetMinGBAttributeTypeOk(o.MinGB); ok { - toSerialize["MinGB"] = val - } - if val, ok := getListFlavorsGetNodeTypeAttributeTypeOk(o.NodeType); ok { - toSerialize["NodeType"] = val - } - if val, ok := getListFlavorsGetStorageClassesAttributeTypeOk(o.StorageClasses); ok { - toSerialize["StorageClasses"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListFlavors struct { - value *ListFlavors - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavors) Get() *ListFlavors { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavors) Set(val *ListFlavors) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavors) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavors) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListFlavors(val *ListFlavors) *NullableListFlavors { - return &NullableListFlavors{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavors) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavors) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_flavors_response.go b/services/postgresflex/model_list_flavors_response.go deleted file mode 100644 index 3ddfd02dcd..0000000000 --- a/services/postgresflex/model_list_flavors_response.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListFlavorsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListFlavorsResponse{} - -/* - types and functions for flavors -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetFlavorsAttributeType = *[]ListFlavors - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetFlavorsArgType = []ListFlavors - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetFlavorsRetType = []ListFlavors - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsResponseGetFlavorsAttributeTypeOk(arg ListFlavorsResponseGetFlavorsAttributeType) (ret ListFlavorsResponseGetFlavorsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsResponseGetFlavorsAttributeType(arg *ListFlavorsResponseGetFlavorsAttributeType, val ListFlavorsResponseGetFlavorsRetType) { - *arg = &val -} - -/* - types and functions for pagination -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetPaginationAttributeType = *Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetPaginationArgType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponseGetPaginationRetType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListFlavorsResponseGetPaginationAttributeTypeOk(arg ListFlavorsResponseGetPaginationAttributeType) (ret ListFlavorsResponseGetPaginationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListFlavorsResponseGetPaginationAttributeType(arg *ListFlavorsResponseGetPaginationAttributeType, val ListFlavorsResponseGetPaginationRetType) { - *arg = &val -} - -// ListFlavorsResponse struct for ListFlavorsResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListFlavorsResponse struct { - // List of flavors available for the project. - // REQUIRED - Flavors ListFlavorsResponseGetFlavorsAttributeType `json:"flavors" required:"true"` - // REQUIRED - Pagination ListFlavorsResponseGetPaginationAttributeType `json:"pagination" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListFlavorsResponse ListFlavorsResponse - -// NewListFlavorsResponse instantiates a new ListFlavorsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListFlavorsResponse(flavors ListFlavorsResponseGetFlavorsArgType, pagination ListFlavorsResponseGetPaginationArgType) *ListFlavorsResponse { - this := ListFlavorsResponse{} - setListFlavorsResponseGetFlavorsAttributeType(&this.Flavors, flavors) - setListFlavorsResponseGetPaginationAttributeType(&this.Pagination, pagination) - return &this -} - -// NewListFlavorsResponseWithDefaults instantiates a new ListFlavorsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListFlavorsResponseWithDefaults() *ListFlavorsResponse { - this := ListFlavorsResponse{} - return &this -} - -// GetFlavors returns the Flavors field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) GetFlavors() (ret ListFlavorsResponseGetFlavorsRetType) { - ret, _ = o.GetFlavorsOk() - return ret -} - -// GetFlavorsOk returns a tuple with the Flavors field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) GetFlavorsOk() (ret ListFlavorsResponseGetFlavorsRetType, ok bool) { - return getListFlavorsResponseGetFlavorsAttributeTypeOk(o.Flavors) -} - -// SetFlavors sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) SetFlavors(v ListFlavorsResponseGetFlavorsRetType) { - setListFlavorsResponseGetFlavorsAttributeType(&o.Flavors, v) -} - -// GetPagination returns the Pagination field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) GetPagination() (ret ListFlavorsResponseGetPaginationRetType) { - ret, _ = o.GetPaginationOk() - return ret -} - -// GetPaginationOk returns a tuple with the Pagination field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) GetPaginationOk() (ret ListFlavorsResponseGetPaginationRetType, ok bool) { - return getListFlavorsResponseGetPaginationAttributeTypeOk(o.Pagination) -} - -// SetPagination sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListFlavorsResponse) SetPagination(v ListFlavorsResponseGetPaginationRetType) { - setListFlavorsResponseGetPaginationAttributeType(&o.Pagination, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListFlavorsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListFlavorsResponseGetFlavorsAttributeTypeOk(o.Flavors); ok { - toSerialize["Flavors"] = val - } - if val, ok := getListFlavorsResponseGetPaginationAttributeTypeOk(o.Pagination); ok { - toSerialize["Pagination"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListFlavorsResponse struct { - value *ListFlavorsResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavorsResponse) Get() *ListFlavorsResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavorsResponse) Set(val *ListFlavorsResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavorsResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavorsResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListFlavorsResponse(val *ListFlavorsResponse) *NullableListFlavorsResponse { - return &NullableListFlavorsResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListFlavorsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListFlavorsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_flavors_response_test.go b/services/postgresflex/model_list_flavors_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_flavors_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_flavors_test.go b/services/postgresflex/model_list_flavors_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_flavors_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_instance.go b/services/postgresflex/model_list_instance.go deleted file mode 100644 index 94cf0f162c..0000000000 --- a/services/postgresflex/model_list_instance.go +++ /dev/null @@ -1,311 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListInstance type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListInstance{} - -/* - types and functions for id -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstanceGetIdAttributeTypeOk(arg ListInstanceGetIdAttributeType) (ret ListInstanceGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstanceGetIdAttributeType(arg *ListInstanceGetIdAttributeType, val ListInstanceGetIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetIdRetType = string - -/* - types and functions for isDeletable -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancegetIsDeletableAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancegetIsDeletableArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancegetIsDeletableRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstancegetIsDeletableAttributeTypeOk(arg ListInstancegetIsDeletableAttributeType) (ret ListInstancegetIsDeletableRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstancegetIsDeletableAttributeType(arg *ListInstancegetIsDeletableAttributeType, val ListInstancegetIsDeletableRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstanceGetNameAttributeTypeOk(arg ListInstanceGetNameAttributeType) (ret ListInstanceGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstanceGetNameAttributeType(arg *ListInstanceGetNameAttributeType, val ListInstanceGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetNameRetType = string - -/* - types and functions for state -*/ - -// isEnumRef -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetStateAttributeType = *State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetStateArgType = State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstanceGetStateRetType = State - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstanceGetStateAttributeTypeOk(arg ListInstanceGetStateAttributeType) (ret ListInstanceGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstanceGetStateAttributeType(arg *ListInstanceGetStateAttributeType, val ListInstanceGetStateRetType) { - *arg = &val -} - -// ListInstance struct for ListInstance -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstance struct { - // The ID of the instance. - // REQUIRED - Id ListInstanceGetIdAttributeType `json:"id" required:"true"` - // Whether the instance can be deleted or not. - // REQUIRED - IsDeletable ListInstancegetIsDeletableAttributeType `json:"isDeletable" required:"true"` - // The name of the instance. - // REQUIRED - Name ListInstanceGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - State ListInstanceGetStateAttributeType `json:"state" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListInstance ListInstance - -// NewListInstance instantiates a new ListInstance 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListInstance(id ListInstanceGetIdArgType, isDeletable ListInstancegetIsDeletableArgType, name ListInstanceGetNameArgType, state ListInstanceGetStateArgType) *ListInstance { - this := ListInstance{} - setListInstanceGetIdAttributeType(&this.Id, id) - setListInstancegetIsDeletableAttributeType(&this.IsDeletable, isDeletable) - setListInstanceGetNameAttributeType(&this.Name, name) - setListInstanceGetStateAttributeType(&this.State, state) - return &this -} - -// NewListInstanceWithDefaults instantiates a new ListInstance 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListInstanceWithDefaults() *ListInstance { - this := ListInstance{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetId() (ret ListInstanceGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetIdOk() (ret ListInstanceGetIdRetType, ok bool) { - return getListInstanceGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) SetId(v ListInstanceGetIdRetType) { - setListInstanceGetIdAttributeType(&o.Id, v) -} - -// GetIsDeletable returns the IsDeletable field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetIsDeletable() (ret ListInstancegetIsDeletableRetType) { - ret, _ = o.GetIsDeletableOk() - return ret -} - -// GetIsDeletableOk returns a tuple with the IsDeletable field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetIsDeletableOk() (ret ListInstancegetIsDeletableRetType, ok bool) { - return getListInstancegetIsDeletableAttributeTypeOk(o.IsDeletable) -} - -// SetIsDeletable sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) SetIsDeletable(v ListInstancegetIsDeletableRetType) { - setListInstancegetIsDeletableAttributeType(&o.IsDeletable, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetName() (ret ListInstanceGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetNameOk() (ret ListInstanceGetNameRetType, ok bool) { - return getListInstanceGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) SetName(v ListInstanceGetNameRetType) { - setListInstanceGetNameAttributeType(&o.Name, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetState() (ret ListInstanceGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) GetStateOk() (ret ListInstanceGetStateRetType, ok bool) { - return getListInstanceGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstance) SetState(v ListInstanceGetStateRetType) { - setListInstanceGetStateAttributeType(&o.State, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListInstance) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListInstanceGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getListInstancegetIsDeletableAttributeTypeOk(o.IsDeletable); ok { - toSerialize["IsDeletable"] = val - } - if val, ok := getListInstanceGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getListInstanceGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListInstance struct { - value *ListInstance - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstance) Get() *ListInstance { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstance) Set(val *ListInstance) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstance) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstance) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListInstance(val *ListInstance) *NullableListInstance { - return &NullableListInstance{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstance) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstance) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_instance_test.go b/services/postgresflex/model_list_instance_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_instance_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_instances_response.go b/services/postgresflex/model_list_instances_response.go deleted file mode 100644 index 09038a4a88..0000000000 --- a/services/postgresflex/model_list_instances_response.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListInstancesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListInstancesResponse{} - -/* - types and functions for instances -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetInstancesAttributeType = *[]ListInstance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetInstancesArgType = []ListInstance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetInstancesRetType = []ListInstance - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstancesResponseGetInstancesAttributeTypeOk(arg ListInstancesResponseGetInstancesAttributeType) (ret ListInstancesResponseGetInstancesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstancesResponseGetInstancesAttributeType(arg *ListInstancesResponseGetInstancesAttributeType, val ListInstancesResponseGetInstancesRetType) { - *arg = &val -} - -/* - types and functions for pagination -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetPaginationAttributeType = *Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetPaginationArgType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponseGetPaginationRetType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListInstancesResponseGetPaginationAttributeTypeOk(arg ListInstancesResponseGetPaginationAttributeType) (ret ListInstancesResponseGetPaginationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListInstancesResponseGetPaginationAttributeType(arg *ListInstancesResponseGetPaginationAttributeType, val ListInstancesResponseGetPaginationRetType) { - *arg = &val -} - -// ListInstancesResponse struct for ListInstancesResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListInstancesResponse struct { - // List of owned instances and their current state. - // REQUIRED - Instances ListInstancesResponseGetInstancesAttributeType `json:"instances" required:"true"` - // REQUIRED - Pagination ListInstancesResponseGetPaginationAttributeType `json:"pagination" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListInstancesResponse ListInstancesResponse - -// NewListInstancesResponse instantiates a new ListInstancesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListInstancesResponse(instances ListInstancesResponseGetInstancesArgType, pagination ListInstancesResponseGetPaginationArgType) *ListInstancesResponse { - this := ListInstancesResponse{} - setListInstancesResponseGetInstancesAttributeType(&this.Instances, instances) - setListInstancesResponseGetPaginationAttributeType(&this.Pagination, pagination) - return &this -} - -// NewListInstancesResponseWithDefaults instantiates a new ListInstancesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListInstancesResponseWithDefaults() *ListInstancesResponse { - this := ListInstancesResponse{} - return &this -} - -// GetInstances returns the Instances field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) GetInstances() (ret ListInstancesResponseGetInstancesRetType) { - ret, _ = o.GetInstancesOk() - return ret -} - -// GetInstancesOk returns a tuple with the Instances field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) GetInstancesOk() (ret ListInstancesResponseGetInstancesRetType, ok bool) { - return getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances) -} - -// SetInstances sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) SetInstances(v ListInstancesResponseGetInstancesRetType) { - setListInstancesResponseGetInstancesAttributeType(&o.Instances, v) -} - -// GetPagination returns the Pagination field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) GetPagination() (ret ListInstancesResponseGetPaginationRetType) { - ret, _ = o.GetPaginationOk() - return ret -} - -// GetPaginationOk returns a tuple with the Pagination field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) GetPaginationOk() (ret ListInstancesResponseGetPaginationRetType, ok bool) { - return getListInstancesResponseGetPaginationAttributeTypeOk(o.Pagination) -} - -// SetPagination sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListInstancesResponse) SetPagination(v ListInstancesResponseGetPaginationRetType) { - setListInstancesResponseGetPaginationAttributeType(&o.Pagination, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListInstancesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListInstancesResponseGetInstancesAttributeTypeOk(o.Instances); ok { - toSerialize["Instances"] = val - } - if val, ok := getListInstancesResponseGetPaginationAttributeTypeOk(o.Pagination); ok { - toSerialize["Pagination"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListInstancesResponse struct { - value *ListInstancesResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstancesResponse) Get() *ListInstancesResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstancesResponse) Set(val *ListInstancesResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstancesResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstancesResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListInstancesResponse(val *ListInstancesResponse) *NullableListInstancesResponse { - return &NullableListInstancesResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListInstancesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListInstancesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_instances_response_test.go b/services/postgresflex/model_list_instances_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_instances_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_roles_response.go b/services/postgresflex/model_list_roles_response.go deleted file mode 100644 index 393364e179..0000000000 --- a/services/postgresflex/model_list_roles_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListRolesResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListRolesResponse{} - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListRolesResponseGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListRolesResponseGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListRolesResponseGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListRolesResponseGetRolesAttributeTypeOk(arg ListRolesResponseGetRolesAttributeType) (ret ListRolesResponseGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListRolesResponseGetRolesAttributeType(arg *ListRolesResponseGetRolesAttributeType, val ListRolesResponseGetRolesRetType) { - *arg = &val -} - -// ListRolesResponse struct for ListRolesResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListRolesResponse struct { - // List of all role names available in the instance - // REQUIRED - Roles ListRolesResponseGetRolesAttributeType `json:"roles" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListRolesResponse ListRolesResponse - -// NewListRolesResponse instantiates a new ListRolesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListRolesResponse(roles ListRolesResponseGetRolesArgType) *ListRolesResponse { - this := ListRolesResponse{} - setListRolesResponseGetRolesAttributeType(&this.Roles, roles) - return &this -} - -// NewListRolesResponseWithDefaults instantiates a new ListRolesResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListRolesResponseWithDefaults() *ListRolesResponse { - this := ListRolesResponse{} - return &this -} - -// GetRoles returns the Roles field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListRolesResponse) GetRoles() (ret ListRolesResponseGetRolesRetType) { - ret, _ = o.GetRolesOk() - return ret -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListRolesResponse) GetRolesOk() (ret ListRolesResponseGetRolesRetType, ok bool) { - return getListRolesResponseGetRolesAttributeTypeOk(o.Roles) -} - -// SetRoles sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListRolesResponse) SetRoles(v ListRolesResponseGetRolesRetType) { - setListRolesResponseGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListRolesResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListRolesResponseGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListRolesResponse struct { - value *ListRolesResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListRolesResponse) Get() *ListRolesResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListRolesResponse) Set(val *ListRolesResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListRolesResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListRolesResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListRolesResponse(val *ListRolesResponse) *NullableListRolesResponse { - return &NullableListRolesResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListRolesResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListRolesResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_roles_response_test.go b/services/postgresflex/model_list_roles_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_roles_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_user.go b/services/postgresflex/model_list_user.go deleted file mode 100644 index a8f3790072..0000000000 --- a/services/postgresflex/model_list_user.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListUser type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListUser{} - -/* - types and functions for id -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetIdAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetIdArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetIdRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListUserGetIdAttributeTypeOk(arg ListUserGetIdAttributeType) (ret ListUserGetIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListUserGetIdAttributeType(arg *ListUserGetIdAttributeType, val ListUserGetIdRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListUserGetNameAttributeTypeOk(arg ListUserGetNameAttributeType) (ret ListUserGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListUserGetNameAttributeType(arg *ListUserGetNameAttributeType, val ListUserGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetNameRetType = string - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListUserGetStateAttributeTypeOk(arg ListUserGetStateAttributeType) (ret ListUserGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListUserGetStateAttributeType(arg *ListUserGetStateAttributeType, val ListUserGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUserGetStateRetType = string - -// ListUser struct for ListUser -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUser struct { - // The ID of the user. - // REQUIRED - Id ListUserGetIdAttributeType `json:"id" required:"true"` - // The name of the user. - // REQUIRED - Name ListUserGetNameAttributeType `json:"name" required:"true"` - // The current state of the user. - // REQUIRED - State ListUserGetStateAttributeType `json:"state" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListUser ListUser - -// NewListUser instantiates a new ListUser 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListUser(id ListUserGetIdArgType, name ListUserGetNameArgType, state ListUserGetStateArgType) *ListUser { - this := ListUser{} - setListUserGetIdAttributeType(&this.Id, id) - setListUserGetNameAttributeType(&this.Name, name) - setListUserGetStateAttributeType(&this.State, state) - return &this -} - -// NewListUserWithDefaults instantiates a new ListUser 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListUserWithDefaults() *ListUser { - this := ListUser{} - return &this -} - -// GetId returns the Id field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetId() (ret ListUserGetIdRetType) { - ret, _ = o.GetIdOk() - return ret -} - -// GetIdOk returns a tuple with the Id field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetIdOk() (ret ListUserGetIdRetType, ok bool) { - return getListUserGetIdAttributeTypeOk(o.Id) -} - -// SetId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) SetId(v ListUserGetIdRetType) { - setListUserGetIdAttributeType(&o.Id, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetName() (ret ListUserGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetNameOk() (ret ListUserGetNameRetType, ok bool) { - return getListUserGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) SetName(v ListUserGetNameRetType) { - setListUserGetNameAttributeType(&o.Name, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetState() (ret ListUserGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) GetStateOk() (ret ListUserGetStateRetType, ok bool) { - return getListUserGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUser) SetState(v ListUserGetStateRetType) { - setListUserGetStateAttributeType(&o.State, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListUser) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListUserGetIdAttributeTypeOk(o.Id); ok { - toSerialize["Id"] = val - } - if val, ok := getListUserGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getListUserGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListUser struct { - value *ListUser - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUser) Get() *ListUser { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUser) Set(val *ListUser) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUser) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUser) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListUser(val *ListUser) *NullableListUser { - return &NullableListUser{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUser) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUser) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_user_test.go b/services/postgresflex/model_list_user_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_user_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_users_response.go b/services/postgresflex/model_list_users_response.go deleted file mode 100644 index 2fd091ed85..0000000000 --- a/services/postgresflex/model_list_users_response.go +++ /dev/null @@ -1,203 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListUsersResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListUsersResponse{} - -/* - types and functions for pagination -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetPaginationAttributeType = *Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetPaginationArgType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetPaginationRetType = Pagination - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListUsersResponseGetPaginationAttributeTypeOk(arg ListUsersResponseGetPaginationAttributeType) (ret ListUsersResponseGetPaginationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListUsersResponseGetPaginationAttributeType(arg *ListUsersResponseGetPaginationAttributeType, val ListUsersResponseGetPaginationRetType) { - *arg = &val -} - -/* - types and functions for users -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetUsersAttributeType = *[]ListUser - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetUsersArgType = []ListUser - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponseGetUsersRetType = []ListUser - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListUsersResponseGetUsersAttributeTypeOk(arg ListUsersResponseGetUsersAttributeType) (ret ListUsersResponseGetUsersRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListUsersResponseGetUsersAttributeType(arg *ListUsersResponseGetUsersAttributeType, val ListUsersResponseGetUsersRetType) { - *arg = &val -} - -// ListUsersResponse struct for ListUsersResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListUsersResponse struct { - // REQUIRED - Pagination ListUsersResponseGetPaginationAttributeType `json:"pagination" required:"true"` - // List of all users inside an instance - // REQUIRED - Users ListUsersResponseGetUsersAttributeType `json:"users" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListUsersResponse ListUsersResponse - -// NewListUsersResponse instantiates a new ListUsersResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListUsersResponse(pagination ListUsersResponseGetPaginationArgType, users ListUsersResponseGetUsersArgType) *ListUsersResponse { - this := ListUsersResponse{} - setListUsersResponseGetPaginationAttributeType(&this.Pagination, pagination) - setListUsersResponseGetUsersAttributeType(&this.Users, users) - return &this -} - -// NewListUsersResponseWithDefaults instantiates a new ListUsersResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListUsersResponseWithDefaults() *ListUsersResponse { - this := ListUsersResponse{} - return &this -} - -// GetPagination returns the Pagination field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) GetPagination() (ret ListUsersResponseGetPaginationRetType) { - ret, _ = o.GetPaginationOk() - return ret -} - -// GetPaginationOk returns a tuple with the Pagination field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) GetPaginationOk() (ret ListUsersResponseGetPaginationRetType, ok bool) { - return getListUsersResponseGetPaginationAttributeTypeOk(o.Pagination) -} - -// SetPagination sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) SetPagination(v ListUsersResponseGetPaginationRetType) { - setListUsersResponseGetPaginationAttributeType(&o.Pagination, v) -} - -// GetUsers returns the Users field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) GetUsers() (ret ListUsersResponseGetUsersRetType) { - ret, _ = o.GetUsersOk() - return ret -} - -// GetUsersOk returns a tuple with the Users field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) GetUsersOk() (ret ListUsersResponseGetUsersRetType, ok bool) { - return getListUsersResponseGetUsersAttributeTypeOk(o.Users) -} - -// SetUsers sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListUsersResponse) SetUsers(v ListUsersResponseGetUsersRetType) { - setListUsersResponseGetUsersAttributeType(&o.Users, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListUsersResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListUsersResponseGetPaginationAttributeTypeOk(o.Pagination); ok { - toSerialize["Pagination"] = val - } - if val, ok := getListUsersResponseGetUsersAttributeTypeOk(o.Users); ok { - toSerialize["Users"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListUsersResponse struct { - value *ListUsersResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUsersResponse) Get() *ListUsersResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUsersResponse) Set(val *ListUsersResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUsersResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUsersResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListUsersResponse(val *ListUsersResponse) *NullableListUsersResponse { - return &NullableListUsersResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListUsersResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListUsersResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_users_response_test.go b/services/postgresflex/model_list_users_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_users_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_list_versions_response.go b/services/postgresflex/model_list_versions_response.go deleted file mode 100644 index 9ada1c6d42..0000000000 --- a/services/postgresflex/model_list_versions_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ListVersionsResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ListVersionsResponse{} - -/* - types and functions for versions -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListVersionsResponseGetVersionsAttributeType = *[]Version - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListVersionsResponseGetVersionsArgType = []Version - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListVersionsResponseGetVersionsRetType = []Version - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getListVersionsResponseGetVersionsAttributeTypeOk(arg ListVersionsResponseGetVersionsAttributeType) (ret ListVersionsResponseGetVersionsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setListVersionsResponseGetVersionsAttributeType(arg *ListVersionsResponseGetVersionsAttributeType, val ListVersionsResponseGetVersionsRetType) { - *arg = &val -} - -// ListVersionsResponse struct for ListVersionsResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ListVersionsResponse struct { - // A list containing available postgres versions. - // REQUIRED - Versions ListVersionsResponseGetVersionsAttributeType `json:"versions" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ListVersionsResponse ListVersionsResponse - -// NewListVersionsResponse instantiates a new ListVersionsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListVersionsResponse(versions ListVersionsResponseGetVersionsArgType) *ListVersionsResponse { - this := ListVersionsResponse{} - setListVersionsResponseGetVersionsAttributeType(&this.Versions, versions) - return &this -} - -// NewListVersionsResponseWithDefaults instantiates a new ListVersionsResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewListVersionsResponseWithDefaults() *ListVersionsResponse { - this := ListVersionsResponse{} - return &this -} - -// GetVersions returns the Versions field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListVersionsResponse) GetVersions() (ret ListVersionsResponseGetVersionsRetType) { - ret, _ = o.GetVersionsOk() - return ret -} - -// GetVersionsOk returns a tuple with the Versions field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListVersionsResponse) GetVersionsOk() (ret ListVersionsResponseGetVersionsRetType, ok bool) { - return getListVersionsResponseGetVersionsAttributeTypeOk(o.Versions) -} - -// SetVersions sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ListVersionsResponse) SetVersions(v ListVersionsResponseGetVersionsRetType) { - setListVersionsResponseGetVersionsAttributeType(&o.Versions, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ListVersionsResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getListVersionsResponseGetVersionsAttributeTypeOk(o.Versions); ok { - toSerialize["Versions"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableListVersionsResponse struct { - value *ListVersionsResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListVersionsResponse) Get() *ListVersionsResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListVersionsResponse) Set(val *ListVersionsResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListVersionsResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListVersionsResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableListVersionsResponse(val *ListVersionsResponse) *NullableListVersionsResponse { - return &NullableListVersionsResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableListVersionsResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableListVersionsResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_list_versions_response_test.go b/services/postgresflex/model_list_versions_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_list_versions_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_pagination.go b/services/postgresflex/model_pagination.go deleted file mode 100644 index 827f4aa83a..0000000000 --- a/services/postgresflex/model_pagination.go +++ /dev/null @@ -1,361 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the Pagination type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Pagination{} - -/* - types and functions for page -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetPageAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetPageArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetPageRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPaginationGetPageAttributeTypeOk(arg PaginationGetPageAttributeType) (ret PaginationGetPageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPaginationGetPageAttributeType(arg *PaginationGetPageAttributeType, val PaginationGetPageRetType) { - *arg = &val -} - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPaginationGetSizeAttributeTypeOk(arg PaginationGetSizeAttributeType) (ret PaginationGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPaginationGetSizeAttributeType(arg *PaginationGetSizeAttributeType, val PaginationGetSizeRetType) { - *arg = &val -} - -/* - types and functions for sort -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSortAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPaginationGetSortAttributeTypeOk(arg PaginationGetSortAttributeType) (ret PaginationGetSortRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPaginationGetSortAttributeType(arg *PaginationGetSortAttributeType, val PaginationGetSortRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSortArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetSortRetType = string - -/* - types and functions for totalPages -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalPagesAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalPagesArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalPagesRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPaginationGetTotalPagesAttributeTypeOk(arg PaginationGetTotalPagesAttributeType) (ret PaginationGetTotalPagesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPaginationGetTotalPagesAttributeType(arg *PaginationGetTotalPagesAttributeType, val PaginationGetTotalPagesRetType) { - *arg = &val -} - -/* - types and functions for totalRows -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalRowsAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalRowsArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PaginationGetTotalRowsRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPaginationGetTotalRowsAttributeTypeOk(arg PaginationGetTotalRowsAttributeType) (ret PaginationGetTotalRowsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPaginationGetTotalRowsAttributeType(arg *PaginationGetTotalRowsAttributeType, val PaginationGetTotalRowsRetType) { - *arg = &val -} - -// Pagination struct for Pagination -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Pagination struct { - // REQUIRED - Page PaginationGetPageAttributeType `json:"page" required:"true"` - // REQUIRED - Size PaginationGetSizeAttributeType `json:"size" required:"true"` - // REQUIRED - Sort PaginationGetSortAttributeType `json:"sort" required:"true"` - // REQUIRED - TotalPages PaginationGetTotalPagesAttributeType `json:"totalPages" required:"true"` - // REQUIRED - TotalRows PaginationGetTotalRowsAttributeType `json:"totalRows" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Pagination Pagination - -// NewPagination instantiates a new Pagination 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPagination(page PaginationGetPageArgType, size PaginationGetSizeArgType, sort PaginationGetSortArgType, totalPages PaginationGetTotalPagesArgType, totalRows PaginationGetTotalRowsArgType) *Pagination { - this := Pagination{} - setPaginationGetPageAttributeType(&this.Page, page) - setPaginationGetSizeAttributeType(&this.Size, size) - setPaginationGetSortAttributeType(&this.Sort, sort) - setPaginationGetTotalPagesAttributeType(&this.TotalPages, totalPages) - setPaginationGetTotalRowsAttributeType(&this.TotalRows, totalRows) - return &this -} - -// NewPaginationWithDefaults instantiates a new Pagination 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPaginationWithDefaults() *Pagination { - this := Pagination{} - return &this -} - -// GetPage returns the Page field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetPage() (ret PaginationGetPageRetType) { - ret, _ = o.GetPageOk() - return ret -} - -// GetPageOk returns a tuple with the Page field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetPageOk() (ret PaginationGetPageRetType, ok bool) { - return getPaginationGetPageAttributeTypeOk(o.Page) -} - -// SetPage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) SetPage(v PaginationGetPageRetType) { - setPaginationGetPageAttributeType(&o.Page, v) -} - -// GetSize returns the Size field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetSize() (ret PaginationGetSizeRetType) { - ret, _ = o.GetSizeOk() - return ret -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetSizeOk() (ret PaginationGetSizeRetType, ok bool) { - return getPaginationGetSizeAttributeTypeOk(o.Size) -} - -// SetSize sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) SetSize(v PaginationGetSizeRetType) { - setPaginationGetSizeAttributeType(&o.Size, v) -} - -// GetSort returns the Sort field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetSort() (ret PaginationGetSortRetType) { - ret, _ = o.GetSortOk() - return ret -} - -// GetSortOk returns a tuple with the Sort field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetSortOk() (ret PaginationGetSortRetType, ok bool) { - return getPaginationGetSortAttributeTypeOk(o.Sort) -} - -// SetSort sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) SetSort(v PaginationGetSortRetType) { - setPaginationGetSortAttributeType(&o.Sort, v) -} - -// GetTotalPages returns the TotalPages field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetTotalPages() (ret PaginationGetTotalPagesRetType) { - ret, _ = o.GetTotalPagesOk() - return ret -} - -// GetTotalPagesOk returns a tuple with the TotalPages field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetTotalPagesOk() (ret PaginationGetTotalPagesRetType, ok bool) { - return getPaginationGetTotalPagesAttributeTypeOk(o.TotalPages) -} - -// SetTotalPages sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) SetTotalPages(v PaginationGetTotalPagesRetType) { - setPaginationGetTotalPagesAttributeType(&o.TotalPages, v) -} - -// GetTotalRows returns the TotalRows field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetTotalRows() (ret PaginationGetTotalRowsRetType) { - ret, _ = o.GetTotalRowsOk() - return ret -} - -// GetTotalRowsOk returns a tuple with the TotalRows field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) GetTotalRowsOk() (ret PaginationGetTotalRowsRetType, ok bool) { - return getPaginationGetTotalRowsAttributeTypeOk(o.TotalRows) -} - -// SetTotalRows sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Pagination) SetTotalRows(v PaginationGetTotalRowsRetType) { - setPaginationGetTotalRowsAttributeType(&o.TotalRows, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Pagination) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getPaginationGetPageAttributeTypeOk(o.Page); ok { - toSerialize["Page"] = val - } - if val, ok := getPaginationGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - if val, ok := getPaginationGetSortAttributeTypeOk(o.Sort); ok { - toSerialize["Sort"] = val - } - if val, ok := getPaginationGetTotalPagesAttributeTypeOk(o.TotalPages); ok { - toSerialize["TotalPages"] = val - } - if val, ok := getPaginationGetTotalRowsAttributeTypeOk(o.TotalRows); ok { - toSerialize["TotalRows"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullablePagination struct { - value *Pagination - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePagination) Get() *Pagination { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePagination) Set(val *Pagination) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePagination) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePagination) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullablePagination(val *Pagination) *NullablePagination { - return &NullablePagination{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePagination) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePagination) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_pagination_test.go b/services/postgresflex/model_pagination_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_pagination_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_partial_update_database_payload.go b/services/postgresflex/model_partial_update_database_payload.go deleted file mode 100644 index 6f2888951b..0000000000 --- a/services/postgresflex/model_partial_update_database_payload.go +++ /dev/null @@ -1,211 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the PartialUpdateDatabasePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PartialUpdateDatabasePayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateDatabasePayloadGetNameAttributeTypeOk(arg PartialUpdateDatabasePayloadGetNameAttributeType) (ret PartialUpdateDatabasePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateDatabasePayloadGetNameAttributeType(arg *PartialUpdateDatabasePayloadGetNameAttributeType, val PartialUpdateDatabasePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetNameRetType = string - -/* - types and functions for owner -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetOwnerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateDatabasePayloadGetOwnerAttributeTypeOk(arg PartialUpdateDatabasePayloadGetOwnerAttributeType) (ret PartialUpdateDatabasePayloadGetOwnerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateDatabasePayloadGetOwnerAttributeType(arg *PartialUpdateDatabasePayloadGetOwnerAttributeType, val PartialUpdateDatabasePayloadGetOwnerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetOwnerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayloadGetOwnerRetType = string - -// PartialUpdateDatabasePayload struct for PartialUpdateDatabasePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - Name PartialUpdateDatabasePayloadGetNameAttributeType `json:"name,omitempty"` - // The owner of the database. - Owner PartialUpdateDatabasePayloadGetOwnerAttributeType `json:"owner,omitempty"` -} - -// NewPartialUpdateDatabasePayload instantiates a new PartialUpdateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateDatabasePayload() *PartialUpdateDatabasePayload { - this := PartialUpdateDatabasePayload{} - return &this -} - -// NewPartialUpdateDatabasePayloadWithDefaults instantiates a new PartialUpdateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateDatabasePayloadWithDefaults() *PartialUpdateDatabasePayload { - this := PartialUpdateDatabasePayload{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) GetName() (res PartialUpdateDatabasePayloadGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) GetNameOk() (ret PartialUpdateDatabasePayloadGetNameRetType, ok bool) { - return getPartialUpdateDatabasePayloadGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) SetName(v PartialUpdateDatabasePayloadGetNameRetType) { - setPartialUpdateDatabasePayloadGetNameAttributeType(&o.Name, v) -} - -// GetOwner returns the Owner field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) GetOwner() (res PartialUpdateDatabasePayloadGetOwnerRetType) { - res, _ = o.GetOwnerOk() - return -} - -// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) GetOwnerOk() (ret PartialUpdateDatabasePayloadGetOwnerRetType, ok bool) { - return getPartialUpdateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner) -} - -// HasOwner returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) HasOwner() bool { - _, ok := o.GetOwnerOk() - return ok -} - -// SetOwner gets a reference to the given string and assigns it to the Owner field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateDatabasePayload) SetOwner(v PartialUpdateDatabasePayloadGetOwnerRetType) { - setPartialUpdateDatabasePayloadGetOwnerAttributeType(&o.Owner, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o PartialUpdateDatabasePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getPartialUpdateDatabasePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getPartialUpdateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner); ok { - toSerialize["Owner"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullablePartialUpdateDatabasePayload struct { - value *PartialUpdateDatabasePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateDatabasePayload) Get() *PartialUpdateDatabasePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateDatabasePayload) Set(val *PartialUpdateDatabasePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateDatabasePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateDatabasePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullablePartialUpdateDatabasePayload(val *PartialUpdateDatabasePayload) *NullablePartialUpdateDatabasePayload { - return &NullablePartialUpdateDatabasePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateDatabasePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateDatabasePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_partial_update_database_payload_test.go b/services/postgresflex/model_partial_update_database_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_partial_update_database_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_partial_update_instance_payload.go b/services/postgresflex/model_partial_update_instance_payload.go deleted file mode 100644 index 6038e0eb08..0000000000 --- a/services/postgresflex/model_partial_update_instance_payload.go +++ /dev/null @@ -1,564 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the PartialUpdateInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PartialUpdateInstancePayload{} - -/* - types and functions for backupSchedule -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetBackupScheduleAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(arg PartialUpdateInstancePayloadGetBackupScheduleAttributeType) (ret PartialUpdateInstancePayloadGetBackupScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetBackupScheduleAttributeType(arg *PartialUpdateInstancePayloadGetBackupScheduleAttributeType, val PartialUpdateInstancePayloadGetBackupScheduleRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetBackupScheduleArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetBackupScheduleRetType = string - -/* - types and functions for flavorId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetFlavorIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetFlavorIdAttributeTypeOk(arg PartialUpdateInstancePayloadGetFlavorIdAttributeType) (ret PartialUpdateInstancePayloadGetFlavorIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetFlavorIdAttributeType(arg *PartialUpdateInstancePayloadGetFlavorIdAttributeType, val PartialUpdateInstancePayloadGetFlavorIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetFlavorIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetFlavorIdRetType = string - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetLabelsAttributeTypeOk(arg PartialUpdateInstancePayloadGetLabelsAttributeType) (ret PartialUpdateInstancePayloadGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetLabelsAttributeType(arg *PartialUpdateInstancePayloadGetLabelsAttributeType, val PartialUpdateInstancePayloadGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetNameAttributeTypeOk(arg PartialUpdateInstancePayloadGetNameAttributeType) (ret PartialUpdateInstancePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetNameAttributeType(arg *PartialUpdateInstancePayloadGetNameAttributeType, val PartialUpdateInstancePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNameRetType = string - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNetworkAttributeType = *InstanceNetworkOpt - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNetworkArgType = InstanceNetworkOpt - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetNetworkRetType = InstanceNetworkOpt - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetNetworkAttributeTypeOk(arg PartialUpdateInstancePayloadGetNetworkAttributeType) (ret PartialUpdateInstancePayloadGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetNetworkAttributeType(arg *PartialUpdateInstancePayloadGetNetworkAttributeType, val PartialUpdateInstancePayloadGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for retentionDays -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetRetentionDaysAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetRetentionDaysArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetRetentionDaysRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(arg PartialUpdateInstancePayloadGetRetentionDaysAttributeType) (ret PartialUpdateInstancePayloadGetRetentionDaysRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetRetentionDaysAttributeType(arg *PartialUpdateInstancePayloadGetRetentionDaysAttributeType, val PartialUpdateInstancePayloadGetRetentionDaysRetType) { - *arg = &val -} - -/* - types and functions for storage -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetStorageAttributeType = *StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetStorageArgType = StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetStorageRetType = StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetStorageAttributeTypeOk(arg PartialUpdateInstancePayloadGetStorageAttributeType) (ret PartialUpdateInstancePayloadGetStorageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetStorageAttributeType(arg *PartialUpdateInstancePayloadGetStorageAttributeType, val PartialUpdateInstancePayloadGetStorageRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateInstancePayloadGetVersionAttributeTypeOk(arg PartialUpdateInstancePayloadGetVersionAttributeType) (ret PartialUpdateInstancePayloadGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateInstancePayloadGetVersionAttributeType(arg *PartialUpdateInstancePayloadGetVersionAttributeType, val PartialUpdateInstancePayloadGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayloadGetVersionRetType = string - -// PartialUpdateInstancePayload struct for PartialUpdateInstancePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateInstancePayload struct { - // The schedule for when the database backup will be created. Currently, ONLY daily schedules are supported (every 24 hours). The schedule is written as a cron schedule. - BackupSchedule PartialUpdateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule,omitempty"` - // The id of the instance flavor. - FlavorId PartialUpdateInstancePayloadGetFlavorIdAttributeType `json:"flavorId,omitempty"` - // Key-value pairs, 63 characters max, begin and end with an alphanumerical character, may contain dashes (-), underscores (_), dots (.), and alphanumerics between. Key MUST be at least 1 character. Max 64 labels Regex for keys: ^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ Regex for values: ^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$ The stackit- prefix is reserved and cannot be used for Keys. - Labels PartialUpdateInstancePayloadGetLabelsAttributeType `json:"labels,omitempty"` - // The name of the instance. - Name PartialUpdateInstancePayloadGetNameAttributeType `json:"name,omitempty"` - Network PartialUpdateInstancePayloadGetNetworkAttributeType `json:"network,omitempty"` - // How long backups are retained. The value can only be between 32 and 90 days. - // Can be cast to int32 without loss of precision. - RetentionDays PartialUpdateInstancePayloadGetRetentionDaysAttributeType `json:"retentionDays,omitempty"` - Storage PartialUpdateInstancePayloadGetStorageAttributeType `json:"storage,omitempty"` - // The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3#tag/Version) for supported version parameters. - Version PartialUpdateInstancePayloadGetVersionAttributeType `json:"version,omitempty"` -} - -// NewPartialUpdateInstancePayload instantiates a new PartialUpdateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateInstancePayload() *PartialUpdateInstancePayload { - this := PartialUpdateInstancePayload{} - return &this -} - -// NewPartialUpdateInstancePayloadWithDefaults instantiates a new PartialUpdateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateInstancePayloadWithDefaults() *PartialUpdateInstancePayload { - this := PartialUpdateInstancePayload{} - return &this -} - -// GetBackupSchedule returns the BackupSchedule field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetBackupSchedule() (res PartialUpdateInstancePayloadGetBackupScheduleRetType) { - res, _ = o.GetBackupScheduleOk() - return -} - -// GetBackupScheduleOk returns a tuple with the BackupSchedule field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetBackupScheduleOk() (ret PartialUpdateInstancePayloadGetBackupScheduleRetType, ok bool) { - return getPartialUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule) -} - -// HasBackupSchedule returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasBackupSchedule() bool { - _, ok := o.GetBackupScheduleOk() - return ok -} - -// SetBackupSchedule gets a reference to the given string and assigns it to the BackupSchedule field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetBackupSchedule(v PartialUpdateInstancePayloadGetBackupScheduleRetType) { - setPartialUpdateInstancePayloadGetBackupScheduleAttributeType(&o.BackupSchedule, v) -} - -// GetFlavorId returns the FlavorId field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetFlavorId() (res PartialUpdateInstancePayloadGetFlavorIdRetType) { - res, _ = o.GetFlavorIdOk() - return -} - -// GetFlavorIdOk returns a tuple with the FlavorId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetFlavorIdOk() (ret PartialUpdateInstancePayloadGetFlavorIdRetType, ok bool) { - return getPartialUpdateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId) -} - -// HasFlavorId returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasFlavorId() bool { - _, ok := o.GetFlavorIdOk() - return ok -} - -// SetFlavorId gets a reference to the given string and assigns it to the FlavorId field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetFlavorId(v PartialUpdateInstancePayloadGetFlavorIdRetType) { - setPartialUpdateInstancePayloadGetFlavorIdAttributeType(&o.FlavorId, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetLabels() (res PartialUpdateInstancePayloadGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetLabelsOk() (ret PartialUpdateInstancePayloadGetLabelsRetType, ok bool) { - return getPartialUpdateInstancePayloadGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetLabels(v PartialUpdateInstancePayloadGetLabelsRetType) { - setPartialUpdateInstancePayloadGetLabelsAttributeType(&o.Labels, v) -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetName() (res PartialUpdateInstancePayloadGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetNameOk() (ret PartialUpdateInstancePayloadGetNameRetType, ok bool) { - return getPartialUpdateInstancePayloadGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetName(v PartialUpdateInstancePayloadGetNameRetType) { - setPartialUpdateInstancePayloadGetNameAttributeType(&o.Name, v) -} - -// GetNetwork returns the Network field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetNetwork() (res PartialUpdateInstancePayloadGetNetworkRetType) { - res, _ = o.GetNetworkOk() - return -} - -// GetNetworkOk returns a tuple with the Network field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetNetworkOk() (ret PartialUpdateInstancePayloadGetNetworkRetType, ok bool) { - return getPartialUpdateInstancePayloadGetNetworkAttributeTypeOk(o.Network) -} - -// HasNetwork returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasNetwork() bool { - _, ok := o.GetNetworkOk() - return ok -} - -// SetNetwork gets a reference to the given InstanceNetworkOpt and assigns it to the Network field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetNetwork(v PartialUpdateInstancePayloadGetNetworkRetType) { - setPartialUpdateInstancePayloadGetNetworkAttributeType(&o.Network, v) -} - -// GetRetentionDays returns the RetentionDays field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetRetentionDays() (res PartialUpdateInstancePayloadGetRetentionDaysRetType) { - res, _ = o.GetRetentionDaysOk() - return -} - -// GetRetentionDaysOk returns a tuple with the RetentionDays field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetRetentionDaysOk() (ret PartialUpdateInstancePayloadGetRetentionDaysRetType, ok bool) { - return getPartialUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays) -} - -// HasRetentionDays returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasRetentionDays() bool { - _, ok := o.GetRetentionDaysOk() - return ok -} - -// SetRetentionDays gets a reference to the given int64 and assigns it to the RetentionDays field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetRetentionDays(v PartialUpdateInstancePayloadGetRetentionDaysRetType) { - setPartialUpdateInstancePayloadGetRetentionDaysAttributeType(&o.RetentionDays, v) -} - -// GetStorage returns the Storage field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetStorage() (res PartialUpdateInstancePayloadGetStorageRetType) { - res, _ = o.GetStorageOk() - return -} - -// GetStorageOk returns a tuple with the Storage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetStorageOk() (ret PartialUpdateInstancePayloadGetStorageRetType, ok bool) { - return getPartialUpdateInstancePayloadGetStorageAttributeTypeOk(o.Storage) -} - -// HasStorage returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasStorage() bool { - _, ok := o.GetStorageOk() - return ok -} - -// SetStorage gets a reference to the given StorageUpdate and assigns it to the Storage field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetStorage(v PartialUpdateInstancePayloadGetStorageRetType) { - setPartialUpdateInstancePayloadGetStorageAttributeType(&o.Storage, v) -} - -// GetVersion returns the Version field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetVersion() (res PartialUpdateInstancePayloadGetVersionRetType) { - res, _ = o.GetVersionOk() - return -} - -// GetVersionOk returns a tuple with the Version field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) GetVersionOk() (ret PartialUpdateInstancePayloadGetVersionRetType, ok bool) { - return getPartialUpdateInstancePayloadGetVersionAttributeTypeOk(o.Version) -} - -// HasVersion returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) HasVersion() bool { - _, ok := o.GetVersionOk() - return ok -} - -// SetVersion gets a reference to the given string and assigns it to the Version field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateInstancePayload) SetVersion(v PartialUpdateInstancePayloadGetVersionRetType) { - setPartialUpdateInstancePayloadGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o PartialUpdateInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getPartialUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok { - toSerialize["BackupSchedule"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId); ok { - toSerialize["FlavorId"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok { - toSerialize["RetentionDays"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetStorageAttributeTypeOk(o.Storage); ok { - toSerialize["Storage"] = val - } - if val, ok := getPartialUpdateInstancePayloadGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullablePartialUpdateInstancePayload struct { - value *PartialUpdateInstancePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateInstancePayload) Get() *PartialUpdateInstancePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateInstancePayload) Set(val *PartialUpdateInstancePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateInstancePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullablePartialUpdateInstancePayload(val *PartialUpdateInstancePayload) *NullablePartialUpdateInstancePayload { - return &NullablePartialUpdateInstancePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_partial_update_instance_payload_test.go b/services/postgresflex/model_partial_update_instance_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_partial_update_instance_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_partial_update_user_payload.go b/services/postgresflex/model_partial_update_user_payload.go deleted file mode 100644 index 3aa7a25adc..0000000000 --- a/services/postgresflex/model_partial_update_user_payload.go +++ /dev/null @@ -1,211 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the PartialUpdateUserPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &PartialUpdateUserPayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateUserPayloadGetNameAttributeTypeOk(arg PartialUpdateUserPayloadGetNameAttributeType) (ret PartialUpdateUserPayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateUserPayloadGetNameAttributeType(arg *PartialUpdateUserPayloadGetNameAttributeType, val PartialUpdateUserPayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetNameRetType = string - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayloadGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getPartialUpdateUserPayloadGetRolesAttributeTypeOk(arg PartialUpdateUserPayloadGetRolesAttributeType) (ret PartialUpdateUserPayloadGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setPartialUpdateUserPayloadGetRolesAttributeType(arg *PartialUpdateUserPayloadGetRolesAttributeType, val PartialUpdateUserPayloadGetRolesRetType) { - *arg = &val -} - -// PartialUpdateUserPayload struct for PartialUpdateUserPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type PartialUpdateUserPayload struct { - // The name of the user. - Name PartialUpdateUserPayloadGetNameAttributeType `json:"name,omitempty"` - // A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. - Roles PartialUpdateUserPayloadGetRolesAttributeType `json:"roles,omitempty"` -} - -// NewPartialUpdateUserPayload instantiates a new PartialUpdateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateUserPayload() *PartialUpdateUserPayload { - this := PartialUpdateUserPayload{} - return &this -} - -// NewPartialUpdateUserPayloadWithDefaults instantiates a new PartialUpdateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewPartialUpdateUserPayloadWithDefaults() *PartialUpdateUserPayload { - this := PartialUpdateUserPayload{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) GetName() (res PartialUpdateUserPayloadGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) GetNameOk() (ret PartialUpdateUserPayloadGetNameRetType, ok bool) { - return getPartialUpdateUserPayloadGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) SetName(v PartialUpdateUserPayloadGetNameRetType) { - setPartialUpdateUserPayloadGetNameAttributeType(&o.Name, v) -} - -// GetRoles returns the Roles field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) GetRoles() (res PartialUpdateUserPayloadGetRolesRetType) { - res, _ = o.GetRolesOk() - return -} - -// GetRolesOk returns a tuple with the Roles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) GetRolesOk() (ret PartialUpdateUserPayloadGetRolesRetType, ok bool) { - return getPartialUpdateUserPayloadGetRolesAttributeTypeOk(o.Roles) -} - -// HasRoles returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) HasRoles() bool { - _, ok := o.GetRolesOk() - return ok -} - -// SetRoles gets a reference to the given []string and assigns it to the Roles field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *PartialUpdateUserPayload) SetRoles(v PartialUpdateUserPayloadGetRolesRetType) { - setPartialUpdateUserPayloadGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o PartialUpdateUserPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getPartialUpdateUserPayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getPartialUpdateUserPayloadGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullablePartialUpdateUserPayload struct { - value *PartialUpdateUserPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateUserPayload) Get() *PartialUpdateUserPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateUserPayload) Set(val *PartialUpdateUserPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateUserPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateUserPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullablePartialUpdateUserPayload(val *PartialUpdateUserPayload) *NullablePartialUpdateUserPayload { - return &NullablePartialUpdateUserPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullablePartialUpdateUserPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullablePartialUpdateUserPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_partial_update_user_payload_test.go b/services/postgresflex/model_partial_update_user_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_partial_update_user_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_reset_user_password_response.go b/services/postgresflex/model_reset_user_password_response.go deleted file mode 100644 index 2e6744e09f..0000000000 --- a/services/postgresflex/model_reset_user_password_response.go +++ /dev/null @@ -1,258 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ResetUserPasswordResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ResetUserPasswordResponse{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getResetUserPasswordResponseGetNameAttributeTypeOk(arg ResetUserPasswordResponseGetNameAttributeType) (ret ResetUserPasswordResponseGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setResetUserPasswordResponseGetNameAttributeType(arg *ResetUserPasswordResponseGetNameAttributeType, val ResetUserPasswordResponseGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetNameRetType = string - -/* - types and functions for password -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetPasswordAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getResetUserPasswordResponseGetPasswordAttributeTypeOk(arg ResetUserPasswordResponseGetPasswordAttributeType) (ret ResetUserPasswordResponseGetPasswordRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setResetUserPasswordResponseGetPasswordAttributeType(arg *ResetUserPasswordResponseGetPasswordAttributeType, val ResetUserPasswordResponseGetPasswordRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetPasswordArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetPasswordRetType = string - -/* - types and functions for state -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetStateAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getResetUserPasswordResponseGetStateAttributeTypeOk(arg ResetUserPasswordResponseGetStateAttributeType) (ret ResetUserPasswordResponseGetStateRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setResetUserPasswordResponseGetStateAttributeType(arg *ResetUserPasswordResponseGetStateAttributeType, val ResetUserPasswordResponseGetStateRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetStateArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponseGetStateRetType = string - -// ResetUserPasswordResponse struct for ResetUserPasswordResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ResetUserPasswordResponse struct { - // The name of the user. - // REQUIRED - Name ResetUserPasswordResponseGetNameAttributeType `json:"name" required:"true"` - // The password for the user. - // REQUIRED - Password ResetUserPasswordResponseGetPasswordAttributeType `json:"password" required:"true"` - // The current state of the user. - // REQUIRED - State ResetUserPasswordResponseGetStateAttributeType `json:"state" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ResetUserPasswordResponse ResetUserPasswordResponse - -// NewResetUserPasswordResponse instantiates a new ResetUserPasswordResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewResetUserPasswordResponse(name ResetUserPasswordResponseGetNameArgType, password ResetUserPasswordResponseGetPasswordArgType, state ResetUserPasswordResponseGetStateArgType) *ResetUserPasswordResponse { - this := ResetUserPasswordResponse{} - setResetUserPasswordResponseGetNameAttributeType(&this.Name, name) - setResetUserPasswordResponseGetPasswordAttributeType(&this.Password, password) - setResetUserPasswordResponseGetStateAttributeType(&this.State, state) - return &this -} - -// NewResetUserPasswordResponseWithDefaults instantiates a new ResetUserPasswordResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewResetUserPasswordResponseWithDefaults() *ResetUserPasswordResponse { - this := ResetUserPasswordResponse{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetName() (ret ResetUserPasswordResponseGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetNameOk() (ret ResetUserPasswordResponseGetNameRetType, ok bool) { - return getResetUserPasswordResponseGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) SetName(v ResetUserPasswordResponseGetNameRetType) { - setResetUserPasswordResponseGetNameAttributeType(&o.Name, v) -} - -// GetPassword returns the Password field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetPassword() (ret ResetUserPasswordResponseGetPasswordRetType) { - ret, _ = o.GetPasswordOk() - return ret -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetPasswordOk() (ret ResetUserPasswordResponseGetPasswordRetType, ok bool) { - return getResetUserPasswordResponseGetPasswordAttributeTypeOk(o.Password) -} - -// SetPassword sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) SetPassword(v ResetUserPasswordResponseGetPasswordRetType) { - setResetUserPasswordResponseGetPasswordAttributeType(&o.Password, v) -} - -// GetState returns the State field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetState() (ret ResetUserPasswordResponseGetStateRetType) { - ret, _ = o.GetStateOk() - return ret -} - -// GetStateOk returns a tuple with the State field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) GetStateOk() (ret ResetUserPasswordResponseGetStateRetType, ok bool) { - return getResetUserPasswordResponseGetStateAttributeTypeOk(o.State) -} - -// SetState sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ResetUserPasswordResponse) SetState(v ResetUserPasswordResponseGetStateRetType) { - setResetUserPasswordResponseGetStateAttributeType(&o.State, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ResetUserPasswordResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getResetUserPasswordResponseGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getResetUserPasswordResponseGetPasswordAttributeTypeOk(o.Password); ok { - toSerialize["Password"] = val - } - if val, ok := getResetUserPasswordResponseGetStateAttributeTypeOk(o.State); ok { - toSerialize["State"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableResetUserPasswordResponse struct { - value *ResetUserPasswordResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableResetUserPasswordResponse) Get() *ResetUserPasswordResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableResetUserPasswordResponse) Set(val *ResetUserPasswordResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableResetUserPasswordResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableResetUserPasswordResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableResetUserPasswordResponse(val *ResetUserPasswordResponse) *NullableResetUserPasswordResponse { - return &NullableResetUserPasswordResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableResetUserPasswordResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableResetUserPasswordResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_reset_user_password_response_test.go b/services/postgresflex/model_reset_user_password_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_reset_user_password_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_state.go b/services/postgresflex/model_state.go deleted file mode 100644 index abd0b1f17c..0000000000 --- a/services/postgresflex/model_state.go +++ /dev/null @@ -1,144 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// State The current state of the instance. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type State string - -// List of state -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_READY State = "READY" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_PENDING State = "PENDING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_PROGRESSING State = "PROGRESSING" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_FAILURE State = "FAILURE" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_UNKNOWN State = "UNKNOWN" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - STATE_TERMINATING State = "TERMINATING" -) - -// All allowed values of State enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedStateEnumValues = []State{ - "READY", - "PENDING", - "PROGRESSING", - "FAILURE", - "UNKNOWN", - "TERMINATING", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *State) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := State(value) - for _, existing := range AllowedStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid State", value) -} - -// NewStateFromValue returns a pointer to a valid State -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStateFromValue(v string) (*State, error) { - ev := State(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for State: valid values are %v", v, AllowedStateEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v State) IsValid() bool { - for _, existing := range AllowedStateEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to state value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v State) Ptr() *State { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableState struct { - value *State - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableState) Get() *State { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableState) Set(val *State) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableState) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableState) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableState(val *State) *NullableState { - return &NullableState{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_state_test.go b/services/postgresflex/model_state_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_state_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_storage.go b/services/postgresflex/model_storage.go deleted file mode 100644 index cdfb4751a8..0000000000 --- a/services/postgresflex/model_storage.go +++ /dev/null @@ -1,211 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the Storage type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Storage{} - -/* - types and functions for class -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetClassAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getStorageGetClassAttributeTypeOk(arg StorageGetClassAttributeType) (ret StorageGetClassRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setStorageGetClassAttributeType(arg *StorageGetClassAttributeType, val StorageGetClassRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetClassArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetClassRetType = string - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getStorageGetSizeAttributeTypeOk(arg StorageGetSizeAttributeType) (ret StorageGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setStorageGetSizeAttributeType(arg *StorageGetSizeAttributeType, val StorageGetSizeRetType) { - *arg = &val -} - -// Storage The object containing information about the storage size and class. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Storage struct { - // The storage class for the storage. - Class StorageGetClassAttributeType `json:"class,omitempty"` - // The storage size in Gigabytes. - Size StorageGetSizeAttributeType `json:"size,omitempty"` -} - -// NewStorage instantiates a new Storage 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStorage() *Storage { - this := Storage{} - return &this -} - -// NewStorageWithDefaults instantiates a new Storage 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStorageWithDefaults() *Storage { - this := Storage{} - return &this -} - -// GetClass returns the Class field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) GetClass() (res StorageGetClassRetType) { - res, _ = o.GetClassOk() - return -} - -// 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: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) GetClassOk() (ret StorageGetClassRetType, ok bool) { - return getStorageGetClassAttributeTypeOk(o.Class) -} - -// HasClass returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) HasClass() bool { - _, ok := o.GetClassOk() - return ok -} - -// SetClass gets a reference to the given string and assigns it to the Class field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) SetClass(v StorageGetClassRetType) { - setStorageGetClassAttributeType(&o.Class, v) -} - -// GetSize returns the Size field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) GetSize() (res StorageGetSizeRetType) { - res, _ = o.GetSizeOk() - return -} - -// GetSizeOk returns a tuple with the Size field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) GetSizeOk() (ret StorageGetSizeRetType, ok bool) { - return getStorageGetSizeAttributeTypeOk(o.Size) -} - -// HasSize returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) HasSize() bool { - _, ok := o.GetSizeOk() - return ok -} - -// SetSize gets a reference to the given int64 and assigns it to the Size field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Storage) SetSize(v StorageGetSizeRetType) { - setStorageGetSizeAttributeType(&o.Size, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Storage) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getStorageGetClassAttributeTypeOk(o.Class); ok { - toSerialize["Class"] = val - } - if val, ok := getStorageGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableStorage struct { - value *Storage - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorage) Get() *Storage { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorage) Set(val *Storage) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorage) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorage) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableStorage(val *Storage) *NullableStorage { - return &NullableStorage{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorage) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorage) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_storage_create.go b/services/postgresflex/model_storage_create.go deleted file mode 100644 index 1529885e48..0000000000 --- a/services/postgresflex/model_storage_create.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the StorageCreate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StorageCreate{} - -/* - types and functions for class -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetClassAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getStorageCreateGetClassAttributeTypeOk(arg StorageCreateGetClassAttributeType) (ret StorageCreateGetClassRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setStorageCreateGetClassAttributeType(arg *StorageCreateGetClassAttributeType, val StorageCreateGetClassRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetClassArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetClassRetType = string - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreateGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getStorageCreateGetSizeAttributeTypeOk(arg StorageCreateGetSizeAttributeType) (ret StorageCreateGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setStorageCreateGetSizeAttributeType(arg *StorageCreateGetSizeAttributeType, val StorageCreateGetSizeRetType) { - *arg = &val -} - -// StorageCreate The object containing information about the storage size and class. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageCreate struct { - // The storage class for the storage. - // REQUIRED - Class StorageCreateGetClassAttributeType `json:"class" required:"true"` - // The storage size in Gigabytes. - // REQUIRED - Size StorageCreateGetSizeAttributeType `json:"size" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _StorageCreate StorageCreate - -// NewStorageCreate instantiates a new StorageCreate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStorageCreate(class StorageCreateGetClassArgType, size StorageCreateGetSizeArgType) *StorageCreate { - this := StorageCreate{} - setStorageCreateGetClassAttributeType(&this.Class, class) - setStorageCreateGetSizeAttributeType(&this.Size, size) - return &this -} - -// NewStorageCreateWithDefaults instantiates a new StorageCreate 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStorageCreateWithDefaults() *StorageCreate { - this := StorageCreate{} - return &this -} - -// GetClass returns the Class field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) GetClass() (ret StorageCreateGetClassRetType) { - ret, _ = o.GetClassOk() - return ret -} - -// GetClassOk returns a tuple with the Class field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) GetClassOk() (ret StorageCreateGetClassRetType, ok bool) { - return getStorageCreateGetClassAttributeTypeOk(o.Class) -} - -// SetClass sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) SetClass(v StorageCreateGetClassRetType) { - setStorageCreateGetClassAttributeType(&o.Class, v) -} - -// GetSize returns the Size field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) GetSize() (ret StorageCreateGetSizeRetType) { - ret, _ = o.GetSizeOk() - return ret -} - -// GetSizeOk returns a tuple with the Size field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) GetSizeOk() (ret StorageCreateGetSizeRetType, ok bool) { - return getStorageCreateGetSizeAttributeTypeOk(o.Size) -} - -// SetSize sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageCreate) SetSize(v StorageCreateGetSizeRetType) { - setStorageCreateGetSizeAttributeType(&o.Size, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o StorageCreate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getStorageCreateGetClassAttributeTypeOk(o.Class); ok { - toSerialize["Class"] = val - } - if val, ok := getStorageCreateGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableStorageCreate struct { - value *StorageCreate - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageCreate) Get() *StorageCreate { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageCreate) Set(val *StorageCreate) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageCreate) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageCreate) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableStorageCreate(val *StorageCreate) *NullableStorageCreate { - return &NullableStorageCreate{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageCreate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageCreate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_storage_create_test.go b/services/postgresflex/model_storage_create_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_storage_create_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_storage_test.go b/services/postgresflex/model_storage_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_storage_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_storage_update.go b/services/postgresflex/model_storage_update.go deleted file mode 100644 index ed2e1fd583..0000000000 --- a/services/postgresflex/model_storage_update.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the StorageUpdate type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StorageUpdate{} - -/* - types and functions for size -*/ - -// isLong -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageUpdateGetSizeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageUpdateGetSizeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageUpdateGetSizeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getStorageUpdateGetSizeAttributeTypeOk(arg StorageUpdateGetSizeAttributeType) (ret StorageUpdateGetSizeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setStorageUpdateGetSizeAttributeType(arg *StorageUpdateGetSizeAttributeType, val StorageUpdateGetSizeRetType) { - *arg = &val -} - -// StorageUpdate The object containing information about the storage size and class. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type StorageUpdate struct { - // The storage size in Gigabytes. - Size StorageUpdateGetSizeAttributeType `json:"size,omitempty"` -} - -// 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewStorageUpdateWithDefaults() *StorageUpdate { - this := StorageUpdate{} - return &this -} - -// GetSize returns the Size field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageUpdate) GetSize() (res StorageUpdateGetSizeRetType) { - res, _ = o.GetSizeOk() - return -} - -// GetSizeOk returns a tuple with the Size field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageUpdate) GetSizeOk() (ret StorageUpdateGetSizeRetType, ok bool) { - return getStorageUpdateGetSizeAttributeTypeOk(o.Size) -} - -// HasSize returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageUpdate) HasSize() bool { - _, ok := o.GetSizeOk() - return ok -} - -// SetSize gets a reference to the given int64 and assigns it to the Size field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *StorageUpdate) SetSize(v StorageUpdateGetSizeRetType) { - setStorageUpdateGetSizeAttributeType(&o.Size, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o StorageUpdate) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getStorageUpdateGetSizeAttributeTypeOk(o.Size); ok { - toSerialize["Size"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableStorageUpdate struct { - value *StorageUpdate - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageUpdate) Get() *StorageUpdate { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageUpdate) Set(val *StorageUpdate) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageUpdate) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageUpdate) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableStorageUpdate(val *StorageUpdate) *NullableStorageUpdate { - return &NullableStorageUpdate{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableStorageUpdate) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableStorageUpdate) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_storage_update_test.go b/services/postgresflex/model_storage_update_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_storage_update_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_database_partially_response.go b/services/postgresflex/model_update_database_partially_response.go deleted file mode 100644 index 6d65aac283..0000000000 --- a/services/postgresflex/model_update_database_partially_response.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateDatabasePartiallyResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateDatabasePartiallyResponse{} - -/* - types and functions for database -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePartiallyResponseGetDatabaseAttributeType = *ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePartiallyResponseGetDatabaseArgType = ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePartiallyResponseGetDatabaseRetType = ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(arg UpdateDatabasePartiallyResponseGetDatabaseAttributeType) (ret UpdateDatabasePartiallyResponseGetDatabaseRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(arg *UpdateDatabasePartiallyResponseGetDatabaseAttributeType, val UpdateDatabasePartiallyResponseGetDatabaseRetType) { - *arg = &val -} - -// UpdateDatabasePartiallyResponse struct for UpdateDatabasePartiallyResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePartiallyResponse struct { - // REQUIRED - Database UpdateDatabasePartiallyResponseGetDatabaseAttributeType `json:"database" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateDatabasePartiallyResponse UpdateDatabasePartiallyResponse - -// NewUpdateDatabasePartiallyResponse instantiates a new UpdateDatabasePartiallyResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabasePartiallyResponse(database UpdateDatabasePartiallyResponseGetDatabaseArgType) *UpdateDatabasePartiallyResponse { - this := UpdateDatabasePartiallyResponse{} - setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(&this.Database, database) - return &this -} - -// NewUpdateDatabasePartiallyResponseWithDefaults instantiates a new UpdateDatabasePartiallyResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabasePartiallyResponseWithDefaults() *UpdateDatabasePartiallyResponse { - this := UpdateDatabasePartiallyResponse{} - return &this -} - -// GetDatabase returns the Database field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePartiallyResponse) GetDatabase() (ret UpdateDatabasePartiallyResponseGetDatabaseRetType) { - ret, _ = o.GetDatabaseOk() - return ret -} - -// GetDatabaseOk returns a tuple with the Database field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePartiallyResponse) GetDatabaseOk() (ret UpdateDatabasePartiallyResponseGetDatabaseRetType, ok bool) { - return getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(o.Database) -} - -// SetDatabase sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePartiallyResponse) SetDatabase(v UpdateDatabasePartiallyResponseGetDatabaseRetType) { - setUpdateDatabasePartiallyResponseGetDatabaseAttributeType(&o.Database, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateDatabasePartiallyResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateDatabasePartiallyResponseGetDatabaseAttributeTypeOk(o.Database); ok { - toSerialize["Database"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateDatabasePartiallyResponse struct { - value *UpdateDatabasePartiallyResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePartiallyResponse) Get() *UpdateDatabasePartiallyResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePartiallyResponse) Set(val *UpdateDatabasePartiallyResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePartiallyResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePartiallyResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateDatabasePartiallyResponse(val *UpdateDatabasePartiallyResponse) *NullableUpdateDatabasePartiallyResponse { - return &NullableUpdateDatabasePartiallyResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePartiallyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePartiallyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_database_partially_response_test.go b/services/postgresflex/model_update_database_partially_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_database_partially_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_database_payload.go b/services/postgresflex/model_update_database_payload.go deleted file mode 100644 index 54a3d56a5c..0000000000 --- a/services/postgresflex/model_update_database_payload.go +++ /dev/null @@ -1,204 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateDatabasePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateDatabasePayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateDatabasePayloadGetNameAttributeTypeOk(arg UpdateDatabasePayloadGetNameAttributeType) (ret UpdateDatabasePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateDatabasePayloadGetNameAttributeType(arg *UpdateDatabasePayloadGetNameAttributeType, val UpdateDatabasePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetNameRetType = string - -/* - types and functions for owner -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetOwnerAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateDatabasePayloadGetOwnerAttributeTypeOk(arg UpdateDatabasePayloadGetOwnerAttributeType) (ret UpdateDatabasePayloadGetOwnerRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateDatabasePayloadGetOwnerAttributeType(arg *UpdateDatabasePayloadGetOwnerAttributeType, val UpdateDatabasePayloadGetOwnerRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetOwnerArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayloadGetOwnerRetType = string - -// UpdateDatabasePayload struct for UpdateDatabasePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabasePayload struct { - // \"The name of the database.\" \"Database name must be 1–63 characters long, start with a lowercase letter or underscore, and contain only lowercase letters, numbers, or underscores.\" - // REQUIRED - Name UpdateDatabasePayloadGetNameAttributeType `json:"name" required:"true"` - // The owner of the database. - // REQUIRED - Owner UpdateDatabasePayloadGetOwnerAttributeType `json:"owner" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateDatabasePayload UpdateDatabasePayload - -// NewUpdateDatabasePayload instantiates a new UpdateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabasePayload(name UpdateDatabasePayloadGetNameArgType, owner UpdateDatabasePayloadGetOwnerArgType) *UpdateDatabasePayload { - this := UpdateDatabasePayload{} - setUpdateDatabasePayloadGetNameAttributeType(&this.Name, name) - setUpdateDatabasePayloadGetOwnerAttributeType(&this.Owner, owner) - return &this -} - -// NewUpdateDatabasePayloadWithDefaults instantiates a new UpdateDatabasePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabasePayloadWithDefaults() *UpdateDatabasePayload { - this := UpdateDatabasePayload{} - return &this -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) GetName() (ret UpdateDatabasePayloadGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) GetNameOk() (ret UpdateDatabasePayloadGetNameRetType, ok bool) { - return getUpdateDatabasePayloadGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) SetName(v UpdateDatabasePayloadGetNameRetType) { - setUpdateDatabasePayloadGetNameAttributeType(&o.Name, v) -} - -// GetOwner returns the Owner field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) GetOwner() (ret UpdateDatabasePayloadGetOwnerRetType) { - ret, _ = o.GetOwnerOk() - return ret -} - -// GetOwnerOk returns a tuple with the Owner field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) GetOwnerOk() (ret UpdateDatabasePayloadGetOwnerRetType, ok bool) { - return getUpdateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner) -} - -// SetOwner sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabasePayload) SetOwner(v UpdateDatabasePayloadGetOwnerRetType) { - setUpdateDatabasePayloadGetOwnerAttributeType(&o.Owner, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateDatabasePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateDatabasePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getUpdateDatabasePayloadGetOwnerAttributeTypeOk(o.Owner); ok { - toSerialize["Owner"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateDatabasePayload struct { - value *UpdateDatabasePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePayload) Get() *UpdateDatabasePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePayload) Set(val *UpdateDatabasePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateDatabasePayload(val *UpdateDatabasePayload) *NullableUpdateDatabasePayload { - return &NullableUpdateDatabasePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabasePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabasePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_database_payload_test.go b/services/postgresflex/model_update_database_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_database_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_database_response.go b/services/postgresflex/model_update_database_response.go deleted file mode 100644 index b658472ec2..0000000000 --- a/services/postgresflex/model_update_database_response.go +++ /dev/null @@ -1,149 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateDatabaseResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateDatabaseResponse{} - -/* - types and functions for database -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabaseResponseGetDatabaseAttributeType = *ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabaseResponseGetDatabaseArgType = ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabaseResponseGetDatabaseRetType = ListDatabase - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateDatabaseResponseGetDatabaseAttributeTypeOk(arg UpdateDatabaseResponseGetDatabaseAttributeType) (ret UpdateDatabaseResponseGetDatabaseRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateDatabaseResponseGetDatabaseAttributeType(arg *UpdateDatabaseResponseGetDatabaseAttributeType, val UpdateDatabaseResponseGetDatabaseRetType) { - *arg = &val -} - -// UpdateDatabaseResponse struct for UpdateDatabaseResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateDatabaseResponse struct { - // REQUIRED - Database UpdateDatabaseResponseGetDatabaseAttributeType `json:"database" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateDatabaseResponse UpdateDatabaseResponse - -// NewUpdateDatabaseResponse instantiates a new UpdateDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabaseResponse(database UpdateDatabaseResponseGetDatabaseArgType) *UpdateDatabaseResponse { - this := UpdateDatabaseResponse{} - setUpdateDatabaseResponseGetDatabaseAttributeType(&this.Database, database) - return &this -} - -// NewUpdateDatabaseResponseWithDefaults instantiates a new UpdateDatabaseResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateDatabaseResponseWithDefaults() *UpdateDatabaseResponse { - this := UpdateDatabaseResponse{} - return &this -} - -// GetDatabase returns the Database field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabaseResponse) GetDatabase() (ret UpdateDatabaseResponseGetDatabaseRetType) { - ret, _ = o.GetDatabaseOk() - return ret -} - -// GetDatabaseOk returns a tuple with the Database field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabaseResponse) GetDatabaseOk() (ret UpdateDatabaseResponseGetDatabaseRetType, ok bool) { - return getUpdateDatabaseResponseGetDatabaseAttributeTypeOk(o.Database) -} - -// SetDatabase sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateDatabaseResponse) SetDatabase(v UpdateDatabaseResponseGetDatabaseRetType) { - setUpdateDatabaseResponseGetDatabaseAttributeType(&o.Database, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateDatabaseResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateDatabaseResponseGetDatabaseAttributeTypeOk(o.Database); ok { - toSerialize["Database"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateDatabaseResponse struct { - value *UpdateDatabaseResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabaseResponse) Get() *UpdateDatabaseResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabaseResponse) Set(val *UpdateDatabaseResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabaseResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabaseResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateDatabaseResponse(val *UpdateDatabaseResponse) *NullableUpdateDatabaseResponse { - return &NullableUpdateDatabaseResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateDatabaseResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateDatabaseResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_database_response_test.go b/services/postgresflex/model_update_database_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_database_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_instance_payload.go b/services/postgresflex/model_update_instance_payload.go deleted file mode 100644 index f1e7b3e043..0000000000 --- a/services/postgresflex/model_update_instance_payload.go +++ /dev/null @@ -1,534 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateInstancePayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateInstancePayload{} - -/* - types and functions for backupSchedule -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetBackupScheduleAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(arg UpdateInstancePayloadGetBackupScheduleAttributeType) (ret UpdateInstancePayloadGetBackupScheduleRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetBackupScheduleAttributeType(arg *UpdateInstancePayloadGetBackupScheduleAttributeType, val UpdateInstancePayloadGetBackupScheduleRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetBackupScheduleArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetBackupScheduleRetType = string - -/* - types and functions for flavorId -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetFlavorIdAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetFlavorIdAttributeTypeOk(arg UpdateInstancePayloadGetFlavorIdAttributeType) (ret UpdateInstancePayloadGetFlavorIdRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetFlavorIdAttributeType(arg *UpdateInstancePayloadGetFlavorIdAttributeType, val UpdateInstancePayloadGetFlavorIdRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetFlavorIdArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetFlavorIdRetType = string - -/* - types and functions for labels -*/ - -// isContainer -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetLabelsAttributeType = *map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetLabelsArgType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetLabelsRetType = map[string]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetLabelsAttributeTypeOk(arg UpdateInstancePayloadGetLabelsAttributeType) (ret UpdateInstancePayloadGetLabelsRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetLabelsAttributeType(arg *UpdateInstancePayloadGetLabelsAttributeType, val UpdateInstancePayloadGetLabelsRetType) { - *arg = &val -} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetNameAttributeTypeOk(arg UpdateInstancePayloadGetNameAttributeType) (ret UpdateInstancePayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetNameAttributeType(arg *UpdateInstancePayloadGetNameAttributeType, val UpdateInstancePayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNameRetType = string - -/* - types and functions for network -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNetworkAttributeType = *InstanceNetworkUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNetworkArgType = InstanceNetworkUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetNetworkRetType = InstanceNetworkUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetNetworkAttributeTypeOk(arg UpdateInstancePayloadGetNetworkAttributeType) (ret UpdateInstancePayloadGetNetworkRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetNetworkAttributeType(arg *UpdateInstancePayloadGetNetworkAttributeType, val UpdateInstancePayloadGetNetworkRetType) { - *arg = &val -} - -/* - types and functions for retentionDays -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetRetentionDaysAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetRetentionDaysArgType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetRetentionDaysRetType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(arg UpdateInstancePayloadGetRetentionDaysAttributeType) (ret UpdateInstancePayloadGetRetentionDaysRetType, ok bool) { - if arg == nil { - return nil, false - } - return arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetRetentionDaysAttributeType(arg *UpdateInstancePayloadGetRetentionDaysAttributeType, val UpdateInstancePayloadGetRetentionDaysRetType) { - *arg = val -} - -/* - types and functions for storage -*/ - -// isModel -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetStorageAttributeType = *StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetStorageArgType = StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetStorageRetType = StorageUpdate - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetStorageAttributeTypeOk(arg UpdateInstancePayloadGetStorageAttributeType) (ret UpdateInstancePayloadGetStorageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetStorageAttributeType(arg *UpdateInstancePayloadGetStorageAttributeType, val UpdateInstancePayloadGetStorageRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstancePayloadGetVersionAttributeTypeOk(arg UpdateInstancePayloadGetVersionAttributeType) (ret UpdateInstancePayloadGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstancePayloadGetVersionAttributeType(arg *UpdateInstancePayloadGetVersionAttributeType, val UpdateInstancePayloadGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayloadGetVersionRetType = string - -// UpdateInstancePayload struct for UpdateInstancePayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstancePayload struct { - // The schedule for when the database backup will be created. Currently, ONLY daily schedules are supported (every 24 hours). The schedule is written as a cron schedule. - // REQUIRED - BackupSchedule UpdateInstancePayloadGetBackupScheduleAttributeType `json:"backupSchedule" required:"true"` - // The id of the instance flavor. - // REQUIRED - FlavorId UpdateInstancePayloadGetFlavorIdAttributeType `json:"flavorId" required:"true"` - // Key-value pairs, 63 characters max, begin and end with an alphanumerical character, may contain dashes (-), underscores (_), dots (.), and alphanumerics between. Key MUST be at least 1 character. Max 64 labels Regex for keys: ^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$ Regex for values: ^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$ The stackit- prefix is reserved and cannot be used for Keys. - Labels UpdateInstancePayloadGetLabelsAttributeType `json:"labels,omitempty"` - // The name of the instance. - // REQUIRED - Name UpdateInstancePayloadGetNameAttributeType `json:"name" required:"true"` - // REQUIRED - Network UpdateInstancePayloadGetNetworkAttributeType `json:"network" required:"true"` - // How long backups are retained. The value can only be between 32 and 90 days. - // Can be cast to int32 without loss of precision. - // REQUIRED - RetentionDays UpdateInstancePayloadGetRetentionDaysAttributeType `json:"retentionDays" required:"true"` - // REQUIRED - Storage UpdateInstancePayloadGetStorageAttributeType `json:"storage" required:"true"` - // The Postgres version used for the instance. See [Versions Endpoint](/documentation/postgres-flex-service/version/v3#tag/Version) for supported version parameters. - // REQUIRED - Version UpdateInstancePayloadGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateInstancePayload UpdateInstancePayload - -// NewUpdateInstancePayload instantiates a new UpdateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstancePayload(backupSchedule UpdateInstancePayloadGetBackupScheduleArgType, flavorId UpdateInstancePayloadGetFlavorIdArgType, name UpdateInstancePayloadGetNameArgType, network UpdateInstancePayloadGetNetworkArgType, retentionDays UpdateInstancePayloadGetRetentionDaysArgType, storage UpdateInstancePayloadGetStorageArgType, version UpdateInstancePayloadGetVersionArgType) *UpdateInstancePayload { - this := UpdateInstancePayload{} - setUpdateInstancePayloadGetBackupScheduleAttributeType(&this.BackupSchedule, backupSchedule) - setUpdateInstancePayloadGetFlavorIdAttributeType(&this.FlavorId, flavorId) - setUpdateInstancePayloadGetNameAttributeType(&this.Name, name) - setUpdateInstancePayloadGetNetworkAttributeType(&this.Network, network) - setUpdateInstancePayloadGetRetentionDaysAttributeType(&this.RetentionDays, retentionDays) - setUpdateInstancePayloadGetStorageAttributeType(&this.Storage, storage) - setUpdateInstancePayloadGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewUpdateInstancePayloadWithDefaults instantiates a new UpdateInstancePayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstancePayloadWithDefaults() *UpdateInstancePayload { - this := UpdateInstancePayload{} - return &this -} - -// GetBackupSchedule returns the BackupSchedule field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetBackupSchedule() (ret UpdateInstancePayloadGetBackupScheduleRetType) { - ret, _ = o.GetBackupScheduleOk() - return ret -} - -// GetBackupScheduleOk returns a tuple with the BackupSchedule field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetBackupScheduleOk() (ret UpdateInstancePayloadGetBackupScheduleRetType, ok bool) { - return getUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule) -} - -// SetBackupSchedule sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetBackupSchedule(v UpdateInstancePayloadGetBackupScheduleRetType) { - setUpdateInstancePayloadGetBackupScheduleAttributeType(&o.BackupSchedule, v) -} - -// GetFlavorId returns the FlavorId field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetFlavorId() (ret UpdateInstancePayloadGetFlavorIdRetType) { - ret, _ = o.GetFlavorIdOk() - return ret -} - -// GetFlavorIdOk returns a tuple with the FlavorId field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetFlavorIdOk() (ret UpdateInstancePayloadGetFlavorIdRetType, ok bool) { - return getUpdateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId) -} - -// SetFlavorId sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetFlavorId(v UpdateInstancePayloadGetFlavorIdRetType) { - setUpdateInstancePayloadGetFlavorIdAttributeType(&o.FlavorId, v) -} - -// GetLabels returns the Labels field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetLabels() (res UpdateInstancePayloadGetLabelsRetType) { - res, _ = o.GetLabelsOk() - return -} - -// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetLabelsOk() (ret UpdateInstancePayloadGetLabelsRetType, ok bool) { - return getUpdateInstancePayloadGetLabelsAttributeTypeOk(o.Labels) -} - -// HasLabels returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) HasLabels() bool { - _, ok := o.GetLabelsOk() - return ok -} - -// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetLabels(v UpdateInstancePayloadGetLabelsRetType) { - setUpdateInstancePayloadGetLabelsAttributeType(&o.Labels, v) -} - -// GetName returns the Name field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetName() (ret UpdateInstancePayloadGetNameRetType) { - ret, _ = o.GetNameOk() - return ret -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetNameOk() (ret UpdateInstancePayloadGetNameRetType, ok bool) { - return getUpdateInstancePayloadGetNameAttributeTypeOk(o.Name) -} - -// SetName sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetName(v UpdateInstancePayloadGetNameRetType) { - setUpdateInstancePayloadGetNameAttributeType(&o.Name, v) -} - -// GetNetwork returns the Network field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetNetwork() (ret UpdateInstancePayloadGetNetworkRetType) { - ret, _ = o.GetNetworkOk() - return ret -} - -// GetNetworkOk returns a tuple with the Network field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetNetworkOk() (ret UpdateInstancePayloadGetNetworkRetType, ok bool) { - return getUpdateInstancePayloadGetNetworkAttributeTypeOk(o.Network) -} - -// SetNetwork sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetNetwork(v UpdateInstancePayloadGetNetworkRetType) { - setUpdateInstancePayloadGetNetworkAttributeType(&o.Network, v) -} - -// GetRetentionDays returns the RetentionDays field value -// If the value is explicit nil, the zero value for int32 will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetRetentionDays() (ret UpdateInstancePayloadGetRetentionDaysRetType) { - ret, _ = o.GetRetentionDaysOk() - return ret -} - -// GetRetentionDaysOk returns a tuple with the RetentionDays field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetRetentionDaysOk() (ret UpdateInstancePayloadGetRetentionDaysRetType, ok bool) { - return getUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays) -} - -// SetRetentionDays sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetRetentionDays(v UpdateInstancePayloadGetRetentionDaysRetType) { - setUpdateInstancePayloadGetRetentionDaysAttributeType(&o.RetentionDays, v) -} - -// GetStorage returns the Storage field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetStorage() (ret UpdateInstancePayloadGetStorageRetType) { - ret, _ = o.GetStorageOk() - return ret -} - -// GetStorageOk returns a tuple with the Storage field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetStorageOk() (ret UpdateInstancePayloadGetStorageRetType, ok bool) { - return getUpdateInstancePayloadGetStorageAttributeTypeOk(o.Storage) -} - -// SetStorage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetStorage(v UpdateInstancePayloadGetStorageRetType) { - setUpdateInstancePayloadGetStorageAttributeType(&o.Storage, v) -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetVersion() (ret UpdateInstancePayloadGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) GetVersionOk() (ret UpdateInstancePayloadGetVersionRetType, ok bool) { - return getUpdateInstancePayloadGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstancePayload) SetVersion(v UpdateInstancePayloadGetVersionRetType) { - setUpdateInstancePayloadGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateInstancePayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateInstancePayloadGetBackupScheduleAttributeTypeOk(o.BackupSchedule); ok { - toSerialize["BackupSchedule"] = val - } - if val, ok := getUpdateInstancePayloadGetFlavorIdAttributeTypeOk(o.FlavorId); ok { - toSerialize["FlavorId"] = val - } - if val, ok := getUpdateInstancePayloadGetLabelsAttributeTypeOk(o.Labels); ok { - toSerialize["Labels"] = val - } - if val, ok := getUpdateInstancePayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getUpdateInstancePayloadGetNetworkAttributeTypeOk(o.Network); ok { - toSerialize["Network"] = val - } - if val, ok := getUpdateInstancePayloadGetRetentionDaysAttributeTypeOk(o.RetentionDays); ok { - toSerialize["RetentionDays"] = val - } - if val, ok := getUpdateInstancePayloadGetStorageAttributeTypeOk(o.Storage); ok { - toSerialize["Storage"] = val - } - if val, ok := getUpdateInstancePayloadGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateInstancePayload struct { - value *UpdateInstancePayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstancePayload) Get() *UpdateInstancePayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstancePayload) Set(val *UpdateInstancePayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstancePayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstancePayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateInstancePayload(val *UpdateInstancePayload) *NullableUpdateInstancePayload { - return &NullableUpdateInstancePayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstancePayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstancePayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_instance_payload_test.go b/services/postgresflex/model_update_instance_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_instance_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_instance_protection_payload.go b/services/postgresflex/model_update_instance_protection_payload.go deleted file mode 100644 index 3c2444238f..0000000000 --- a/services/postgresflex/model_update_instance_protection_payload.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateInstanceProtectionPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateInstanceProtectionPayload{} - -/* - types and functions for isDeletable -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionPayloadgetIsDeletableAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionPayloadgetIsDeletableArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionPayloadgetIsDeletableRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstanceProtectionPayloadgetIsDeletableAttributeTypeOk(arg UpdateInstanceProtectionPayloadgetIsDeletableAttributeType) (ret UpdateInstanceProtectionPayloadgetIsDeletableRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstanceProtectionPayloadgetIsDeletableAttributeType(arg *UpdateInstanceProtectionPayloadgetIsDeletableAttributeType, val UpdateInstanceProtectionPayloadgetIsDeletableRetType) { - *arg = &val -} - -// UpdateInstanceProtectionPayload struct for UpdateInstanceProtectionPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionPayload struct { - // Protect instance from deletion. - // REQUIRED - IsDeletable UpdateInstanceProtectionPayloadgetIsDeletableAttributeType `json:"isDeletable" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateInstanceProtectionPayload UpdateInstanceProtectionPayload - -// NewUpdateInstanceProtectionPayload instantiates a new UpdateInstanceProtectionPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstanceProtectionPayload(isDeletable UpdateInstanceProtectionPayloadgetIsDeletableArgType) *UpdateInstanceProtectionPayload { - this := UpdateInstanceProtectionPayload{} - setUpdateInstanceProtectionPayloadgetIsDeletableAttributeType(&this.IsDeletable, isDeletable) - return &this -} - -// NewUpdateInstanceProtectionPayloadWithDefaults instantiates a new UpdateInstanceProtectionPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstanceProtectionPayloadWithDefaults() *UpdateInstanceProtectionPayload { - this := UpdateInstanceProtectionPayload{} - return &this -} - -// GetIsDeletable returns the IsDeletable field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionPayload) GetIsDeletable() (ret UpdateInstanceProtectionPayloadgetIsDeletableRetType) { - ret, _ = o.GetIsDeletableOk() - return ret -} - -// GetIsDeletableOk returns a tuple with the IsDeletable field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionPayload) GetIsDeletableOk() (ret UpdateInstanceProtectionPayloadgetIsDeletableRetType, ok bool) { - return getUpdateInstanceProtectionPayloadgetIsDeletableAttributeTypeOk(o.IsDeletable) -} - -// SetIsDeletable sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionPayload) SetIsDeletable(v UpdateInstanceProtectionPayloadgetIsDeletableRetType) { - setUpdateInstanceProtectionPayloadgetIsDeletableAttributeType(&o.IsDeletable, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateInstanceProtectionPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateInstanceProtectionPayloadgetIsDeletableAttributeTypeOk(o.IsDeletable); ok { - toSerialize["IsDeletable"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateInstanceProtectionPayload struct { - value *UpdateInstanceProtectionPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionPayload) Get() *UpdateInstanceProtectionPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionPayload) Set(val *UpdateInstanceProtectionPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateInstanceProtectionPayload(val *UpdateInstanceProtectionPayload) *NullableUpdateInstanceProtectionPayload { - return &NullableUpdateInstanceProtectionPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_instance_protection_payload_test.go b/services/postgresflex/model_update_instance_protection_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_instance_protection_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_instance_protection_response.go b/services/postgresflex/model_update_instance_protection_response.go deleted file mode 100644 index 09a39f7376..0000000000 --- a/services/postgresflex/model_update_instance_protection_response.go +++ /dev/null @@ -1,150 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateInstanceProtectionResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateInstanceProtectionResponse{} - -/* - types and functions for isDeletable -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionResponsegetIsDeletableAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionResponsegetIsDeletableArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionResponsegetIsDeletableRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateInstanceProtectionResponsegetIsDeletableAttributeTypeOk(arg UpdateInstanceProtectionResponsegetIsDeletableAttributeType) (ret UpdateInstanceProtectionResponsegetIsDeletableRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateInstanceProtectionResponsegetIsDeletableAttributeType(arg *UpdateInstanceProtectionResponsegetIsDeletableAttributeType, val UpdateInstanceProtectionResponsegetIsDeletableRetType) { - *arg = &val -} - -// UpdateInstanceProtectionResponse struct for UpdateInstanceProtectionResponse -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateInstanceProtectionResponse struct { - // Protect instance from deletion. - // REQUIRED - IsDeletable UpdateInstanceProtectionResponsegetIsDeletableAttributeType `json:"isDeletable" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateInstanceProtectionResponse UpdateInstanceProtectionResponse - -// NewUpdateInstanceProtectionResponse instantiates a new UpdateInstanceProtectionResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstanceProtectionResponse(isDeletable UpdateInstanceProtectionResponsegetIsDeletableArgType) *UpdateInstanceProtectionResponse { - this := UpdateInstanceProtectionResponse{} - setUpdateInstanceProtectionResponsegetIsDeletableAttributeType(&this.IsDeletable, isDeletable) - return &this -} - -// NewUpdateInstanceProtectionResponseWithDefaults instantiates a new UpdateInstanceProtectionResponse 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateInstanceProtectionResponseWithDefaults() *UpdateInstanceProtectionResponse { - this := UpdateInstanceProtectionResponse{} - return &this -} - -// GetIsDeletable returns the IsDeletable field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionResponse) GetIsDeletable() (ret UpdateInstanceProtectionResponsegetIsDeletableRetType) { - ret, _ = o.GetIsDeletableOk() - return ret -} - -// GetIsDeletableOk returns a tuple with the IsDeletable field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionResponse) GetIsDeletableOk() (ret UpdateInstanceProtectionResponsegetIsDeletableRetType, ok bool) { - return getUpdateInstanceProtectionResponsegetIsDeletableAttributeTypeOk(o.IsDeletable) -} - -// SetIsDeletable sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateInstanceProtectionResponse) SetIsDeletable(v UpdateInstanceProtectionResponsegetIsDeletableRetType) { - setUpdateInstanceProtectionResponsegetIsDeletableAttributeType(&o.IsDeletable, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateInstanceProtectionResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateInstanceProtectionResponsegetIsDeletableAttributeTypeOk(o.IsDeletable); ok { - toSerialize["IsDeletable"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateInstanceProtectionResponse struct { - value *UpdateInstanceProtectionResponse - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionResponse) Get() *UpdateInstanceProtectionResponse { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionResponse) Set(val *UpdateInstanceProtectionResponse) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionResponse) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionResponse) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateInstanceProtectionResponse(val *UpdateInstanceProtectionResponse) *NullableUpdateInstanceProtectionResponse { - return &NullableUpdateInstanceProtectionResponse{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateInstanceProtectionResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateInstanceProtectionResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_instance_protection_response_test.go b/services/postgresflex/model_update_instance_protection_response_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_instance_protection_response_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_update_user_payload.go b/services/postgresflex/model_update_user_payload.go deleted file mode 100644 index 1f1e985194..0000000000 --- a/services/postgresflex/model_update_user_payload.go +++ /dev/null @@ -1,209 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the UpdateUserPayload type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &UpdateUserPayload{} - -/* - types and functions for name -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetNameAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateUserPayloadGetNameAttributeTypeOk(arg UpdateUserPayloadGetNameAttributeType) (ret UpdateUserPayloadGetNameRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateUserPayloadGetNameAttributeType(arg *UpdateUserPayloadGetNameAttributeType, val UpdateUserPayloadGetNameRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetNameArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetNameRetType = string - -/* - types and functions for roles -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetRolesAttributeType = *[]string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetRolesArgType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayloadGetRolesRetType = []string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getUpdateUserPayloadGetRolesAttributeTypeOk(arg UpdateUserPayloadGetRolesAttributeType) (ret UpdateUserPayloadGetRolesRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setUpdateUserPayloadGetRolesAttributeType(arg *UpdateUserPayloadGetRolesAttributeType, val UpdateUserPayloadGetRolesRetType) { - *arg = &val -} - -// UpdateUserPayload struct for UpdateUserPayload -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UpdateUserPayload struct { - // The name of the user. - Name UpdateUserPayloadGetNameAttributeType `json:"name,omitempty"` - // A list containing the user roles for the instance. Please refer to the List Roles endpoint for a list of all available Roles. - // REQUIRED - Roles UpdateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _UpdateUserPayload UpdateUserPayload - -// NewUpdateUserPayload instantiates a new UpdateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateUserPayload(roles UpdateUserPayloadGetRolesArgType) *UpdateUserPayload { - this := UpdateUserPayload{} - setUpdateUserPayloadGetRolesAttributeType(&this.Roles, roles) - return &this -} - -// NewUpdateUserPayloadWithDefaults instantiates a new UpdateUserPayload 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUpdateUserPayloadWithDefaults() *UpdateUserPayload { - this := UpdateUserPayload{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) GetName() (res UpdateUserPayloadGetNameRetType) { - res, _ = o.GetNameOk() - return -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) GetNameOk() (ret UpdateUserPayloadGetNameRetType, ok bool) { - return getUpdateUserPayloadGetNameAttributeTypeOk(o.Name) -} - -// HasName returns a boolean if a field has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) HasName() bool { - _, ok := o.GetNameOk() - return ok -} - -// SetName gets a reference to the given string and assigns it to the Name field. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) SetName(v UpdateUserPayloadGetNameRetType) { - setUpdateUserPayloadGetNameAttributeType(&o.Name, v) -} - -// GetRoles returns the Roles field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) GetRoles() (ret UpdateUserPayloadGetRolesRetType) { - ret, _ = o.GetRolesOk() - return ret -} - -// GetRolesOk returns a tuple with the Roles field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) GetRolesOk() (ret UpdateUserPayloadGetRolesRetType, ok bool) { - return getUpdateUserPayloadGetRolesAttributeTypeOk(o.Roles) -} - -// SetRoles sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *UpdateUserPayload) SetRoles(v UpdateUserPayloadGetRolesRetType) { - setUpdateUserPayloadGetRolesAttributeType(&o.Roles, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o UpdateUserPayload) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getUpdateUserPayloadGetNameAttributeTypeOk(o.Name); ok { - toSerialize["Name"] = val - } - if val, ok := getUpdateUserPayloadGetRolesAttributeTypeOk(o.Roles); ok { - toSerialize["Roles"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUpdateUserPayload struct { - value *UpdateUserPayload - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateUserPayload) Get() *UpdateUserPayload { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateUserPayload) Set(val *UpdateUserPayload) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateUserPayload) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateUserPayload) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUpdateUserPayload(val *UpdateUserPayload) *NullableUpdateUserPayload { - return &NullableUpdateUserPayload{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUpdateUserPayload) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUpdateUserPayload) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_update_user_payload_test.go b/services/postgresflex/model_update_user_payload_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_update_user_payload_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_user_sort.go b/services/postgresflex/model_user_sort.go deleted file mode 100644 index a517c9c3fc..0000000000 --- a/services/postgresflex/model_user_sort.go +++ /dev/null @@ -1,144 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" - "fmt" -) - -// UserSort the model 'UserSort' -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type UserSort string - -// List of user.sort -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_ID_ASC UserSort = "id.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_ID_DESC UserSort = "id.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_NAME_DESC UserSort = "name.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_NAME_ASC UserSort = "name.asc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_STATE_DESC UserSort = "state.desc" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - USERSORT_STATE_ASC UserSort = "state.asc" -) - -// All allowed values of UserSort enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -var AllowedUserSortEnumValues = []UserSort{ - "id.asc", - "id.desc", - "name.desc", - "name.asc", - "state.desc", - "state.asc", -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *UserSort) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - // Allow unmarshalling zero value for testing purposes - var zeroValue string - if value == zeroValue { - return nil - } - enumTypeValue := UserSort(value) - for _, existing := range AllowedUserSortEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid UserSort", value) -} - -// NewUserSortFromValue returns a pointer to a valid UserSort -// for the value passed as argument, or an error if the value passed is not allowed by the enum -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewUserSortFromValue(v string) (*UserSort, error) { - ev := UserSort(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for UserSort: valid values are %v", v, AllowedUserSortEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v UserSort) IsValid() bool { - for _, existing := range AllowedUserSortEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to user.sort value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v UserSort) Ptr() *UserSort { - return &v -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableUserSort struct { - value *UserSort - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUserSort) Get() *UserSort { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUserSort) Set(val *UserSort) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUserSort) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUserSort) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableUserSort(val *UserSort) *NullableUserSort { - return &NullableUserSort{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableUserSort) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableUserSort) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_user_sort_test.go b/services/postgresflex/model_user_sort_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_user_sort_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_validation_error.go b/services/postgresflex/model_validation_error.go deleted file mode 100644 index f5dc5cf35e..0000000000 --- a/services/postgresflex/model_validation_error.go +++ /dev/null @@ -1,205 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ValidationError type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ValidationError{} - -/* - types and functions for code -*/ - -// isInteger -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetCodeAttributeType = *int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetCodeArgType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetCodeRetType = int64 - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getValidationErrorGetCodeAttributeTypeOk(arg ValidationErrorGetCodeAttributeType) (ret ValidationErrorGetCodeRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setValidationErrorGetCodeAttributeType(arg *ValidationErrorGetCodeAttributeType, val ValidationErrorGetCodeRetType) { - *arg = &val -} - -/* - types and functions for validation -*/ - -// isArray -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetValidationAttributeType = *[]ValidationErrorValidationInner - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetValidationArgType = []ValidationErrorValidationInner - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorGetValidationRetType = []ValidationErrorValidationInner - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getValidationErrorGetValidationAttributeTypeOk(arg ValidationErrorGetValidationAttributeType) (ret ValidationErrorGetValidationRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setValidationErrorGetValidationAttributeType(arg *ValidationErrorGetValidationAttributeType, val ValidationErrorGetValidationRetType) { - *arg = &val -} - -// ValidationError struct for ValidationError -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationError struct { - // the http error should be always 422 for validationError - // Can be cast to int32 without loss of precision. - // REQUIRED - Code ValidationErrorGetCodeAttributeType `json:"code" required:"true"` - // errors for all fields where the error happened - // REQUIRED - Validation ValidationErrorGetValidationAttributeType `json:"validation" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ValidationError ValidationError - -// NewValidationError instantiates a new ValidationError 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewValidationError(code ValidationErrorGetCodeArgType, validation ValidationErrorGetValidationArgType) *ValidationError { - this := ValidationError{} - setValidationErrorGetCodeAttributeType(&this.Code, code) - setValidationErrorGetValidationAttributeType(&this.Validation, validation) - return &this -} - -// NewValidationErrorWithDefaults instantiates a new ValidationError 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewValidationErrorWithDefaults() *ValidationError { - this := ValidationError{} - return &this -} - -// GetCode returns the Code field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) GetCode() (ret ValidationErrorGetCodeRetType) { - ret, _ = o.GetCodeOk() - return ret -} - -// GetCodeOk returns a tuple with the Code field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) GetCodeOk() (ret ValidationErrorGetCodeRetType, ok bool) { - return getValidationErrorGetCodeAttributeTypeOk(o.Code) -} - -// SetCode sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) SetCode(v ValidationErrorGetCodeRetType) { - setValidationErrorGetCodeAttributeType(&o.Code, v) -} - -// GetValidation returns the Validation field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) GetValidation() (ret ValidationErrorGetValidationRetType) { - ret, _ = o.GetValidationOk() - return ret -} - -// GetValidationOk returns a tuple with the Validation field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) GetValidationOk() (ret ValidationErrorGetValidationRetType, ok bool) { - return getValidationErrorGetValidationAttributeTypeOk(o.Validation) -} - -// SetValidation sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationError) SetValidation(v ValidationErrorGetValidationRetType) { - setValidationErrorGetValidationAttributeType(&o.Validation, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ValidationError) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getValidationErrorGetCodeAttributeTypeOk(o.Code); ok { - toSerialize["Code"] = val - } - if val, ok := getValidationErrorGetValidationAttributeTypeOk(o.Validation); ok { - toSerialize["Validation"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableValidationError struct { - value *ValidationError - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationError) Get() *ValidationError { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationError) Set(val *ValidationError) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationError) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationError) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableValidationError(val *ValidationError) *NullableValidationError { - return &NullableValidationError{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationError) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationError) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_validation_error_test.go b/services/postgresflex/model_validation_error_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_validation_error_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_validation_error_validation_inner.go b/services/postgresflex/model_validation_error_validation_inner.go deleted file mode 100644 index 541c6a2930..0000000000 --- a/services/postgresflex/model_validation_error_validation_inner.go +++ /dev/null @@ -1,202 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the ValidationErrorValidationInner type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ValidationErrorValidationInner{} - -/* - types and functions for field -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetFieldAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getValidationErrorValidationInnerGetFieldAttributeTypeOk(arg ValidationErrorValidationInnerGetFieldAttributeType) (ret ValidationErrorValidationInnerGetFieldRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setValidationErrorValidationInnerGetFieldAttributeType(arg *ValidationErrorValidationInnerGetFieldAttributeType, val ValidationErrorValidationInnerGetFieldRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetFieldArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetFieldRetType = string - -/* - types and functions for message -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetMessageAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getValidationErrorValidationInnerGetMessageAttributeTypeOk(arg ValidationErrorValidationInnerGetMessageAttributeType) (ret ValidationErrorValidationInnerGetMessageRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setValidationErrorValidationInnerGetMessageAttributeType(arg *ValidationErrorValidationInnerGetMessageAttributeType, val ValidationErrorValidationInnerGetMessageRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetMessageArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInnerGetMessageRetType = string - -// ValidationErrorValidationInner struct for ValidationErrorValidationInner -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type ValidationErrorValidationInner struct { - // REQUIRED - Field ValidationErrorValidationInnerGetFieldAttributeType `json:"field" required:"true"` - // REQUIRED - Message ValidationErrorValidationInnerGetMessageAttributeType `json:"message" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _ValidationErrorValidationInner ValidationErrorValidationInner - -// NewValidationErrorValidationInner instantiates a new ValidationErrorValidationInner 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewValidationErrorValidationInner(field ValidationErrorValidationInnerGetFieldArgType, message ValidationErrorValidationInnerGetMessageArgType) *ValidationErrorValidationInner { - this := ValidationErrorValidationInner{} - setValidationErrorValidationInnerGetFieldAttributeType(&this.Field, field) - setValidationErrorValidationInnerGetMessageAttributeType(&this.Message, message) - return &this -} - -// NewValidationErrorValidationInnerWithDefaults instantiates a new ValidationErrorValidationInner 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewValidationErrorValidationInnerWithDefaults() *ValidationErrorValidationInner { - this := ValidationErrorValidationInner{} - return &this -} - -// GetField returns the Field field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) GetField() (ret ValidationErrorValidationInnerGetFieldRetType) { - ret, _ = o.GetFieldOk() - return ret -} - -// GetFieldOk returns a tuple with the Field field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) GetFieldOk() (ret ValidationErrorValidationInnerGetFieldRetType, ok bool) { - return getValidationErrorValidationInnerGetFieldAttributeTypeOk(o.Field) -} - -// SetField sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) SetField(v ValidationErrorValidationInnerGetFieldRetType) { - setValidationErrorValidationInnerGetFieldAttributeType(&o.Field, v) -} - -// GetMessage returns the Message field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) GetMessage() (ret ValidationErrorValidationInnerGetMessageRetType) { - ret, _ = o.GetMessageOk() - return ret -} - -// GetMessageOk returns a tuple with the Message field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) GetMessageOk() (ret ValidationErrorValidationInnerGetMessageRetType, ok bool) { - return getValidationErrorValidationInnerGetMessageAttributeTypeOk(o.Message) -} - -// SetMessage sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *ValidationErrorValidationInner) SetMessage(v ValidationErrorValidationInnerGetMessageRetType) { - setValidationErrorValidationInnerGetMessageAttributeType(&o.Message, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o ValidationErrorValidationInner) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getValidationErrorValidationInnerGetFieldAttributeTypeOk(o.Field); ok { - toSerialize["Field"] = val - } - if val, ok := getValidationErrorValidationInnerGetMessageAttributeTypeOk(o.Message); ok { - toSerialize["Message"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableValidationErrorValidationInner struct { - value *ValidationErrorValidationInner - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationErrorValidationInner) Get() *ValidationErrorValidationInner { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationErrorValidationInner) Set(val *ValidationErrorValidationInner) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationErrorValidationInner) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationErrorValidationInner) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableValidationErrorValidationInner(val *ValidationErrorValidationInner) *NullableValidationErrorValidationInner { - return &NullableValidationErrorValidationInner{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValidationErrorValidationInner) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValidationErrorValidationInner) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_validation_error_validation_inner_test.go b/services/postgresflex/model_validation_error_validation_inner_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_validation_error_validation_inner_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/model_version.go b/services/postgresflex/model_version.go deleted file mode 100644 index 13671791dc..0000000000 --- a/services/postgresflex/model_version.go +++ /dev/null @@ -1,312 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package postgresflex - -import ( - "encoding/json" -) - -// checks if the Version type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &Version{} - -/* - types and functions for beta -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetBetaAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetBetaArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetBetaRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVersiongetBetaAttributeTypeOk(arg VersiongetBetaAttributeType) (ret VersiongetBetaRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVersiongetBetaAttributeType(arg *VersiongetBetaAttributeType, val VersiongetBetaRetType) { - *arg = &val -} - -/* - types and functions for deprecated -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetDeprecatedAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVersionGetDeprecatedAttributeTypeOk(arg VersionGetDeprecatedAttributeType) (ret VersionGetDeprecatedRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVersionGetDeprecatedAttributeType(arg *VersionGetDeprecatedAttributeType, val VersionGetDeprecatedRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetDeprecatedArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetDeprecatedRetType = string - -/* - types and functions for recommend -*/ - -// isBoolean -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetRecommendAttributeType = *bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetRecommendArgType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersiongetRecommendRetType = bool - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVersiongetRecommendAttributeTypeOk(arg VersiongetRecommendAttributeType) (ret VersiongetRecommendRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVersiongetRecommendAttributeType(arg *VersiongetRecommendAttributeType, val VersiongetRecommendRetType) { - *arg = &val -} - -/* - types and functions for version -*/ - -// isNotNullableString -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetVersionAttributeType = *string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func getVersionGetVersionAttributeTypeOk(arg VersionGetVersionAttributeType) (ret VersionGetVersionRetType, ok bool) { - if arg == nil { - return ret, false - } - return *arg, true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func setVersionGetVersionAttributeType(arg *VersionGetVersionAttributeType, val VersionGetVersionRetType) { - *arg = &val -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetVersionArgType = string - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type VersionGetVersionRetType = string - -// Version The version of the postgres instance and more details. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type Version struct { - // Flag if the version is a beta version. If set the version may contain bugs and is not fully tested. - // REQUIRED - Beta VersiongetBetaAttributeType `json:"beta" required:"true"` - // Timestamp in RFC3339 format which says when the version will no longer be supported by STACKIT. - // REQUIRED - Deprecated VersionGetDeprecatedAttributeType `json:"deprecated" required:"true"` - // Flag if the version is recommend by the STACKIT Team. - // REQUIRED - Recommend VersiongetRecommendAttributeType `json:"recommend" required:"true"` - // The postgres version used for the instance. - // REQUIRED - Version VersionGetVersionAttributeType `json:"version" required:"true"` -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type _Version Version - -// NewVersion instantiates a new Version 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVersion(beta VersiongetBetaArgType, deprecated VersionGetDeprecatedArgType, recommend VersiongetRecommendArgType, version VersionGetVersionArgType) *Version { - this := Version{} - setVersiongetBetaAttributeType(&this.Beta, beta) - setVersionGetDeprecatedAttributeType(&this.Deprecated, deprecated) - setVersiongetRecommendAttributeType(&this.Recommend, recommend) - setVersionGetVersionAttributeType(&this.Version, version) - return &this -} - -// NewVersionWithDefaults instantiates a new Version 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 -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewVersionWithDefaults() *Version { - this := Version{} - return &this -} - -// GetBeta returns the Beta field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetBeta() (ret VersiongetBetaRetType) { - ret, _ = o.GetBetaOk() - return ret -} - -// GetBetaOk returns a tuple with the Beta field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetBetaOk() (ret VersiongetBetaRetType, ok bool) { - return getVersiongetBetaAttributeTypeOk(o.Beta) -} - -// SetBeta sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) SetBeta(v VersiongetBetaRetType) { - setVersiongetBetaAttributeType(&o.Beta, v) -} - -// GetDeprecated returns the Deprecated field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetDeprecated() (ret VersionGetDeprecatedRetType) { - ret, _ = o.GetDeprecatedOk() - return ret -} - -// GetDeprecatedOk returns a tuple with the Deprecated field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetDeprecatedOk() (ret VersionGetDeprecatedRetType, ok bool) { - return getVersionGetDeprecatedAttributeTypeOk(o.Deprecated) -} - -// SetDeprecated sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) SetDeprecated(v VersionGetDeprecatedRetType) { - setVersionGetDeprecatedAttributeType(&o.Deprecated, v) -} - -// GetRecommend returns the Recommend field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetRecommend() (ret VersiongetRecommendRetType) { - ret, _ = o.GetRecommendOk() - return ret -} - -// GetRecommendOk returns a tuple with the Recommend field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetRecommendOk() (ret VersiongetRecommendRetType, ok bool) { - return getVersiongetRecommendAttributeTypeOk(o.Recommend) -} - -// SetRecommend sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) SetRecommend(v VersiongetRecommendRetType) { - setVersiongetRecommendAttributeType(&o.Recommend, v) -} - -// GetVersion returns the Version field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetVersion() (ret VersionGetVersionRetType) { - ret, _ = o.GetVersionOk() - return ret -} - -// GetVersionOk returns a tuple with the Version field value -// and a boolean to check if the value has been set. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) GetVersionOk() (ret VersionGetVersionRetType, ok bool) { - return getVersionGetVersionAttributeTypeOk(o.Version) -} - -// SetVersion sets field value -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o *Version) SetVersion(v VersionGetVersionRetType) { - setVersionGetVersionAttributeType(&o.Version, v) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (o Version) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if val, ok := getVersiongetBetaAttributeTypeOk(o.Beta); ok { - toSerialize["Beta"] = val - } - if val, ok := getVersionGetDeprecatedAttributeTypeOk(o.Deprecated); ok { - toSerialize["Deprecated"] = val - } - if val, ok := getVersiongetRecommendAttributeTypeOk(o.Recommend); ok { - toSerialize["Recommend"] = val - } - if val, ok := getVersionGetVersionAttributeTypeOk(o.Version); ok { - toSerialize["Version"] = val - } - return toSerialize, nil -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableVersion struct { - value *Version - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVersion) Get() *Version { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVersion) Set(val *Version) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVersion) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVersion) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableVersion(val *Version) *NullableVersion { - return &NullableVersion{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableVersion) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableVersion) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/model_version_test.go b/services/postgresflex/model_version_test.go deleted file mode 100644 index 74a76f10ed..0000000000 --- a/services/postgresflex/model_version_test.go +++ /dev/null @@ -1,11 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex diff --git a/services/postgresflex/oas_commit b/services/postgresflex/oas_commit index 550a77c4e3..71a76821d4 100644 --- a/services/postgresflex/oas_commit +++ b/services/postgresflex/oas_commit @@ -1 +1 @@ -46de1033aa6379af6341423c3ff0e4cfb54f8350 +0afa5e4924e6bf230fdade5cb294ecfd97dd63e5 diff --git a/services/postgresflex/package.go b/services/postgresflex/package.go new file mode 100644 index 0000000000..a86327601f --- /dev/null +++ b/services/postgresflex/package.go @@ -0,0 +1 @@ +package postgresflex diff --git a/services/postgresflex/utils.go b/services/postgresflex/utils.go deleted file mode 100644 index ddbc5ecd96..0000000000 --- a/services/postgresflex/utils.go +++ /dev/null @@ -1,466 +0,0 @@ -/* -STACKIT PostgreSQL Flex API - -This is the documentation for the STACKIT Postgres Flex service - -API version: 3.0.0 -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package postgresflex - -import ( - "encoding/json" - "math/rand" - "reflect" - "time" -) - -// PtrBool is a helper routine that returns a pointer to given boolean value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrBool(v bool) *bool { return &v } - -// PtrInt is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt(v int) *int { return &v } - -// PtrInt32 is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt32(v int32) *int32 { return &v } - -// PtrInt64 is a helper routine that returns a pointer to given integer value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrInt64(v int64) *int64 { return &v } - -// PtrFloat32 is a helper routine that returns a pointer to given float value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrFloat32(v float32) *float32 { return &v } - -// PtrFloat64 is a helper routine that returns a pointer to given float value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrFloat64(v float64) *float64 { return &v } - -// PtrString is a helper routine that returns a pointer to given string value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrString(v string) *string { return &v } - -// PtrTime is helper routine that returns a pointer to given Time value. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PtrTime(v time.Time) *time.Time { return &v } - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableValue[T any] struct { - value *T - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValue[T]) Get() *T { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValue[T]) Set(val *T) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableValue[T]) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableValue[T]) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableBool struct { - value *bool - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) Get() *bool { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) Set(val *bool) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableBool(val *bool) *NullableBool { - return &NullableBool{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableBool) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableBool) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt struct { - value *int - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) Get() *int { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) Set(val *int) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt(val *int) *NullableInt { - return &NullableInt{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt32 struct { - value *int32 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) Get() *int32 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) Set(val *int32) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt32(val *int32) *NullableInt32 { - return &NullableInt32{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableInt64 struct { - value *int64 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) Get() *int64 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) Set(val *int64) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableInt64(val *int64) *NullableInt64 { - return &NullableInt64{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableInt64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableInt64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFloat32 struct { - value *float32 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) Get() *float32 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) Set(val *float32) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFloat32(val *float32) *NullableFloat32 { - return &NullableFloat32{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat32) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat32) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableFloat64 struct { - value *float64 - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) Get() *float64 { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) Set(val *float64) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableFloat64(val *float64) *NullableFloat64 { - return &NullableFloat64{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableFloat64) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableFloat64) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableString struct { - value *string - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) Get() *string { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) Set(val *string) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableString(val *string) *NullableString { - return &NullableString{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableString) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableString) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type NullableTime struct { - value *time.Time - isSet bool -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) Get() *time.Time { - return v.value -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) Set(val *time.Time) { - v.value = val - v.isSet = true -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) IsSet() bool { - return v.isSet -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) Unset() { - v.value = nil - v.isSet = false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func NewNullableTime(val *time.Time) *NullableTime { - return &NullableTime{value: val, isSet: true} -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v NullableTime) MarshalJSON() ([]byte, error) { - return v.value.MarshalJSON() -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func (v *NullableTime) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -// IsNil checks if an input is nil -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func IsNil(i interface{}) bool { - if i == nil { - return true - } - if t, ok := i.(interface{ IsSet() bool }); ok { - return !t.IsSet() - } - switch reflect.TypeOf(i).Kind() { - case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: - return reflect.ValueOf(i).IsNil() - case reflect.Array: - return reflect.ValueOf(i).IsZero() - } - return false -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type MappedNullable interface { - ToMap() (map[string]interface{}, error) -} - -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - -// randString returns a random string with a specified length. It panics if n <= 0. -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func randString(n int) string { - b := make([]byte, n) - for i := range b { - b[i] = letterRunes[rand.Intn(len(letterRunes))] - } - return string(b) -} diff --git a/services/postgresflex/v1api/api_default.go b/services/postgresflex/v1api/api_default.go index 653f3f5e03..fc423f07e1 100644 --- a/services/postgresflex/v1api/api_default.go +++ b/services/postgresflex/v1api/api_default.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -135,6 +135,20 @@ type DefaultAPI interface { // DeleteUserExecute executes the request DeleteUserExecute(r ApiDeleteUserRequest) error + /* + DisableService Terminate the Project + + Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project ID + @return ApiDisableServiceRequest + */ + DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest + + // DisableServiceExecute executes the request + DisableServiceExecute(r ApiDisableServiceRequest) error + /* ForceDeleteInstance Force delete instance @@ -345,7 +359,7 @@ type DefaultAPI interface { /* PartialUpdateInstance Update Instance - Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! + Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @@ -409,7 +423,7 @@ type DefaultAPI interface { /* UpdateInstance Update Instance - Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! + Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @@ -568,6 +582,17 @@ func (a *DefaultAPIService) CloneInstanceExecute(r ApiCloneInstanceRequest) (*Cl newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -711,6 +736,17 @@ func (a *DefaultAPIService) CreateDatabaseExecute(r ApiCreateDatabaseRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -849,6 +885,17 @@ func (a *DefaultAPIService) CreateInstanceExecute(r ApiCreateInstanceRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -991,6 +1038,17 @@ func (a *DefaultAPIService) CreateUserExecute(r ApiCreateUserRequest) (*CreateUs newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1122,6 +1180,17 @@ func (a *DefaultAPIService) DeleteDatabaseExecute(r ApiDeleteDatabaseRequest) er newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } return newErr } @@ -1239,6 +1308,17 @@ func (a *DefaultAPIService) DeleteInstanceExecute(r ApiDeleteInstanceRequest) er newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 404 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1381,6 +1461,151 @@ func (a *DefaultAPIService) DeleteUserExecute(r ApiDeleteUserRequest) error { newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + return newErr + } + + return nil +} + +type ApiDisableServiceRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string +} + +func (r ApiDisableServiceRequest) Execute() error { + return r.ApiService.DisableServiceExecute(r) +} + +/* +DisableService Terminate the Project + +Termination is the deletion of a whole project which causes the deletion of all instances for this project. Only System with permission system.databases-project.remove is able to call this resource + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project ID + @return ApiDisableServiceRequest +*/ +func (a *DefaultAPIService) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest { + return ApiDisableServiceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// Execute executes the request +func (a *DefaultAPIService) DisableServiceExecute(r ApiDisableServiceRequest) error { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DisableService") + if err != nil { + return &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } return newErr } @@ -1487,6 +1712,28 @@ func (a *DefaultAPIService) ForceDeleteInstanceExecute(r ApiForceDeleteInstanceR ErrorMessage: localVarHTTPResponse.Status, StatusCode: localVarHTTPResponse.StatusCode, } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 406 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -1632,6 +1879,17 @@ func (a *DefaultAPIService) GetBackupExecute(r ApiGetBackupRequest) (*GetBackupR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1762,6 +2020,17 @@ func (a *DefaultAPIService) GetInstanceExecute(r ApiGetInstanceRequest) (*Instan newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -1896,6 +2165,17 @@ func (a *DefaultAPIService) GetUserExecute(r ApiGetUserRequest) (*GetUserRespons newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2026,6 +2306,17 @@ func (a *DefaultAPIService) ListBackupsExecute(r ApiListBackupsRequest) (*ListBa newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2156,6 +2447,17 @@ func (a *DefaultAPIService) ListDatabaseParametersExecute(r ApiListDatabaseParam newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2286,6 +2588,28 @@ func (a *DefaultAPIService) ListDatabasesExecute(r ApiListDatabasesRequest) (*In newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2412,6 +2736,17 @@ func (a *DefaultAPIService) ListFlavorsExecute(r ApiListFlavorsRequest) (*ListFl newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2538,6 +2873,17 @@ func (a *DefaultAPIService) ListInstancesExecute(r ApiListInstancesRequest) (*Li newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2713,6 +3059,17 @@ func (a *DefaultAPIService) ListMetricsExecute(r ApiListMetricsRequest) (*Instan newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } if localVarHTTPResponse.StatusCode == 405 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -2864,6 +3221,17 @@ func (a *DefaultAPIService) ListStoragesExecute(r ApiListStoragesRequest) (*List newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -2994,6 +3362,28 @@ func (a *DefaultAPIService) ListUsersExecute(r ApiListUsersRequest) (*ListUsersR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3130,6 +3520,17 @@ func (a *DefaultAPIService) ListVersionsExecute(r ApiListVersionsRequest) (*List newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3167,7 +3568,7 @@ func (r ApiPartialUpdateInstanceRequest) Execute() (*PartialUpdateInstanceRespon /* PartialUpdateInstance Update Instance -Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! +Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @@ -3272,6 +3673,17 @@ func (a *DefaultAPIService) PartialUpdateInstanceExecute(r ApiPartialUpdateInsta newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3412,6 +3824,17 @@ func (a *DefaultAPIService) PartialUpdateUserExecute(r ApiPartialUpdateUserReque newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -3546,6 +3969,17 @@ func (a *DefaultAPIService) ResetUserExecute(r ApiResetUserRequest) (*ResetUserR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } if localVarHTTPResponse.StatusCode == 404 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) @@ -3706,6 +4140,17 @@ func (a *DefaultAPIService) UpdateBackupScheduleExecute(r ApiUpdateBackupSchedul newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } return newErr } @@ -3733,7 +4178,7 @@ func (r ApiUpdateInstanceRequest) Execute() (*PartialUpdateInstanceResponse, err /* UpdateInstance Update Instance -Update available instance of a postgres database. Supported Versions are 12, 13, 14, 15 -- only upgrades are allowed! +Update available instance of a postgres database. Supported Versions are 14, 15, 16, 17 -- only upgrades are allowed! @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID @@ -3838,6 +4283,17 @@ func (a *DefaultAPIService) UpdateInstanceExecute(r ApiUpdateInstanceRequest) (* newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } return localVarReturnValue, newErr } @@ -3978,6 +4434,17 @@ func (a *DefaultAPIService) UpdateUserExecute(r ApiUpdateUserRequest) error { newErr.Model = v return newErr } + if localVarHTTPResponse.StatusCode == 401 { + var v Error + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return newErr + } if localVarHTTPResponse.StatusCode == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/services/postgresflex/v1api/api_default_mock.go b/services/postgresflex/v1api/api_default_mock.go index e33909c66c..d2e0f49dce 100644 --- a/services/postgresflex/v1api/api_default_mock.go +++ b/services/postgresflex/v1api/api_default_mock.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -35,6 +35,8 @@ type DefaultAPIServiceMock struct { DeleteInstanceExecuteMock *func(r ApiDeleteInstanceRequest) error // DeleteUserExecuteMock can be populated to implement the behavior of the DeleteUserExecute function of this mock DeleteUserExecuteMock *func(r ApiDeleteUserRequest) error + // DisableServiceExecuteMock can be populated to implement the behavior of the DisableServiceExecute function of this mock + DisableServiceExecuteMock *func(r ApiDisableServiceRequest) error // ForceDeleteInstanceExecuteMock can be populated to implement the behavior of the ForceDeleteInstanceExecute function of this mock ForceDeleteInstanceExecuteMock *func(r ApiForceDeleteInstanceRequest) error // GetBackupExecuteMock can be populated to implement the behavior of the GetBackupExecute function of this mock @@ -206,6 +208,23 @@ func (a DefaultAPIServiceMock) DeleteUserExecute(r ApiDeleteUserRequest) error { return (*a.DeleteUserExecuteMock)(r) } +func (a DefaultAPIServiceMock) DisableService(ctx context.Context, projectId string) ApiDisableServiceRequest { + return ApiDisableServiceRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + } +} + +// DisableServiceExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DisableServiceExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DisableServiceExecute(r ApiDisableServiceRequest) error { + if a.DisableServiceExecuteMock == nil { + return nil + } + + return (*a.DisableServiceExecuteMock)(r) +} + func (a DefaultAPIServiceMock) ForceDeleteInstance(ctx context.Context, projectId string, instanceId string) ApiForceDeleteInstanceRequest { return ApiForceDeleteInstanceRequest{ ApiService: a, diff --git a/services/postgresflex/v1api/client.go b/services/postgresflex/v1api/client.go index f1e05d5ac2..239b8b9a2b 100644 --- a/services/postgresflex/v1api/client.go +++ b/services/postgresflex/v1api/client.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -43,7 +43,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the STACKIT PostgreSQL Flex API (deprecated) API v1.0.0 +// APIClient manages communication with the STACKIT PostgreSQL Flex API API v1.0.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/postgresflex/v1api/configuration.go b/services/postgresflex/v1api/configuration.go index 4befa1c48a..ab8ea92b84 100644 --- a/services/postgresflex/v1api/configuration.go +++ b/services/postgresflex/v1api/configuration.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -22,15 +22,12 @@ func NewConfiguration() *config.Configuration { Debug: false, Servers: config.ServerConfigurations{ { - URL: "https://postgres-flex-service.api.{region}stackit.cloud", + URL: "https://postgres-flex-service.api.stackit.cloud", Description: "No description provided", Variables: map[string]config.ServerVariable{ "region": { Description: "No description provided", - DefaultValue: "eu01.", - EnumValues: []string{ - "eu01.", - }, + DefaultValue: "global", }, }, }, diff --git a/services/postgresflex/v1api/model_acl.go b/services/postgresflex/v1api/model_acl.go index b7de719b8f..0e6c247941 100644 --- a/services/postgresflex/v1api/model_acl.go +++ b/services/postgresflex/v1api/model_acl.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_api_configuration.go b/services/postgresflex/v1api/model_api_configuration.go index 4d8d4d1bff..aac7630466 100644 --- a/services/postgresflex/v1api/model_api_configuration.go +++ b/services/postgresflex/v1api/model_api_configuration.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_api_extension_config_load_response.go b/services/postgresflex/v1api/model_api_extension_config_load_response.go deleted file mode 100644 index ccd0685517..0000000000 --- a/services/postgresflex/v1api/model_api_extension_config_load_response.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionConfigLoadResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionConfigLoadResponse{} - -// ApiExtensionConfigLoadResponse struct for ApiExtensionConfigLoadResponse -type ApiExtensionConfigLoadResponse struct { - // Returns marshalled JSON of the new configuration of whatever extension is called - Configuration []ApiConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionConfigLoadResponse ApiExtensionConfigLoadResponse - -// NewApiExtensionConfigLoadResponse instantiates a new ApiExtensionConfigLoadResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionConfigLoadResponse() *ApiExtensionConfigLoadResponse { - this := ApiExtensionConfigLoadResponse{} - return &this -} - -// NewApiExtensionConfigLoadResponseWithDefaults instantiates a new ApiExtensionConfigLoadResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionConfigLoadResponseWithDefaults() *ApiExtensionConfigLoadResponse { - this := ApiExtensionConfigLoadResponse{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ApiExtensionConfigLoadResponse) GetConfiguration() []ApiConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ApiConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionConfigLoadResponse) GetConfigurationOk() ([]ApiConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ApiExtensionConfigLoadResponse) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ApiConfiguration and assigns it to the Configuration field. -func (o *ApiExtensionConfigLoadResponse) SetConfiguration(v []ApiConfiguration) { - o.Configuration = v -} - -func (o ApiExtensionConfigLoadResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionConfigLoadResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionConfigLoadResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionConfigLoadResponse := _ApiExtensionConfigLoadResponse{} - - err = json.Unmarshal(data, &varApiExtensionConfigLoadResponse) - - if err != nil { - return err - } - - *o = ApiExtensionConfigLoadResponse(varApiExtensionConfigLoadResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionConfigLoadResponse struct { - value *ApiExtensionConfigLoadResponse - isSet bool -} - -func (v NullableApiExtensionConfigLoadResponse) Get() *ApiExtensionConfigLoadResponse { - return v.value -} - -func (v *NullableApiExtensionConfigLoadResponse) Set(val *ApiExtensionConfigLoadResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionConfigLoadResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionConfigLoadResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionConfigLoadResponse(val *ApiExtensionConfigLoadResponse) *NullableApiExtensionConfigLoadResponse { - return &NullableApiExtensionConfigLoadResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionConfigLoadResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionConfigLoadResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_configure_response.go b/services/postgresflex/v1api/model_api_extension_configure_response.go deleted file mode 100644 index 4795aaa2f4..0000000000 --- a/services/postgresflex/v1api/model_api_extension_configure_response.go +++ /dev/null @@ -1,155 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionConfigureResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionConfigureResponse{} - -// ApiExtensionConfigureResponse struct for ApiExtensionConfigureResponse -type ApiExtensionConfigureResponse struct { - // Returns marshalled JSON of the new configuration of whatever extension is called - Configuration []ApiConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionConfigureResponse ApiExtensionConfigureResponse - -// NewApiExtensionConfigureResponse instantiates a new ApiExtensionConfigureResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionConfigureResponse() *ApiExtensionConfigureResponse { - this := ApiExtensionConfigureResponse{} - return &this -} - -// NewApiExtensionConfigureResponseWithDefaults instantiates a new ApiExtensionConfigureResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionConfigureResponseWithDefaults() *ApiExtensionConfigureResponse { - this := ApiExtensionConfigureResponse{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ApiExtensionConfigureResponse) GetConfiguration() []ApiConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ApiConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionConfigureResponse) GetConfigurationOk() ([]ApiConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ApiExtensionConfigureResponse) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ApiConfiguration and assigns it to the Configuration field. -func (o *ApiExtensionConfigureResponse) SetConfiguration(v []ApiConfiguration) { - o.Configuration = v -} - -func (o ApiExtensionConfigureResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionConfigureResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionConfigureResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionConfigureResponse := _ApiExtensionConfigureResponse{} - - err = json.Unmarshal(data, &varApiExtensionConfigureResponse) - - if err != nil { - return err - } - - *o = ApiExtensionConfigureResponse(varApiExtensionConfigureResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionConfigureResponse struct { - value *ApiExtensionConfigureResponse - isSet bool -} - -func (v NullableApiExtensionConfigureResponse) Get() *ApiExtensionConfigureResponse { - return v.value -} - -func (v *NullableApiExtensionConfigureResponse) Set(val *ApiExtensionConfigureResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionConfigureResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionConfigureResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionConfigureResponse(val *ApiExtensionConfigureResponse) *NullableApiExtensionConfigureResponse { - return &NullableApiExtensionConfigureResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionConfigureResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionConfigureResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_delete_response.go b/services/postgresflex/v1api/model_api_extension_delete_response.go deleted file mode 100644 index d72f77cb77..0000000000 --- a/services/postgresflex/v1api/model_api_extension_delete_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionDeleteResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionDeleteResponse{} - -// ApiExtensionDeleteResponse struct for ApiExtensionDeleteResponse -type ApiExtensionDeleteResponse struct { - IsSucceded *bool `json:"isSucceded,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionDeleteResponse ApiExtensionDeleteResponse - -// NewApiExtensionDeleteResponse instantiates a new ApiExtensionDeleteResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionDeleteResponse() *ApiExtensionDeleteResponse { - this := ApiExtensionDeleteResponse{} - return &this -} - -// NewApiExtensionDeleteResponseWithDefaults instantiates a new ApiExtensionDeleteResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionDeleteResponseWithDefaults() *ApiExtensionDeleteResponse { - this := ApiExtensionDeleteResponse{} - return &this -} - -// GetIsSucceded returns the IsSucceded field value if set, zero value otherwise. -func (o *ApiExtensionDeleteResponse) GetIsSucceded() bool { - if o == nil || IsNil(o.IsSucceded) { - var ret bool - return ret - } - return *o.IsSucceded -} - -// GetIsSuccededOk returns a tuple with the IsSucceded field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionDeleteResponse) GetIsSuccededOk() (*bool, bool) { - if o == nil || IsNil(o.IsSucceded) { - return nil, false - } - return o.IsSucceded, true -} - -// HasIsSucceded returns a boolean if a field has been set. -func (o *ApiExtensionDeleteResponse) HasIsSucceded() bool { - if o != nil && !IsNil(o.IsSucceded) { - return true - } - - return false -} - -// SetIsSucceded gets a reference to the given bool and assigns it to the IsSucceded field. -func (o *ApiExtensionDeleteResponse) SetIsSucceded(v bool) { - o.IsSucceded = &v -} - -func (o ApiExtensionDeleteResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionDeleteResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.IsSucceded) { - toSerialize["isSucceded"] = o.IsSucceded - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionDeleteResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionDeleteResponse := _ApiExtensionDeleteResponse{} - - err = json.Unmarshal(data, &varApiExtensionDeleteResponse) - - if err != nil { - return err - } - - *o = ApiExtensionDeleteResponse(varApiExtensionDeleteResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "isSucceded") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionDeleteResponse struct { - value *ApiExtensionDeleteResponse - isSet bool -} - -func (v NullableApiExtensionDeleteResponse) Get() *ApiExtensionDeleteResponse { - return v.value -} - -func (v *NullableApiExtensionDeleteResponse) Set(val *ApiExtensionDeleteResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionDeleteResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionDeleteResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionDeleteResponse(val *ApiExtensionDeleteResponse) *NullableApiExtensionDeleteResponse { - return &NullableApiExtensionDeleteResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionDeleteResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionDeleteResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_list.go b/services/postgresflex/v1api/model_api_extension_list.go deleted file mode 100644 index 95f0222018..0000000000 --- a/services/postgresflex/v1api/model_api_extension_list.go +++ /dev/null @@ -1,228 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionList type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionList{} - -// ApiExtensionList struct for ApiExtensionList -type ApiExtensionList struct { - ID *int32 `json:"ID,omitempty"` - Description *string `json:"description,omitempty"` - Name *string `json:"name,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionList ApiExtensionList - -// NewApiExtensionList instantiates a new ApiExtensionList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionList() *ApiExtensionList { - this := ApiExtensionList{} - return &this -} - -// NewApiExtensionListWithDefaults instantiates a new ApiExtensionList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionListWithDefaults() *ApiExtensionList { - this := ApiExtensionList{} - return &this -} - -// GetID returns the ID field value if set, zero value otherwise. -func (o *ApiExtensionList) GetID() int32 { - if o == nil || IsNil(o.ID) { - var ret int32 - return ret - } - return *o.ID -} - -// GetIDOk returns a tuple with the ID field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetIDOk() (*int32, bool) { - if o == nil || IsNil(o.ID) { - return nil, false - } - return o.ID, true -} - -// HasID returns a boolean if a field has been set. -func (o *ApiExtensionList) HasID() bool { - if o != nil && !IsNil(o.ID) { - return true - } - - return false -} - -// SetID gets a reference to the given int32 and assigns it to the ID field. -func (o *ApiExtensionList) SetID(v int32) { - o.ID = &v -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ApiExtensionList) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ApiExtensionList) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ApiExtensionList) SetDescription(v string) { - o.Description = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ApiExtensionList) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionList) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ApiExtensionList) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ApiExtensionList) SetName(v string) { - o.Name = &v -} - -func (o ApiExtensionList) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionList) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.ID) { - toSerialize["ID"] = o.ID - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionList) UnmarshalJSON(data []byte) (err error) { - varApiExtensionList := _ApiExtensionList{} - - err = json.Unmarshal(data, &varApiExtensionList) - - if err != nil { - return err - } - - *o = ApiExtensionList(varApiExtensionList) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "ID") - delete(additionalProperties, "description") - delete(additionalProperties, "name") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionList struct { - value *ApiExtensionList - isSet bool -} - -func (v NullableApiExtensionList) Get() *ApiExtensionList { - return v.value -} - -func (v *NullableApiExtensionList) Set(val *ApiExtensionList) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionList) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionList(val *ApiExtensionList) *NullableApiExtensionList { - return &NullableApiExtensionList{value: val, isSet: true} -} - -func (v NullableApiExtensionList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_extension_load_response.go b/services/postgresflex/v1api/model_api_extension_load_response.go deleted file mode 100644 index 4725eecf34..0000000000 --- a/services/postgresflex/v1api/model_api_extension_load_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiExtensionLoadResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiExtensionLoadResponse{} - -// ApiExtensionLoadResponse struct for ApiExtensionLoadResponse -type ApiExtensionLoadResponse struct { - Extension *ApiExtensionList `json:"extension,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiExtensionLoadResponse ApiExtensionLoadResponse - -// NewApiExtensionLoadResponse instantiates a new ApiExtensionLoadResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiExtensionLoadResponse() *ApiExtensionLoadResponse { - this := ApiExtensionLoadResponse{} - return &this -} - -// NewApiExtensionLoadResponseWithDefaults instantiates a new ApiExtensionLoadResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiExtensionLoadResponseWithDefaults() *ApiExtensionLoadResponse { - this := ApiExtensionLoadResponse{} - return &this -} - -// GetExtension returns the Extension field value if set, zero value otherwise. -func (o *ApiExtensionLoadResponse) GetExtension() ApiExtensionList { - if o == nil || IsNil(o.Extension) { - var ret ApiExtensionList - return ret - } - return *o.Extension -} - -// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiExtensionLoadResponse) GetExtensionOk() (*ApiExtensionList, bool) { - if o == nil || IsNil(o.Extension) { - return nil, false - } - return o.Extension, true -} - -// HasExtension returns a boolean if a field has been set. -func (o *ApiExtensionLoadResponse) HasExtension() bool { - if o != nil && !IsNil(o.Extension) { - return true - } - - return false -} - -// SetExtension gets a reference to the given ApiExtensionList and assigns it to the Extension field. -func (o *ApiExtensionLoadResponse) SetExtension(v ApiExtensionList) { - o.Extension = &v -} - -func (o ApiExtensionLoadResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiExtensionLoadResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Extension) { - toSerialize["extension"] = o.Extension - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiExtensionLoadResponse) UnmarshalJSON(data []byte) (err error) { - varApiExtensionLoadResponse := _ApiExtensionLoadResponse{} - - err = json.Unmarshal(data, &varApiExtensionLoadResponse) - - if err != nil { - return err - } - - *o = ApiExtensionLoadResponse(varApiExtensionLoadResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extension") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiExtensionLoadResponse struct { - value *ApiExtensionLoadResponse - isSet bool -} - -func (v NullableApiExtensionLoadResponse) Get() *ApiExtensionLoadResponse { - return v.value -} - -func (v *NullableApiExtensionLoadResponse) Set(val *ApiExtensionLoadResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiExtensionLoadResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiExtensionLoadResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiExtensionLoadResponse(val *ApiExtensionLoadResponse) *NullableApiExtensionLoadResponse { - return &NullableApiExtensionLoadResponse{value: val, isSet: true} -} - -func (v NullableApiExtensionLoadResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiExtensionLoadResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_install_response.go b/services/postgresflex/v1api/model_api_install_response.go deleted file mode 100644 index dfadc1dcba..0000000000 --- a/services/postgresflex/v1api/model_api_install_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiInstallResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiInstallResponse{} - -// ApiInstallResponse struct for ApiInstallResponse -type ApiInstallResponse struct { - Extension *ApiExtensionList `json:"extension,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiInstallResponse ApiInstallResponse - -// NewApiInstallResponse instantiates a new ApiInstallResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiInstallResponse() *ApiInstallResponse { - this := ApiInstallResponse{} - return &this -} - -// NewApiInstallResponseWithDefaults instantiates a new ApiInstallResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiInstallResponseWithDefaults() *ApiInstallResponse { - this := ApiInstallResponse{} - return &this -} - -// GetExtension returns the Extension field value if set, zero value otherwise. -func (o *ApiInstallResponse) GetExtension() ApiExtensionList { - if o == nil || IsNil(o.Extension) { - var ret ApiExtensionList - return ret - } - return *o.Extension -} - -// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiInstallResponse) GetExtensionOk() (*ApiExtensionList, bool) { - if o == nil || IsNil(o.Extension) { - return nil, false - } - return o.Extension, true -} - -// HasExtension returns a boolean if a field has been set. -func (o *ApiInstallResponse) HasExtension() bool { - if o != nil && !IsNil(o.Extension) { - return true - } - - return false -} - -// SetExtension gets a reference to the given ApiExtensionList and assigns it to the Extension field. -func (o *ApiInstallResponse) SetExtension(v ApiExtensionList) { - o.Extension = &v -} - -func (o ApiInstallResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiInstallResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Extension) { - toSerialize["extension"] = o.Extension - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiInstallResponse) UnmarshalJSON(data []byte) (err error) { - varApiInstallResponse := _ApiInstallResponse{} - - err = json.Unmarshal(data, &varApiInstallResponse) - - if err != nil { - return err - } - - *o = ApiInstallResponse(varApiInstallResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "extension") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiInstallResponse struct { - value *ApiInstallResponse - isSet bool -} - -func (v NullableApiInstallResponse) Get() *ApiInstallResponse { - return v.value -} - -func (v *NullableApiInstallResponse) Set(val *ApiInstallResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiInstallResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiInstallResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiInstallResponse(val *ApiInstallResponse) *NullableApiInstallResponse { - return &NullableApiInstallResponse{value: val, isSet: true} -} - -func (v NullableApiInstallResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiInstallResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_api_installed_list_response.go b/services/postgresflex/v1api/model_api_installed_list_response.go deleted file mode 100644 index 7e1e0d571b..0000000000 --- a/services/postgresflex/v1api/model_api_installed_list_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ApiInstalledListResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ApiInstalledListResponse{} - -// ApiInstalledListResponse struct for ApiInstalledListResponse -type ApiInstalledListResponse struct { - Installed []ApiExtensionList `json:"installed,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ApiInstalledListResponse ApiInstalledListResponse - -// NewApiInstalledListResponse instantiates a new ApiInstalledListResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewApiInstalledListResponse() *ApiInstalledListResponse { - this := ApiInstalledListResponse{} - return &this -} - -// NewApiInstalledListResponseWithDefaults instantiates a new ApiInstalledListResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewApiInstalledListResponseWithDefaults() *ApiInstalledListResponse { - this := ApiInstalledListResponse{} - return &this -} - -// GetInstalled returns the Installed field value if set, zero value otherwise. -func (o *ApiInstalledListResponse) GetInstalled() []ApiExtensionList { - if o == nil || IsNil(o.Installed) { - var ret []ApiExtensionList - return ret - } - return o.Installed -} - -// GetInstalledOk returns a tuple with the Installed field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ApiInstalledListResponse) GetInstalledOk() ([]ApiExtensionList, bool) { - if o == nil || IsNil(o.Installed) { - return nil, false - } - return o.Installed, true -} - -// HasInstalled returns a boolean if a field has been set. -func (o *ApiInstalledListResponse) HasInstalled() bool { - if o != nil && !IsNil(o.Installed) { - return true - } - - return false -} - -// SetInstalled gets a reference to the given []ApiExtensionList and assigns it to the Installed field. -func (o *ApiInstalledListResponse) SetInstalled(v []ApiExtensionList) { - o.Installed = v -} - -func (o ApiInstalledListResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ApiInstalledListResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Installed) { - toSerialize["installed"] = o.Installed - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ApiInstalledListResponse) UnmarshalJSON(data []byte) (err error) { - varApiInstalledListResponse := _ApiInstalledListResponse{} - - err = json.Unmarshal(data, &varApiInstalledListResponse) - - if err != nil { - return err - } - - *o = ApiInstalledListResponse(varApiInstalledListResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableApiInstalledListResponse struct { - value *ApiInstalledListResponse - isSet bool -} - -func (v NullableApiInstalledListResponse) Get() *ApiInstalledListResponse { - return v.value -} - -func (v *NullableApiInstalledListResponse) Set(val *ApiInstalledListResponse) { - v.value = val - v.isSet = true -} - -func (v NullableApiInstalledListResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableApiInstalledListResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableApiInstalledListResponse(val *ApiInstalledListResponse) *NullableApiInstalledListResponse { - return &NullableApiInstalledListResponse{value: val, isSet: true} -} - -func (v NullableApiInstalledListResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableApiInstalledListResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_backup.go b/services/postgresflex/v1api/model_backup.go index c6698fa104..a6c7d5d8ff 100644 --- a/services/postgresflex/v1api/model_backup.go +++ b/services/postgresflex/v1api/model_backup.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -26,7 +26,7 @@ type Backup struct { Labels []string `json:"labels,omitempty"` Name *string `json:"name,omitempty"` Options *map[string]string `json:"options,omitempty"` - Size *int32 `json:"size,omitempty"` + Size *int64 `json:"size,omitempty"` StartTime *string `json:"startTime,omitempty"` AdditionalProperties map[string]interface{} } @@ -243,9 +243,9 @@ func (o *Backup) SetOptions(v map[string]string) { } // GetSize returns the Size field value if set, zero value otherwise. -func (o *Backup) GetSize() int32 { +func (o *Backup) GetSize() int64 { if o == nil || IsNil(o.Size) { - var ret int32 + var ret int64 return ret } return *o.Size @@ -253,7 +253,7 @@ func (o *Backup) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Backup) GetSizeOk() (*int32, bool) { +func (o *Backup) GetSizeOk() (*int64, bool) { if o == nil || IsNil(o.Size) { return nil, false } @@ -269,8 +269,8 @@ func (o *Backup) HasSize() bool { return false } -// SetSize gets a reference to the given int32 and assigns it to the Size field. -func (o *Backup) SetSize(v int32) { +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *Backup) SetSize(v int64) { o.Size = &v } diff --git a/services/postgresflex/v1api/model_clone_instance_payload.go b/services/postgresflex/v1api/model_clone_instance_payload.go index 46adab9dd1..01e416cd26 100644 --- a/services/postgresflex/v1api/model_clone_instance_payload.go +++ b/services/postgresflex/v1api/model_clone_instance_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,7 +21,7 @@ var _ MappedNullable = &CloneInstancePayload{} // CloneInstancePayload struct for CloneInstancePayload type CloneInstancePayload struct { Class *string `json:"class,omitempty"` - Size *int32 `json:"size,omitempty"` + Size *int64 `json:"size,omitempty"` // The timestamp should be specified in UTC time following the format provided in the example. Timestamp *string `json:"timestamp,omitempty"` AdditionalProperties map[string]interface{} @@ -79,9 +79,9 @@ func (o *CloneInstancePayload) SetClass(v string) { } // GetSize returns the Size field value if set, zero value otherwise. -func (o *CloneInstancePayload) GetSize() int32 { +func (o *CloneInstancePayload) GetSize() int64 { if o == nil || IsNil(o.Size) { - var ret int32 + var ret int64 return ret } return *o.Size @@ -89,7 +89,7 @@ func (o *CloneInstancePayload) GetSize() int32 { // GetSizeOk returns a tuple with the Size field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CloneInstancePayload) GetSizeOk() (*int32, bool) { +func (o *CloneInstancePayload) GetSizeOk() (*int64, bool) { if o == nil || IsNil(o.Size) { return nil, false } @@ -105,8 +105,8 @@ func (o *CloneInstancePayload) HasSize() bool { return false } -// SetSize gets a reference to the given int32 and assigns it to the Size field. -func (o *CloneInstancePayload) SetSize(v int32) { +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *CloneInstancePayload) SetSize(v int64) { o.Size = &v } diff --git a/services/postgresflex/v1api/model_clone_instance_response.go b/services/postgresflex/v1api/model_clone_instance_response.go index dbca412113..c0859d3c72 100644 --- a/services/postgresflex/v1api/model_clone_instance_response.go +++ b/services/postgresflex/v1api/model_clone_instance_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_database_payload.go b/services/postgresflex/v1api/model_create_database_payload.go index d0307856fe..d868e443ee 100644 --- a/services/postgresflex/v1api/model_create_database_payload.go +++ b/services/postgresflex/v1api/model_create_database_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_instance_payload.go b/services/postgresflex/v1api/model_create_instance_payload.go index 877474d7f4..e7c27370db 100644 --- a/services/postgresflex/v1api/model_create_instance_payload.go +++ b/services/postgresflex/v1api/model_create_instance_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -27,8 +27,8 @@ type CreateInstancePayload struct { // Labels field is not certain/clear Labels *map[string]string `json:"labels,omitempty"` Name string `json:"name"` - Options map[string]string `json:"options"` - Replicas int32 `json:"replicas"` + Options *map[string]string `json:"options,omitempty"` + Replicas int64 `json:"replicas"` Storage Storage `json:"storage"` Version string `json:"version"` AdditionalProperties map[string]interface{} @@ -40,13 +40,12 @@ type _CreateInstancePayload CreateInstancePayload // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, options map[string]string, replicas int32, storage Storage, version string) *CreateInstancePayload { +func NewCreateInstancePayload(acl ACL, backupSchedule string, flavorId string, name string, replicas int64, storage Storage, version string) *CreateInstancePayload { this := CreateInstancePayload{} this.Acl = acl this.BackupSchedule = backupSchedule this.FlavorId = flavorId this.Name = name - this.Options = options this.Replicas = replicas this.Storage = storage this.Version = version @@ -189,34 +188,42 @@ func (o *CreateInstancePayload) SetName(v string) { o.Name = v } -// GetOptions returns the Options field value +// GetOptions returns the Options field value if set, zero value otherwise. func (o *CreateInstancePayload) GetOptions() map[string]string { - if o == nil { + if o == nil || IsNil(o.Options) { var ret map[string]string return ret } - - return o.Options + return *o.Options } -// GetOptionsOk returns a tuple with the Options field value +// GetOptionsOk returns a tuple with the Options field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CreateInstancePayload) GetOptionsOk() (*map[string]string, bool) { - if o == nil { + if o == nil || IsNil(o.Options) { return nil, false } - return &o.Options, true + return o.Options, true +} + +// HasOptions returns a boolean if a field has been set. +func (o *CreateInstancePayload) HasOptions() bool { + if o != nil && !IsNil(o.Options) { + return true + } + + return false } -// SetOptions sets field value +// SetOptions gets a reference to the given map[string]string and assigns it to the Options field. func (o *CreateInstancePayload) SetOptions(v map[string]string) { - o.Options = v + o.Options = &v } // GetReplicas returns the Replicas field value -func (o *CreateInstancePayload) GetReplicas() int32 { +func (o *CreateInstancePayload) GetReplicas() int64 { if o == nil { - var ret int32 + var ret int64 return ret } @@ -225,7 +232,7 @@ func (o *CreateInstancePayload) GetReplicas() int32 { // GetReplicasOk returns a tuple with the Replicas field value // and a boolean to check if the value has been set. -func (o *CreateInstancePayload) GetReplicasOk() (*int32, bool) { +func (o *CreateInstancePayload) GetReplicasOk() (*int64, bool) { if o == nil { return nil, false } @@ -233,7 +240,7 @@ func (o *CreateInstancePayload) GetReplicasOk() (*int32, bool) { } // SetReplicas sets field value -func (o *CreateInstancePayload) SetReplicas(v int32) { +func (o *CreateInstancePayload) SetReplicas(v int64) { o.Replicas = v } @@ -302,7 +309,9 @@ func (o CreateInstancePayload) ToMap() (map[string]interface{}, error) { toSerialize["labels"] = o.Labels } toSerialize["name"] = o.Name - toSerialize["options"] = o.Options + if !IsNil(o.Options) { + toSerialize["options"] = o.Options + } toSerialize["replicas"] = o.Replicas toSerialize["storage"] = o.Storage toSerialize["version"] = o.Version @@ -323,7 +332,6 @@ func (o *CreateInstancePayload) UnmarshalJSON(data []byte) (err error) { "backupSchedule", "flavorId", "name", - "options", "replicas", "storage", "version", diff --git a/services/postgresflex/v1api/model_create_instance_response.go b/services/postgresflex/v1api/model_create_instance_response.go index 9ddded44bd..f67e88ad93 100644 --- a/services/postgresflex/v1api/model_create_instance_response.go +++ b/services/postgresflex/v1api/model_create_instance_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_user_payload.go b/services/postgresflex/v1api/model_create_user_payload.go index 76e5edcaba..fe7a34613b 100644 --- a/services/postgresflex/v1api/model_create_user_payload.go +++ b/services/postgresflex/v1api/model_create_user_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_create_user_response.go b/services/postgresflex/v1api/model_create_user_response.go index 688f551b2c..86388a4607 100644 --- a/services/postgresflex/v1api/model_create_user_response.go +++ b/services/postgresflex/v1api/model_create_user_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_error.go b/services/postgresflex/v1api/model_error.go index e8d2c6b88d..f7f5c7b7a4 100644 --- a/services/postgresflex/v1api/model_error.go +++ b/services/postgresflex/v1api/model_error.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_extensions_configuration.go b/services/postgresflex/v1api/model_extensions_configuration.go deleted file mode 100644 index 86d93d0f07..0000000000 --- a/services/postgresflex/v1api/model_extensions_configuration.go +++ /dev/null @@ -1,191 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsConfiguration type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsConfiguration{} - -// ExtensionsConfiguration struct for ExtensionsConfiguration -type ExtensionsConfiguration struct { - Name *string `json:"name,omitempty"` - Setting *string `json:"setting,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsConfiguration ExtensionsConfiguration - -// NewExtensionsConfiguration instantiates a new ExtensionsConfiguration object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsConfiguration() *ExtensionsConfiguration { - this := ExtensionsConfiguration{} - return &this -} - -// NewExtensionsConfigurationWithDefaults instantiates a new ExtensionsConfiguration object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsConfigurationWithDefaults() *ExtensionsConfiguration { - this := ExtensionsConfiguration{} - return &this -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *ExtensionsConfiguration) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsConfiguration) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *ExtensionsConfiguration) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *ExtensionsConfiguration) SetName(v string) { - o.Name = &v -} - -// GetSetting returns the Setting field value if set, zero value otherwise. -func (o *ExtensionsConfiguration) GetSetting() string { - if o == nil || IsNil(o.Setting) { - var ret string - return ret - } - return *o.Setting -} - -// GetSettingOk returns a tuple with the Setting field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsConfiguration) GetSettingOk() (*string, bool) { - if o == nil || IsNil(o.Setting) { - return nil, false - } - return o.Setting, true -} - -// HasSetting returns a boolean if a field has been set. -func (o *ExtensionsConfiguration) HasSetting() bool { - if o != nil && !IsNil(o.Setting) { - return true - } - - return false -} - -// SetSetting gets a reference to the given string and assigns it to the Setting field. -func (o *ExtensionsConfiguration) SetSetting(v string) { - o.Setting = &v -} - -func (o ExtensionsConfiguration) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsConfiguration) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } - if !IsNil(o.Setting) { - toSerialize["setting"] = o.Setting - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsConfiguration) UnmarshalJSON(data []byte) (err error) { - varExtensionsConfiguration := _ExtensionsConfiguration{} - - err = json.Unmarshal(data, &varExtensionsConfiguration) - - if err != nil { - return err - } - - *o = ExtensionsConfiguration(varExtensionsConfiguration) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") - delete(additionalProperties, "setting") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsConfiguration struct { - value *ExtensionsConfiguration - isSet bool -} - -func (v NullableExtensionsConfiguration) Get() *ExtensionsConfiguration { - return v.value -} - -func (v *NullableExtensionsConfiguration) Set(val *ExtensionsConfiguration) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsConfiguration) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsConfiguration) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsConfiguration(val *ExtensionsConfiguration) *NullableExtensionsConfiguration { - return &NullableExtensionsConfiguration{value: val, isSet: true} -} - -func (v NullableExtensionsConfiguration) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsConfiguration) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_extensions_extension_list_response.go b/services/postgresflex/v1api/model_extensions_extension_list_response.go deleted file mode 100644 index 5e48e6ab0f..0000000000 --- a/services/postgresflex/v1api/model_extensions_extension_list_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsExtensionListResponse type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsExtensionListResponse{} - -// ExtensionsExtensionListResponse struct for ExtensionsExtensionListResponse -type ExtensionsExtensionListResponse struct { - List []ApiExtensionList `json:"list,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsExtensionListResponse ExtensionsExtensionListResponse - -// NewExtensionsExtensionListResponse instantiates a new ExtensionsExtensionListResponse object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsExtensionListResponse() *ExtensionsExtensionListResponse { - this := ExtensionsExtensionListResponse{} - return &this -} - -// NewExtensionsExtensionListResponseWithDefaults instantiates a new ExtensionsExtensionListResponse object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsExtensionListResponseWithDefaults() *ExtensionsExtensionListResponse { - this := ExtensionsExtensionListResponse{} - return &this -} - -// GetList returns the List field value if set, zero value otherwise. -func (o *ExtensionsExtensionListResponse) GetList() []ApiExtensionList { - if o == nil || IsNil(o.List) { - var ret []ApiExtensionList - return ret - } - return o.List -} - -// GetListOk returns a tuple with the List field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsExtensionListResponse) GetListOk() ([]ApiExtensionList, bool) { - if o == nil || IsNil(o.List) { - return nil, false - } - return o.List, true -} - -// HasList returns a boolean if a field has been set. -func (o *ExtensionsExtensionListResponse) HasList() bool { - if o != nil && !IsNil(o.List) { - return true - } - - return false -} - -// SetList gets a reference to the given []ApiExtensionList and assigns it to the List field. -func (o *ExtensionsExtensionListResponse) SetList(v []ApiExtensionList) { - o.List = v -} - -func (o ExtensionsExtensionListResponse) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsExtensionListResponse) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.List) { - toSerialize["list"] = o.List - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsExtensionListResponse) UnmarshalJSON(data []byte) (err error) { - varExtensionsExtensionListResponse := _ExtensionsExtensionListResponse{} - - err = json.Unmarshal(data, &varExtensionsExtensionListResponse) - - if err != nil { - return err - } - - *o = ExtensionsExtensionListResponse(varExtensionsExtensionListResponse) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "list") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsExtensionListResponse struct { - value *ExtensionsExtensionListResponse - isSet bool -} - -func (v NullableExtensionsExtensionListResponse) Get() *ExtensionsExtensionListResponse { - return v.value -} - -func (v *NullableExtensionsExtensionListResponse) Set(val *ExtensionsExtensionListResponse) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsExtensionListResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsExtensionListResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsExtensionListResponse(val *ExtensionsExtensionListResponse) *NullableExtensionsExtensionListResponse { - return &NullableExtensionsExtensionListResponse{value: val, isSet: true} -} - -func (v NullableExtensionsExtensionListResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsExtensionListResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_extensions_new_config.go b/services/postgresflex/v1api/model_extensions_new_config.go deleted file mode 100644 index 8a6264669e..0000000000 --- a/services/postgresflex/v1api/model_extensions_new_config.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -STACKIT PostgreSQL Flex API (deprecated) - -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. - -API version: 1.0.0 -Contact: support@stackit.cloud -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package v1api - -import ( - "encoding/json" -) - -// checks if the ExtensionsNewConfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &ExtensionsNewConfig{} - -// ExtensionsNewConfig struct for ExtensionsNewConfig -type ExtensionsNewConfig struct { - Configuration []ExtensionsConfiguration `json:"configuration,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ExtensionsNewConfig ExtensionsNewConfig - -// NewExtensionsNewConfig instantiates a new ExtensionsNewConfig object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewExtensionsNewConfig() *ExtensionsNewConfig { - this := ExtensionsNewConfig{} - return &this -} - -// NewExtensionsNewConfigWithDefaults instantiates a new ExtensionsNewConfig object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewExtensionsNewConfigWithDefaults() *ExtensionsNewConfig { - this := ExtensionsNewConfig{} - return &this -} - -// GetConfiguration returns the Configuration field value if set, zero value otherwise. -func (o *ExtensionsNewConfig) GetConfiguration() []ExtensionsConfiguration { - if o == nil || IsNil(o.Configuration) { - var ret []ExtensionsConfiguration - return ret - } - return o.Configuration -} - -// GetConfigurationOk returns a tuple with the Configuration field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ExtensionsNewConfig) GetConfigurationOk() ([]ExtensionsConfiguration, bool) { - if o == nil || IsNil(o.Configuration) { - return nil, false - } - return o.Configuration, true -} - -// HasConfiguration returns a boolean if a field has been set. -func (o *ExtensionsNewConfig) HasConfiguration() bool { - if o != nil && !IsNil(o.Configuration) { - return true - } - - return false -} - -// SetConfiguration gets a reference to the given []ExtensionsConfiguration and assigns it to the Configuration field. -func (o *ExtensionsNewConfig) SetConfiguration(v []ExtensionsConfiguration) { - o.Configuration = v -} - -func (o ExtensionsNewConfig) MarshalJSON() ([]byte, error) { - toSerialize, err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o ExtensionsNewConfig) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Configuration) { - toSerialize["configuration"] = o.Configuration - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *ExtensionsNewConfig) UnmarshalJSON(data []byte) (err error) { - varExtensionsNewConfig := _ExtensionsNewConfig{} - - err = json.Unmarshal(data, &varExtensionsNewConfig) - - if err != nil { - return err - } - - *o = ExtensionsNewConfig(varExtensionsNewConfig) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "configuration") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableExtensionsNewConfig struct { - value *ExtensionsNewConfig - isSet bool -} - -func (v NullableExtensionsNewConfig) Get() *ExtensionsNewConfig { - return v.value -} - -func (v *NullableExtensionsNewConfig) Set(val *ExtensionsNewConfig) { - v.value = val - v.isSet = true -} - -func (v NullableExtensionsNewConfig) IsSet() bool { - return v.isSet -} - -func (v *NullableExtensionsNewConfig) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableExtensionsNewConfig(val *ExtensionsNewConfig) *NullableExtensionsNewConfig { - return &NullableExtensionsNewConfig{value: val, isSet: true} -} - -func (v NullableExtensionsNewConfig) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableExtensionsNewConfig) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} diff --git a/services/postgresflex/v1api/model_flavor.go b/services/postgresflex/v1api/model_flavor.go index 13fba34a42..ed9fc739ff 100644 --- a/services/postgresflex/v1api/model_flavor.go +++ b/services/postgresflex/v1api/model_flavor.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_get_backup_response.go b/services/postgresflex/v1api/model_get_backup_response.go index 7f8d70ea32..3cc81b4d23 100644 --- a/services/postgresflex/v1api/model_get_backup_response.go +++ b/services/postgresflex/v1api/model_get_backup_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_get_user_response.go b/services/postgresflex/v1api/model_get_user_response.go index db593a43c7..361e744da9 100644 --- a/services/postgresflex/v1api/model_get_user_response.go +++ b/services/postgresflex/v1api/model_get_user_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance.go b/services/postgresflex/v1api/model_instance.go index 34dcdb1736..598e1e8a67 100644 --- a/services/postgresflex/v1api/model_instance.go +++ b/services/postgresflex/v1api/model_instance.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_create_database_response.go b/services/postgresflex/v1api/model_instance_create_database_response.go index 0a2cdfa141..ee698198ec 100644 --- a/services/postgresflex/v1api/model_instance_create_database_response.go +++ b/services/postgresflex/v1api/model_instance_create_database_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_data_point.go b/services/postgresflex/v1api/model_instance_data_point.go index 64e3ddc645..89b1f7d272 100644 --- a/services/postgresflex/v1api/model_instance_data_point.go +++ b/services/postgresflex/v1api/model_instance_data_point.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_database.go b/services/postgresflex/v1api/model_instance_database.go index b548fc22f2..9ac7aea5c8 100644 --- a/services/postgresflex/v1api/model_instance_database.go +++ b/services/postgresflex/v1api/model_instance_database.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_host.go b/services/postgresflex/v1api/model_instance_host.go index a4d3e57979..78fc1059fb 100644 --- a/services/postgresflex/v1api/model_instance_host.go +++ b/services/postgresflex/v1api/model_instance_host.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_host_metric.go b/services/postgresflex/v1api/model_instance_host_metric.go index 85c263be60..bfc793ae5e 100644 --- a/services/postgresflex/v1api/model_instance_host_metric.go +++ b/services/postgresflex/v1api/model_instance_host_metric.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_list_databases_response.go b/services/postgresflex/v1api/model_instance_list_databases_response.go index acda24814b..67f42bd43e 100644 --- a/services/postgresflex/v1api/model_instance_list_databases_response.go +++ b/services/postgresflex/v1api/model_instance_list_databases_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_list_instance.go b/services/postgresflex/v1api/model_instance_list_instance.go index ffe8605a92..c2dfd65037 100644 --- a/services/postgresflex/v1api/model_instance_list_instance.go +++ b/services/postgresflex/v1api/model_instance_list_instance.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_metrics_response.go b/services/postgresflex/v1api/model_instance_metrics_response.go index 5812d515ca..d88086579b 100644 --- a/services/postgresflex/v1api/model_instance_metrics_response.go +++ b/services/postgresflex/v1api/model_instance_metrics_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_instance_response.go b/services/postgresflex/v1api/model_instance_response.go index 36a8fa5984..730e43181a 100644 --- a/services/postgresflex/v1api/model_instance_response.go +++ b/services/postgresflex/v1api/model_instance_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_backups_response.go b/services/postgresflex/v1api/model_list_backups_response.go index 2e8db4d18d..4f2ed3a8ec 100644 --- a/services/postgresflex/v1api/model_list_backups_response.go +++ b/services/postgresflex/v1api/model_list_backups_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListBackupsResponse{} // ListBackupsResponse struct for ListBackupsResponse type ListBackupsResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []Backup `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListBackupsResponseWithDefaults() *ListBackupsResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListBackupsResponse) GetCount() int32 { +func (o *ListBackupsResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListBackupsResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListBackupsResponse) GetCountOk() (*int32, bool) { +func (o *ListBackupsResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListBackupsResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListBackupsResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListBackupsResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_flavors_response.go b/services/postgresflex/v1api/model_list_flavors_response.go index b48ef0185a..d58c51970e 100644 --- a/services/postgresflex/v1api/model_list_flavors_response.go +++ b/services/postgresflex/v1api/model_list_flavors_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_instances_response.go b/services/postgresflex/v1api/model_list_instances_response.go index 63308763b3..0d33aacc23 100644 --- a/services/postgresflex/v1api/model_list_instances_response.go +++ b/services/postgresflex/v1api/model_list_instances_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListInstancesResponse{} // ListInstancesResponse struct for ListInstancesResponse type ListInstancesResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []InstanceListInstance `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListInstancesResponseWithDefaults() *ListInstancesResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListInstancesResponse) GetCount() int32 { +func (o *ListInstancesResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListInstancesResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListInstancesResponse) GetCountOk() (*int32, bool) { +func (o *ListInstancesResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListInstancesResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListInstancesResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListInstancesResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_storages_response.go b/services/postgresflex/v1api/model_list_storages_response.go index f6b8a3caf3..fd7fd50a66 100644 --- a/services/postgresflex/v1api/model_list_storages_response.go +++ b/services/postgresflex/v1api/model_list_storages_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_users_response.go b/services/postgresflex/v1api/model_list_users_response.go index 2aa81b94a6..e118764aa2 100644 --- a/services/postgresflex/v1api/model_list_users_response.go +++ b/services/postgresflex/v1api/model_list_users_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,7 +20,7 @@ var _ MappedNullable = &ListUsersResponse{} // ListUsersResponse struct for ListUsersResponse type ListUsersResponse struct { - Count *int32 `json:"count,omitempty"` + Count *int64 `json:"count,omitempty"` Items []ListUsersResponseItem `json:"items,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewListUsersResponseWithDefaults() *ListUsersResponse { } // GetCount returns the Count field value if set, zero value otherwise. -func (o *ListUsersResponse) GetCount() int32 { +func (o *ListUsersResponse) GetCount() int64 { if o == nil || IsNil(o.Count) { - var ret int32 + var ret int64 return ret } return *o.Count @@ -55,7 +55,7 @@ func (o *ListUsersResponse) GetCount() int32 { // GetCountOk returns a tuple with the Count field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ListUsersResponse) GetCountOk() (*int32, bool) { +func (o *ListUsersResponse) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -71,8 +71,8 @@ func (o *ListUsersResponse) HasCount() bool { return false } -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ListUsersResponse) SetCount(v int32) { +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *ListUsersResponse) SetCount(v int64) { o.Count = &v } diff --git a/services/postgresflex/v1api/model_list_users_response_item.go b/services/postgresflex/v1api/model_list_users_response_item.go index e216ba1c5a..3f3c649801 100644 --- a/services/postgresflex/v1api/model_list_users_response_item.go +++ b/services/postgresflex/v1api/model_list_users_response_item.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_list_versions_response.go b/services/postgresflex/v1api/model_list_versions_response.go index cec8e5dae9..50b8f540bc 100644 --- a/services/postgresflex/v1api/model_list_versions_response.go +++ b/services/postgresflex/v1api/model_list_versions_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_instance_payload.go b/services/postgresflex/v1api/model_partial_update_instance_payload.go index 350a507388..89e29f1b21 100644 --- a/services/postgresflex/v1api/model_partial_update_instance_payload.go +++ b/services/postgresflex/v1api/model_partial_update_instance_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_instance_response.go b/services/postgresflex/v1api/model_partial_update_instance_response.go index 9bda4f607c..e8c22c6eb4 100644 --- a/services/postgresflex/v1api/model_partial_update_instance_response.go +++ b/services/postgresflex/v1api/model_partial_update_instance_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_partial_update_user_payload.go b/services/postgresflex/v1api/model_partial_update_user_payload.go index e310319e24..0ea319465f 100644 --- a/services/postgresflex/v1api/model_partial_update_user_payload.go +++ b/services/postgresflex/v1api/model_partial_update_user_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_postgres_database_parameter.go b/services/postgresflex/v1api/model_postgres_database_parameter.go index 573920a8ae..e9942877d3 100644 --- a/services/postgresflex/v1api/model_postgres_database_parameter.go +++ b/services/postgresflex/v1api/model_postgres_database_parameter.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_postgres_database_parameter_response.go b/services/postgresflex/v1api/model_postgres_database_parameter_response.go index 3f24aca092..da016e618f 100644 --- a/services/postgresflex/v1api/model_postgres_database_parameter_response.go +++ b/services/postgresflex/v1api/model_postgres_database_parameter_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_reset_user_response.go b/services/postgresflex/v1api/model_reset_user_response.go index 90cede8792..42858a5751 100644 --- a/services/postgresflex/v1api/model_reset_user_response.go +++ b/services/postgresflex/v1api/model_reset_user_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_storage.go b/services/postgresflex/v1api/model_storage.go index be183ec1cb..de34c8446b 100644 --- a/services/postgresflex/v1api/model_storage.go +++ b/services/postgresflex/v1api/model_storage.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_storage_range.go b/services/postgresflex/v1api/model_storage_range.go index 48b7b48878..a5517b7215 100644 --- a/services/postgresflex/v1api/model_storage_range.go +++ b/services/postgresflex/v1api/model_storage_range.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -20,8 +20,8 @@ var _ MappedNullable = &StorageRange{} // StorageRange struct for StorageRange type StorageRange struct { - Max *int32 `json:"max,omitempty"` - Min *int32 `json:"min,omitempty"` + Max *int64 `json:"max,omitempty"` + Min *int64 `json:"min,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,9 +45,9 @@ func NewStorageRangeWithDefaults() *StorageRange { } // GetMax returns the Max field value if set, zero value otherwise. -func (o *StorageRange) GetMax() int32 { +func (o *StorageRange) GetMax() int64 { if o == nil || IsNil(o.Max) { - var ret int32 + var ret int64 return ret } return *o.Max @@ -55,7 +55,7 @@ func (o *StorageRange) GetMax() int32 { // GetMaxOk returns a tuple with the Max field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StorageRange) GetMaxOk() (*int32, bool) { +func (o *StorageRange) GetMaxOk() (*int64, bool) { if o == nil || IsNil(o.Max) { return nil, false } @@ -71,15 +71,15 @@ func (o *StorageRange) HasMax() bool { return false } -// SetMax gets a reference to the given int32 and assigns it to the Max field. -func (o *StorageRange) SetMax(v int32) { +// SetMax gets a reference to the given int64 and assigns it to the Max field. +func (o *StorageRange) SetMax(v int64) { o.Max = &v } // GetMin returns the Min field value if set, zero value otherwise. -func (o *StorageRange) GetMin() int32 { +func (o *StorageRange) GetMin() int64 { if o == nil || IsNil(o.Min) { - var ret int32 + var ret int64 return ret } return *o.Min @@ -87,7 +87,7 @@ func (o *StorageRange) GetMin() int32 { // GetMinOk returns a tuple with the Min field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *StorageRange) GetMinOk() (*int32, bool) { +func (o *StorageRange) GetMinOk() (*int64, bool) { if o == nil || IsNil(o.Min) { return nil, false } @@ -103,8 +103,8 @@ func (o *StorageRange) HasMin() bool { return false } -// SetMin gets a reference to the given int32 and assigns it to the Min field. -func (o *StorageRange) SetMin(v int32) { +// SetMin gets a reference to the given int64 and assigns it to the Min field. +func (o *StorageRange) SetMin(v int64) { o.Min = &v } diff --git a/services/postgresflex/v1api/model_storage_update.go b/services/postgresflex/v1api/model_storage_update.go index f277a58b7a..33bd8fbe1e 100644 --- a/services/postgresflex/v1api/model_storage_update.go +++ b/services/postgresflex/v1api/model_storage_update.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -21,7 +21,6 @@ var _ MappedNullable = &StorageUpdate{} // StorageUpdate struct for StorageUpdate type StorageUpdate struct { // ⚠️ **DEPRECATED AND NON-FUNCTIONAL:** Updating the performance class field is not possible. - // Deprecated Class *string `json:"class,omitempty"` Size *int64 `json:"size,omitempty"` AdditionalProperties map[string]interface{} @@ -47,7 +46,6 @@ func NewStorageUpdateWithDefaults() *StorageUpdate { } // GetClass returns the Class field value if set, zero value otherwise. -// Deprecated func (o *StorageUpdate) GetClass() string { if o == nil || IsNil(o.Class) { var ret string @@ -58,7 +56,6 @@ func (o *StorageUpdate) GetClass() string { // GetClassOk returns a tuple with the Class field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated func (o *StorageUpdate) GetClassOk() (*string, bool) { if o == nil || IsNil(o.Class) { return nil, false @@ -76,7 +73,6 @@ func (o *StorageUpdate) HasClass() bool { } // SetClass gets a reference to the given string and assigns it to the Class field. -// Deprecated func (o *StorageUpdate) SetClass(v string) { o.Class = &v } diff --git a/services/postgresflex/v1api/model_update_backup_schedule_payload.go b/services/postgresflex/v1api/model_update_backup_schedule_payload.go index 3e2345e1dd..402aa829d7 100644 --- a/services/postgresflex/v1api/model_update_backup_schedule_payload.go +++ b/services/postgresflex/v1api/model_update_backup_schedule_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_update_instance_payload.go b/services/postgresflex/v1api/model_update_instance_payload.go index 980c4e68f9..1b16b63cf6 100644 --- a/services/postgresflex/v1api/model_update_instance_payload.go +++ b/services/postgresflex/v1api/model_update_instance_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_update_user_payload.go b/services/postgresflex/v1api/model_update_user_payload.go index 97e2c5b74f..7c4093803c 100644 --- a/services/postgresflex/v1api/model_update_user_payload.go +++ b/services/postgresflex/v1api/model_update_user_payload.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/model_user.go b/services/postgresflex/v1api/model_user.go index 9db9bc72f6..be685c84e7 100644 --- a/services/postgresflex/v1api/model_user.go +++ b/services/postgresflex/v1api/model_user.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -24,7 +24,7 @@ type User struct { Host *string `json:"host,omitempty"` Id *string `json:"id,omitempty"` Password *string `json:"password,omitempty"` - Port *int32 `json:"port,omitempty"` + Port *int64 `json:"port,omitempty"` Roles []string `json:"roles,omitempty"` Uri *string `json:"uri,omitempty"` Username *string `json:"username,omitempty"` @@ -179,9 +179,9 @@ func (o *User) SetPassword(v string) { } // GetPort returns the Port field value if set, zero value otherwise. -func (o *User) GetPort() int32 { +func (o *User) GetPort() int64 { if o == nil || IsNil(o.Port) { - var ret int32 + var ret int64 return ret } return *o.Port @@ -189,7 +189,7 @@ func (o *User) GetPort() int32 { // GetPortOk returns a tuple with the Port field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *User) GetPortOk() (*int32, bool) { +func (o *User) GetPortOk() (*int64, bool) { if o == nil || IsNil(o.Port) { return nil, false } @@ -205,8 +205,8 @@ func (o *User) HasPort() bool { return false } -// SetPort gets a reference to the given int32 and assigns it to the Port field. -func (o *User) SetPort(v int32) { +// SetPort gets a reference to the given int64 and assigns it to the Port field. +func (o *User) SetPort(v int64) { o.Port = &v } diff --git a/services/postgresflex/v1api/model_user_response.go b/services/postgresflex/v1api/model_user_response.go index fbbd4a3a3a..bccd3adfc8 100644 --- a/services/postgresflex/v1api/model_user_response.go +++ b/services/postgresflex/v1api/model_user_response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud @@ -22,7 +22,7 @@ var _ MappedNullable = &UserResponse{} type UserResponse struct { Host *string `json:"host,omitempty"` Id *string `json:"id,omitempty"` - Port *int32 `json:"port,omitempty"` + Port *int64 `json:"port,omitempty"` Roles []string `json:"roles,omitempty"` Username *string `json:"username,omitempty"` AdditionalProperties map[string]interface{} @@ -112,9 +112,9 @@ func (o *UserResponse) SetId(v string) { } // GetPort returns the Port field value if set, zero value otherwise. -func (o *UserResponse) GetPort() int32 { +func (o *UserResponse) GetPort() int64 { if o == nil || IsNil(o.Port) { - var ret int32 + var ret int64 return ret } return *o.Port @@ -122,7 +122,7 @@ func (o *UserResponse) GetPort() int32 { // GetPortOk returns a tuple with the Port field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *UserResponse) GetPortOk() (*int32, bool) { +func (o *UserResponse) GetPortOk() (*int64, bool) { if o == nil || IsNil(o.Port) { return nil, false } @@ -138,8 +138,8 @@ func (o *UserResponse) HasPort() bool { return false } -// SetPort gets a reference to the given int32 and assigns it to the Port field. -func (o *UserResponse) SetPort(v int32) { +// SetPort gets a reference to the given int64 and assigns it to the Port field. +func (o *UserResponse) SetPort(v int64) { o.Port = &v } diff --git a/services/postgresflex/v1api/response.go b/services/postgresflex/v1api/response.go index 3d52748d84..9c609bfe5f 100644 --- a/services/postgresflex/v1api/response.go +++ b/services/postgresflex/v1api/response.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v1api/utils.go b/services/postgresflex/v1api/utils.go index 0ea859d504..c63f198b7a 100644 --- a/services/postgresflex/v1api/utils.go +++ b/services/postgresflex/v1api/utils.go @@ -1,7 +1,7 @@ /* -STACKIT PostgreSQL Flex API (deprecated) +STACKIT PostgreSQL Flex API -⚠️ This API is deprecated. It will be retired on 01.07.2027. Please use the STACKIT PostgreSQL Flex API v2 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 1.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/api_default.go b/services/postgresflex/v2api/api_default.go index 428e75ee94..4ecab42001 100644 --- a/services/postgresflex/v2api/api_default.go +++ b/services/postgresflex/v2api/api_default.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud @@ -303,7 +303,7 @@ type DefaultAPI interface { @param projectId The UUID of the project. @param region The region which should be addressed @param instanceId The UUID of the instance. - @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. + @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest */ ListMetrics(ctx context.Context, projectId string, region string, instanceId string, metric string) ApiListMetricsRequest @@ -2881,7 +2881,7 @@ Returns a metric for an instance. The metric will only be for the master pod if @param projectId The UUID of the project. @param region The region which should be addressed @param instanceId The UUID of the instance. - @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'max-connections', 'connections' and 'disk-use'. + @param metric The name of the metric. Valid metrics are 'cpu', 'memory', 'disk-use', 'disk-size' and 'connections'. @return ApiListMetricsRequest */ func (a *DefaultAPIService) ListMetrics(ctx context.Context, projectId string, region string, instanceId string, metric string) ApiListMetricsRequest { diff --git a/services/postgresflex/v2api/api_default_mock.go b/services/postgresflex/v2api/api_default_mock.go index fabb3151dc..d438a6c507 100644 --- a/services/postgresflex/v2api/api_default_mock.go +++ b/services/postgresflex/v2api/api_default_mock.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/client.go b/services/postgresflex/v2api/client.go index f4bffb7fa9..2be8d367be 100644 --- a/services/postgresflex/v2api/client.go +++ b/services/postgresflex/v2api/client.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/configuration.go b/services/postgresflex/v2api/configuration.go index 73f1e531c3..82bb3453c0 100644 --- a/services/postgresflex/v2api/configuration.go +++ b/services/postgresflex/v2api/configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_acl.go b/services/postgresflex/v2api/model_acl.go index 7253e860fb..487e5bb216 100644 --- a/services/postgresflex/v2api/model_acl.go +++ b/services/postgresflex/v2api/model_acl.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_configuration.go b/services/postgresflex/v2api/model_api_configuration.go index 850e463b85..462bcaf146 100644 --- a/services/postgresflex/v2api/model_api_configuration.go +++ b/services/postgresflex/v2api/model_api_configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_config_load_response.go b/services/postgresflex/v2api/model_api_extension_config_load_response.go index 03b7e61f0d..0e72ecde15 100644 --- a/services/postgresflex/v2api/model_api_extension_config_load_response.go +++ b/services/postgresflex/v2api/model_api_extension_config_load_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_configure_response.go b/services/postgresflex/v2api/model_api_extension_configure_response.go index a13cab34e9..b2d79f1a9a 100644 --- a/services/postgresflex/v2api/model_api_extension_configure_response.go +++ b/services/postgresflex/v2api/model_api_extension_configure_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_delete_response.go b/services/postgresflex/v2api/model_api_extension_delete_response.go index f3f60c25e9..4d08bc29f7 100644 --- a/services/postgresflex/v2api/model_api_extension_delete_response.go +++ b/services/postgresflex/v2api/model_api_extension_delete_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_list.go b/services/postgresflex/v2api/model_api_extension_list.go index 7537ca9ef6..b6e526db84 100644 --- a/services/postgresflex/v2api/model_api_extension_list.go +++ b/services/postgresflex/v2api/model_api_extension_list.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_extension_load_response.go b/services/postgresflex/v2api/model_api_extension_load_response.go index e694d052e6..52be3099fa 100644 --- a/services/postgresflex/v2api/model_api_extension_load_response.go +++ b/services/postgresflex/v2api/model_api_extension_load_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_install_response.go b/services/postgresflex/v2api/model_api_install_response.go index 063e9ceb12..d5feb17ce0 100644 --- a/services/postgresflex/v2api/model_api_install_response.go +++ b/services/postgresflex/v2api/model_api_install_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_api_installed_list_response.go b/services/postgresflex/v2api/model_api_installed_list_response.go index 665ec01127..86e1e348a6 100644 --- a/services/postgresflex/v2api/model_api_installed_list_response.go +++ b/services/postgresflex/v2api/model_api_installed_list_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_backup.go b/services/postgresflex/v2api/model_backup.go index 963a16dd63..9286853592 100644 --- a/services/postgresflex/v2api/model_backup.go +++ b/services/postgresflex/v2api/model_backup.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_clone_instance_payload.go b/services/postgresflex/v2api/model_clone_instance_payload.go index f4ac2ceef8..c44b2ce0e7 100644 --- a/services/postgresflex/v2api/model_clone_instance_payload.go +++ b/services/postgresflex/v2api/model_clone_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_clone_instance_response.go b/services/postgresflex/v2api/model_clone_instance_response.go index 8044f7be7b..b9dce5f46f 100644 --- a/services/postgresflex/v2api/model_clone_instance_response.go +++ b/services/postgresflex/v2api/model_clone_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_database_payload.go b/services/postgresflex/v2api/model_create_database_payload.go index 59e841f513..6264ebf015 100644 --- a/services/postgresflex/v2api/model_create_database_payload.go +++ b/services/postgresflex/v2api/model_create_database_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_instance_payload.go b/services/postgresflex/v2api/model_create_instance_payload.go index b5bc3512c3..aa4fdc1834 100644 --- a/services/postgresflex/v2api/model_create_instance_payload.go +++ b/services/postgresflex/v2api/model_create_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_instance_response.go b/services/postgresflex/v2api/model_create_instance_response.go index a29421ec50..2c3e72c919 100644 --- a/services/postgresflex/v2api/model_create_instance_response.go +++ b/services/postgresflex/v2api/model_create_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_user_payload.go b/services/postgresflex/v2api/model_create_user_payload.go index b085a31168..a558c906c8 100644 --- a/services/postgresflex/v2api/model_create_user_payload.go +++ b/services/postgresflex/v2api/model_create_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_create_user_response.go b/services/postgresflex/v2api/model_create_user_response.go index 27c0702ce5..fc2d0728e8 100644 --- a/services/postgresflex/v2api/model_create_user_response.go +++ b/services/postgresflex/v2api/model_create_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_error.go b/services/postgresflex/v2api/model_error.go index 81cd91da8d..cc8ea47cca 100644 --- a/services/postgresflex/v2api/model_error.go +++ b/services/postgresflex/v2api/model_error.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_configuration.go b/services/postgresflex/v2api/model_extensions_configuration.go index 4acf6a1fc6..c41d046875 100644 --- a/services/postgresflex/v2api/model_extensions_configuration.go +++ b/services/postgresflex/v2api/model_extensions_configuration.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_extension_list_response.go b/services/postgresflex/v2api/model_extensions_extension_list_response.go index 644b03e045..d4b4a6140c 100644 --- a/services/postgresflex/v2api/model_extensions_extension_list_response.go +++ b/services/postgresflex/v2api/model_extensions_extension_list_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_extensions_new_config.go b/services/postgresflex/v2api/model_extensions_new_config.go index 767b66bbaf..b89b0c7577 100644 --- a/services/postgresflex/v2api/model_extensions_new_config.go +++ b/services/postgresflex/v2api/model_extensions_new_config.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_flavor.go b/services/postgresflex/v2api/model_flavor.go index 5451dd2e83..e95043c257 100644 --- a/services/postgresflex/v2api/model_flavor.go +++ b/services/postgresflex/v2api/model_flavor.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_get_backup_response.go b/services/postgresflex/v2api/model_get_backup_response.go index 1f5f6a963d..6ac8ad8228 100644 --- a/services/postgresflex/v2api/model_get_backup_response.go +++ b/services/postgresflex/v2api/model_get_backup_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_get_user_response.go b/services/postgresflex/v2api/model_get_user_response.go index 7587a78150..f5f5d00979 100644 --- a/services/postgresflex/v2api/model_get_user_response.go +++ b/services/postgresflex/v2api/model_get_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance.go b/services/postgresflex/v2api/model_instance.go index d6ffeb5044..c17a452dfe 100644 --- a/services/postgresflex/v2api/model_instance.go +++ b/services/postgresflex/v2api/model_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_create_database_response.go b/services/postgresflex/v2api/model_instance_create_database_response.go index 8e97ce4fb8..cf2dfe973f 100644 --- a/services/postgresflex/v2api/model_instance_create_database_response.go +++ b/services/postgresflex/v2api/model_instance_create_database_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_data_point.go b/services/postgresflex/v2api/model_instance_data_point.go index 80b8896e58..4c8926f6d1 100644 --- a/services/postgresflex/v2api/model_instance_data_point.go +++ b/services/postgresflex/v2api/model_instance_data_point.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_database.go b/services/postgresflex/v2api/model_instance_database.go index daa25970da..13e0d0752c 100644 --- a/services/postgresflex/v2api/model_instance_database.go +++ b/services/postgresflex/v2api/model_instance_database.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_host.go b/services/postgresflex/v2api/model_instance_host.go index bf0c87e623..25597b6540 100644 --- a/services/postgresflex/v2api/model_instance_host.go +++ b/services/postgresflex/v2api/model_instance_host.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_host_metric.go b/services/postgresflex/v2api/model_instance_host_metric.go index c82aade6f3..0f0c1dc3bb 100644 --- a/services/postgresflex/v2api/model_instance_host_metric.go +++ b/services/postgresflex/v2api/model_instance_host_metric.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_list_databases_response.go b/services/postgresflex/v2api/model_instance_list_databases_response.go index b181af3439..814f2a73b5 100644 --- a/services/postgresflex/v2api/model_instance_list_databases_response.go +++ b/services/postgresflex/v2api/model_instance_list_databases_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_list_instance.go b/services/postgresflex/v2api/model_instance_list_instance.go index e62625da13..19d46676c6 100644 --- a/services/postgresflex/v2api/model_instance_list_instance.go +++ b/services/postgresflex/v2api/model_instance_list_instance.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_metrics_response.go b/services/postgresflex/v2api/model_instance_metrics_response.go index adcbc4e39e..243e9eb3fa 100644 --- a/services/postgresflex/v2api/model_instance_metrics_response.go +++ b/services/postgresflex/v2api/model_instance_metrics_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_instance_response.go b/services/postgresflex/v2api/model_instance_response.go index d73a174e21..162942d787 100644 --- a/services/postgresflex/v2api/model_instance_response.go +++ b/services/postgresflex/v2api/model_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_backups_response.go b/services/postgresflex/v2api/model_list_backups_response.go index 8d5b2e0e96..2dd7d54ea6 100644 --- a/services/postgresflex/v2api/model_list_backups_response.go +++ b/services/postgresflex/v2api/model_list_backups_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_flavors_response.go b/services/postgresflex/v2api/model_list_flavors_response.go index 3f53139415..189a4ca005 100644 --- a/services/postgresflex/v2api/model_list_flavors_response.go +++ b/services/postgresflex/v2api/model_list_flavors_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_instances_response.go b/services/postgresflex/v2api/model_list_instances_response.go index 08c4799cf5..676070f040 100644 --- a/services/postgresflex/v2api/model_list_instances_response.go +++ b/services/postgresflex/v2api/model_list_instances_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_storages_response.go b/services/postgresflex/v2api/model_list_storages_response.go index 4410a39a3c..9836bde56f 100644 --- a/services/postgresflex/v2api/model_list_storages_response.go +++ b/services/postgresflex/v2api/model_list_storages_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_users_response.go b/services/postgresflex/v2api/model_list_users_response.go index e45589dcd3..3ed050ccb5 100644 --- a/services/postgresflex/v2api/model_list_users_response.go +++ b/services/postgresflex/v2api/model_list_users_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_users_response_item.go b/services/postgresflex/v2api/model_list_users_response_item.go index 75bb675ce2..62de90a853 100644 --- a/services/postgresflex/v2api/model_list_users_response_item.go +++ b/services/postgresflex/v2api/model_list_users_response_item.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_list_versions_response.go b/services/postgresflex/v2api/model_list_versions_response.go index 9dd084629e..db781529f8 100644 --- a/services/postgresflex/v2api/model_list_versions_response.go +++ b/services/postgresflex/v2api/model_list_versions_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_instance_payload.go b/services/postgresflex/v2api/model_partial_update_instance_payload.go index e20f5488a6..625706a28c 100644 --- a/services/postgresflex/v2api/model_partial_update_instance_payload.go +++ b/services/postgresflex/v2api/model_partial_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_instance_response.go b/services/postgresflex/v2api/model_partial_update_instance_response.go index 8a7e37a58e..6bda60e715 100644 --- a/services/postgresflex/v2api/model_partial_update_instance_response.go +++ b/services/postgresflex/v2api/model_partial_update_instance_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_partial_update_user_payload.go b/services/postgresflex/v2api/model_partial_update_user_payload.go index f13b133385..103bb4021c 100644 --- a/services/postgresflex/v2api/model_partial_update_user_payload.go +++ b/services/postgresflex/v2api/model_partial_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_postgres_database_parameter.go b/services/postgresflex/v2api/model_postgres_database_parameter.go index 63df858458..30f0b0c057 100644 --- a/services/postgresflex/v2api/model_postgres_database_parameter.go +++ b/services/postgresflex/v2api/model_postgres_database_parameter.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_postgres_database_parameter_response.go b/services/postgresflex/v2api/model_postgres_database_parameter_response.go index d3df75a117..5c5b42918e 100644 --- a/services/postgresflex/v2api/model_postgres_database_parameter_response.go +++ b/services/postgresflex/v2api/model_postgres_database_parameter_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_reset_user_response.go b/services/postgresflex/v2api/model_reset_user_response.go index 82b3118399..269328e23f 100644 --- a/services/postgresflex/v2api/model_reset_user_response.go +++ b/services/postgresflex/v2api/model_reset_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage.go b/services/postgresflex/v2api/model_storage.go index 72a0a69592..9da22b68d9 100644 --- a/services/postgresflex/v2api/model_storage.go +++ b/services/postgresflex/v2api/model_storage.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage_range.go b/services/postgresflex/v2api/model_storage_range.go index c3eb59e51a..9a0fe77f52 100644 --- a/services/postgresflex/v2api/model_storage_range.go +++ b/services/postgresflex/v2api/model_storage_range.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_storage_update.go b/services/postgresflex/v2api/model_storage_update.go index e09d1475af..266a8ee14f 100644 --- a/services/postgresflex/v2api/model_storage_update.go +++ b/services/postgresflex/v2api/model_storage_update.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud @@ -21,7 +21,6 @@ var _ MappedNullable = &StorageUpdate{} // StorageUpdate struct for StorageUpdate type StorageUpdate struct { // ⚠️ **DEPRECATED AND NON-FUNCTIONAL:** Updating the performance class field is not possible. - // Deprecated Class *string `json:"class,omitempty"` Size *int64 `json:"size,omitempty"` AdditionalProperties map[string]interface{} @@ -47,7 +46,6 @@ func NewStorageUpdateWithDefaults() *StorageUpdate { } // GetClass returns the Class field value if set, zero value otherwise. -// Deprecated func (o *StorageUpdate) GetClass() string { if o == nil || IsNil(o.Class) { var ret string @@ -58,7 +56,6 @@ func (o *StorageUpdate) GetClass() string { // GetClassOk returns a tuple with the Class field value if set, nil otherwise // and a boolean to check if the value has been set. -// Deprecated func (o *StorageUpdate) GetClassOk() (*string, bool) { if o == nil || IsNil(o.Class) { return nil, false @@ -76,7 +73,6 @@ func (o *StorageUpdate) HasClass() bool { } // SetClass gets a reference to the given string and assigns it to the Class field. -// Deprecated func (o *StorageUpdate) SetClass(v string) { o.Class = &v } diff --git a/services/postgresflex/v2api/model_update_backup_schedule_payload.go b/services/postgresflex/v2api/model_update_backup_schedule_payload.go index 63d0735999..c20383ccd3 100644 --- a/services/postgresflex/v2api/model_update_backup_schedule_payload.go +++ b/services/postgresflex/v2api/model_update_backup_schedule_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_update_instance_payload.go b/services/postgresflex/v2api/model_update_instance_payload.go index 1e84279132..dc1e4c1841 100644 --- a/services/postgresflex/v2api/model_update_instance_payload.go +++ b/services/postgresflex/v2api/model_update_instance_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_update_user_payload.go b/services/postgresflex/v2api/model_update_user_payload.go index f6d0e7a1ff..44ffdbbb99 100644 --- a/services/postgresflex/v2api/model_update_user_payload.go +++ b/services/postgresflex/v2api/model_update_user_payload.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_user.go b/services/postgresflex/v2api/model_user.go index e05e6298b4..170098e443 100644 --- a/services/postgresflex/v2api/model_user.go +++ b/services/postgresflex/v2api/model_user.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/model_user_response.go b/services/postgresflex/v2api/model_user_response.go index 65da0d981c..5809aed088 100644 --- a/services/postgresflex/v2api/model_user_response.go +++ b/services/postgresflex/v2api/model_user_response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/response.go b/services/postgresflex/v2api/response.go index 8c5f647975..9dcdc3bb2c 100644 --- a/services/postgresflex/v2api/response.go +++ b/services/postgresflex/v2api/response.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/v2api/utils.go b/services/postgresflex/v2api/utils.go index b455ded95e..acb7bc86a3 100644 --- a/services/postgresflex/v2api/utils.go +++ b/services/postgresflex/v2api/utils.go @@ -1,7 +1,7 @@ /* STACKIT PostgreSQL Flex API (deprecated) -⚠️ This API is deprecated. It will be retired on 01.08.2027. Please use the STACKIT PostgreSQL Flex API v3 instead. +> This is the documentation for the STACKIT postgres service > **DEPRECATED & EOL NOTICE** > This api is deprecated as of **30-09-2026** and will reach End of Life (EOL) on **30-09-2027** > Please migrate to [`{api_url}/v3/`]. API version: 2.0.0 Contact: support@stackit.cloud diff --git a/services/postgresflex/wait/deprecation.go b/services/postgresflex/wait/deprecation.go deleted file mode 100644 index 58f184c093..0000000000 --- a/services/postgresflex/wait/deprecation.go +++ /dev/null @@ -1,2 +0,0 @@ -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -package wait diff --git a/services/postgresflex/wait/wait.go b/services/postgresflex/wait/wait.go deleted file mode 100644 index 2ea1632c28..0000000000 --- a/services/postgresflex/wait/wait.go +++ /dev/null @@ -1,188 +0,0 @@ -package wait - -import ( - "context" - "fmt" - "time" - - "github.com/stackitcloud/stackit-sdk-go/core/oapierror" - "github.com/stackitcloud/stackit-sdk-go/core/wait" - "github.com/stackitcloud/stackit-sdk-go/services/postgresflex" -) - -const ( - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - InstanceStateEmpty = "" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - InstanceStateProgressing = "Progressing" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - InstanceStateSuccess = "Ready" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - InstanceStateFailed = "Failure" - // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead - InstanceStateDeleted = "Deleted" -) - -// Interface needed for tests -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type APIClientInstanceInterface interface { - GetInstanceExecute(ctx context.Context, projectId, region, instanceId string) (*postgresflex.GetInstanceResponse, error) - ListUsersExecute(ctx context.Context, projectId, region, instanceId string) (*postgresflex.ListUsersResponse, error) -} - -// Interface needed for tests -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -type APIClientUserInterface interface { - GetUserExecute(ctx context.Context, projectId, region, instanceId string, userId int64) (*postgresflex.GetUserResponse, error) -} - -// CreateInstanceWaitHandler will wait for instance creation -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func CreateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[postgresflex.GetInstanceResponse] { - instanceCreated := false - var instanceGetResponse *postgresflex.GetInstanceResponse - - handler := wait.New(func() (waitFinished bool, response *postgresflex.GetInstanceResponse, err error) { - if !instanceCreated { - s, err := a.GetInstanceExecute(ctx, projectId, region, instanceId) - if err != nil { - return false, nil, err - } - if s == nil || s.Id == nil || *s.Id != instanceId || s.State == nil { - return false, nil, nil - } - switch *s.State { - default: - return true, s, fmt.Errorf("instance with id %s has unexpected status %s", instanceId, *s.State) - case InstanceStateEmpty: - return false, nil, nil - case InstanceStateProgressing: - return false, nil, nil - case InstanceStateSuccess: - instanceCreated = true - instanceGetResponse = s - case InstanceStateFailed: - return true, s, fmt.Errorf("create failed for instance with id %s", instanceId) - } - } - - // User operations aren't available right after an instance is deemed successful - // To check if they are, perform a users request - _, err = a.ListUsersExecute(ctx, projectId, region, instanceId) - if err == nil { - return true, instanceGetResponse, nil - } - oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped - if !ok { - return false, nil, err - } - if oapiErr.StatusCode < 500 { - return true, instanceGetResponse, fmt.Errorf("users request after instance creation returned %d status code", oapiErr.StatusCode) - } - return false, nil, nil - }) - // Sleep before wait is set because sometimes API returns 404 right after creation request - handler.SetTimeout(45 * time.Minute).SetSleepBeforeWait(15 * time.Second) - return handler -} - -// PartialUpdateInstanceWaitHandler will wait for instance update -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func PartialUpdateInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[postgresflex.GetInstanceResponse] { - handler := wait.New(func() (waitFinished bool, response *postgresflex.GetInstanceResponse, err error) { - s, err := a.GetInstanceExecute(ctx, projectId, region, instanceId) - if err != nil { - return false, nil, err - } - if s == nil || s.Id == nil || *s.Id != instanceId || s.State == nil { - return false, nil, nil - } - switch *s.State { - default: - return true, s, fmt.Errorf("instance with id %s has unexpected status %s", instanceId, *s.State) - case InstanceStateEmpty: - return false, nil, nil - case InstanceStateProgressing: - return false, nil, nil - case InstanceStateSuccess: - return true, s, nil - case InstanceStateFailed: - return true, s, fmt.Errorf("update failed for instance with id %s", instanceId) - } - }) - handler.SetTimeout(45 * time.Minute) - return handler -} - -// DeleteInstanceWaitHandler will wait for instance deletion -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func DeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[struct{}] { - handler := wait.New(func() (waitFinished bool, response *struct{}, err error) { - s, err := a.GetInstanceExecute(ctx, projectId, region, instanceId) - if err != nil { - return false, nil, err - } - if s == nil || s.Id == nil || *s.Id != instanceId || s.State == nil { - return false, nil, nil - } - switch *s.State { - default: - return true, nil, fmt.Errorf("instance with id %s has unexpected status %s", instanceId, *s.State) - case InstanceStateSuccess: - return false, nil, nil - case InstanceStateDeleted: - return true, nil, nil - } - }) - handler.SetTimeout(5 * time.Minute) - return handler -} - -// ForceDeleteInstanceWaitHandler will wait for instance deletion -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func ForceDeleteInstanceWaitHandler(ctx context.Context, a APIClientInstanceInterface, projectId, region, instanceId string) *wait.AsyncActionHandler[struct{}] { - handler := wait.New(func() (waitFinished bool, response *struct{}, err error) { - _, err = a.GetInstanceExecute(ctx, projectId, region, instanceId) - if err == nil { - return false, nil, nil - } - oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped - if !ok { - return false, nil, err - } - if oapiErr.StatusCode != 404 { - return false, nil, err - } - return true, nil, nil - }) - handler.SetTimeout(15 * time.Minute) - return handler -} - -// DeleteUserWaitHandler will wait for delete -// -// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead -func DeleteUserWaitHandler(ctx context.Context, a APIClientUserInterface, projectId, region, instanceId string, userId int64) *wait.AsyncActionHandler[struct{}] { - handler := wait.New(func() (waitFinished bool, response *struct{}, err error) { - _, err = a.GetUserExecute(ctx, projectId, region, instanceId, userId) - if err == nil { - return false, nil, nil - } - oapiErr, ok := err.(*oapierror.GenericOpenAPIError) //nolint:errorlint //complaining that error.As should be used to catch wrapped errors, but this error should not be wrapped - if !ok { - return false, nil, err - } - if oapiErr.StatusCode != 404 { - return false, nil, err - } - return true, nil, nil - }) - handler.SetTimeout(1 * time.Minute) - return handler -} diff --git a/services/postgresflex/wait/wait_test.go b/services/postgresflex/wait/wait_test.go deleted file mode 100644 index 4027208db3..0000000000 --- a/services/postgresflex/wait/wait_test.go +++ /dev/null @@ -1,396 +0,0 @@ -package wait - -import ( - "context" - "testing" - "testing/synctest" - "time" - - "github.com/google/go-cmp/cmp" - - "github.com/stackitcloud/stackit-sdk-go/core/oapierror" - "github.com/stackitcloud/stackit-sdk-go/services/postgresflex" -) - -// Used for testing instance operations -type apiClientInstanceMocked struct { - instanceId string - instanceState string - instanceIsForceDeleted bool - instanceGetFails bool - usersGetErrorStatus int -} - -func (a *apiClientInstanceMocked) GetInstanceExecute(_ context.Context, _, _, _ string) (*postgresflex.GetInstanceResponse, error) { - if a.instanceGetFails { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: 500, - } - } - - if a.instanceIsForceDeleted { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: 404, - } - } - - return &postgresflex.GetInstanceResponse{ - Id: &a.instanceId, - State: postgresflex.GetInstanceResponseGetStateAttributeType(&a.instanceState), - }, nil -} - -func (a *apiClientInstanceMocked) ListUsersExecute(_ context.Context, _, _, _ string) (*postgresflex.ListUsersResponse, error) { - if a.usersGetErrorStatus != 0 { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: a.usersGetErrorStatus, - } - } - return &postgresflex.ListUsersResponse{ - Pagination: &postgresflex.Pagination{}, - Users: &[]postgresflex.ListUser{}, - }, nil -} - -// Used for testing user operations -type apiClientUserMocked struct { - getFails bool - userId int64 - isUserDeleted bool -} - -func (a *apiClientUserMocked) GetUserExecute(_ context.Context, _, _, _ string, _ int64) (*postgresflex.GetUserResponse, error) { - if a.getFails { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: 500, - } - } - - if a.isUserDeleted { - return nil, &oapierror.GenericOpenAPIError{ - StatusCode: 404, - } - } - - return &postgresflex.GetUserResponse{ - Id: postgresflex.GetUserResponseGetIdAttributeType(&a.userId), - }, nil -} - -func TestCreateInstanceWaitHandler(t *testing.T) { - tests := []struct { - desc string - instanceGetFails bool - instanceState string - usersGetErrorStatus int - wantErr bool - wantResp bool - }{ - { - desc: "create_succeeded", - instanceGetFails: false, - instanceState: InstanceStateSuccess, - wantErr: false, - wantResp: true, - }, - { - desc: "create_failed", - instanceGetFails: false, - instanceState: InstanceStateFailed, - wantErr: true, - wantResp: true, - }, - { - desc: "create_failed_2", - instanceGetFails: false, - instanceState: InstanceStateEmpty, - wantErr: true, - wantResp: false, - }, - { - desc: "instance_get_fails", - instanceGetFails: true, - wantErr: true, - wantResp: false, - }, - { - desc: "users_get_fails", - instanceGetFails: false, - instanceState: InstanceStateSuccess, - usersGetErrorStatus: 500, - wantErr: true, - wantResp: false, - }, - { - desc: "users_get_fails_2", - instanceGetFails: false, - instanceState: InstanceStateSuccess, - usersGetErrorStatus: 400, - wantErr: true, - wantResp: true, - }, - { - desc: "timeout", - instanceGetFails: false, - instanceState: InstanceStateProgressing, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - instanceId := "foo-bar" - - apiClient := &apiClientInstanceMocked{ - instanceId: instanceId, - instanceState: tt.instanceState, - instanceGetFails: tt.instanceGetFails, - usersGetErrorStatus: tt.usersGetErrorStatus, - } - - var wantRes *postgresflex.GetInstanceResponse - if tt.wantResp { - wantRes = &postgresflex.GetInstanceResponse{ - Id: &instanceId, - State: postgresflex.GetInstanceResponseGetStateAttributeType(&tt.instanceState), - } - } - - handler := CreateInstanceWaitHandler(context.Background(), apiClient, "", "", instanceId) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).SetSleepBeforeWait(1 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %v, want %v", gotRes, wantRes) - } - }) - }) - } -} - -func TestUpdateInstanceWaitHandler(t *testing.T) { - tests := []struct { - desc string - instanceGetFails bool - instanceState string - wantErr bool - wantResp bool - }{ - { - desc: "update_succeeded", - instanceGetFails: false, - instanceState: InstanceStateSuccess, - wantErr: false, - wantResp: true, - }, - { - desc: "update_failed", - instanceGetFails: false, - instanceState: InstanceStateFailed, - wantErr: true, - wantResp: true, - }, - { - desc: "update_failed_2", - instanceGetFails: false, - instanceState: InstanceStateEmpty, - wantErr: true, - wantResp: false, - }, - { - desc: "get_fails", - instanceGetFails: true, - wantErr: true, - wantResp: false, - }, - { - desc: "timeout", - instanceGetFails: false, - instanceState: InstanceStateProgressing, - wantErr: true, - wantResp: false, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - instanceId := "foo-bar" - - apiClient := &apiClientInstanceMocked{ - instanceId: instanceId, - instanceState: tt.instanceState, - instanceGetFails: tt.instanceGetFails, - } - - var wantRes *postgresflex.GetInstanceResponse - if tt.wantResp { - wantRes = &postgresflex.GetInstanceResponse{ - Id: &instanceId, - State: postgresflex.GetInstanceResponseGetStateAttributeType(&tt.instanceState), - } - } - - handler := PartialUpdateInstanceWaitHandler(context.Background(), apiClient, "", "", instanceId) - - gotRes, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - if !cmp.Equal(gotRes, wantRes) { - t.Fatalf("handler gotRes = %v, want %v", gotRes, wantRes) - } - }) - }) - } -} - -func TestDeleteInstanceWaitHandler(t *testing.T) { - tests := []struct { - desc string - instanceGetFails bool - instanceState string - wantErr bool - }{ - { - desc: "delete_succeeded", - instanceGetFails: false, - instanceState: InstanceStateDeleted, - wantErr: false, - }, - { - desc: "delete_failed", - instanceGetFails: false, - instanceState: InstanceStateFailed, - wantErr: true, - }, - { - desc: "get_fails", - instanceGetFails: true, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - instanceId := "foo-bar" - - apiClient := &apiClientInstanceMocked{ - instanceGetFails: tt.instanceGetFails, - instanceId: instanceId, - instanceState: tt.instanceState, - } - - handler := DeleteInstanceWaitHandler(context.Background(), apiClient, "", "", instanceId) - - _, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - }) - }) - } -} - -func TestForceDeleteInstanceWaitHandler(t *testing.T) { - tests := []struct { - desc string - instanceGetFails bool - instanceState string - wantErr bool - }{ - { - desc: "delete_succeeded", - instanceGetFails: false, - instanceState: InstanceStateDeleted, - wantErr: false, - }, - { - desc: "delete_failed", - instanceGetFails: false, - instanceState: InstanceStateFailed, - wantErr: true, - }, - { - desc: "get_fails", - instanceGetFails: true, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - instanceId := "foo-bar" - - apiClient := &apiClientInstanceMocked{ - instanceGetFails: tt.instanceGetFails, - instanceIsForceDeleted: tt.instanceState == InstanceStateDeleted, - instanceId: instanceId, - instanceState: tt.instanceState, - } - - handler := ForceDeleteInstanceWaitHandler(context.Background(), apiClient, "", "", instanceId) - - _, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - }) - }) - } -} - -func TestDeleteUserWaitHandler(t *testing.T) { - tests := []struct { - desc string - deleteFails bool - getFails bool - wantErr bool - }{ - { - desc: "delete_succeeded", - deleteFails: false, - getFails: false, - wantErr: false, - }, - { - desc: "delete_failed", - deleteFails: true, - getFails: false, - wantErr: true, - }, - { - desc: "get_fails", - deleteFails: false, - getFails: true, - wantErr: true, - }, - } - for _, tt := range tests { - t.Run(tt.desc, func(t *testing.T) { - synctest.Test(t, func(t *testing.T) { - userId := int64(1234) - - apiClient := &apiClientUserMocked{ - getFails: tt.getFails, - userId: userId, - isUserDeleted: !tt.deleteFails, - } - - handler := DeleteUserWaitHandler(context.Background(), apiClient, "", "", "", userId) - - _, err := handler.SetTimeout(10 * time.Millisecond).WaitWithContext(context.Background()) - - if (err != nil) != tt.wantErr { - t.Fatalf("handler error = %v, wantErr %v", err, tt.wantErr) - } - }) - }) - } -}