From cc143de9482766ea14b9eb41b1859d0c8dbe3f60 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" Date: Mon, 23 Oct 2023 21:54:24 +0000 Subject: [PATCH] chore(userconfig): generate schema --- docs/data-sources/kafka.md | 1 + docs/resources/kafka.md | 1 + .../schemautil/userconfig/apiconvert/fromapi_test.go | 9 +++++---- internal/schemautil/userconfig/dist/service_types.go | 5 +++++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/data-sources/kafka.md b/docs/data-sources/kafka.md index f2c8b3a45..f652b8a5b 100644 --- a/docs/data-sources/kafka.md +++ b/docs/data-sources/kafka.md @@ -90,6 +90,7 @@ Read-Only: Read-Only: - `additional_backup_regions` (List of String) +- `aiven_kafka_topic_messages` (Boolean) - `custom_domain` (String) - `ip_filter` (List of String) - `ip_filter_object` (List of Object) (see [below for nested schema](#nestedobjatt--kafka_user_config--ip_filter_object)) diff --git a/docs/resources/kafka.md b/docs/resources/kafka.md index 4ad8b2c34..9ffd767d1 100644 --- a/docs/resources/kafka.md +++ b/docs/resources/kafka.md @@ -89,6 +89,7 @@ resource "aiven_kafka" "kafka1" { Optional: - `additional_backup_regions` (List of String) Additional Cloud Regions for Backup Replication. +- `aiven_kafka_topic_messages` (Boolean) Allow access to read Kafka topic messages in the Aiven Console and REST API. - `custom_domain` (String) Serve the web frontend using a custom CNAME pointing to the Aiven DNS name. - `ip_filter` (List of String, Deprecated) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. - `ip_filter_object` (Block List, Max: 1024) Allow incoming connections from CIDR address block, e.g. '10.20.0.0/16'. (see [below for nested schema](#nestedblock--kafka_user_config--ip_filter_object)) diff --git a/internal/schemautil/userconfig/apiconvert/fromapi_test.go b/internal/schemautil/userconfig/apiconvert/fromapi_test.go index ab051ab8b..400d5057a 100644 --- a/internal/schemautil/userconfig/apiconvert/fromapi_test.go +++ b/internal/schemautil/userconfig/apiconvert/fromapi_test.go @@ -89,10 +89,11 @@ func TestFromAPI(t *testing.T) { }, }, want: []map[string]interface{}{{ - "additional_backup_regions": []interface{}(nil), - "custom_domain": "", - "ip_filter": []interface{}(nil), - "ip_filter_object": []interface{}(nil), + "additional_backup_regions": []interface{}(nil), + "aiven_kafka_topic_messages": false, + "custom_domain": "", + "ip_filter": []interface{}(nil), + "ip_filter_object": []interface{}(nil), "kafka": []map[string]interface{}{{ "auto_create_topics_enable": false, "compression_type": "", diff --git a/internal/schemautil/userconfig/dist/service_types.go b/internal/schemautil/userconfig/dist/service_types.go index 53bf02569..b44382efb 100644 --- a/internal/schemautil/userconfig/dist/service_types.go +++ b/internal/schemautil/userconfig/dist/service_types.go @@ -2296,6 +2296,11 @@ func ServiceTypeKafka() *schema.Schema { Optional: true, Type: schema.TypeList, }, + "aiven_kafka_topic_messages": { + Description: "Allow access to read Kafka topic messages in the Aiven Console and REST API.", + Optional: true, + Type: schema.TypeBool, + }, "custom_domain": { Description: "Serve the web frontend using a custom CNAME pointing to the Aiven DNS name.", Optional: true,