Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql: use cyrilgdn/terraform-provider-postgresql#448 #11

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gen/postgresql/database/Database.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sourcegraph/managed-services-platform-cdktf/gen/postgresql/database/internal"
)

// Represents a {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database postgresql_database}.
// Represents a {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database postgresql_database}.
type Database interface {
cdktf.TerraformResource
AllowConnections() interface{}
Expand Down Expand Up @@ -546,7 +546,7 @@ func (j *jsiiProxy_Database) TerraformResourceType() *string {
}


// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database postgresql_database} Resource.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database postgresql_database} Resource.
func NewDatabase(scope constructs.Construct, id *string, config *DatabaseConfig) Database {
_init_.Initialize()

Expand All @@ -564,7 +564,7 @@ func NewDatabase(scope constructs.Construct, id *string, config *DatabaseConfig)
return &j
}

// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database postgresql_database} Resource.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database postgresql_database} Resource.
func NewDatabase_Override(d Database, scope constructs.Construct, id *string, config *DatabaseConfig) {
_init_.Initialize()

Expand Down
22 changes: 11 additions & 11 deletions gen/postgresql/database/DatabaseConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,48 @@ type DatabaseConfig struct {
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// The PostgreSQL database name to connect to.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#name Database#name}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#name Database#name}
Name *string `field:"required" json:"name" yaml:"name"`
// If false then no one can connect to this database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#allow_connections Database#allow_connections}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#allow_connections Database#allow_connections}
AllowConnections interface{} `field:"optional" json:"allowConnections" yaml:"allowConnections"`
// How many concurrent connections can be made to this database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#connection_limit Database#connection_limit}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#connection_limit Database#connection_limit}
ConnectionLimit *float64 `field:"optional" json:"connectionLimit" yaml:"connectionLimit"`
// Character set encoding to use in the new database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#encoding Database#encoding}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#encoding Database#encoding}
Encoding *string `field:"optional" json:"encoding" yaml:"encoding"`
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#id Database#id}.
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#id Database#id}.
//
// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
Id *string `field:"optional" json:"id" yaml:"id"`
// If true, then this database can be cloned by any user with CREATEDB privileges.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#is_template Database#is_template}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#is_template Database#is_template}
IsTemplate interface{} `field:"optional" json:"isTemplate" yaml:"isTemplate"`
// Collation order (LC_COLLATE) to use in the new database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#lc_collate Database#lc_collate}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#lc_collate Database#lc_collate}
LcCollate *string `field:"optional" json:"lcCollate" yaml:"lcCollate"`
// Character classification (LC_CTYPE) to use in the new database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#lc_ctype Database#lc_ctype}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#lc_ctype Database#lc_ctype}
LcCtype *string `field:"optional" json:"lcCtype" yaml:"lcCtype"`
// The ROLE which owns the database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#owner Database#owner}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#owner Database#owner}
Owner *string `field:"optional" json:"owner" yaml:"owner"`
// The name of the tablespace that will be associated with the new database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#tablespace_name Database#tablespace_name}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#tablespace_name Database#tablespace_name}
TablespaceName *string `field:"optional" json:"tablespaceName" yaml:"tablespaceName"`
// The name of the template from which to create the new database.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database#template Database#template}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database#template Database#template}
Template *string `field:"optional" json:"template" yaml:"template"`
}

2 changes: 1 addition & 1 deletion gen/postgresql/database/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `postgresql_database`

Refer to the Terraform Registry for docs: [`postgresql_database`](https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/resources/database).
Refer to the Terraform Registry for docs: [`postgresql_database`](https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/resources/database).
6 changes: 3 additions & 3 deletions gen/postgresql/datapostgresqlschemas/DataPostgresqlSchemas.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sourcegraph/managed-services-platform-cdktf/gen/postgresql/datapostgresqlschemas/internal"
)

// Represents a {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas postgresql_schemas}.
// Represents a {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas postgresql_schemas}.
type DataPostgresqlSchemas interface {
cdktf.TerraformDataSource
// Experimental.
Expand Down Expand Up @@ -416,7 +416,7 @@ func (j *jsiiProxy_DataPostgresqlSchemas) TerraformResourceType() *string {
}


// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas postgresql_schemas} Data Source.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas postgresql_schemas} Data Source.
func NewDataPostgresqlSchemas(scope constructs.Construct, id *string, config *DataPostgresqlSchemasConfig) DataPostgresqlSchemas {
_init_.Initialize()

Expand All @@ -434,7 +434,7 @@ func NewDataPostgresqlSchemas(scope constructs.Construct, id *string, config *Da
return &j
}

// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas postgresql_schemas} Data Source.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas postgresql_schemas} Data Source.
func NewDataPostgresqlSchemas_Override(d DataPostgresqlSchemas, scope constructs.Construct, id *string, config *DataPostgresqlSchemasConfig) {
_init_.Initialize()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ type DataPostgresqlSchemasConfig struct {
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// The PostgreSQL database which will be queried for schema names.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#database DataPostgresqlSchemas#database}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#database DataPostgresqlSchemas#database}
Database *string `field:"required" json:"database" yaml:"database"`
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#id DataPostgresqlSchemas#id}.
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#id DataPostgresqlSchemas#id}.
//
// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
Id *string `field:"optional" json:"id" yaml:"id"`
// Determines whether to include system schemas (pg_ prefix and information_schema). 'public' will always be included.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#include_system_schemas DataPostgresqlSchemas#include_system_schemas}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#include_system_schemas DataPostgresqlSchemas#include_system_schemas}
IncludeSystemSchemas interface{} `field:"optional" json:"includeSystemSchemas" yaml:"includeSystemSchemas"`
// Expression(s) which will be pattern matched in the query using the PostgreSQL LIKE ALL operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#like_all_patterns DataPostgresqlSchemas#like_all_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#like_all_patterns DataPostgresqlSchemas#like_all_patterns}
LikeAllPatterns *[]*string `field:"optional" json:"likeAllPatterns" yaml:"likeAllPatterns"`
// Expression(s) which will be pattern matched in the query using the PostgreSQL LIKE ANY operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#like_any_patterns DataPostgresqlSchemas#like_any_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#like_any_patterns DataPostgresqlSchemas#like_any_patterns}
LikeAnyPatterns *[]*string `field:"optional" json:"likeAnyPatterns" yaml:"likeAnyPatterns"`
// Expression(s) which will be pattern matched in the query using the PostgreSQL NOT LIKE ALL operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#not_like_all_patterns DataPostgresqlSchemas#not_like_all_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#not_like_all_patterns DataPostgresqlSchemas#not_like_all_patterns}
NotLikeAllPatterns *[]*string `field:"optional" json:"notLikeAllPatterns" yaml:"notLikeAllPatterns"`
// Expression which will be pattern matched in the query using the PostgreSQL ~ (regular expression match) operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas#regex_pattern DataPostgresqlSchemas#regex_pattern}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas#regex_pattern DataPostgresqlSchemas#regex_pattern}
RegexPattern *string `field:"optional" json:"regexPattern" yaml:"regexPattern"`
}

2 changes: 1 addition & 1 deletion gen/postgresql/datapostgresqlschemas/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# `data_postgresql_schemas`

Refer to the Terraform Registry for docs: [`data_postgresql_schemas`](https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/schemas).
Refer to the Terraform Registry for docs: [`data_postgresql_schemas`](https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/schemas).
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/sourcegraph/managed-services-platform-cdktf/gen/postgresql/datapostgresqlsequences/internal"
)

// Represents a {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences postgresql_sequences}.
// Represents a {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences postgresql_sequences}.
type DataPostgresqlSequences interface {
cdktf.TerraformDataSource
// Experimental.
Expand Down Expand Up @@ -416,7 +416,7 @@ func (j *jsiiProxy_DataPostgresqlSequences) TerraformResourceType() *string {
}


// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences postgresql_sequences} Data Source.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences postgresql_sequences} Data Source.
func NewDataPostgresqlSequences(scope constructs.Construct, id *string, config *DataPostgresqlSequencesConfig) DataPostgresqlSequences {
_init_.Initialize()

Expand All @@ -434,7 +434,7 @@ func NewDataPostgresqlSequences(scope constructs.Construct, id *string, config *
return &j
}

// Create a new {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences postgresql_sequences} Data Source.
// Create a new {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences postgresql_sequences} Data Source.
func NewDataPostgresqlSequences_Override(d DataPostgresqlSequences, scope constructs.Construct, id *string, config *DataPostgresqlSequencesConfig) {
_init_.Initialize()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ type DataPostgresqlSequencesConfig struct {
Provisioners *[]interface{} `field:"optional" json:"provisioners" yaml:"provisioners"`
// The PostgreSQL database which will be queried for sequence names.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#database DataPostgresqlSequences#database}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#database DataPostgresqlSequences#database}
Database *string `field:"required" json:"database" yaml:"database"`
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#id DataPostgresqlSequences#id}.
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#id DataPostgresqlSequences#id}.
//
// Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
// If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
Id *string `field:"optional" json:"id" yaml:"id"`
// Expression(s) which will be pattern matched against sequence names in the query using the PostgreSQL LIKE ALL operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#like_all_patterns DataPostgresqlSequences#like_all_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#like_all_patterns DataPostgresqlSequences#like_all_patterns}
LikeAllPatterns *[]*string `field:"optional" json:"likeAllPatterns" yaml:"likeAllPatterns"`
// Expression(s) which will be pattern matched against sequence names in the query using the PostgreSQL LIKE ANY operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#like_any_patterns DataPostgresqlSequences#like_any_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#like_any_patterns DataPostgresqlSequences#like_any_patterns}
LikeAnyPatterns *[]*string `field:"optional" json:"likeAnyPatterns" yaml:"likeAnyPatterns"`
// Expression(s) which will be pattern matched against sequence names in the query using the PostgreSQL NOT LIKE ALL operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#not_like_all_patterns DataPostgresqlSequences#not_like_all_patterns}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#not_like_all_patterns DataPostgresqlSequences#not_like_all_patterns}
NotLikeAllPatterns *[]*string `field:"optional" json:"notLikeAllPatterns" yaml:"notLikeAllPatterns"`
// Expression which will be pattern matched against sequence names in the query using the PostgreSQL ~ (regular expression match) operator.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#regex_pattern DataPostgresqlSequences#regex_pattern}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#regex_pattern DataPostgresqlSequences#regex_pattern}
RegexPattern *string `field:"optional" json:"regexPattern" yaml:"regexPattern"`
// The PostgreSQL schema(s) which will be queried for sequence names. Queries all schemas in the database by default.
//
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/cyrilgdn/postgresql/1.21.0/docs/data-sources/sequences#schemas DataPostgresqlSequences#schemas}
// Docs at Terraform Registry: {@link https://registry.terraform.io/providers/sourcegraph/postgresql/1.23.0-sg.2/docs/data-sources/sequences#schemas DataPostgresqlSequences#schemas}
Schemas *[]*string `field:"optional" json:"schemas" yaml:"schemas"`
}

Loading