diff --git a/CHANGELOG.md b/CHANGELOG.md index 2570de0f7..47179436b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,8 @@ - `intake`: [v0.1.0](services/intake/CHANGELOG.md#v010) - **New**: STACKIT Intake module can be used to manage the STACKIT Intake. Manage your `IntakeRunners`, `Intakes` and `IntakeUsers` - `kms`: + - [v0.5.0](services/kms/CHANGELOG.md#v050) + - **Breaking Change:** Updated return types for `ImportKeyExecute` and `RotateKeyExecute` methods from `*Key` to `*Version` - [v0.4.0](services/kms/CHANGELOG.md#v040) - **Feature:** Add new wait handler for key ring creation (`CreateKeyRingWaitHandler`) - [v0.3.1](services/kms/CHANGELOG.md#v031) @@ -52,12 +54,21 @@ - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` - `modelserving`: [v0.5.1](services/modelserving/CHANGELOG.md#v051) - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` -- `mongodbflex`: [v1.5.1](services/mongodbflex/CHANGELOG.md#v151) - - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` +- `mongodbflex`: + - [v1.5.2](services/mongodbflex/CHANGELOG.md#v152) + - **Improvement:** Improved documentation for the `Roles` field in user-related models. + - [v1.5.1](services/mongodbflex/CHANGELOG.md#v151) + - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` - `objectstorage`: [v1.3.1](services/objectstorage/CHANGELOG.md#v131) - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` -- `observability`: [v0.9.1](services/observability/CHANGELOG.md#v091) - - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` +- `observability`: + - [v0.10.0](services/observability/CHANGELOG.md#v0100) + - **Feature:** Add new `CreateCredentialsPayload` model for creating credentials with optional description + - **Feature:** Add `Description` field to `Credentials` and `ServiceKeysList` models + - **Feature:** Update `CreateCredentials` API to accept payload with description + - **Improvement:** Improved documentation for some fields of the `UpdateMetricsStorageRetentionPayloard` model regarding downsampling behavior and validation rules + - [v0.9.1](services/observability/CHANGELOG.md#v091) + - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` - `opensearch`: [v0.24.1](services/opensearch/CHANGELOG.md#v0241) - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` - `postgresflex`: [v1.2.1](services/postgresflex/CHANGELOG.md#v121) @@ -77,6 +88,8 @@ - `serverupdate`: [v1.2.1](services/serverupdate/CHANGELOG.md#v121) - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` - `serviceaccount`: + - [v0.11.0](services/serviceaccount/CHANGELOG.md#v0110) + - **Feature:** Add new `Algorithm` field to `CreateServiceAccountKeyPayload` model with enum values `RSA_2048` and `RSA_4096` - [v0.10.0](services/serviceaccount/CHANGELOG.md#v0100) - **Feature:** Add new enum for Key Algorithm `RSA_4096` - [v0.9.1](services/serviceaccount/CHANGELOG.md#v091) diff --git a/services/intake/api_default.go b/services/intake/api_default.go index 566b7a356..7e19a5f94 100644 --- a/services/intake/api_default.go +++ b/services/intake/api_default.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/client.go b/services/intake/client.go index 69dc49d87..95c53f464 100644 --- a/services/intake/client.go +++ b/services/intake/client.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.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 Intake API API v1beta.2.0 +// APIClient manages communication with the STACKIT Intake API API v1beta.2.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *config.Configuration diff --git a/services/intake/configuration.go b/services/intake/configuration.go index 03b192572..37a4e8acc 100644 --- a/services/intake/configuration.go +++ b/services/intake/configuration.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth.go b/services/intake/model_catalog_auth.go index f11bfa077..c717fea47 100644 --- a/services/intake/model_catalog_auth.go +++ b/services/intake/model_catalog_auth.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_patch.go b/services/intake/model_catalog_auth_patch.go index 90ac6877b..0c7bece25 100644 --- a/services/intake/model_catalog_auth_patch.go +++ b/services/intake/model_catalog_auth_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_patch_test.go b/services/intake/model_catalog_auth_patch_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_catalog_auth_patch_test.go +++ b/services/intake/model_catalog_auth_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_test.go b/services/intake/model_catalog_auth_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_catalog_auth_test.go +++ b/services/intake/model_catalog_auth_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_type.go b/services/intake/model_catalog_auth_type.go index 123a26a5c..7b7190630 100644 --- a/services/intake/model_catalog_auth_type.go +++ b/services/intake/model_catalog_auth_type.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_catalog_auth_type_test.go b/services/intake/model_catalog_auth_type_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_catalog_auth_type_test.go +++ b/services/intake/model_catalog_auth_type_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_client_config.go b/services/intake/model_client_config.go index ef90ecff2..824685a4a 100644 --- a/services/intake/model_client_config.go +++ b/services/intake/model_client_config.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_client_config_test.go b/services/intake/model_client_config_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_client_config_test.go +++ b/services/intake/model_client_config_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_payload.go b/services/intake/model_create_intake_payload.go index 701c5488e..cad4dbd1d 100644 --- a/services/intake/model_create_intake_payload.go +++ b/services/intake/model_create_intake_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_payload_test.go b/services/intake/model_create_intake_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_create_intake_payload_test.go +++ b/services/intake/model_create_intake_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_runner_payload.go b/services/intake/model_create_intake_runner_payload.go index f44038565..d7a571271 100644 --- a/services/intake/model_create_intake_runner_payload.go +++ b/services/intake/model_create_intake_runner_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_runner_payload_test.go b/services/intake/model_create_intake_runner_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_create_intake_runner_payload_test.go +++ b/services/intake/model_create_intake_runner_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_user_payload.go b/services/intake/model_create_intake_user_payload.go index fd8df35f7..4245e8f8c 100644 --- a/services/intake/model_create_intake_user_payload.go +++ b/services/intake/model_create_intake_user_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_create_intake_user_payload_test.go b/services/intake/model_create_intake_user_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_create_intake_user_payload_test.go +++ b/services/intake/model_create_intake_user_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth.go b/services/intake/model_dremio_auth.go index ffe48931c..b115344b4 100644 --- a/services/intake/model_dremio_auth.go +++ b/services/intake/model_dremio_auth.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_patch.go b/services/intake/model_dremio_auth_patch.go index c7cbbdbf4..56949e8cc 100644 --- a/services/intake/model_dremio_auth_patch.go +++ b/services/intake/model_dremio_auth_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_patch_test.go b/services/intake/model_dremio_auth_patch_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_dremio_auth_patch_test.go +++ b/services/intake/model_dremio_auth_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_dremio_auth_test.go b/services/intake/model_dremio_auth_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_dremio_auth_test.go +++ b/services/intake/model_dremio_auth_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog.go b/services/intake/model_intake_catalog.go index acfcf7592..8d2a04cc8 100644 --- a/services/intake/model_intake_catalog.go +++ b/services/intake/model_intake_catalog.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog_patch.go b/services/intake/model_intake_catalog_patch.go index 15811a59c..292b0f344 100644 --- a/services/intake/model_intake_catalog_patch.go +++ b/services/intake/model_intake_catalog_patch.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog_patch_test.go b/services/intake/model_intake_catalog_patch_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_intake_catalog_patch_test.go +++ b/services/intake/model_intake_catalog_patch_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_catalog_test.go b/services/intake/model_intake_catalog_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_intake_catalog_test.go +++ b/services/intake/model_intake_catalog_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_response.go b/services/intake/model_intake_response.go index ae61a0b63..2772e3922 100644 --- a/services/intake/model_intake_response.go +++ b/services/intake/model_intake_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_response_test.go b/services/intake/model_intake_response_test.go index 3ae14497a..fe201be6f 100644 --- a/services/intake/model_intake_response_test.go +++ b/services/intake/model_intake_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_runner_response.go b/services/intake/model_intake_runner_response.go index 2f5bf88c8..66a59aa95 100644 --- a/services/intake/model_intake_runner_response.go +++ b/services/intake/model_intake_runner_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_runner_response_test.go b/services/intake/model_intake_runner_response_test.go index 53a618873..676ff5e43 100644 --- a/services/intake/model_intake_runner_response_test.go +++ b/services/intake/model_intake_runner_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_user_response.go b/services/intake/model_intake_user_response.go index 45e6e02fc..4703967a3 100644 --- a/services/intake/model_intake_user_response.go +++ b/services/intake/model_intake_user_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_intake_user_response_test.go b/services/intake/model_intake_user_response_test.go index a4835e44f..0b6cf4030 100644 --- a/services/intake/model_intake_user_response_test.go +++ b/services/intake/model_intake_user_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_runners_response.go b/services/intake/model_list_intake_runners_response.go index 7966355b4..283839792 100644 --- a/services/intake/model_list_intake_runners_response.go +++ b/services/intake/model_list_intake_runners_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_runners_response_test.go b/services/intake/model_list_intake_runners_response_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_list_intake_runners_response_test.go +++ b/services/intake/model_list_intake_runners_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_users_response.go b/services/intake/model_list_intake_users_response.go index c7d40d24f..b58cbfcfd 100644 --- a/services/intake/model_list_intake_users_response.go +++ b/services/intake/model_list_intake_users_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intake_users_response_test.go b/services/intake/model_list_intake_users_response_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_list_intake_users_response_test.go +++ b/services/intake/model_list_intake_users_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intakes_response.go b/services/intake/model_list_intakes_response.go index f9470d6ab..e8e255922 100644 --- a/services/intake/model_list_intakes_response.go +++ b/services/intake/model_list_intakes_response.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_list_intakes_response_test.go b/services/intake/model_list_intakes_response_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_list_intakes_response_test.go +++ b/services/intake/model_list_intakes_response_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_payload.go b/services/intake/model_update_intake_payload.go index f1cccdb41..2745820c6 100644 --- a/services/intake/model_update_intake_payload.go +++ b/services/intake/model_update_intake_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_payload_test.go b/services/intake/model_update_intake_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_update_intake_payload_test.go +++ b/services/intake/model_update_intake_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_runner_payload.go b/services/intake/model_update_intake_runner_payload.go index b33101508..54170607d 100644 --- a/services/intake/model_update_intake_runner_payload.go +++ b/services/intake/model_update_intake_runner_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_runner_payload_test.go b/services/intake/model_update_intake_runner_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_update_intake_runner_payload_test.go +++ b/services/intake/model_update_intake_runner_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_user_payload.go b/services/intake/model_update_intake_user_payload.go index 7a2dfdf01..1d359dc8b 100644 --- a/services/intake/model_update_intake_user_payload.go +++ b/services/intake/model_update_intake_user_payload.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_update_intake_user_payload_test.go b/services/intake/model_update_intake_user_payload_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_update_intake_user_payload_test.go +++ b/services/intake/model_update_intake_user_payload_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_user_type.go b/services/intake/model_user_type.go index 1c999767d..57a00b756 100644 --- a/services/intake/model_user_type.go +++ b/services/intake/model_user_type.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/model_user_type_test.go b/services/intake/model_user_type_test.go index 7a79462aa..e7d56672a 100644 --- a/services/intake/model_user_type_test.go +++ b/services/intake/model_user_type_test.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/intake/utils.go b/services/intake/utils.go index 40db626d2..6df220534 100644 --- a/services/intake/utils.go +++ b/services/intake/utils.go @@ -3,7 +3,7 @@ STACKIT Intake API This API provides endpoints for managing Intakes. -API version: 1beta.2.0 +API version: 1beta.2.1 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/services/kms/CHANGELOG.md b/services/kms/CHANGELOG.md index bc9f37756..906f4a704 100644 --- a/services/kms/CHANGELOG.md +++ b/services/kms/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.5.0 +- **Breaking Change:** Updated return types for `ImportKeyExecute` and `RotateKeyExecute` methods from `*Key` to `*Version` + ## v0.4.0 - **Feature:** Add new wait handler for key ring creation (`CreateKeyRingWaitHandler`) diff --git a/services/kms/VERSION b/services/kms/VERSION index fb7a04cff..b043aa648 100644 --- a/services/kms/VERSION +++ b/services/kms/VERSION @@ -1 +1 @@ -v0.4.0 +v0.5.0 diff --git a/services/kms/api_default.go b/services/kms/api_default.go index 7bc23a2fd..cf015bd83 100644 --- a/services/kms/api_default.go +++ b/services/kms/api_default.go @@ -360,10 +360,10 @@ type DefaultApi interface { @param regionId The STACKIT region name the key ring is located in. @param keyRingId The key ring UUID. @param keyId The key UUID. - @return Key + @return Version */ - ImportKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Key, error) + ImportKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Version, error) /* ListKeyRings List key rings Returns a list of all key rings within the project. @@ -507,10 +507,10 @@ type DefaultApi interface { @param regionId The STACKIT region name the key ring is located in. @param keyRingId The key ring UUID. @param keyId The key UUID. - @return Key + @return Version */ - RotateKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Key, error) + RotateKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Version, error) /* Sign Sign Sign data using the given key version as secret. @@ -632,7 +632,7 @@ type ApiGetWrappingKeyRequest interface { type ApiImportKeyRequest interface { ImportKeyPayload(importKeyPayload ImportKeyPayload) ApiImportKeyRequest - Execute() (*Key, error) + Execute() (*Version, error) } type ApiListKeyRingsRequest interface { @@ -660,7 +660,7 @@ type ApiRestoreVersionRequest interface { } type ApiRotateKeyRequest interface { - Execute() (*Key, error) + Execute() (*Version, error) } type ApiSignRequest interface { @@ -3376,12 +3376,12 @@ func (r ImportKeyRequest) ImportKeyPayload(importKeyPayload ImportKeyPayload) Ap return r } -func (r ImportKeyRequest) Execute() (*Key, error) { +func (r ImportKeyRequest) Execute() (*Version, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Key + localVarReturnValue *Version ) a := r.apiService client, ok := a.client.(*APIClient) @@ -3550,7 +3550,7 @@ func (a *APIClient) ImportKey(ctx context.Context, projectId string, regionId st } } -func (a *APIClient) ImportKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Key, error) { +func (a *APIClient) ImportKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Version, error) { r := ImportKeyRequest{ apiService: a.defaultApi, ctx: ctx, @@ -4597,12 +4597,12 @@ type RotateKeyRequest struct { keyId string } -func (r RotateKeyRequest) Execute() (*Key, error) { +func (r RotateKeyRequest) Execute() (*Version, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Key + localVarReturnValue *Version ) a := r.apiService client, ok := a.client.(*APIClient) @@ -4777,7 +4777,7 @@ func (a *APIClient) RotateKey(ctx context.Context, projectId string, regionId st } } -func (a *APIClient) RotateKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Key, error) { +func (a *APIClient) RotateKeyExecute(ctx context.Context, projectId string, regionId string, keyRingId string, keyId string) (*Version, error) { r := RotateKeyRequest{ apiService: a.defaultApi, ctx: ctx, diff --git a/services/kms/api_default_test.go b/services/kms/api_default_test.go index dbc7b3d55..4a160dcfc 100644 --- a/services/kms/api_default_test.go +++ b/services/kms/api_default_test.go @@ -921,7 +921,7 @@ func Test_kms_DefaultApiService(t *testing.T) { testDefaultApiServeMux := http.NewServeMux() testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := Key{} + data := Version{} w.Header().Add("Content-Type", "application/json") json.NewEncoder(w).Encode(data) }) @@ -1328,7 +1328,7 @@ func Test_kms_DefaultApiService(t *testing.T) { testDefaultApiServeMux := http.NewServeMux() testDefaultApiServeMux.HandleFunc(_apiUrlPath, func(w http.ResponseWriter, req *http.Request) { - data := Key{} + data := Version{} w.Header().Add("Content-Type", "application/json") json.NewEncoder(w).Encode(data) }) diff --git a/services/mongodbflex/CHANGELOG.md b/services/mongodbflex/CHANGELOG.md index 5a6d4d80e..b1d3136da 100644 --- a/services/mongodbflex/CHANGELOG.md +++ b/services/mongodbflex/CHANGELOG.md @@ -1,3 +1,6 @@ +## v1.5.2 +- **Improvement:** Improved documentation for the `Roles` field in user-related models. + ## v1.5.1 - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` diff --git a/services/mongodbflex/VERSION b/services/mongodbflex/VERSION index c9b3c015f..74a63a224 100644 --- a/services/mongodbflex/VERSION +++ b/services/mongodbflex/VERSION @@ -1 +1 @@ -v1.5.1 \ No newline at end of file +v1.5.2 \ No newline at end of file diff --git a/services/mongodbflex/model_create_user_payload.go b/services/mongodbflex/model_create_user_payload.go index 3337c5f7c..72ddbb3ee 100644 --- a/services/mongodbflex/model_create_user_payload.go +++ b/services/mongodbflex/model_create_user_payload.go @@ -83,6 +83,7 @@ type CreateUserPayloadGetUsernameRetType = string type CreateUserPayload struct { // REQUIRED Database CreateUserPayloadGetDatabaseAttributeType `json:"database" required:"true"` + // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** // REQUIRED Roles CreateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` Username CreateUserPayloadGetUsernameAttributeType `json:"username,omitempty"` diff --git a/services/mongodbflex/model_instance_response_user.go b/services/mongodbflex/model_instance_response_user.go index e6ea414f9..72755a289 100644 --- a/services/mongodbflex/model_instance_response_user.go +++ b/services/mongodbflex/model_instance_response_user.go @@ -147,6 +147,7 @@ type InstanceResponseUser struct { Host InstanceResponseUserGetHostAttributeType `json:"host,omitempty"` Id InstanceResponseUserGetIdAttributeType `json:"id,omitempty"` Port InstanceResponseUserGetPortAttributeType `json:"port,omitempty"` + // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** Roles InstanceResponseUserGetRolesAttributeType `json:"roles,omitempty"` Username InstanceResponseUserGetUsernameAttributeType `json:"username,omitempty"` } diff --git a/services/mongodbflex/model_partial_update_user_payload.go b/services/mongodbflex/model_partial_update_user_payload.go index b756dae87..b608d9c2a 100644 --- a/services/mongodbflex/model_partial_update_user_payload.go +++ b/services/mongodbflex/model_partial_update_user_payload.go @@ -61,7 +61,8 @@ func setPartialUpdateUserPayloadGetRolesAttributeType(arg *PartialUpdateUserPayl // PartialUpdateUserPayload struct for PartialUpdateUserPayload type PartialUpdateUserPayload struct { Database PartialUpdateUserPayloadGetDatabaseAttributeType `json:"database,omitempty"` - Roles PartialUpdateUserPayloadGetRolesAttributeType `json:"roles,omitempty"` + // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** + Roles PartialUpdateUserPayloadGetRolesAttributeType `json:"roles,omitempty"` } // NewPartialUpdateUserPayload instantiates a new PartialUpdateUserPayload object diff --git a/services/mongodbflex/model_update_user_payload.go b/services/mongodbflex/model_update_user_payload.go index 1b20facee..0ae1d61c5 100644 --- a/services/mongodbflex/model_update_user_payload.go +++ b/services/mongodbflex/model_update_user_payload.go @@ -62,6 +62,7 @@ func setUpdateUserPayloadGetRolesAttributeType(arg *UpdateUserPayloadGetRolesAtt type UpdateUserPayload struct { // REQUIRED Database UpdateUserPayloadGetDatabaseAttributeType `json:"database" required:"true"` + // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** // REQUIRED Roles UpdateUserPayloadGetRolesAttributeType `json:"roles" required:"true"` } diff --git a/services/mongodbflex/model_user.go b/services/mongodbflex/model_user.go index 0157714c7..0d7327c92 100644 --- a/services/mongodbflex/model_user.go +++ b/services/mongodbflex/model_user.go @@ -190,6 +190,7 @@ type User struct { Id UserGetIdAttributeType `json:"id,omitempty"` Password UserGetPasswordAttributeType `json:"password,omitempty"` Port UserGetPortAttributeType `json:"port,omitempty"` + // The roles defined for a user. The *roles* attribute can contain the following values: 'read', 'readWrite', 'readAnyDatabase', 'readWriteAnyDatabase', 'stackitAdmin'. **The 'readAnyDatabase', 'readWriteAnyDatabase' and 'stackitAdmin' roles will always be created in the admin database.** Roles UserGetRolesAttributeType `json:"roles,omitempty"` Uri UserGetUriAttributeType `json:"uri,omitempty"` Username UserGetUsernameAttributeType `json:"username,omitempty"` diff --git a/services/observability/CHANGELOG.md b/services/observability/CHANGELOG.md index 6f0348bd7..cbf335e5f 100644 --- a/services/observability/CHANGELOG.md +++ b/services/observability/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.10.0 +- **Feature:** Add new `CreateCredentialsPayload` model for creating credentials with optional description +- **Feature:** Add `Description` field to `Credentials` and `ServiceKeysList` models +- **Feature:** Update `CreateCredentials` API to accept payload with description +- **Improvement:** Improved documentation for some fields of the `UpdateMetricsStorageRetentionPayloard` model regarding downsampling behavior and validation rules + ## v0.9.1 - **Dependencies:** Bump `github.com/golang-jwt/jwt/v5` from `v5.2.2` to `v5.2.3` diff --git a/services/observability/VERSION b/services/observability/VERSION index 7f7306b3c..f78dc3652 100644 --- a/services/observability/VERSION +++ b/services/observability/VERSION @@ -1 +1 @@ -v0.9.1 \ No newline at end of file +v0.10.0 \ No newline at end of file diff --git a/services/observability/api_default.go b/services/observability/api_default.go index c0c0f96a1..d70106ed3 100644 --- a/services/observability/api_default.go +++ b/services/observability/api_default.go @@ -1229,6 +1229,7 @@ type ApiCreateAlertrulesRequest interface { } type ApiCreateCredentialsRequest interface { + CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest Execute() (*CreateCredentialsResponse, error) } @@ -2104,10 +2105,16 @@ func (a *APIClient) CreateAlertrulesExecute(ctx context.Context, groupName strin } type CreateCredentialsRequest struct { - ctx context.Context - apiService *DefaultApiService - instanceId string - projectId string + ctx context.Context + apiService *DefaultApiService + instanceId string + projectId string + createCredentialsPayload *CreateCredentialsPayload +} + +func (r CreateCredentialsRequest) CreateCredentialsPayload(createCredentialsPayload CreateCredentialsPayload) ApiCreateCredentialsRequest { + r.createCredentialsPayload = &createCredentialsPayload + return r } func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) { @@ -2136,7 +2143,7 @@ func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2152,6 +2159,8 @@ func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.createCredentialsPayload req, err := client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, err @@ -2184,6 +2193,17 @@ func (r CreateCredentialsRequest) Execute() (*CreateCredentialsResponse, error) Body: localVarBody, ErrorMessage: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v Error + err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } if localVarHTTPResponse.StatusCode == 403 { var v PermissionDenied err = client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/services/observability/model_create_credentials_payload.go b/services/observability/model_create_credentials_payload.go new file mode 100644 index 000000000..ced2d78bf --- /dev/null +++ b/services/observability/model_create_credentials_payload.go @@ -0,0 +1,129 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package observability + +import ( + "encoding/json" +) + +// checks if the CreateCredentialsPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateCredentialsPayload{} + +/* + types and functions for description +*/ + +// isNotNullableString +type CreateCredentialsPayloadGetDescriptionAttributeType = *string + +func getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(arg CreateCredentialsPayloadGetDescriptionAttributeType) (ret CreateCredentialsPayloadGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateCredentialsPayloadGetDescriptionAttributeType(arg *CreateCredentialsPayloadGetDescriptionAttributeType, val CreateCredentialsPayloadGetDescriptionRetType) { + *arg = &val +} + +type CreateCredentialsPayloadGetDescriptionArgType = string +type CreateCredentialsPayloadGetDescriptionRetType = string + +// CreateCredentialsPayload Create new credentials with (optional) description +type CreateCredentialsPayload struct { + // description + Description CreateCredentialsPayloadGetDescriptionAttributeType `json:"description,omitempty"` +} + +// NewCreateCredentialsPayload instantiates a new CreateCredentialsPayload 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 NewCreateCredentialsPayload() *CreateCredentialsPayload { + this := CreateCredentialsPayload{} + return &this +} + +// NewCreateCredentialsPayloadWithDefaults instantiates a new CreateCredentialsPayload 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 NewCreateCredentialsPayloadWithDefaults() *CreateCredentialsPayload { + this := CreateCredentialsPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateCredentialsPayload) GetDescription() (res CreateCredentialsPayloadGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateCredentialsPayload) GetDescriptionOk() (ret CreateCredentialsPayloadGetDescriptionRetType, ok bool) { + return getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateCredentialsPayload) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateCredentialsPayload) SetDescription(v CreateCredentialsPayloadGetDescriptionRetType) { + setCreateCredentialsPayloadGetDescriptionAttributeType(&o.Description, v) +} + +func (o CreateCredentialsPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getCreateCredentialsPayloadGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } + return toSerialize, nil +} + +type NullableCreateCredentialsPayload struct { + value *CreateCredentialsPayload + isSet bool +} + +func (v NullableCreateCredentialsPayload) Get() *CreateCredentialsPayload { + return v.value +} + +func (v *NullableCreateCredentialsPayload) Set(val *CreateCredentialsPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateCredentialsPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateCredentialsPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateCredentialsPayload(val *CreateCredentialsPayload) *NullableCreateCredentialsPayload { + return &NullableCreateCredentialsPayload{value: val, isSet: true} +} + +func (v NullableCreateCredentialsPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateCredentialsPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/observability/model_create_credentials_payload_test.go b/services/observability/model_create_credentials_payload_test.go new file mode 100644 index 000000000..ae3f559ed --- /dev/null +++ b/services/observability/model_create_credentials_payload_test.go @@ -0,0 +1,11 @@ +/* +STACKIT Observability API + +API endpoints for Observability on STACKIT + +API version: 1.1.1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package observability diff --git a/services/observability/model_credentials.go b/services/observability/model_credentials.go index c086b405b..94fe14615 100644 --- a/services/observability/model_credentials.go +++ b/services/observability/model_credentials.go @@ -17,6 +17,27 @@ import ( // checks if the Credentials type satisfies the MappedNullable interface at compile time var _ MappedNullable = &Credentials{} +/* + types and functions for description +*/ + +// isNotNullableString +type CredentialsGetDescriptionAttributeType = *string + +func getCredentialsGetDescriptionAttributeTypeOk(arg CredentialsGetDescriptionAttributeType) (ret CredentialsGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCredentialsGetDescriptionAttributeType(arg *CredentialsGetDescriptionAttributeType, val CredentialsGetDescriptionRetType) { + *arg = &val +} + +type CredentialsGetDescriptionArgType = string +type CredentialsGetDescriptionRetType = string + /* types and functions for password */ @@ -61,6 +82,7 @@ type CredentialsGetUsernameRetType = string // Credentials struct for Credentials type Credentials struct { + Description CredentialsGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED Password CredentialsGetPasswordAttributeType `json:"password" required:"true"` // REQUIRED @@ -88,6 +110,29 @@ func NewCredentialsWithDefaults() *Credentials { return &this } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Credentials) GetDescription() (res CredentialsGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Credentials) GetDescriptionOk() (ret CredentialsGetDescriptionRetType, ok bool) { + return getCredentialsGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *Credentials) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Credentials) SetDescription(v CredentialsGetDescriptionRetType) { + setCredentialsGetDescriptionAttributeType(&o.Description, v) +} + // GetPassword returns the Password field value func (o *Credentials) GetPassword() (ret CredentialsGetPasswordRetType) { ret, _ = o.GetPasswordOk() @@ -124,6 +169,9 @@ func (o *Credentials) SetUsername(v CredentialsGetUsernameRetType) { func (o Credentials) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getCredentialsGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } if val, ok := getCredentialsGetPasswordAttributeTypeOk(o.Password); ok { toSerialize["Password"] = val } diff --git a/services/observability/model_service_keys_list.go b/services/observability/model_service_keys_list.go index 7806afb34..6cb313904 100644 --- a/services/observability/model_service_keys_list.go +++ b/services/observability/model_service_keys_list.go @@ -37,6 +37,27 @@ func setServiceKeysListGetCredentialsInfoAttributeType(arg *ServiceKeysListGetCr *arg = &val } +/* + types and functions for description +*/ + +// isNotNullableString +type ServiceKeysListGetDescriptionAttributeType = *string + +func getServiceKeysListGetDescriptionAttributeTypeOk(arg ServiceKeysListGetDescriptionAttributeType) (ret ServiceKeysListGetDescriptionRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setServiceKeysListGetDescriptionAttributeType(arg *ServiceKeysListGetDescriptionAttributeType, val ServiceKeysListGetDescriptionRetType) { + *arg = &val +} + +type ServiceKeysListGetDescriptionArgType = string +type ServiceKeysListGetDescriptionRetType = string + /* types and functions for id */ @@ -82,6 +103,7 @@ type ServiceKeysListGetNameRetType = string // ServiceKeysList struct for ServiceKeysList type ServiceKeysList struct { CredentialsInfo ServiceKeysListGetCredentialsInfoAttributeType `json:"credentialsInfo,omitempty"` + Description ServiceKeysListGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED Id ServiceKeysListGetIdAttributeType `json:"id" required:"true"` // REQUIRED @@ -132,6 +154,29 @@ func (o *ServiceKeysList) SetCredentialsInfo(v ServiceKeysListGetCredentialsInfo setServiceKeysListGetCredentialsInfoAttributeType(&o.CredentialsInfo, v) } +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ServiceKeysList) GetDescription() (res ServiceKeysListGetDescriptionRetType) { + res, _ = o.GetDescriptionOk() + return +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceKeysList) GetDescriptionOk() (ret ServiceKeysListGetDescriptionRetType, ok bool) { + return getServiceKeysListGetDescriptionAttributeTypeOk(o.Description) +} + +// HasDescription returns a boolean if a field has been set. +func (o *ServiceKeysList) HasDescription() bool { + _, ok := o.GetDescriptionOk() + return ok +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ServiceKeysList) SetDescription(v ServiceKeysListGetDescriptionRetType) { + setServiceKeysListGetDescriptionAttributeType(&o.Description, v) +} + // GetId returns the Id field value func (o *ServiceKeysList) GetId() (ret ServiceKeysListGetIdRetType) { ret, _ = o.GetIdOk() @@ -171,6 +216,9 @@ func (o ServiceKeysList) ToMap() (map[string]interface{}, error) { if val, ok := getServiceKeysListGetCredentialsInfoAttributeTypeOk(o.CredentialsInfo); ok { toSerialize["CredentialsInfo"] = val } + if val, ok := getServiceKeysListGetDescriptionAttributeTypeOk(o.Description); ok { + toSerialize["Description"] = val + } if val, ok := getServiceKeysListGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } diff --git a/services/observability/model_update_metrics_storage_retention_payload.go b/services/observability/model_update_metrics_storage_retention_payload.go index 50b63fbd0..7b4f3123a 100644 --- a/services/observability/model_update_metrics_storage_retention_payload.go +++ b/services/observability/model_update_metrics_storage_retention_payload.go @@ -82,13 +82,13 @@ type UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawRetType = str // UpdateMetricsStorageRetentionPayload struct for UpdateMetricsStorageRetentionPayload type UpdateMetricsStorageRetentionPayload struct { - // Retention time of longtime storage of 1h sampled data. After that time the data will be deleted permanently. `Additional Validators:` * Should be a valid time string * Should not be bigger than metricsRetentionTime5m + // Retention time of longtime storage of 1h sampled data. After that time the 1h sampled data will be deleted permanently. The goal of downsampling is to get fast results for queries over long time intervals. It is recommended to set this value to be the same as metricsRetentionTimeRaw to ensure zoom-in capabilities in your dashboards. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '10d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '10d' to '780d'. // REQUIRED MetricsRetentionTime1h UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime1hAttributeType `json:"metricsRetentionTime1h" required:"true"` - // Retention time of longtime storage of 5m sampled data. After that time the data will be down sampled to 1h. `Additional Validators:` * Should be a valid time string * Should not be bigger than metricsRetentionTimeRaw + // Retention time of longtime storage of 5m sampled data. After that time the 5m sampled data will be deleted permanently. All 5m resolution metrics older than 10 days are downsampled at a 1h resolution. The goal of downsampling is to get fast results for queries over long time intervals. It is recommended to set this value to be the same as metricsRetentionTimeRaw to ensure zoom-in capabilities in your dashboards. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '10d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '10d' to '780d'. // REQUIRED MetricsRetentionTime5m UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTime5mAttributeType `json:"metricsRetentionTime5m" required:"true"` - // Retention time of longtime storage of raw sampled data. After that time the data will be down sampled to 5m. Keep in mind, that the initial goal of downsampling is not saving disk or object storage space. In fact, downsampling doesn't save you any space but instead, it adds 2 more blocks for each raw block which are only slightly smaller or relatively similar size to raw block. This is done by internal downsampling implementation which to be mathematically correct holds various aggregations. This means that downsampling can increase the size of your storage a bit (~3x), if you choose to store all resolutions (recommended). The goal of downsampling is to provide an opportunity to get fast results for range queries of big time intervals like months or years. `Additional Validators:` * Should be a valid time string * Should not be bigger than 13 months + // Retention time of longtime storage of raw data. After that time the raw data will be deleted permanently. All raw resolution metrics that are older than 40 hours are downsampled at a 5m resolution. The default value is 90 days. `Additional Validators:` * Should be a valid time string (e.g. '90d'). * Should be between '2d' and '780d'. * Note: For compatibility reasons, values between '0d' and '792d' are also accepted. However, these will be automatically adjusted in the backend to the recommended range of '2d' to '780d'. // REQUIRED MetricsRetentionTimeRaw UpdateMetricsStorageRetentionPayloadGetMetricsRetentionTimeRawAttributeType `json:"metricsRetentionTimeRaw" required:"true"` } diff --git a/services/serviceaccount/CHANGELOG.md b/services/serviceaccount/CHANGELOG.md index 1c316d422..403032655 100644 --- a/services/serviceaccount/CHANGELOG.md +++ b/services/serviceaccount/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.11.0 +- **Feature:** Add new `Algorithm` field to `CreateServiceAccountKeyPayload` model with enum values `RSA_2048` and `RSA_4096` + ## v0.10.0 - **Feature:** Add new enum for Key Algorithm `RSA_4096` diff --git a/services/serviceaccount/VERSION b/services/serviceaccount/VERSION index f78dc3652..e88c34ff0 100644 --- a/services/serviceaccount/VERSION +++ b/services/serviceaccount/VERSION @@ -1 +1 @@ -v0.10.0 \ No newline at end of file +v0.11.0 \ No newline at end of file diff --git a/services/serviceaccount/model_create_service_account_key_payload.go b/services/serviceaccount/model_create_service_account_key_payload.go index caf16f10b..46227a0a1 100644 --- a/services/serviceaccount/model_create_service_account_key_payload.go +++ b/services/serviceaccount/model_create_service_account_key_payload.go @@ -12,12 +12,137 @@ package serviceaccount import ( "encoding/json" + "fmt" "time" ) // checks if the CreateServiceAccountKeyPayload type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CreateServiceAccountKeyPayload{} +/* + types and functions for algorithm +*/ + +// isEnum + +// CreateServiceAccountKeyPayloadAlgorithm Optional, key algorithm of the generated key-pair. Used only if publicKey attribute is not specified, otherwise the algorithm is derived from the public key. +// value type for enums +type CreateServiceAccountKeyPayloadAlgorithm string + +// List of Algorithm +const ( + CREATESERVICEACCOUNTKEYPAYLOADALGORITHM__2048 CreateServiceAccountKeyPayloadAlgorithm = "RSA_2048" + CREATESERVICEACCOUNTKEYPAYLOADALGORITHM__4096 CreateServiceAccountKeyPayloadAlgorithm = "RSA_4096" +) + +// All allowed values of CreateServiceAccountKeyPayload enum +var AllowedCreateServiceAccountKeyPayloadAlgorithmEnumValues = []CreateServiceAccountKeyPayloadAlgorithm{ + "RSA_2048", + "RSA_4096", +} + +func (v *CreateServiceAccountKeyPayloadAlgorithm) UnmarshalJSON(src []byte) error { + // use a type alias to prevent infinite recursion during unmarshal, + // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers + type TmpJson CreateServiceAccountKeyPayloadAlgorithm + var value TmpJson + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + // Allow unmarshalling zero value for testing purposes + var zeroValue TmpJson + if value == zeroValue { + return nil + } + enumTypeValue := CreateServiceAccountKeyPayloadAlgorithm(value) + for _, existing := range AllowedCreateServiceAccountKeyPayloadAlgorithmEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CreateServiceAccountKeyPayload", value) +} + +// NewCreateServiceAccountKeyPayloadAlgorithmFromValue returns a pointer to a valid CreateServiceAccountKeyPayloadAlgorithm +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCreateServiceAccountKeyPayloadAlgorithmFromValue(v CreateServiceAccountKeyPayloadAlgorithm) (*CreateServiceAccountKeyPayloadAlgorithm, error) { + ev := CreateServiceAccountKeyPayloadAlgorithm(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CreateServiceAccountKeyPayloadAlgorithm: valid values are %v", v, AllowedCreateServiceAccountKeyPayloadAlgorithmEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CreateServiceAccountKeyPayloadAlgorithm) IsValid() bool { + for _, existing := range AllowedCreateServiceAccountKeyPayloadAlgorithmEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to AlgorithmAlgorithm value +func (v CreateServiceAccountKeyPayloadAlgorithm) Ptr() *CreateServiceAccountKeyPayloadAlgorithm { + return &v +} + +type NullableCreateServiceAccountKeyPayloadAlgorithm struct { + value *CreateServiceAccountKeyPayloadAlgorithm + isSet bool +} + +func (v NullableCreateServiceAccountKeyPayloadAlgorithm) Get() *CreateServiceAccountKeyPayloadAlgorithm { + return v.value +} + +func (v *NullableCreateServiceAccountKeyPayloadAlgorithm) Set(val *CreateServiceAccountKeyPayloadAlgorithm) { + v.value = val + v.isSet = true +} + +func (v NullableCreateServiceAccountKeyPayloadAlgorithm) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateServiceAccountKeyPayloadAlgorithm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateServiceAccountKeyPayloadAlgorithm(val *CreateServiceAccountKeyPayloadAlgorithm) *NullableCreateServiceAccountKeyPayloadAlgorithm { + return &NullableCreateServiceAccountKeyPayloadAlgorithm{value: val, isSet: true} +} + +func (v NullableCreateServiceAccountKeyPayloadAlgorithm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateServiceAccountKeyPayloadAlgorithm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type CreateServiceAccountKeyPayloadGetAlgorithmAttributeType = *CreateServiceAccountKeyPayloadAlgorithm +type CreateServiceAccountKeyPayloadGetAlgorithmArgType = CreateServiceAccountKeyPayloadAlgorithm +type CreateServiceAccountKeyPayloadGetAlgorithmRetType = CreateServiceAccountKeyPayloadAlgorithm + +func getCreateServiceAccountKeyPayloadGetAlgorithmAttributeTypeOk(arg CreateServiceAccountKeyPayloadGetAlgorithmAttributeType) (ret CreateServiceAccountKeyPayloadGetAlgorithmRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateServiceAccountKeyPayloadGetAlgorithmAttributeType(arg *CreateServiceAccountKeyPayloadGetAlgorithmAttributeType, val CreateServiceAccountKeyPayloadGetAlgorithmRetType) { + *arg = &val +} + /* types and functions for publicKey */ @@ -61,6 +186,8 @@ func setCreateServiceAccountKeyPayloadGetValidUntilAttributeType(arg *CreateServ // CreateServiceAccountKeyPayload struct for CreateServiceAccountKeyPayload type CreateServiceAccountKeyPayload struct { + // Optional, key algorithm of the generated key-pair. Used only if publicKey attribute is not specified, otherwise the algorithm is derived from the public key. + Algorithm CreateServiceAccountKeyPayloadGetAlgorithmAttributeType `json:"algorithm,omitempty"` // Optional, public key part of the user generated RSA key-pair wrapped in a [X.509 v3 certificate](https://www.rfc-editor.org/rfc/rfc5280) PublicKey CreateServiceAccountKeyPayloadGetPublicKeyAttributeType `json:"publicKey,omitempty"` // Optional, date of key expiration. When omitted, key is valid until deleted @@ -84,6 +211,29 @@ func NewCreateServiceAccountKeyPayloadWithDefaults() *CreateServiceAccountKeyPay return &this } +// GetAlgorithm returns the Algorithm field value if set, zero value otherwise. +func (o *CreateServiceAccountKeyPayload) GetAlgorithm() (res CreateServiceAccountKeyPayloadGetAlgorithmRetType) { + res, _ = o.GetAlgorithmOk() + return +} + +// GetAlgorithmOk returns a tuple with the Algorithm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateServiceAccountKeyPayload) GetAlgorithmOk() (ret CreateServiceAccountKeyPayloadGetAlgorithmRetType, ok bool) { + return getCreateServiceAccountKeyPayloadGetAlgorithmAttributeTypeOk(o.Algorithm) +} + +// HasAlgorithm returns a boolean if a field has been set. +func (o *CreateServiceAccountKeyPayload) HasAlgorithm() bool { + _, ok := o.GetAlgorithmOk() + return ok +} + +// SetAlgorithm gets a reference to the given string and assigns it to the Algorithm field. +func (o *CreateServiceAccountKeyPayload) SetAlgorithm(v CreateServiceAccountKeyPayloadGetAlgorithmRetType) { + setCreateServiceAccountKeyPayloadGetAlgorithmAttributeType(&o.Algorithm, v) +} + // GetPublicKey returns the PublicKey field value if set, zero value otherwise. func (o *CreateServiceAccountKeyPayload) GetPublicKey() (res CreateServiceAccountKeyPayloadGetPublicKeyRetType) { res, _ = o.GetPublicKeyOk() @@ -132,6 +282,9 @@ func (o *CreateServiceAccountKeyPayload) SetValidUntil(v CreateServiceAccountKey func (o CreateServiceAccountKeyPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if val, ok := getCreateServiceAccountKeyPayloadGetAlgorithmAttributeTypeOk(o.Algorithm); ok { + toSerialize["Algorithm"] = val + } if val, ok := getCreateServiceAccountKeyPayloadGetPublicKeyAttributeTypeOk(o.PublicKey); ok { toSerialize["PublicKey"] = val } diff --git a/services/serviceaccount/model_create_service_account_key_payload_test.go b/services/serviceaccount/model_create_service_account_key_payload_test.go index e135960fa..dec3650a3 100644 --- a/services/serviceaccount/model_create_service_account_key_payload_test.go +++ b/services/serviceaccount/model_create_service_account_key_payload_test.go @@ -9,3 +9,50 @@ API version: 2.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. package serviceaccount + +import ( + "testing" +) + +// isEnum + +func TestCreateServiceAccountKeyPayloadAlgorithm_UnmarshalJSON(t *testing.T) { + type args struct { + src []byte + } + tests := []struct { + name string + args args + wantErr bool + }{ + { + name: `success - possible enum value no. 1`, + args: args{ + src: []byte(`"RSA_2048"`), + }, + wantErr: false, + }, + { + name: `success - possible enum value no. 2`, + args: args{ + src: []byte(`"RSA_4096"`), + }, + wantErr: false, + }, + { + name: "fail", + args: args{ + src: []byte("\"FOOBAR\""), + }, + wantErr: true, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + v := CreateServiceAccountKeyPayloadAlgorithm("") + if err := v.UnmarshalJSON(tt.args.src); (err != nil) != tt.wantErr { + t.Errorf("UnmarshalJSON() error = %v, wantErr %v", err, tt.wantErr) + } + }) + } +}