Skip to content

Commit

Permalink
chore(userconfig): generate schema
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored and Serpentiel committed Oct 24, 2023
1 parent b56cee6 commit cc143de
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
1 change: 1 addition & 0 deletions docs/resources/kafka.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
9 changes: 5 additions & 4 deletions internal/schemautil/userconfig/apiconvert/fromapi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
5 changes: 5 additions & 0 deletions internal/schemautil/userconfig/dist/service_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc143de

Please sign in to comment.