From 97bee3b59dec6ac79aa46ac002463bbd0eef3a6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Oct 2023 08:17:24 +0000 Subject: [PATCH] build(deps): bump github.com/aiven/go-api-schemas from 1.38.0 to 1.39.0 (#1409) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] --- docs/data-sources/kafka.md | 1 + docs/resources/kafka.md | 1 + go.mod | 2 +- go.sum | 4 ++-- .../schemautil/userconfig/apiconvert/fromapi_test.go | 9 +++++---- internal/schemautil/userconfig/dist/service_types.go | 5 +++++ 6 files changed, 15 insertions(+), 7 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/go.mod b/go.mod index 10714d534..0f5b8da3d 100644 --- a/go.mod +++ b/go.mod @@ -46,7 +46,7 @@ require ( cloud.google.com/go v0.110.0 // indirect cloud.google.com/go/storage v1.28.1 // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/aiven/go-api-schemas v1.38.0 + github.com/aiven/go-api-schemas v1.39.0 github.com/aws/aws-sdk-go v1.44.122 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index 8151e42ce..51ccd4b6a 100644 --- a/go.sum +++ b/go.sum @@ -203,8 +203,8 @@ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7l github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/aiven/aiven-go-client/v2 v2.2.0 h1:ZPeIMF3Jt/wPrwFj3mO1Z8KtP9OHc6GpMtZXmwfBsE4= github.com/aiven/aiven-go-client/v2 v2.2.0/go.mod h1:x0xhzxWEKAwKv0xY5FvECiI6tesWshcPHvjwl0B/1SU= -github.com/aiven/go-api-schemas v1.38.0 h1:l+OOMYRG1tddTFQN4OihE6+sxVdP5fKeRN/9uoKFnkk= -github.com/aiven/go-api-schemas v1.38.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= +github.com/aiven/go-api-schemas v1.39.0 h1:U/uu04ppUT4mUVFPTKdKk3HZ3ADGaE4KD4fBjcJSN38= +github.com/aiven/go-api-schemas v1.39.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apparentlymart/go-dump v0.0.0-20180507223929-23540a00eaa3/go.mod h1:oL81AME2rN47vu18xqj1S1jPIPuN7afo62yKTNn3XMM= github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/Nj9VFpLOpjS5yuumk= 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,