postgres_database

package
v1.114.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceDatabase

func DataSourceDatabase() datasource.DataSource

func DataSourceDatabases

func DataSourceDatabases() datasource.DataSource

func ProviderConfigDataWorkspaceIDPlanModifier

func ProviderConfigDataWorkspaceIDPlanModifier(ctx context.Context, req planmodifier.StringRequest, resp *stringplanmodifier.RequiresReplaceIfFuncResponse)

ProviderConfigDataWorkspaceIDPlanModifier is plan modifier for the workspace_id field. Resource requires replacement if the workspace_id changes from one non-empty value to another.

func ProviderConfigWorkspaceIDPlanModifier

func ProviderConfigWorkspaceIDPlanModifier(ctx context.Context, req planmodifier.StringRequest, resp *stringplanmodifier.RequiresReplaceIfFuncResponse)

ProviderConfigWorkspaceIDPlanModifier is plan modifier for the workspace_id field. Resource requires replacement if the workspace_id changes from one non-empty value to another.

func ResourceDatabase

func ResourceDatabase() resource.Resource

Types

type Database

type Database struct {
	// A timestamp indicating when the database was created.
	CreateTime timetypes.RFC3339 `tfsdk:"create_time"`
	// The ID to use for the Database, which will become the final component of
	// the database's resource name. This ID becomes the database name in
	// postgres.
	//
	// This value should be 4-63 characters, and only use characters available
	// in DNS names, as defined by RFC-1123
	//
	// If database_id is not specified in the request, it is generated
	// automatically.
	DatabaseId types.String `tfsdk:"database_id"`
	// The resource name of the database. Format:
	// projects/{project_id}/branches/{branch_id}/databases/{database_id}
	Name types.String `tfsdk:"name"`
	// The branch containing this database. Format:
	// projects/{project_id}/branches/{branch_id}
	Parent types.String `tfsdk:"parent"`
	// The desired state of the Database.
	Spec types.Object `tfsdk:"spec"`
	// The observed state of the Database.
	Status types.Object `tfsdk:"status"`
	// A timestamp indicating when the database was last updated.
	UpdateTime     timetypes.RFC3339 `tfsdk:"update_time"`
	ProviderConfig types.Object      `tfsdk:"provider_config"`
}

Database extends the main model with additional fields.

func (Database) ApplySchemaCustomizations

func (m Database) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder

func (Database) GetComplexFieldTypes

func (m Database) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in the extended Database struct. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (*Database) GetSpec

GetSpec returns the value of the Spec field in Database as a postgres_tf.DatabaseDatabaseSpec value. If the field is unknown or null, the boolean return value is false.

func (*Database) GetStatus

GetStatus returns the value of the Status field in Database as a postgres_tf.DatabaseDatabaseStatus value. If the field is unknown or null, the boolean return value is false.

func (*Database) SetSpec

SetSpec sets the value of the Spec field in Database.

func (*Database) SetStatus

SetStatus sets the value of the Status field in Database.

func (*Database) SyncFieldsDuringCreateOrUpdate

func (to *Database) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from Database)

SyncFieldsDuringCreateOrUpdate copies values from the plan into the receiver, including both embedded model fields and additional fields. This method is called during create and update.

func (*Database) SyncFieldsDuringRead

func (to *Database) SyncFieldsDuringRead(ctx context.Context, from Database)

SyncFieldsDuringRead copies values from the existing state into the receiver, including both embedded model fields and additional fields. This method is called during read.

func (Database) ToObjectValue

func (m Database) ToObjectValue(ctx context.Context) basetypes.ObjectValue

ToObjectValue returns the object value for the resource, combining attributes from the embedded TFSDK model and contains additional fields.

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, Database only implements ToObjectValue() and Type().

func (Database) Type

func (m Database) Type(ctx context.Context) attr.Type

Type returns the object type with attributes from both the embedded TFSDK model and contains additional fields.

type DatabaseData

type DatabaseData struct {
	// A timestamp indicating when the database was created.
	CreateTime timetypes.RFC3339 `tfsdk:"create_time"`
	// The resource name of the database. Format:
	// projects/{project_id}/branches/{branch_id}/databases/{database_id}
	Name types.String `tfsdk:"name"`
	// The branch containing this database. Format:
	// projects/{project_id}/branches/{branch_id}
	Parent types.String `tfsdk:"parent"`
	// The desired state of the Database.
	Spec types.Object `tfsdk:"spec"`
	// The observed state of the Database.
	Status types.Object `tfsdk:"status"`
	// A timestamp indicating when the database was last updated.
	UpdateTime         timetypes.RFC3339 `tfsdk:"update_time"`
	ProviderConfigData types.Object      `tfsdk:"provider_config"`
}

DatabaseData extends the main model with additional fields.

func (DatabaseData) ApplySchemaCustomizations

func (m DatabaseData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder

func (DatabaseData) GetComplexFieldTypes

func (m DatabaseData) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in the extended DatabaseData struct. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (DatabaseData) ToObjectValue

func (m DatabaseData) ToObjectValue(ctx context.Context) basetypes.ObjectValue

ToObjectValue returns the object value for the resource, combining attributes from the embedded TFSDK model and contains additional fields.

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, DatabaseData only implements ToObjectValue() and Type().

func (DatabaseData) Type

func (m DatabaseData) Type(ctx context.Context) attr.Type

Type returns the object type with attributes from both the embedded TFSDK model and contains additional fields.

type DatabaseDataSource

type DatabaseDataSource struct {
	Client *autogen.DatabricksClient
}

func (*DatabaseDataSource) Configure

func (*DatabaseDataSource) Metadata

func (*DatabaseDataSource) Read

func (*DatabaseDataSource) Schema

type DatabaseResource

type DatabaseResource struct {
	Client *autogen.DatabricksClient
}

func (*DatabaseResource) Configure

func (*DatabaseResource) Create

func (*DatabaseResource) Delete

func (*DatabaseResource) ImportState

func (*DatabaseResource) Metadata

func (*DatabaseResource) ModifyPlan added in v1.113.0

func (*DatabaseResource) Read

func (*DatabaseResource) Schema

func (*DatabaseResource) Update

type DatabasesData

type DatabasesData struct {
	Postgres types.List `tfsdk:"databases"`
	// Upper bound for items returned.
	PageSize types.Int64 `tfsdk:"page_size"`
	// The Branch that owns this collection of databases. Format:
	// projects/{project_id}/branches/{branch_id}
	Parent             types.String `tfsdk:"parent"`
	ProviderConfigData types.Object `tfsdk:"provider_config"`
}

DatabasesData extends the main model with additional fields.

func (DatabasesData) ApplySchemaCustomizations

func (m DatabasesData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder

func (DatabasesData) GetComplexFieldTypes

func (DatabasesData) GetComplexFieldTypes(context.Context) map[string]reflect.Type

type DatabasesDataSource

type DatabasesDataSource struct {
	Client *autogen.DatabricksClient
}

func (*DatabasesDataSource) Configure

func (*DatabasesDataSource) Metadata

func (*DatabasesDataSource) Read

func (*DatabasesDataSource) Schema

type ProviderConfig

type ProviderConfig struct {
	WorkspaceID types.String `tfsdk:"workspace_id"`
}

ProviderConfig contains the fields to configure the provider.

func (ProviderConfig) ApplySchemaCustomizations

func (r ProviderConfig) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder

ApplySchemaCustomizations applies the schema customizations to the ProviderConfig type.

func (ProviderConfig) GetComplexFieldTypes

func (r ProviderConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in the extended ProviderConfig struct. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (ProviderConfig) ToObjectValue

func (r ProviderConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue

ToObjectValue returns the object value for the resource, combining attributes from the embedded TFSDK model and contains additional fields.

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ProviderConfig only implements ToObjectValue() and Type().

func (ProviderConfig) Type

func (r ProviderConfig) Type(ctx context.Context) attr.Type

Type returns the object type with attributes from both the embedded TFSDK model and contains additional fields.

type ProviderConfigData

type ProviderConfigData struct {
	WorkspaceID types.String `tfsdk:"workspace_id"`
}

ProviderConfigData contains the fields to configure the provider.

func (ProviderConfigData) ApplySchemaCustomizations

func (r ProviderConfigData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder

ApplySchemaCustomizations applies the schema customizations to the ProviderConfig type.

func (ProviderConfigData) GetComplexFieldTypes

func (r ProviderConfigData) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type

GetComplexFieldTypes returns a map of the types of elements in complex fields in the extended ProviderConfigData struct. Container types (types.Map, types.List, types.Set) and object types (types.Object) do not carry the type information of their elements in the Go type system. This function provides a way to retrieve the type information of the elements in complex fields at runtime. The values of the map are the reflected types of the contained elements. They must be either primitive values from the plugin framework type system (types.String{}, types.Bool{}, types.Int64{}, types.Float64{}) or TF SDK values.

func (ProviderConfigData) ToObjectValue

ToObjectValue returns the object value for the resource, combining attributes from the embedded TFSDK model and contains additional fields.

TFSDK types cannot implement the ObjectValuable interface directly, as it would otherwise interfere with how the plugin framework retrieves and sets values in state. Thus, ProviderConfigData only implements ToObjectValue() and Type().

func (ProviderConfigData) Type

Type returns the object type with attributes from both the embedded TFSDK model and contains additional fields.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL