diff --git a/services/valkey/oas_commit b/services/valkey/oas_commit index fa742ff4a1..2ea6d59b0f 100644 --- a/services/valkey/oas_commit +++ b/services/valkey/oas_commit @@ -1 +1 @@ -7fd0fb8e513021dfbad1f5ee736785ec72987b40 +24dbfc40a5c0e07440476abb6b64d76219f9b2c7 diff --git a/services/valkey/v1api/api_default.go b/services/valkey/v1api/api_default.go index 008fc1174a..cb89fa7027 100644 --- a/services/valkey/v1api/api_default.go +++ b/services/valkey/v1api/api_default.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/api_default_mock.go b/services/valkey/v1api/api_default_mock.go index 76e5b8ffc9..26268a3128 100644 --- a/services/valkey/v1api/api_default_mock.go +++ b/services/valkey/v1api/api_default_mock.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/client.go b/services/valkey/v1api/client.go index 3882d2fba1..e5925b221e 100644 --- a/services/valkey/v1api/client.go +++ b/services/valkey/v1api/client.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // 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 Key Value Store API API v1.1 +// APIClient manages communication with the STACKIT Key Value Store API (Deprecated) API v1.1.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/valkey/v1api/configuration.go b/services/valkey/v1api/configuration.go index 24c8448dd2..e34034b469 100644 --- a/services/valkey/v1api/configuration.go +++ b/services/valkey/v1api/configuration.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_backup.go b/services/valkey/v1api/model_backup.go index 1ff4bcf371..0168209e29 100644 --- a/services/valkey/v1api/model_backup.go +++ b/services/valkey/v1api/model_backup.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_create_backup_response_item.go b/services/valkey/v1api/model_create_backup_response_item.go index abdc9409ab..0b6c569b65 100644 --- a/services/valkey/v1api/model_create_backup_response_item.go +++ b/services/valkey/v1api/model_create_backup_response_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_create_credentials_payload.go b/services/valkey/v1api/model_create_credentials_payload.go index 472438f104..e2b34d5caf 100644 --- a/services/valkey/v1api/model_create_credentials_payload.go +++ b/services/valkey/v1api/model_create_credentials_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_create_instance_payload.go b/services/valkey/v1api/model_create_instance_payload.go index bab0b562c3..783ca7e369 100644 --- a/services/valkey/v1api/model_create_instance_payload.go +++ b/services/valkey/v1api/model_create_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_create_instance_response.go b/services/valkey/v1api/model_create_instance_response.go index 9610ec9a80..55f17d1fa6 100644 --- a/services/valkey/v1api/model_create_instance_response.go +++ b/services/valkey/v1api/model_create_instance_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_credentials.go b/services/valkey/v1api/model_credentials.go index 345ed40db3..e30c9410d0 100644 --- a/services/valkey/v1api/model_credentials.go +++ b/services/valkey/v1api/model_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_credentials_list_item.go b/services/valkey/v1api/model_credentials_list_item.go index e583add374..96960f50a2 100644 --- a/services/valkey/v1api/model_credentials_list_item.go +++ b/services/valkey/v1api/model_credentials_list_item.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_credentials_response.go b/services/valkey/v1api/model_credentials_response.go index dad9fcf6b1..e413b7e2d8 100644 --- a/services/valkey/v1api/model_credentials_response.go +++ b/services/valkey/v1api/model_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_error.go b/services/valkey/v1api/model_error.go index 611692f30c..09b64df6a2 100644 --- a/services/valkey/v1api/model_error.go +++ b/services/valkey/v1api/model_error.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_get_metrics_response.go b/services/valkey/v1api/model_get_metrics_response.go index f1b28b7650..2258def6d0 100644 --- a/services/valkey/v1api/model_get_metrics_response.go +++ b/services/valkey/v1api/model_get_metrics_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance.go b/services/valkey/v1api/model_instance.go index 8219f01d98..124cbaf1e7 100644 --- a/services/valkey/v1api/model_instance.go +++ b/services/valkey/v1api/model_instance.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_last_operation.go b/services/valkey/v1api/model_instance_last_operation.go index c31333b062..3ee5b1b31c 100644 --- a/services/valkey/v1api/model_instance_last_operation.go +++ b/services/valkey/v1api/model_instance_last_operation.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_last_operation_state.go b/services/valkey/v1api/model_instance_last_operation_state.go index ef03c9e421..2cf9abf36e 100644 --- a/services/valkey/v1api/model_instance_last_operation_state.go +++ b/services/valkey/v1api/model_instance_last_operation_state.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_last_operation_type.go b/services/valkey/v1api/model_instance_last_operation_type.go index 7d86bedb60..6fe9107bbd 100644 --- a/services/valkey/v1api/model_instance_last_operation_type.go +++ b/services/valkey/v1api/model_instance_last_operation_type.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_parameters.go b/services/valkey/v1api/model_instance_parameters.go index 0b9ff147ac..fb747653d0 100644 --- a/services/valkey/v1api/model_instance_parameters.go +++ b/services/valkey/v1api/model_instance_parameters.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_eviction.go b/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_eviction.go index 00b110922d..dac5b9a46a 100644 --- a/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_eviction.go +++ b/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_eviction.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_expire.go b/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_expire.go index fed5c2e886..991cf72723 100644 --- a/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_expire.go +++ b/services/valkey/v1api/model_instance_parameters_lazyfree_lazy_expire.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_parameters_maxmemory_policy.go b/services/valkey/v1api/model_instance_parameters_maxmemory_policy.go index 6624e467f1..a8bb68cfcf 100644 --- a/services/valkey/v1api/model_instance_parameters_maxmemory_policy.go +++ b/services/valkey/v1api/model_instance_parameters_maxmemory_policy.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_schema.go b/services/valkey/v1api/model_instance_schema.go index 707ed302f1..5ca97a1682 100644 --- a/services/valkey/v1api/model_instance_schema.go +++ b/services/valkey/v1api/model_instance_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_instance_status.go b/services/valkey/v1api/model_instance_status.go index e98494ff0b..17b96f134a 100644 --- a/services/valkey/v1api/model_instance_status.go +++ b/services/valkey/v1api/model_instance_status.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_list_credentials_response.go b/services/valkey/v1api/model_list_credentials_response.go index ca1a94b5ef..0d8ed2bb27 100644 --- a/services/valkey/v1api/model_list_credentials_response.go +++ b/services/valkey/v1api/model_list_credentials_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_list_instances_response.go b/services/valkey/v1api/model_list_instances_response.go index 37f580035e..0e714dfee1 100644 --- a/services/valkey/v1api/model_list_instances_response.go +++ b/services/valkey/v1api/model_list_instances_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_list_offerings_response.go b/services/valkey/v1api/model_list_offerings_response.go index 65ff76c78e..4da336c2fd 100644 --- a/services/valkey/v1api/model_list_offerings_response.go +++ b/services/valkey/v1api/model_list_offerings_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_list_restores_response.go b/services/valkey/v1api/model_list_restores_response.go index 6796a45e75..0362f57354 100644 --- a/services/valkey/v1api/model_list_restores_response.go +++ b/services/valkey/v1api/model_list_restores_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_offering.go b/services/valkey/v1api/model_offering.go index 1450ed213a..39b5f6d860 100644 --- a/services/valkey/v1api/model_offering.go +++ b/services/valkey/v1api/model_offering.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_partial_update_instance_payload.go b/services/valkey/v1api/model_partial_update_instance_payload.go index fad792f3cb..650254c99d 100644 --- a/services/valkey/v1api/model_partial_update_instance_payload.go +++ b/services/valkey/v1api/model_partial_update_instance_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_plan.go b/services/valkey/v1api/model_plan.go index 6b5ee22438..bf1b424c76 100644 --- a/services/valkey/v1api/model_plan.go +++ b/services/valkey/v1api/model_plan.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_raw_credentials.go b/services/valkey/v1api/model_raw_credentials.go index 6ffd26b03d..2779f91f42 100644 --- a/services/valkey/v1api/model_raw_credentials.go +++ b/services/valkey/v1api/model_raw_credentials.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_restore.go b/services/valkey/v1api/model_restore.go index 7f9ac29755..a124d54cd9 100644 --- a/services/valkey/v1api/model_restore.go +++ b/services/valkey/v1api/model_restore.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_schema.go b/services/valkey/v1api/model_schema.go index ef83580952..2c5b070640 100644 --- a/services/valkey/v1api/model_schema.go +++ b/services/valkey/v1api/model_schema.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_trigger_restore_response.go b/services/valkey/v1api/model_trigger_restore_response.go index 5f9ab752ff..bca007251a 100644 --- a/services/valkey/v1api/model_trigger_restore_response.go +++ b/services/valkey/v1api/model_trigger_restore_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_update_backups_config_payload.go b/services/valkey/v1api/model_update_backups_config_payload.go index 7321e0f986..a542631197 100644 --- a/services/valkey/v1api/model_update_backups_config_payload.go +++ b/services/valkey/v1api/model_update_backups_config_payload.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/model_update_backups_config_response.go b/services/valkey/v1api/model_update_backups_config_response.go index e9aa01863c..2cb60634fb 100644 --- a/services/valkey/v1api/model_update_backups_config_response.go +++ b/services/valkey/v1api/model_update_backups_config_response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/response.go b/services/valkey/v1api/response.go index 0c3cd6b2eb..6fdb980bec 100644 --- a/services/valkey/v1api/response.go +++ b/services/valkey/v1api/response.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v1api/utils.go b/services/valkey/v1api/utils.go index dca8e93200..06907be0f6 100644 --- a/services/valkey/v1api/utils.go +++ b/services/valkey/v1api/utils.go @@ -1,9 +1,9 @@ /* -[DEPRECATED] STACKIT Key Value Store API +STACKIT Key Value Store 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. The STACKIT Key Value Store 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. The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 1.1 +API version: 1.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/api_default.go b/services/valkey/v2api/api_default.go index 7e3f996f3e..6094c0504c 100644 --- a/services/valkey/v2api/api_default.go +++ b/services/valkey/v2api/api_default.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -171,6 +171,23 @@ type DefaultAPI interface { // @return GetMetricsResponse 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 + */ + GetUpdates(ctx context.Context, projectId string, regionId string, instanceId string) ApiGetUpdatesRequest + + // GetUpdatesExecute executes the request + // @return GetUpdatesResponse + GetUpdatesExecute(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) + /* ListBackups get latest backup information for provided instanceId @@ -313,6 +330,23 @@ type DefaultAPI interface { // @return TriggerRestoreResponse 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 + */ + TriggerUpdate(ctx context.Context, projectId string, regionId string, instanceId string) ApiTriggerUpdateRequest + + // TriggerUpdateExecute executes the request + // @return CreateInstanceResponse + TriggerUpdateExecute(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) + /* UpdateBackupsConfig backups configuration update @@ -329,6 +363,23 @@ type DefaultAPI interface { // UpdateBackupsConfigExecute executes the request // @return UpdateBackupsConfigResponse 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 + */ + UpdateUpdatesSettings(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateUpdatesSettingsRequest + + // UpdateUpdatesSettingsExecute executes the request + // @return UpdateUpdatesSettingsResponse + UpdateUpdatesSettingsExecute(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) } // DefaultAPIService DefaultAPI service @@ -1748,6 +1799,183 @@ 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 +*/ +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 +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 @@ -3161,38 +3389,31 @@ 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 */ -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, @@ -3203,21 +3424,21 @@ func (a *DefaultAPIService) UpdateBackupsConfig(ctx context.Context, projectId s // Execute executes the request // -// @return UpdateBackupsConfigResponse -func (a *DefaultAPIService) UpdateBackupsConfigExecute(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) { +// @return CreateInstanceResponse +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) @@ -3225,12 +3446,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) @@ -3246,8 +3464,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 @@ -3313,6 +3529,383 @@ 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 +*/ +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 +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 +*/ +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 +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/valkey/v2api/api_default_mock.go b/services/valkey/v2api/api_default_mock.go index c481a0f2c4..8f0354ff77 100644 --- a/services/valkey/v2api/api_default_mock.go +++ b/services/valkey/v2api/api_default_mock.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // 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) // GetMetricsExecuteMock can be populated to implement the behavior of the GetMetricsExecute function of this mock GetMetricsExecuteMock *func(r ApiGetMetricsRequest) (*GetMetricsResponse, error) + // GetUpdatesExecuteMock can be populated to implement the behavior of the GetUpdatesExecute function of this mock + GetUpdatesExecuteMock *func(r ApiGetUpdatesRequest) (*GetUpdatesResponse, error) // ListBackupsExecuteMock can be populated to implement the behavior of the ListBackupsExecute function of this mock ListBackupsExecuteMock *func(r ApiListBackupsRequest) ([]Backup, error) // 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) // TriggerRestoreExecuteMock can be populated to implement the behavior of the TriggerRestoreExecute function of this mock TriggerRestoreExecuteMock *func(r ApiTriggerRestoreRequest) (*TriggerRestoreResponse, error) + // TriggerUpdateExecuteMock can be populated to implement the behavior of the TriggerUpdateExecute function of this mock + TriggerUpdateExecuteMock *func(r ApiTriggerUpdateRequest) (*CreateInstanceResponse, error) // UpdateBackupsConfigExecuteMock can be populated to implement the behavior of the UpdateBackupsConfigExecute function of this mock UpdateBackupsConfigExecuteMock *func(r ApiUpdateBackupsConfigRequest) (*UpdateBackupsConfigResponse, error) + // UpdateUpdatesSettingsExecuteMock can be populated to implement the behavior of the UpdateUpdatesSettingsExecute function of this mock + UpdateUpdatesSettingsExecuteMock *func(r ApiUpdateUpdatesSettingsRequest) (*UpdateUpdatesSettingsResponse, error) } func (a DefaultAPIServiceMock) CreateBackup(ctx context.Context, projectId string, regionId string, instanceId string) ApiCreateBackupRequest { @@ -241,6 +247,26 @@ func (a DefaultAPIServiceMock) GetMetricsExecute(r ApiGetMetricsRequest) (*GetMe return (*a.GetMetricsExecuteMock)(r) } +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, + } +} + +// 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) +} + func (a DefaultAPIServiceMock) ListBackups(ctx context.Context, projectId string, regionId string, instanceId string) ApiListBackupsRequest { return ApiListBackupsRequest{ ApiService: a, @@ -419,6 +445,26 @@ func (a DefaultAPIServiceMock) TriggerRestoreExecute(r ApiTriggerRestoreRequest) return (*a.TriggerRestoreExecuteMock)(r) } +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, + } +} + +// 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) +} + func (a DefaultAPIServiceMock) UpdateBackupsConfig(ctx context.Context, projectId string, regionId string, instanceId string) ApiUpdateBackupsConfigRequest { return ApiUpdateBackupsConfigRequest{ ApiService: a, @@ -438,3 +484,23 @@ func (a DefaultAPIServiceMock) UpdateBackupsConfigExecute(r ApiUpdateBackupsConf return (*a.UpdateBackupsConfigExecuteMock)(r) } + +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, + } +} + +// 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/valkey/v2api/client.go b/services/valkey/v2api/client.go index f26ee43ae9..52d6311001 100644 --- a/services/valkey/v2api/client.go +++ b/services/valkey/v2api/client.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // 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 STACKIT Key Value Store API API v2.1 +// APIClient manages communication with the STACKIT Key Value Store API API v2.1.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/valkey/v2api/configuration.go b/services/valkey/v2api/configuration.go index 4dde7ff084..8dd0439766 100644 --- a/services/valkey/v2api/configuration.go +++ b/services/valkey/v2api/configuration.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_backup.go b/services/valkey/v2api/model_backup.go index 0d69f167ab..e4b1ec24d8 100644 --- a/services/valkey/v2api/model_backup.go +++ b/services/valkey/v2api/model_backup.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_create_backup_response_item.go b/services/valkey/v2api/model_create_backup_response_item.go index 818f214475..69c726f21b 100644 --- a/services/valkey/v2api/model_create_backup_response_item.go +++ b/services/valkey/v2api/model_create_backup_response_item.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_create_credentials_payload.go b/services/valkey/v2api/model_create_credentials_payload.go index bc31eefab5..61239e749f 100644 --- a/services/valkey/v2api/model_create_credentials_payload.go +++ b/services/valkey/v2api/model_create_credentials_payload.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_create_instance_payload.go b/services/valkey/v2api/model_create_instance_payload.go index 52de7b64b7..e75637f0ed 100644 --- a/services/valkey/v2api/model_create_instance_payload.go +++ b/services/valkey/v2api/model_create_instance_payload.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_create_instance_response.go b/services/valkey/v2api/model_create_instance_response.go index 83e8a35841..3148ea5889 100644 --- a/services/valkey/v2api/model_create_instance_response.go +++ b/services/valkey/v2api/model_create_instance_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_credentials.go b/services/valkey/v2api/model_credentials.go index f9e066fc16..e9f07d43ac 100644 --- a/services/valkey/v2api/model_credentials.go +++ b/services/valkey/v2api/model_credentials.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_credentials_list_item.go b/services/valkey/v2api/model_credentials_list_item.go index 32194a5062..04ba2de0df 100644 --- a/services/valkey/v2api/model_credentials_list_item.go +++ b/services/valkey/v2api/model_credentials_list_item.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_credentials_response.go b/services/valkey/v2api/model_credentials_response.go index cb0f1fa9a0..5c189e7c52 100644 --- a/services/valkey/v2api/model_credentials_response.go +++ b/services/valkey/v2api/model_credentials_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_error.go b/services/valkey/v2api/model_error.go index 1603aa9ea2..4723d66d1a 100644 --- a/services/valkey/v2api/model_error.go +++ b/services/valkey/v2api/model_error.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_get_metrics_response.go b/services/valkey/v2api/model_get_metrics_response.go index c20b17ca7d..caf9c4aeed 100644 --- a/services/valkey/v2api/model_get_metrics_response.go +++ b/services/valkey/v2api/model_get_metrics_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_get_updates_response.go b/services/valkey/v2api/model_get_updates_response.go new file mode 100644 index 0000000000..82e5318bc8 --- /dev/null +++ b/services/valkey/v2api/model_get_updates_response.go @@ -0,0 +1,197 @@ +/* +STACKIT Key Value Store API + +The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.1 +*/ + +// 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/valkey/v2api/model_instance.go b/services/valkey/v2api/model_instance.go index 862b4927a0..7524dac0b9 100644 --- a/services/valkey/v2api/model_instance.go +++ b/services/valkey/v2api/model_instance.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // 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/valkey/v2api/model_instance_instance_status.go b/services/valkey/v2api/model_instance_instance_status.go new file mode 100644 index 0000000000..a258dff985 --- /dev/null +++ b/services/valkey/v2api/model_instance_instance_status.go @@ -0,0 +1,123 @@ +/* +STACKIT Key Value Store API + +The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.1 +*/ + +// 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/valkey/v2api/model_instance_last_operation.go b/services/valkey/v2api/model_instance_last_operation.go index 361a926bd7..67c1182167 100644 --- a/services/valkey/v2api/model_instance_last_operation.go +++ b/services/valkey/v2api/model_instance_last_operation.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_last_operation_state.go b/services/valkey/v2api/model_instance_last_operation_state.go index 85b5151826..2e054da28c 100644 --- a/services/valkey/v2api/model_instance_last_operation_state.go +++ b/services/valkey/v2api/model_instance_last_operation_state.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_last_operation_type.go b/services/valkey/v2api/model_instance_last_operation_type.go index 3bdc8e4287..db4d59ab1c 100644 --- a/services/valkey/v2api/model_instance_last_operation_type.go +++ b/services/valkey/v2api/model_instance_last_operation_type.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_parameters.go b/services/valkey/v2api/model_instance_parameters.go index ed65b1ce3e..c2a5fc6b9c 100644 --- a/services/valkey/v2api/model_instance_parameters.go +++ b/services/valkey/v2api/model_instance_parameters.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_eviction.go b/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_eviction.go index acf81a8e36..7466dd0eac 100644 --- a/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_eviction.go +++ b/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_eviction.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_expire.go b/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_expire.go index 9443984dee..70a4952333 100644 --- a/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_expire.go +++ b/services/valkey/v2api/model_instance_parameters_lazyfree_lazy_expire.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_parameters_maxmemory_policy.go b/services/valkey/v2api/model_instance_parameters_maxmemory_policy.go index 309dea0a6f..7e49a78ee6 100644 --- a/services/valkey/v2api/model_instance_parameters_maxmemory_policy.go +++ b/services/valkey/v2api/model_instance_parameters_maxmemory_policy.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_schema.go b/services/valkey/v2api/model_instance_schema.go index 567b89f5a4..face5dca89 100644 --- a/services/valkey/v2api/model_instance_schema.go +++ b/services/valkey/v2api/model_instance_schema.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_instance_status.go b/services/valkey/v2api/model_instance_status.go index 88058b13bb..985d21305b 100644 --- a/services/valkey/v2api/model_instance_status.go +++ b/services/valkey/v2api/model_instance_status.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // 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/valkey/v2api/model_list_credentials_response.go b/services/valkey/v2api/model_list_credentials_response.go index a362f0eb5e..646fa247f5 100644 --- a/services/valkey/v2api/model_list_credentials_response.go +++ b/services/valkey/v2api/model_list_credentials_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_list_instances_response.go b/services/valkey/v2api/model_list_instances_response.go index f3ad36c36e..fefafeb98e 100644 --- a/services/valkey/v2api/model_list_instances_response.go +++ b/services/valkey/v2api/model_list_instances_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_list_offerings_response.go b/services/valkey/v2api/model_list_offerings_response.go index 62f3067a15..5c343c00e3 100644 --- a/services/valkey/v2api/model_list_offerings_response.go +++ b/services/valkey/v2api/model_list_offerings_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_list_restores_response.go b/services/valkey/v2api/model_list_restores_response.go index 8bccb4277e..e9b91e1843 100644 --- a/services/valkey/v2api/model_list_restores_response.go +++ b/services/valkey/v2api/model_list_restores_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_offering.go b/services/valkey/v2api/model_offering.go index f4b1c074c4..113aded23f 100644 --- a/services/valkey/v2api/model_offering.go +++ b/services/valkey/v2api/model_offering.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_partial_update_instance_payload.go b/services/valkey/v2api/model_partial_update_instance_payload.go index 49a46fc867..d98a1a91b6 100644 --- a/services/valkey/v2api/model_partial_update_instance_payload.go +++ b/services/valkey/v2api/model_partial_update_instance_payload.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_plan.go b/services/valkey/v2api/model_plan.go index 3b1d4f0a59..766235c20f 100644 --- a/services/valkey/v2api/model_plan.go +++ b/services/valkey/v2api/model_plan.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_raw_credentials.go b/services/valkey/v2api/model_raw_credentials.go index 7251aa3b51..00a1ae3c5e 100644 --- a/services/valkey/v2api/model_raw_credentials.go +++ b/services/valkey/v2api/model_raw_credentials.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_restore.go b/services/valkey/v2api/model_restore.go index 2b58b35bc5..afaad15e8a 100644 --- a/services/valkey/v2api/model_restore.go +++ b/services/valkey/v2api/model_restore.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_schema.go b/services/valkey/v2api/model_schema.go index 1164fd5edf..83265b6794 100644 --- a/services/valkey/v2api/model_schema.go +++ b/services/valkey/v2api/model_schema.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_trigger_restore_response.go b/services/valkey/v2api/model_trigger_restore_response.go index d49a754405..2169d1b5da 100644 --- a/services/valkey/v2api/model_trigger_restore_response.go +++ b/services/valkey/v2api/model_trigger_restore_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_update_backups_config_payload.go b/services/valkey/v2api/model_update_backups_config_payload.go index 71a763bfc1..6e328d902b 100644 --- a/services/valkey/v2api/model_update_backups_config_payload.go +++ b/services/valkey/v2api/model_update_backups_config_payload.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_update_backups_config_response.go b/services/valkey/v2api/model_update_backups_config_response.go index 60670548ed..4f6f03ea7a 100644 --- a/services/valkey/v2api/model_update_backups_config_response.go +++ b/services/valkey/v2api/model_update_backups_config_response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/model_update_updates_settings_payload.go b/services/valkey/v2api/model_update_updates_settings_payload.go new file mode 100644 index 0000000000..bbd12dc8dd --- /dev/null +++ b/services/valkey/v2api/model_update_updates_settings_payload.go @@ -0,0 +1,167 @@ +/* +STACKIT Key Value Store API + +The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.1 +*/ + +// 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/valkey/v2api/model_update_updates_settings_response.go b/services/valkey/v2api/model_update_updates_settings_response.go new file mode 100644 index 0000000000..7b44b20398 --- /dev/null +++ b/services/valkey/v2api/model_update_updates_settings_response.go @@ -0,0 +1,167 @@ +/* +STACKIT Key Value Store API + +The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. + +API version: 2.1.1 +*/ + +// 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/valkey/v2api/response.go b/services/valkey/v2api/response.go index 41dcea267d..2925c3c023 100644 --- a/services/valkey/v2api/response.go +++ b/services/valkey/v2api/response.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/valkey/v2api/utils.go b/services/valkey/v2api/utils.go index 0d0612ff0d..a20e9da561 100644 --- a/services/valkey/v2api/utils.go +++ b/services/valkey/v2api/utils.go @@ -3,7 +3,7 @@ STACKIT Key Value Store API The STACKIT Key Value Store API provides endpoints to list service offerings, manage service instances and service credentials within STACKIT portal projects. -API version: 2.1 +API version: 2.1.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.