Documentation
¶
Index ¶
- func DataSourceDatabase() datasource.DataSource
- func DataSourceDatabases() datasource.DataSource
- func ProviderConfigDataWorkspaceIDPlanModifier(ctx context.Context, req planmodifier.StringRequest, ...)
- func ProviderConfigWorkspaceIDPlanModifier(ctx context.Context, req planmodifier.StringRequest, ...)
- func ResourceDatabase() resource.Resource
- type Database
- func (m Database) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m Database) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m *Database) GetSpec(ctx context.Context) (postgres_tf.DatabaseDatabaseSpec, bool)
- func (m *Database) GetStatus(ctx context.Context) (postgres_tf.DatabaseDatabaseStatus, bool)
- func (m *Database) SetSpec(ctx context.Context, v postgres_tf.DatabaseDatabaseSpec)
- func (m *Database) SetStatus(ctx context.Context, v postgres_tf.DatabaseDatabaseStatus)
- func (to *Database) SyncFieldsDuringCreateOrUpdate(ctx context.Context, from Database)
- func (to *Database) SyncFieldsDuringRead(ctx context.Context, from Database)
- func (m Database) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m Database) Type(ctx context.Context) attr.Type
- type DatabaseData
- func (m DatabaseData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (m DatabaseData) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (m DatabaseData) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (m DatabaseData) Type(ctx context.Context) attr.Type
- type DatabaseDataSource
- func (r *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabaseResource
- func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DatabaseResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DatabasesData
- type DatabasesDataSource
- func (r *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ProviderConfig
- func (r ProviderConfig) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (r ProviderConfig) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (r ProviderConfig) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (r ProviderConfig) Type(ctx context.Context) attr.Type
- type ProviderConfigData
- func (r ProviderConfigData) ApplySchemaCustomizations(attrs map[string]tfschema.AttributeBuilder) map[string]tfschema.AttributeBuilder
- func (r ProviderConfigData) GetComplexFieldTypes(ctx context.Context) map[string]reflect.Type
- func (r ProviderConfigData) ToObjectValue(ctx context.Context) basetypes.ObjectValue
- func (r ProviderConfigData) Type(ctx context.Context) attr.Type
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 ¶
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 ¶
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 ¶
func (m *Database) GetSpec(ctx context.Context) (postgres_tf.DatabaseDatabaseSpec, bool)
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 ¶
func (m *Database) GetStatus(ctx context.Context) (postgres_tf.DatabaseDatabaseStatus, bool)
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 ¶
func (m *Database) SetSpec(ctx context.Context, v postgres_tf.DatabaseDatabaseSpec)
SetSpec sets the value of the Spec field in Database.
func (*Database) SetStatus ¶
func (m *Database) SetStatus(ctx context.Context, v postgres_tf.DatabaseDatabaseStatus)
SetStatus sets the value of the Status field in Database.
func (*Database) SyncFieldsDuringCreateOrUpdate ¶
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 ¶
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().
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 ¶
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().
type DatabaseDataSource ¶
type DatabaseDataSource struct {
Client *autogen.DatabricksClient
}
func (*DatabaseDataSource) Configure ¶
func (r *DatabaseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabaseDataSource) Metadata ¶
func (r *DatabaseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatabaseDataSource) Read ¶
func (r *DatabaseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabaseDataSource) Schema ¶
func (r *DatabaseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatabaseResource ¶
type DatabaseResource struct {
Client *autogen.DatabricksClient
}
func (*DatabaseResource) Configure ¶
func (r *DatabaseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DatabaseResource) Create ¶
func (r *DatabaseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DatabaseResource) Delete ¶
func (r *DatabaseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DatabaseResource) ImportState ¶
func (r *DatabaseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DatabaseResource) Metadata ¶
func (r *DatabaseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DatabaseResource) ModifyPlan ¶ added in v1.113.0
func (r *DatabaseResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*DatabaseResource) Read ¶
func (r *DatabaseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DatabaseResource) Schema ¶
func (r *DatabaseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DatabaseResource) Update ¶
func (r *DatabaseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
type DatabasesDataSource ¶
type DatabasesDataSource struct {
Client *autogen.DatabricksClient
}
func (*DatabasesDataSource) Configure ¶
func (r *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabasesDataSource) Metadata ¶
func (r *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DatabasesDataSource) Read ¶
func (r *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabasesDataSource) Schema ¶
func (r *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ProviderConfig ¶
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 ¶
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().
type ProviderConfigData ¶
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 ¶
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 ¶
func (r ProviderConfigData) 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, ProviderConfigData only implements ToObjectValue() and Type().