From c027ca036c19459ab8199671c39d059d7cb80f8b Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Fri, 16 Oct 2026 10:00:25 +0000 Subject: [PATCH] Generate redis --- services/redis/oas_commit | 2 +- services/redis/v1api/api_default.go | 6 +- services/redis/v1api/api_default_mock.go | 6 +- services/redis/v1api/client.go | 8 +- services/redis/v1api/configuration.go | 6 +- services/redis/v1api/model_backup.go | 6 +- .../model_create_backup_response_item.go | 6 +- .../v1api/model_create_credentials_payload.go | 6 +- .../v1api/model_create_instance_payload.go | 6 +- .../v1api/model_create_instance_response.go | 6 +- services/redis/v1api/model_credentials.go | 6 +- .../v1api/model_credentials_list_item.go | 6 +- .../redis/v1api/model_credentials_response.go | 6 +- services/redis/v1api/model_error.go | 6 +- .../redis/v1api/model_get_metrics_response.go | 6 +- services/redis/v1api/model_instance.go | 6 +- .../v1api/model_instance_last_operation.go | 6 +- .../model_instance_last_operation_state.go | 6 +- .../model_instance_last_operation_type.go | 6 +- .../redis/v1api/model_instance_parameters.go | 6 +- ...tance_parameters_lazyfree_lazy_eviction.go | 6 +- ...nstance_parameters_lazyfree_lazy_expire.go | 6 +- ...el_instance_parameters_maxmemory_policy.go | 6 +- ...model_instance_parameters_tls_protocols.go | 6 +- services/redis/v1api/model_instance_schema.go | 6 +- services/redis/v1api/model_instance_status.go | 6 +- .../v1api/model_list_credentials_response.go | 6 +- .../v1api/model_list_instances_response.go | 6 +- .../v1api/model_list_offerings_response.go | 6 +- .../v1api/model_list_restores_response.go | 6 +- services/redis/v1api/model_offering.go | 6 +- .../model_partial_update_instance_payload.go | 6 +- services/redis/v1api/model_plan.go | 6 +- services/redis/v1api/model_raw_credentials.go | 6 +- services/redis/v1api/model_restore.go | 6 +- services/redis/v1api/model_schema.go | 6 +- .../v1api/model_trigger_restore_response.go | 6 +- .../model_update_backups_config_payload.go | 6 +- .../model_update_backups_config_response.go | 6 +- services/redis/v1api/response.go | 6 +- services/redis/v1api/utils.go | 6 +- services/redis/v2api/api_default.go | 684 +++++++++++++++++- services/redis/v2api/api_default_mock.go | 75 +- services/redis/v2api/client.go | 8 +- services/redis/v2api/configuration.go | 6 +- services/redis/v2api/model_backup.go | 6 +- .../model_create_backup_response_item.go | 6 +- .../v2api/model_create_credentials_payload.go | 6 +- .../v2api/model_create_instance_payload.go | 6 +- .../v2api/model_create_instance_response.go | 6 +- services/redis/v2api/model_credentials.go | 6 +- .../v2api/model_credentials_list_item.go | 6 +- .../redis/v2api/model_credentials_response.go | 6 +- services/redis/v2api/model_error.go | 6 +- .../redis/v2api/model_get_metrics_response.go | 6 +- .../redis/v2api/model_get_updates_response.go | 197 +++++ services/redis/v2api/model_instance.go | 59 +- .../v2api/model_instance_instance_status.go | 123 ++++ .../v2api/model_instance_last_operation.go | 6 +- .../model_instance_last_operation_state.go | 6 +- .../model_instance_last_operation_type.go | 6 +- .../redis/v2api/model_instance_parameters.go | 6 +- ...tance_parameters_lazyfree_lazy_eviction.go | 6 +- ...nstance_parameters_lazyfree_lazy_expire.go | 6 +- ...el_instance_parameters_maxmemory_policy.go | 6 +- ...model_instance_parameters_tls_protocols.go | 6 +- services/redis/v2api/model_instance_schema.go | 6 +- services/redis/v2api/model_instance_status.go | 8 +- .../v2api/model_list_credentials_response.go | 6 +- .../v2api/model_list_instances_response.go | 6 +- .../v2api/model_list_offerings_response.go | 6 +- .../v2api/model_list_restores_response.go | 6 +- services/redis/v2api/model_offering.go | 6 +- .../model_partial_update_instance_payload.go | 6 +- services/redis/v2api/model_plan.go | 6 +- services/redis/v2api/model_raw_credentials.go | 6 +- services/redis/v2api/model_restore.go | 6 +- services/redis/v2api/model_schema.go | 6 +- .../v2api/model_trigger_restore_response.go | 6 +- .../model_update_backups_config_payload.go | 6 +- .../model_update_backups_config_response.go | 6 +- .../model_update_updates_settings_payload.go | 167 +++++ .../model_update_updates_settings_response.go | 167 +++++ services/redis/v2api/response.go | 6 +- services/redis/v2api/utils.go | 6 +- 85 files changed, 1658 insertions(+), 284 deletions(-) create mode 100644 services/redis/v2api/model_get_updates_response.go create mode 100644 services/redis/v2api/model_instance_instance_status.go create mode 100644 services/redis/v2api/model_update_updates_settings_payload.go create mode 100644 services/redis/v2api/model_update_updates_settings_response.go diff --git a/services/redis/oas_commit b/services/redis/oas_commit index 71a76821d4..6a8ba08d49 100644 --- a/services/redis/oas_commit +++ b/services/redis/oas_commit @@ -1 +1 @@ -0afa5e4924e6bf230fdade5cb294ecfd97dd63e5 +ef9232ba8d49c72fc3397a365b09ca1a8205b25e diff --git a/services/redis/v1api/api_default.go b/services/redis/v1api/api_default.go index f647186d22..9fbf4d1fb9 100644 --- a/services/redis/v1api/api_default.go +++ b/services/redis/v1api/api_default.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/api_default_mock.go b/services/redis/v1api/api_default_mock.go index 1633e076ee..21fe67ba7c 100644 --- a/services/redis/v1api/api_default_mock.go +++ b/services/redis/v1api/api_default_mock.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/client.go b/services/redis/v1api/client.go index 5665648177..94e9873340 100644 --- a/services/redis/v1api/client.go +++ b/services/redis/v1api/client.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the [DEPRECATED] STACKIT Redis API API v1.2.0 +// APIClient manages communication with the STACKIT Redis API (Deprecated) API v1.2.2 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/redis/v1api/configuration.go b/services/redis/v1api/configuration.go index 71ececbf56..4a442d7296 100644 --- a/services/redis/v1api/configuration.go +++ b/services/redis/v1api/configuration.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_backup.go b/services/redis/v1api/model_backup.go index 7506d2b3ee..7d97fa6125 100644 --- a/services/redis/v1api/model_backup.go +++ b/services/redis/v1api/model_backup.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_create_backup_response_item.go b/services/redis/v1api/model_create_backup_response_item.go index a55d923a32..e2138c5435 100644 --- a/services/redis/v1api/model_create_backup_response_item.go +++ b/services/redis/v1api/model_create_backup_response_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_create_credentials_payload.go b/services/redis/v1api/model_create_credentials_payload.go index 020a6c4178..bedd963f32 100644 --- a/services/redis/v1api/model_create_credentials_payload.go +++ b/services/redis/v1api/model_create_credentials_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_create_instance_payload.go b/services/redis/v1api/model_create_instance_payload.go index 0f27276306..7101c7eb09 100644 --- a/services/redis/v1api/model_create_instance_payload.go +++ b/services/redis/v1api/model_create_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_create_instance_response.go b/services/redis/v1api/model_create_instance_response.go index 841d610aaa..165fde188d 100644 --- a/services/redis/v1api/model_create_instance_response.go +++ b/services/redis/v1api/model_create_instance_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_credentials.go b/services/redis/v1api/model_credentials.go index 2306f515b7..4571b998b5 100644 --- a/services/redis/v1api/model_credentials.go +++ b/services/redis/v1api/model_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_credentials_list_item.go b/services/redis/v1api/model_credentials_list_item.go index 80def4ebf8..55e0953ed6 100644 --- a/services/redis/v1api/model_credentials_list_item.go +++ b/services/redis/v1api/model_credentials_list_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_credentials_response.go b/services/redis/v1api/model_credentials_response.go index 1cd73f3e9e..26176242d3 100644 --- a/services/redis/v1api/model_credentials_response.go +++ b/services/redis/v1api/model_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_error.go b/services/redis/v1api/model_error.go index 427f609f9b..bd04027595 100644 --- a/services/redis/v1api/model_error.go +++ b/services/redis/v1api/model_error.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_get_metrics_response.go b/services/redis/v1api/model_get_metrics_response.go index 54b986d078..92b75ebbfc 100644 --- a/services/redis/v1api/model_get_metrics_response.go +++ b/services/redis/v1api/model_get_metrics_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance.go b/services/redis/v1api/model_instance.go index 592825c821..1e685bc6a5 100644 --- a/services/redis/v1api/model_instance.go +++ b/services/redis/v1api/model_instance.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_last_operation.go b/services/redis/v1api/model_instance_last_operation.go index 680d0d261d..a4cc7d0d3c 100644 --- a/services/redis/v1api/model_instance_last_operation.go +++ b/services/redis/v1api/model_instance_last_operation.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_last_operation_state.go b/services/redis/v1api/model_instance_last_operation_state.go index 905a30cc6f..624e36ec08 100644 --- a/services/redis/v1api/model_instance_last_operation_state.go +++ b/services/redis/v1api/model_instance_last_operation_state.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_last_operation_type.go b/services/redis/v1api/model_instance_last_operation_type.go index adf018c240..f0106d2911 100644 --- a/services/redis/v1api/model_instance_last_operation_type.go +++ b/services/redis/v1api/model_instance_last_operation_type.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_parameters.go b/services/redis/v1api/model_instance_parameters.go index 3a847d51e1..95a745b4e5 100644 --- a/services/redis/v1api/model_instance_parameters.go +++ b/services/redis/v1api/model_instance_parameters.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_parameters_lazyfree_lazy_eviction.go b/services/redis/v1api/model_instance_parameters_lazyfree_lazy_eviction.go index 521b374581..faf3c791d5 100644 --- a/services/redis/v1api/model_instance_parameters_lazyfree_lazy_eviction.go +++ b/services/redis/v1api/model_instance_parameters_lazyfree_lazy_eviction.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_parameters_lazyfree_lazy_expire.go b/services/redis/v1api/model_instance_parameters_lazyfree_lazy_expire.go index b81af05a46..a116de977e 100644 --- a/services/redis/v1api/model_instance_parameters_lazyfree_lazy_expire.go +++ b/services/redis/v1api/model_instance_parameters_lazyfree_lazy_expire.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_parameters_maxmemory_policy.go b/services/redis/v1api/model_instance_parameters_maxmemory_policy.go index fc80ab16cd..050ec4c97c 100644 --- a/services/redis/v1api/model_instance_parameters_maxmemory_policy.go +++ b/services/redis/v1api/model_instance_parameters_maxmemory_policy.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_parameters_tls_protocols.go b/services/redis/v1api/model_instance_parameters_tls_protocols.go index ed08663e82..afec3856cb 100644 --- a/services/redis/v1api/model_instance_parameters_tls_protocols.go +++ b/services/redis/v1api/model_instance_parameters_tls_protocols.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_schema.go b/services/redis/v1api/model_instance_schema.go index 8361dd0334..fec0aae566 100644 --- a/services/redis/v1api/model_instance_schema.go +++ b/services/redis/v1api/model_instance_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_instance_status.go b/services/redis/v1api/model_instance_status.go index a7ba8e6f5a..efa19efaca 100644 --- a/services/redis/v1api/model_instance_status.go +++ b/services/redis/v1api/model_instance_status.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_list_credentials_response.go b/services/redis/v1api/model_list_credentials_response.go index f2770a4f99..513c555615 100644 --- a/services/redis/v1api/model_list_credentials_response.go +++ b/services/redis/v1api/model_list_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_list_instances_response.go b/services/redis/v1api/model_list_instances_response.go index c6d2a4781c..1a885260cd 100644 --- a/services/redis/v1api/model_list_instances_response.go +++ b/services/redis/v1api/model_list_instances_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_list_offerings_response.go b/services/redis/v1api/model_list_offerings_response.go index fcb182bda5..ca12188649 100644 --- a/services/redis/v1api/model_list_offerings_response.go +++ b/services/redis/v1api/model_list_offerings_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_list_restores_response.go b/services/redis/v1api/model_list_restores_response.go index 0893e6d382..727c144933 100644 --- a/services/redis/v1api/model_list_restores_response.go +++ b/services/redis/v1api/model_list_restores_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_offering.go b/services/redis/v1api/model_offering.go index b35a5b0b13..8ba1fd1eef 100644 --- a/services/redis/v1api/model_offering.go +++ b/services/redis/v1api/model_offering.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_partial_update_instance_payload.go b/services/redis/v1api/model_partial_update_instance_payload.go index 585bfb5312..204c38a4f6 100644 --- a/services/redis/v1api/model_partial_update_instance_payload.go +++ b/services/redis/v1api/model_partial_update_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_plan.go b/services/redis/v1api/model_plan.go index 15994e6555..17c80e93cb 100644 --- a/services/redis/v1api/model_plan.go +++ b/services/redis/v1api/model_plan.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_raw_credentials.go b/services/redis/v1api/model_raw_credentials.go index c42e16c9dc..32b6db795f 100644 --- a/services/redis/v1api/model_raw_credentials.go +++ b/services/redis/v1api/model_raw_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_restore.go b/services/redis/v1api/model_restore.go index 0e1708da2c..b06612bb68 100644 --- a/services/redis/v1api/model_restore.go +++ b/services/redis/v1api/model_restore.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_schema.go b/services/redis/v1api/model_schema.go index b794f9da82..0049ac48c0 100644 --- a/services/redis/v1api/model_schema.go +++ b/services/redis/v1api/model_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_trigger_restore_response.go b/services/redis/v1api/model_trigger_restore_response.go index 3aa1203e37..4bc6a9d7ef 100644 --- a/services/redis/v1api/model_trigger_restore_response.go +++ b/services/redis/v1api/model_trigger_restore_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_update_backups_config_payload.go b/services/redis/v1api/model_update_backups_config_payload.go index 842db51399..723e712b2b 100644 --- a/services/redis/v1api/model_update_backups_config_payload.go +++ b/services/redis/v1api/model_update_backups_config_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/model_update_backups_config_response.go b/services/redis/v1api/model_update_backups_config_response.go index 170c1d53ba..0b611c668b 100644 --- a/services/redis/v1api/model_update_backups_config_response.go +++ b/services/redis/v1api/model_update_backups_config_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/response.go b/services/redis/v1api/response.go index af4427c297..70c1e637d3 100644 --- a/services/redis/v1api/response.go +++ b/services/redis/v1api/response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v1api/utils.go b/services/redis/v1api/utils.go index ac27fcd01d..02224e5b93 100644 --- a/services/redis/v1api/utils.go +++ b/services/redis/v1api/utils.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ This global API version is deprecated. Use the regional v2 API with a region in the request path. Planned retirement: 1 October 2027 at 00:00 UTC. WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This global API is deprecated. Planned retirement: 01.10.2027. Use the regional v2 API. This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.2.0 +API version: 1.2.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/api_default.go b/services/redis/v2api/api_default.go index c7bc85cc3b..becb6e4866 100644 --- a/services/redis/v2api/api_default.go +++ b/services/redis/v2api/api_default.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -198,6 +198,26 @@ type DefaultAPI interface { // Deprecated GetMetricsExecute(r ApiGetMetricsRequest) (*GetMetricsResponse, error) + /* + GetUpdates get update settings + + Returns whether automatic updates are enabled and the number of available updates. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiGetUpdatesRequest + + Deprecated + */ + GetUpdates(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetUpdatesRequest + + // GetUpdatesExecute executes the request + // @return GetUpdatesResponse + // Deprecated + GetUpdatesExecute(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) + /* ListBackups get latest backup information for provided instanceId @@ -367,6 +387,26 @@ type DefaultAPI interface { // Deprecated TriggerRestoreExecute(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, error) + /* + TriggerUpdate start updates + + Starts all available updates asynchronously using the instance's service offering. No request body is required. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiTriggerUpdateRequest + + Deprecated + */ + TriggerUpdate(ctx context.Context, projectId string, regionId string, instanceId string) ApiTriggerUpdateRequest + + // TriggerUpdateExecute executes the request + // @return CreateInstanceResponse + // Deprecated + TriggerUpdateExecute(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) + /* UpdateBackupsConfig backups configuration update @@ -386,6 +426,26 @@ type DefaultAPI interface { // @return UpdateBackupsConfigResponse // Deprecated UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) + + /* + UpdateUpdatesSettings update update settings + + Enables or disables automatic updates. The platform operator must allow changing this setting. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiUpdateUpdatesSettingsRequest + + Deprecated + */ + UpdateUpdatesSettings(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateUpdatesSettingsRequest + + // UpdateUpdatesSettingsExecute executes the request + // @return UpdateUpdatesSettingsResponse + // Deprecated + UpdateUpdatesSettingsExecute(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) } // DefaultAPIService DefaultAPI service @@ -1839,6 +1899,187 @@ func (a *DefaultAPIService) GetMetricsExecute(r ApiGetMetricsRequest) (*GetMetri return localVarReturnValue, nil } +type ApiGetUpdatesRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + instanceId string +} + +func (r ApiGetUpdatesRequest) Execute() (*GetUpdatesResponse, error) { + return r.ApiService.GetUpdatesExecute(r) +} + +/* +GetUpdates get update settings + +Returns whether automatic updates are enabled and the number of available updates. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiGetUpdatesRequest + +Deprecated +*/ +func (a *DefaultAPIService) GetUpdates(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetUpdatesRequest { + return ApiGetUpdatesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return GetUpdatesResponse +// +// Deprecated +func (a *DefaultAPIService) GetUpdatesExecute(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetUpdatesResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetUpdates") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/updates" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -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 := a.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 := a.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{ + 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 localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + 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 + } + if localVarHTTPResponse.StatusCode == 409 { + 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 == 500 { + 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 + } + + err = a.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 +} + type ApiListBackupsRequest struct { ctx context.Context ApiService DefaultAPI @@ -3287,40 +3528,33 @@ func (a *DefaultAPIService) TriggerRestoreExecute(r ApiTriggerRestoreRequest) (* return localVarReturnValue, nil } -type ApiUpdateBackupsConfigRequest struct { - ctx context.Context - ApiService DefaultAPI - projectId string - regionId string - instanceId string - updateBackupsConfigPayload *UpdateBackupsConfigPayload -} - -// Parameters for the requested backup configuration update -func (r ApiUpdateBackupsConfigRequest) UpdateBackupsConfigPayload(updateBackupsConfigPayload UpdateBackupsConfigPayload) ApiUpdateBackupsConfigRequest { - r.updateBackupsConfigPayload = &updateBackupsConfigPayload - return r +type ApiTriggerUpdateRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + instanceId string } -func (r ApiUpdateBackupsConfigRequest) Execute() (*UpdateBackupsConfigResponse, error) { - return r.ApiService.UpdateBackupsConfigExecute(r) +func (r ApiTriggerUpdateRequest) Execute() (*CreateInstanceResponse, error) { + return r.ApiService.TriggerUpdateExecute(r) } /* -UpdateBackupsConfig backups configuration update +TriggerUpdate start updates -Update the configuration for backups for your instance. +Starts all available updates asynchronously using the instance's service offering. No request body is required. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project id on which user has permissions @param regionId region in which the project resides @param instanceId Instance id - @return ApiUpdateBackupsConfigRequest + @return ApiTriggerUpdateRequest Deprecated */ -func (a *DefaultAPIService) UpdateBackupsConfig(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateBackupsConfigRequest { - return ApiUpdateBackupsConfigRequest{ +func (a *DefaultAPIService) TriggerUpdate(ctx context.Context, projectId string, regionId string, instanceId string) ApiTriggerUpdateRequest { + return ApiTriggerUpdateRequest{ ApiService: a, ctx: ctx, projectId: projectId, @@ -3331,23 +3565,23 @@ func (a *DefaultAPIService) UpdateBackupsConfig(ctx context.Context, projectId s // Execute executes the request // -// @return UpdateBackupsConfigResponse +// @return CreateInstanceResponse // // Deprecated -func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) { +func (a *DefaultAPIService) TriggerUpdateExecute(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) { var ( - localVarHTTPMethod = http.MethodPatch + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *UpdateBackupsConfigResponse + localVarReturnValue *CreateInstanceResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateBackupsConfig") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.TriggerUpdate") if err != nil { return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} } - localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config" + localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/updates/start" localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) @@ -3355,12 +3589,9 @@ func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigR localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.updateBackupsConfigPayload == nil { - return localVarReturnValue, reportError("updateBackupsConfigPayload is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -3376,8 +3607,6 @@ func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.updateBackupsConfigPayload req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err @@ -3443,6 +3672,391 @@ func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigR newErr.Model = v return localVarReturnValue, newErr } + if localVarHTTPResponse.StatusCode == 409 { + 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 == 500 { + 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 + } + + err = a.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 +} + +type ApiUpdateBackupsConfigRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + instanceId string + updateBackupsConfigPayload *UpdateBackupsConfigPayload +} + +// Parameters for the requested backup configuration update +func (r ApiUpdateBackupsConfigRequest) UpdateBackupsConfigPayload(updateBackupsConfigPayload UpdateBackupsConfigPayload) ApiUpdateBackupsConfigRequest { + r.updateBackupsConfigPayload = &updateBackupsConfigPayload + return r +} + +func (r ApiUpdateBackupsConfigRequest) Execute() (*UpdateBackupsConfigResponse, error) { + return r.ApiService.UpdateBackupsConfigExecute(r) +} + +/* +UpdateBackupsConfig backups configuration update + +Update the configuration for backups for your instance. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiUpdateBackupsConfigRequest + +Deprecated +*/ +func (a *DefaultAPIService) UpdateBackupsConfig(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateBackupsConfigRequest { + return ApiUpdateBackupsConfigRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return UpdateBackupsConfigResponse +// +// Deprecated +func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateBackupsConfigResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateBackupsConfig") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -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.updateBackupsConfigPayload == nil { + return localVarReturnValue, reportError("updateBackupsConfigPayload 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.updateBackupsConfigPayload + req, err := a.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 := a.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{ + 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 localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + 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 + } + 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 localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + } + return localVarReturnValue, newErr + } + + err = a.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 +} + +type ApiUpdateUpdatesSettingsRequest struct { + ctx context.Context + ApiService DefaultAPI + projectId string + regionId string + instanceId string + updateUpdatesSettingsPayload *UpdateUpdatesSettingsPayload +} + +func (r ApiUpdateUpdatesSettingsRequest) UpdateUpdatesSettingsPayload(updateUpdatesSettingsPayload UpdateUpdatesSettingsPayload) ApiUpdateUpdatesSettingsRequest { + r.updateUpdatesSettingsPayload = &updateUpdatesSettingsPayload + return r +} + +func (r ApiUpdateUpdatesSettingsRequest) Execute() (*UpdateUpdatesSettingsResponse, error) { + return r.ApiService.UpdateUpdatesSettingsExecute(r) +} + +/* +UpdateUpdatesSettings update update settings + +Enables or disables automatic updates. The platform operator must allow changing this setting. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param projectId Project id on which user has permissions + @param regionId region in which the project resides + @param instanceId Instance id + @return ApiUpdateUpdatesSettingsRequest + +Deprecated +*/ +func (a *DefaultAPIService) UpdateUpdatesSettings(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateUpdatesSettingsRequest { + return ApiUpdateUpdatesSettingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Execute executes the request +// +// @return UpdateUpdatesSettingsResponse +// +// Deprecated +func (a *DefaultAPIService) UpdateUpdatesSettingsExecute(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateUpdatesSettingsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.UpdateUpdatesSettings") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/updates" + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -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.updateUpdatesSettingsPayload == nil { + return localVarReturnValue, reportError("updateUpdatesSettingsPayload 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.updateUpdatesSettingsPayload + req, err := a.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 := a.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{ + 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 localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + 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 + } + if localVarHTTPResponse.StatusCode == 409 { + 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 == 500 { var v Error err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/services/redis/v2api/api_default_mock.go b/services/redis/v2api/api_default_mock.go index a733ee9db8..7039d6ecb9 100644 --- a/services/redis/v2api/api_default_mock.go +++ b/services/redis/v2api/api_default_mock.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -39,6 +39,8 @@ type DefaultAPIServiceMock struct { GetInstanceExecuteMock *func(r ApiGetInstanceRequest) (*Instance, error) // Deprecated: GetMetricsExecuteMock can be populated to implement the behavior of the GetMetricsExecute function of this mock GetMetricsExecuteMock *func(r ApiGetMetricsRequest) (*GetMetricsResponse, error) + // Deprecated: GetUpdatesExecuteMock can be populated to implement the behavior of the GetUpdatesExecute function of this mock + GetUpdatesExecuteMock *func(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) // Deprecated: ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock ListBackupsExecuteMock *func(r ApiListBackupsRequest) ([]Backup, error) // Deprecated: ListCredentialsExecuteMock can be populated to implement the behavior of the ListCredentialsExecute function of this mock @@ -57,8 +59,12 @@ type DefaultAPIServiceMock struct { TriggerRestartExecuteMock *func(r ApiTriggerRestartRequest) (*CreateInstanceResponse, error) // Deprecated: TriggerRestoreExecuteMock can be populated to implement the behavior of the TriggerRestoreExecute function of this mock TriggerRestoreExecuteMock *func(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, error) + // Deprecated: TriggerUpdateExecuteMock can be populated to implement the behavior of the TriggerUpdateExecute function of this mock + TriggerUpdateExecuteMock *func(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) // Deprecated: UpdateBackupsConfigExecuteMock can be populated to implement the behavior of the UpdateBackupsConfigExecute function of this mock UpdateBackupsConfigExecuteMock *func(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) + // Deprecated: UpdateUpdatesSettingsExecuteMock can be populated to implement the behavior of the UpdateUpdatesSettingsExecute function of this mock + UpdateUpdatesSettingsExecuteMock *func(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) } // Deprecated @@ -250,6 +256,27 @@ func (a DefaultAPIServiceMock) GetMetricsExecute(r ApiGetMetricsRequest) (*GetMe return (*a.GetMetricsExecuteMock)(r) } +// Deprecated +func (a DefaultAPIServiceMock) GetUpdates(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetUpdatesRequest { + return ApiGetUpdatesRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Deprecated: GetUpdatesExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetUpdatesExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetUpdatesExecute(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) { + if a.GetUpdatesExecuteMock == nil { + var localVarReturnValue *GetUpdatesResponse + return localVarReturnValue, nil + } + + return (*a.GetUpdatesExecuteMock)(r) +} + // Deprecated func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string, regionId string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ @@ -437,6 +464,27 @@ func (a DefaultAPIServiceMock) TriggerRestoreExecute(r ApiTriggerRestoreRequest) return (*a.TriggerRestoreExecuteMock)(r) } +// Deprecated +func (a DefaultAPIServiceMock) TriggerUpdate(ctx context.Context, projectId string, regionId string, instanceId string) ApiTriggerUpdateRequest { + return ApiTriggerUpdateRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Deprecated: TriggerUpdateExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the TriggerUpdateExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) TriggerUpdateExecute(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) { + if a.TriggerUpdateExecuteMock == nil { + var localVarReturnValue *CreateInstanceResponse + return localVarReturnValue, nil + } + + return (*a.TriggerUpdateExecuteMock)(r) +} + // Deprecated func (a DefaultAPIServiceMock) UpdateBackupsConfig(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateBackupsConfigRequest { return ApiUpdateBackupsConfigRequest{ @@ -457,3 +505,24 @@ func (a DefaultAPIServiceMock) UpdateBackupsConfigExecute(r ApiUpdateBackupsConf return (*a.UpdateBackupsConfigExecuteMock)(r) } + +// Deprecated +func (a DefaultAPIServiceMock) UpdateUpdatesSettings(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateUpdatesSettingsRequest { + return ApiUpdateUpdatesSettingsRequest{ + ApiService: a, + ctx: ctx, + projectId: projectId, + regionId: regionId, + instanceId: instanceId, + } +} + +// Deprecated: UpdateUpdatesSettingsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the UpdateUpdatesSettingsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) UpdateUpdatesSettingsExecute(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) { + if a.UpdateUpdatesSettingsExecuteMock == nil { + var localVarReturnValue *UpdateUpdatesSettingsResponse + return localVarReturnValue, nil + } + + return (*a.UpdateUpdatesSettingsExecuteMock)(r) +} diff --git a/services/redis/v2api/client.go b/services/redis/v2api/client.go index dbf2ae3a43..90bdaa9770 100644 --- a/services/redis/v2api/client.go +++ b/services/redis/v2api/client.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -42,7 +42,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the [DEPRECATED] STACKIT Redis API API v2.1.0 +// APIClient manages communication with the STACKIT Redis API (Deprecated) API v2.1.2 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/redis/v2api/configuration.go b/services/redis/v2api/configuration.go index 303d74eb00..2c458b1a01 100644 --- a/services/redis/v2api/configuration.go +++ b/services/redis/v2api/configuration.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_backup.go b/services/redis/v2api/model_backup.go index f45ae37fb7..bf97d7465f 100644 --- a/services/redis/v2api/model_backup.go +++ b/services/redis/v2api/model_backup.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_create_backup_response_item.go b/services/redis/v2api/model_create_backup_response_item.go index d45f5df625..368cff6122 100644 --- a/services/redis/v2api/model_create_backup_response_item.go +++ b/services/redis/v2api/model_create_backup_response_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_create_credentials_payload.go b/services/redis/v2api/model_create_credentials_payload.go index a427496d51..db8eb0a1df 100644 --- a/services/redis/v2api/model_create_credentials_payload.go +++ b/services/redis/v2api/model_create_credentials_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_create_instance_payload.go b/services/redis/v2api/model_create_instance_payload.go index f06f5e79c5..00ee6b4bb5 100644 --- a/services/redis/v2api/model_create_instance_payload.go +++ b/services/redis/v2api/model_create_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_create_instance_response.go b/services/redis/v2api/model_create_instance_response.go index be3fdae48f..35ec27d153 100644 --- a/services/redis/v2api/model_create_instance_response.go +++ b/services/redis/v2api/model_create_instance_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_credentials.go b/services/redis/v2api/model_credentials.go index 8d3b990607..8c81ad8933 100644 --- a/services/redis/v2api/model_credentials.go +++ b/services/redis/v2api/model_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_credentials_list_item.go b/services/redis/v2api/model_credentials_list_item.go index c7064550a5..4f16c44d56 100644 --- a/services/redis/v2api/model_credentials_list_item.go +++ b/services/redis/v2api/model_credentials_list_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_credentials_response.go b/services/redis/v2api/model_credentials_response.go index cb6462e16c..40ffd3076d 100644 --- a/services/redis/v2api/model_credentials_response.go +++ b/services/redis/v2api/model_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_error.go b/services/redis/v2api/model_error.go index 3f1b2185ef..9e449dd0ac 100644 --- a/services/redis/v2api/model_error.go +++ b/services/redis/v2api/model_error.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_get_metrics_response.go b/services/redis/v2api/model_get_metrics_response.go index b710494ae8..1a7b5096c5 100644 --- a/services/redis/v2api/model_get_metrics_response.go +++ b/services/redis/v2api/model_get_metrics_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_get_updates_response.go b/services/redis/v2api/model_get_updates_response.go new file mode 100644 index 0000000000..23757cce0e --- /dev/null +++ b/services/redis/v2api/model_get_updates_response.go @@ -0,0 +1,197 @@ +/* +STACKIT Redis API (Deprecated) + +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" + "fmt" +) + +// checks if the GetUpdatesResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetUpdatesResponse{} + +// GetUpdatesResponse struct for GetUpdatesResponse +type GetUpdatesResponse struct { + // Whether automatic updates are allowed. + AutomaticUpdatesEnabled bool `json:"automaticUpdatesEnabled"` + // Number of available update components. + AvailableUpdates int32 `json:"availableUpdates"` + AdditionalProperties map[string]interface{} +} + +type _GetUpdatesResponse GetUpdatesResponse + +// NewGetUpdatesResponse instantiates a new GetUpdatesResponse 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 NewGetUpdatesResponse(automaticUpdatesEnabled bool, availableUpdates int32) *GetUpdatesResponse { + this := GetUpdatesResponse{} + this.AutomaticUpdatesEnabled = automaticUpdatesEnabled + this.AvailableUpdates = availableUpdates + return &this +} + +// NewGetUpdatesResponseWithDefaults instantiates a new GetUpdatesResponse 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 NewGetUpdatesResponseWithDefaults() *GetUpdatesResponse { + this := GetUpdatesResponse{} + return &this +} + +// GetAutomaticUpdatesEnabled returns the AutomaticUpdatesEnabled field value +func (o *GetUpdatesResponse) GetAutomaticUpdatesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutomaticUpdatesEnabled +} + +// GetAutomaticUpdatesEnabledOk returns a tuple with the AutomaticUpdatesEnabled field value +// and a boolean to check if the value has been set. +func (o *GetUpdatesResponse) GetAutomaticUpdatesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutomaticUpdatesEnabled, true +} + +// SetAutomaticUpdatesEnabled sets field value +func (o *GetUpdatesResponse) SetAutomaticUpdatesEnabled(v bool) { + o.AutomaticUpdatesEnabled = v +} + +// GetAvailableUpdates returns the AvailableUpdates field value +func (o *GetUpdatesResponse) GetAvailableUpdates() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.AvailableUpdates +} + +// GetAvailableUpdatesOk returns a tuple with the AvailableUpdates field value +// and a boolean to check if the value has been set. +func (o *GetUpdatesResponse) GetAvailableUpdatesOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.AvailableUpdates, true +} + +// SetAvailableUpdates sets field value +func (o *GetUpdatesResponse) SetAvailableUpdates(v int32) { + o.AvailableUpdates = v +} + +func (o GetUpdatesResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetUpdatesResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["automaticUpdatesEnabled"] = o.AutomaticUpdatesEnabled + toSerialize["availableUpdates"] = o.AvailableUpdates + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GetUpdatesResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "automaticUpdatesEnabled", + "availableUpdates", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetUpdatesResponse := _GetUpdatesResponse{} + + err = json.Unmarshal(data, &varGetUpdatesResponse) + + if err != nil { + return err + } + + *o = GetUpdatesResponse(varGetUpdatesResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "automaticUpdatesEnabled") + delete(additionalProperties, "availableUpdates") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetUpdatesResponse struct { + value *GetUpdatesResponse + isSet bool +} + +func (v NullableGetUpdatesResponse) Get() *GetUpdatesResponse { + return v.value +} + +func (v *NullableGetUpdatesResponse) Set(val *GetUpdatesResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetUpdatesResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetUpdatesResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetUpdatesResponse(val *GetUpdatesResponse) *NullableGetUpdatesResponse { + return &NullableGetUpdatesResponse{value: val, isSet: true} +} + +func (v NullableGetUpdatesResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetUpdatesResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v2api/model_instance.go b/services/redis/v2api/model_instance.go index 45c95cc919..9142e09fa3 100644 --- a/services/redis/v2api/model_instance.go +++ b/services/redis/v2api/model_instance.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,15 @@ var _ MappedNullable = &Instance{} // Instance struct for Instance type Instance struct { - CfGuid string `json:"cfGuid"` - CfOrganizationGuid string `json:"cfOrganizationGuid"` - CfSpaceGuid string `json:"cfSpaceGuid"` - DashboardUrl string `json:"dashboardUrl"` - ImageUrl string `json:"imageUrl"` - InstanceId *string `json:"instanceId,omitempty"` - LastOperation InstanceLastOperation `json:"lastOperation"` - Name string `json:"name"` + CfGuid string `json:"cfGuid"` + CfOrganizationGuid string `json:"cfOrganizationGuid"` + CfSpaceGuid string `json:"cfSpaceGuid"` + DashboardUrl string `json:"dashboardUrl"` + ImageUrl string `json:"imageUrl"` + InstanceId *string `json:"instanceId,omitempty"` + InstanceStatus *InstanceInstanceStatus `json:"instanceStatus,omitempty"` + LastOperation InstanceLastOperation `json:"lastOperation"` + Name string `json:"name"` // Deprecated OfferingName string `json:"offeringName"` OfferingVersion string `json:"offeringVersion"` @@ -221,6 +222,38 @@ func (o *Instance) SetInstanceId(v string) { o.InstanceId = &v } +// GetInstanceStatus returns the InstanceStatus field value if set, zero value otherwise. +func (o *Instance) GetInstanceStatus() InstanceInstanceStatus { + if o == nil || IsNil(o.InstanceStatus) { + var ret InstanceInstanceStatus + return ret + } + return *o.InstanceStatus +} + +// GetInstanceStatusOk returns a tuple with the InstanceStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Instance) GetInstanceStatusOk() (*InstanceInstanceStatus, bool) { + if o == nil || IsNil(o.InstanceStatus) { + return nil, false + } + return o.InstanceStatus, true +} + +// HasInstanceStatus returns a boolean if a field has been set. +func (o *Instance) HasInstanceStatus() bool { + if o != nil && !IsNil(o.InstanceStatus) { + return true + } + + return false +} + +// SetInstanceStatus gets a reference to the given InstanceInstanceStatus and assigns it to the InstanceStatus field. +func (o *Instance) SetInstanceStatus(v InstanceInstanceStatus) { + o.InstanceStatus = &v +} + // GetLastOperation returns the LastOperation field value func (o *Instance) GetLastOperation() InstanceLastOperation { if o == nil { @@ -442,6 +475,9 @@ func (o Instance) ToMap() (map[string]interface{}, error) { if !IsNil(o.InstanceId) { toSerialize["instanceId"] = o.InstanceId } + if !IsNil(o.InstanceStatus) { + toSerialize["instanceStatus"] = o.InstanceStatus + } toSerialize["lastOperation"] = o.LastOperation toSerialize["name"] = o.Name toSerialize["offeringName"] = o.OfferingName @@ -512,6 +548,7 @@ func (o *Instance) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "dashboardUrl") delete(additionalProperties, "imageUrl") delete(additionalProperties, "instanceId") + delete(additionalProperties, "instanceStatus") delete(additionalProperties, "lastOperation") delete(additionalProperties, "name") delete(additionalProperties, "offeringName") diff --git a/services/redis/v2api/model_instance_instance_status.go b/services/redis/v2api/model_instance_instance_status.go new file mode 100644 index 0000000000..b2d820b70a --- /dev/null +++ b/services/redis/v2api/model_instance_instance_status.go @@ -0,0 +1,123 @@ +/* +STACKIT Redis API (Deprecated) + +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" + "fmt" +) + +// InstanceInstanceStatus Current state of a service instance +type InstanceInstanceStatus string + +// List of Instance_instanceStatus +const ( + INSTANCEINSTANCESTATUS_PROVISIONED InstanceInstanceStatus = "provisioned" + INSTANCEINSTANCESTATUS_AVAILABLE InstanceInstanceStatus = "available" + INSTANCEINSTANCESTATUS_DELETED InstanceInstanceStatus = "deleted" + INSTANCEINSTANCESTATUS_DEPLOYING InstanceInstanceStatus = "deploying" + INSTANCEINSTANCESTATUS_FAILED InstanceInstanceStatus = "failed" + INSTANCEINSTANCESTATUS_STOPPED InstanceInstanceStatus = "stopped" + INSTANCEINSTANCESTATUS_UNKNOWN InstanceInstanceStatus = "unknown" + INSTANCEINSTANCESTATUS_UNKNOWN_DEFAULT_OPEN_API InstanceInstanceStatus = "unknown_default_open_api" +) + +// All allowed values of InstanceInstanceStatus enum +var AllowedInstanceInstanceStatusEnumValues = []InstanceInstanceStatus{ + "provisioned", + "available", + "deleted", + "deploying", + "failed", + "stopped", + "unknown", + "unknown_default_open_api", +} + +func (v *InstanceInstanceStatus) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := InstanceInstanceStatus(value) + for _, existing := range AllowedInstanceInstanceStatusEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = INSTANCEINSTANCESTATUS_UNKNOWN_DEFAULT_OPEN_API + return nil +} + +// NewInstanceInstanceStatusFromValue returns a pointer to a valid InstanceInstanceStatus +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewInstanceInstanceStatusFromValue(v string) (*InstanceInstanceStatus, error) { + ev := InstanceInstanceStatus(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for InstanceInstanceStatus: valid values are %v", v, AllowedInstanceInstanceStatusEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v InstanceInstanceStatus) IsValid() bool { + for _, existing := range AllowedInstanceInstanceStatusEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Instance_instanceStatus value +func (v InstanceInstanceStatus) Ptr() *InstanceInstanceStatus { + return &v +} + +type NullableInstanceInstanceStatus struct { + value *InstanceInstanceStatus + isSet bool +} + +func (v NullableInstanceInstanceStatus) Get() *InstanceInstanceStatus { + return v.value +} + +func (v *NullableInstanceInstanceStatus) Set(val *InstanceInstanceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableInstanceInstanceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableInstanceInstanceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInstanceInstanceStatus(val *InstanceInstanceStatus) *NullableInstanceInstanceStatus { + return &NullableInstanceInstanceStatus{value: val, isSet: true} +} + +func (v NullableInstanceInstanceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInstanceInstanceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v2api/model_instance_last_operation.go b/services/redis/v2api/model_instance_last_operation.go index e0e49f164d..1c6524e47e 100644 --- a/services/redis/v2api/model_instance_last_operation.go +++ b/services/redis/v2api/model_instance_last_operation.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_last_operation_state.go b/services/redis/v2api/model_instance_last_operation_state.go index 7c441bb915..2151507928 100644 --- a/services/redis/v2api/model_instance_last_operation_state.go +++ b/services/redis/v2api/model_instance_last_operation_state.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_last_operation_type.go b/services/redis/v2api/model_instance_last_operation_type.go index aef4fc2f00..b332190ad5 100644 --- a/services/redis/v2api/model_instance_last_operation_type.go +++ b/services/redis/v2api/model_instance_last_operation_type.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_parameters.go b/services/redis/v2api/model_instance_parameters.go index 9b5e40b537..756ec75b67 100644 --- a/services/redis/v2api/model_instance_parameters.go +++ b/services/redis/v2api/model_instance_parameters.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_parameters_lazyfree_lazy_eviction.go b/services/redis/v2api/model_instance_parameters_lazyfree_lazy_eviction.go index 864b0ce1aa..fe3b40543c 100644 --- a/services/redis/v2api/model_instance_parameters_lazyfree_lazy_eviction.go +++ b/services/redis/v2api/model_instance_parameters_lazyfree_lazy_eviction.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_parameters_lazyfree_lazy_expire.go b/services/redis/v2api/model_instance_parameters_lazyfree_lazy_expire.go index 47f65628b7..043b1cd40a 100644 --- a/services/redis/v2api/model_instance_parameters_lazyfree_lazy_expire.go +++ b/services/redis/v2api/model_instance_parameters_lazyfree_lazy_expire.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_parameters_maxmemory_policy.go b/services/redis/v2api/model_instance_parameters_maxmemory_policy.go index 21caa70239..0c5225655e 100644 --- a/services/redis/v2api/model_instance_parameters_maxmemory_policy.go +++ b/services/redis/v2api/model_instance_parameters_maxmemory_policy.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_parameters_tls_protocols.go b/services/redis/v2api/model_instance_parameters_tls_protocols.go index 99f80fd004..f85a890363 100644 --- a/services/redis/v2api/model_instance_parameters_tls_protocols.go +++ b/services/redis/v2api/model_instance_parameters_tls_protocols.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_schema.go b/services/redis/v2api/model_instance_schema.go index cbf3ab87f0..8d94070613 100644 --- a/services/redis/v2api/model_instance_schema.go +++ b/services/redis/v2api/model_instance_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_instance_status.go b/services/redis/v2api/model_instance_status.go index dbece8f312..4ef532f4dd 100644 --- a/services/redis/v2api/model_instance_status.go +++ b/services/redis/v2api/model_instance_status.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// InstanceStatus the model 'InstanceStatus' +// InstanceStatus State of the last operation and this instance type InstanceStatus string // List of Instance_status diff --git a/services/redis/v2api/model_list_credentials_response.go b/services/redis/v2api/model_list_credentials_response.go index 219fab8268..4a9d734cc5 100644 --- a/services/redis/v2api/model_list_credentials_response.go +++ b/services/redis/v2api/model_list_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_list_instances_response.go b/services/redis/v2api/model_list_instances_response.go index 46bc537b9a..0b7720ba27 100644 --- a/services/redis/v2api/model_list_instances_response.go +++ b/services/redis/v2api/model_list_instances_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_list_offerings_response.go b/services/redis/v2api/model_list_offerings_response.go index 374912ab7f..37999f0003 100644 --- a/services/redis/v2api/model_list_offerings_response.go +++ b/services/redis/v2api/model_list_offerings_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_list_restores_response.go b/services/redis/v2api/model_list_restores_response.go index 1e1ba54ca0..14f211739f 100644 --- a/services/redis/v2api/model_list_restores_response.go +++ b/services/redis/v2api/model_list_restores_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_offering.go b/services/redis/v2api/model_offering.go index 34b34aa0aa..a34cc9e524 100644 --- a/services/redis/v2api/model_offering.go +++ b/services/redis/v2api/model_offering.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_partial_update_instance_payload.go b/services/redis/v2api/model_partial_update_instance_payload.go index a828d85120..f6e0474295 100644 --- a/services/redis/v2api/model_partial_update_instance_payload.go +++ b/services/redis/v2api/model_partial_update_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_plan.go b/services/redis/v2api/model_plan.go index 518eb1023a..e9b88e9e9d 100644 --- a/services/redis/v2api/model_plan.go +++ b/services/redis/v2api/model_plan.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_raw_credentials.go b/services/redis/v2api/model_raw_credentials.go index 86e107b5a8..88b59d377c 100644 --- a/services/redis/v2api/model_raw_credentials.go +++ b/services/redis/v2api/model_raw_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_restore.go b/services/redis/v2api/model_restore.go index 02efba5de1..ba5c567b26 100644 --- a/services/redis/v2api/model_restore.go +++ b/services/redis/v2api/model_restore.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_schema.go b/services/redis/v2api/model_schema.go index 567d131561..c128fa284c 100644 --- a/services/redis/v2api/model_schema.go +++ b/services/redis/v2api/model_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_trigger_restore_response.go b/services/redis/v2api/model_trigger_restore_response.go index e5d408f579..2dedb21dae 100644 --- a/services/redis/v2api/model_trigger_restore_response.go +++ b/services/redis/v2api/model_trigger_restore_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_update_backups_config_payload.go b/services/redis/v2api/model_update_backups_config_payload.go index fe8bddbe77..a8fdce46fb 100644 --- a/services/redis/v2api/model_update_backups_config_payload.go +++ b/services/redis/v2api/model_update_backups_config_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_update_backups_config_response.go b/services/redis/v2api/model_update_backups_config_response.go index d52a20ff3f..20b8224469 100644 --- a/services/redis/v2api/model_update_backups_config_response.go +++ b/services/redis/v2api/model_update_backups_config_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/model_update_updates_settings_payload.go b/services/redis/v2api/model_update_updates_settings_payload.go new file mode 100644 index 0000000000..03c4760366 --- /dev/null +++ b/services/redis/v2api/model_update_updates_settings_payload.go @@ -0,0 +1,167 @@ +/* +STACKIT Redis API (Deprecated) + +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateUpdatesSettingsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateUpdatesSettingsPayload{} + +// UpdateUpdatesSettingsPayload struct for UpdateUpdatesSettingsPayload +type UpdateUpdatesSettingsPayload struct { + // Set to true to enable automatic updates or false to disable them. + AutomaticUpdatesEnabled bool `json:"automaticUpdatesEnabled"` + AdditionalProperties map[string]interface{} +} + +type _UpdateUpdatesSettingsPayload UpdateUpdatesSettingsPayload + +// NewUpdateUpdatesSettingsPayload instantiates a new UpdateUpdatesSettingsPayload 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 NewUpdateUpdatesSettingsPayload(automaticUpdatesEnabled bool) *UpdateUpdatesSettingsPayload { + this := UpdateUpdatesSettingsPayload{} + this.AutomaticUpdatesEnabled = automaticUpdatesEnabled + return &this +} + +// NewUpdateUpdatesSettingsPayloadWithDefaults instantiates a new UpdateUpdatesSettingsPayload 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 NewUpdateUpdatesSettingsPayloadWithDefaults() *UpdateUpdatesSettingsPayload { + this := UpdateUpdatesSettingsPayload{} + return &this +} + +// GetAutomaticUpdatesEnabled returns the AutomaticUpdatesEnabled field value +func (o *UpdateUpdatesSettingsPayload) GetAutomaticUpdatesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutomaticUpdatesEnabled +} + +// GetAutomaticUpdatesEnabledOk returns a tuple with the AutomaticUpdatesEnabled field value +// and a boolean to check if the value has been set. +func (o *UpdateUpdatesSettingsPayload) GetAutomaticUpdatesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutomaticUpdatesEnabled, true +} + +// SetAutomaticUpdatesEnabled sets field value +func (o *UpdateUpdatesSettingsPayload) SetAutomaticUpdatesEnabled(v bool) { + o.AutomaticUpdatesEnabled = v +} + +func (o UpdateUpdatesSettingsPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateUpdatesSettingsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["automaticUpdatesEnabled"] = o.AutomaticUpdatesEnabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateUpdatesSettingsPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "automaticUpdatesEnabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateUpdatesSettingsPayload := _UpdateUpdatesSettingsPayload{} + + err = json.Unmarshal(data, &varUpdateUpdatesSettingsPayload) + + if err != nil { + return err + } + + *o = UpdateUpdatesSettingsPayload(varUpdateUpdatesSettingsPayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "automaticUpdatesEnabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateUpdatesSettingsPayload struct { + value *UpdateUpdatesSettingsPayload + isSet bool +} + +func (v NullableUpdateUpdatesSettingsPayload) Get() *UpdateUpdatesSettingsPayload { + return v.value +} + +func (v *NullableUpdateUpdatesSettingsPayload) Set(val *UpdateUpdatesSettingsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateUpdatesSettingsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateUpdatesSettingsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateUpdatesSettingsPayload(val *UpdateUpdatesSettingsPayload) *NullableUpdateUpdatesSettingsPayload { + return &NullableUpdateUpdatesSettingsPayload{value: val, isSet: true} +} + +func (v NullableUpdateUpdatesSettingsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateUpdatesSettingsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v2api/model_update_updates_settings_response.go b/services/redis/v2api/model_update_updates_settings_response.go new file mode 100644 index 0000000000..b645004b65 --- /dev/null +++ b/services/redis/v2api/model_update_updates_settings_response.go @@ -0,0 +1,167 @@ +/* +STACKIT Redis API (Deprecated) + +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v2api + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateUpdatesSettingsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateUpdatesSettingsResponse{} + +// UpdateUpdatesSettingsResponse struct for UpdateUpdatesSettingsResponse +type UpdateUpdatesSettingsResponse struct { + // Whether automatic updates are allowed. + AutomaticUpdatesEnabled bool `json:"automaticUpdatesEnabled"` + AdditionalProperties map[string]interface{} +} + +type _UpdateUpdatesSettingsResponse UpdateUpdatesSettingsResponse + +// NewUpdateUpdatesSettingsResponse instantiates a new UpdateUpdatesSettingsResponse 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 NewUpdateUpdatesSettingsResponse(automaticUpdatesEnabled bool) *UpdateUpdatesSettingsResponse { + this := UpdateUpdatesSettingsResponse{} + this.AutomaticUpdatesEnabled = automaticUpdatesEnabled + return &this +} + +// NewUpdateUpdatesSettingsResponseWithDefaults instantiates a new UpdateUpdatesSettingsResponse 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 NewUpdateUpdatesSettingsResponseWithDefaults() *UpdateUpdatesSettingsResponse { + this := UpdateUpdatesSettingsResponse{} + return &this +} + +// GetAutomaticUpdatesEnabled returns the AutomaticUpdatesEnabled field value +func (o *UpdateUpdatesSettingsResponse) GetAutomaticUpdatesEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.AutomaticUpdatesEnabled +} + +// GetAutomaticUpdatesEnabledOk returns a tuple with the AutomaticUpdatesEnabled field value +// and a boolean to check if the value has been set. +func (o *UpdateUpdatesSettingsResponse) GetAutomaticUpdatesEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AutomaticUpdatesEnabled, true +} + +// SetAutomaticUpdatesEnabled sets field value +func (o *UpdateUpdatesSettingsResponse) SetAutomaticUpdatesEnabled(v bool) { + o.AutomaticUpdatesEnabled = v +} + +func (o UpdateUpdatesSettingsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateUpdatesSettingsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["automaticUpdatesEnabled"] = o.AutomaticUpdatesEnabled + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateUpdatesSettingsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "automaticUpdatesEnabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateUpdatesSettingsResponse := _UpdateUpdatesSettingsResponse{} + + err = json.Unmarshal(data, &varUpdateUpdatesSettingsResponse) + + if err != nil { + return err + } + + *o = UpdateUpdatesSettingsResponse(varUpdateUpdatesSettingsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "automaticUpdatesEnabled") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateUpdatesSettingsResponse struct { + value *UpdateUpdatesSettingsResponse + isSet bool +} + +func (v NullableUpdateUpdatesSettingsResponse) Get() *UpdateUpdatesSettingsResponse { + return v.value +} + +func (v *NullableUpdateUpdatesSettingsResponse) Set(val *UpdateUpdatesSettingsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateUpdatesSettingsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateUpdatesSettingsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateUpdatesSettingsResponse(val *UpdateUpdatesSettingsResponse) *NullableUpdateUpdatesSettingsResponse { + return &NullableUpdateUpdatesSettingsResponse{value: val, isSet: true} +} + +func (v NullableUpdateUpdatesSettingsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateUpdatesSettingsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/redis/v2api/response.go b/services/redis/v2api/response.go index 17608b3a90..2a3a340328 100644 --- a/services/redis/v2api/response.go +++ b/services/redis/v2api/response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/redis/v2api/utils.go b/services/redis/v2api/utils.go index 897292366f..a8c09c7a7a 100644 --- a/services/redis/v2api/utils.go +++ b/services/redis/v2api/utils.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Redis API +STACKIT Redis API (Deprecated) -⚠️ WARNING: THIS API/Service IS DEPRECATED - migrate to valkey! The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. +⚠️ This product, API and Service is deprecated. Use STACKIT Key Value Store instead. Planned retirement: 01.08.2027. The STACKIT Redis API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1.0 +API version: 2.1.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.