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 github-actions[bot] committed Mar 11, 2024
1 parent b93c9d6 commit 1351bd9
Show file tree
Hide file tree
Showing 8 changed files with 315 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/data-sources/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ Read-Only:
- `pg_service_to_fork_from` (String)
- `pg_stat_monitor_enable` (Boolean)
- `pg_version` (String)
- `pgaudit` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--pgaudit))
- `pgbouncer` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--pgbouncer))
- `pglookout` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--pglookout))
- `private_access` (List of Object) (see [below for nested schema](#nestedobjatt--pg_user_config--private_access))
Expand Down Expand Up @@ -217,6 +218,27 @@ Read-Only:
- `track_pg_catalog` (Boolean)


<a id="nestedobjatt--pg_user_config--pgaudit"></a>
### Nested Schema for `pg_user_config.pgaudit`

Read-Only:

- `feature_enabled` (Boolean)
- `log` (List of String)
- `log_catalog` (Boolean)
- `log_client` (Boolean)
- `log_level` (String)
- `log_max_string_length` (Number)
- `log_nested_statements` (Boolean)
- `log_parameter` (Boolean)
- `log_parameter_max_size` (Number)
- `log_relation` (Boolean)
- `log_rows` (Boolean)
- `log_statement` (Boolean)
- `log_statement_once` (Boolean)
- `role` (String)


<a id="nestedobjatt--pg_user_config--pgbouncer"></a>
### Nested Schema for `pg_user_config.pgbouncer`

Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/service_integration_endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ Read-Only:

Read-Only:

- `default_database` (String)
- `host` (String)
- `password` (String)
- `port` (Number)
Expand Down
22 changes: 22 additions & 0 deletions docs/resources/pg.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ Optional:
- `pg_service_to_fork_from` (String) Name of the PG Service from which to fork (deprecated, use service_to_fork_from). This has effect only when a new service is being created.
- `pg_stat_monitor_enable` (Boolean) Enable the pg_stat_monitor extension. Enabling this extension will cause the cluster to be restarted.When this extension is enabled, pg_stat_statements results for utility commands are unreliable. The default value is `false`.
- `pg_version` (String) PostgreSQL major version.
- `pgaudit` (Block List, Max: 1) System-wide settings for the pgaudit extension (see [below for nested schema](#nestedblock--pg_user_config--pgaudit))
- `pgbouncer` (Block List, Max: 1) PGBouncer connection pooling settings (see [below for nested schema](#nestedblock--pg_user_config--pgbouncer))
- `pglookout` (Block List, Max: 1) System-wide settings for pglookout (see [below for nested schema](#nestedblock--pg_user_config--pglookout))
- `private_access` (Block List, Max: 1) Allow access to selected service ports from private networks (see [below for nested schema](#nestedblock--pg_user_config--private_access))
Expand Down Expand Up @@ -246,6 +247,27 @@ Optional:
- `track_pg_catalog` (Boolean, Deprecated) Track quals on system catalogs too. The default value is `false`.


<a id="nestedblock--pg_user_config--pgaudit"></a>
### Nested Schema for `pg_user_config.pgaudit`

Optional:

- `feature_enabled` (Boolean) Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved. The default value is `false`.
- `log` (List of String) Specifies which classes of statements will be logged by session audit logging.
- `log_catalog` (Boolean) Specifies that session logging should be enabled in the casewhere all relations in a statement are in pg_catalog. The default value is `true`.
- `log_client` (Boolean) Specifies whether log messages will be visible to a client process such as psql. The default value is `false`.
- `log_level` (String) Specifies the log level that will be used for log entries. The default value is `log`.
- `log_max_string_length` (Number) Crop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation. The default value is `-1`.
- `log_nested_statements` (Boolean) This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun. The default value is `true`.
- `log_parameter` (Boolean) Specifies that audit logging should include the parameters that were passed with the statement. The default value is `false`.
- `log_parameter_max_size` (Number) Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>. The default value is `0`.
- `log_relation` (Boolean) Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement. The default value is `false`.
- `log_rows` (Boolean) Specifies that audit logging should include the rows retrieved or affected by a statement. When enabled the rows field will be included after the parameter field. The default value is `false`.
- `log_statement` (Boolean) Specifies whether logging will include the statement text and parameters (if enabled). The default value is `true`.
- `log_statement_once` (Boolean) Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry. The default value is `false`.
- `role` (String) Specifies the master role to use for object audit logging.


<a id="nestedblock--pg_user_config--pgbouncer"></a>
### Nested Schema for `pg_user_config.pgbouncer`

Expand Down
1 change: 1 addition & 0 deletions docs/resources/service_integration_endpoint.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ Required:

Optional:

- `default_database` (String) Default database.
- `password` (String, Sensitive) Password.
- `ssl_client_certificate` (String) Client certificate.
- `ssl_client_key` (String) Client key.
Expand Down

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

176 changes: 176 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.

83 changes: 83 additions & 0 deletions internal/sdkprovider/userconfig/service/pg.go

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

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

0 comments on commit 1351bd9

Please sign in to comment.