resource_database

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseResourceSchema

func DatabaseResourceSchema(ctx context.Context) schema.Schema

Types

type DatabaseModel

type DatabaseModel struct {
	Database    DatabaseValue `tfsdk:"database"`
	Group       types.String  `tfsdk:"group"`
	Id          types.String  `tfsdk:"id"`
	IsSchema    types.Bool    `tfsdk:"is_schema"`
	Name        types.String  `tfsdk:"name"`
	Schema      types.String  `tfsdk:"schema"`
	Seed        SeedValue     `tfsdk:"seed"`
	AllowAttach types.Bool    `tfsdk:"allow_attach"`
	BlockReads  types.Bool    `tfsdk:"block_reads"`
	BlockWrites types.Bool    `tfsdk:"block_writes"`
	SizeLimit   types.String  `tfsdk:"size_limit"`
}

type DatabaseType

type DatabaseType struct {
	basetypes.ObjectType
}

func (DatabaseType) Equal

func (t DatabaseType) Equal(o attr.Type) bool

func (DatabaseType) String

func (t DatabaseType) String() string

func (DatabaseType) ValueFromObject

func (DatabaseType) ValueFromTerraform

func (t DatabaseType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (DatabaseType) ValueType

func (t DatabaseType) ValueType(ctx context.Context) attr.Value

type DatabaseValue

type DatabaseValue struct {
	AllowAttach   basetypes.BoolValue   `tfsdk:"allow_attach"`
	Archived      basetypes.BoolValue   `tfsdk:"archived"`
	BlockReads    basetypes.BoolValue   `tfsdk:"block_reads"`
	BlockWrites   basetypes.BoolValue   `tfsdk:"block_writes"`
	DbId          basetypes.StringValue `tfsdk:"db_id"`
	Group         basetypes.StringValue `tfsdk:"group"`
	Hostname      basetypes.StringValue `tfsdk:"hostname"`
	IsSchema      basetypes.BoolValue   `tfsdk:"is_schema"`
	Name          basetypes.StringValue `tfsdk:"name"`
	PrimaryRegion basetypes.StringValue `tfsdk:"primary_region"`
	Regions       basetypes.ListValue   `tfsdk:"regions"`
	Schema        basetypes.StringValue `tfsdk:"schema"`
	DatabaseType  basetypes.StringValue `tfsdk:"type"`
	Version       basetypes.StringValue `tfsdk:"version"`
	// contains filtered or unexported fields
}

func NewDatabaseValue

func NewDatabaseValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatabaseValue, diag.Diagnostics)

func NewDatabaseValueMust

func NewDatabaseValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatabaseValue

func NewDatabaseValueNull

func NewDatabaseValueNull() DatabaseValue

func NewDatabaseValueUnknown

func NewDatabaseValueUnknown() DatabaseValue

func (DatabaseValue) AttributeTypes

func (v DatabaseValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (DatabaseValue) Equal

func (v DatabaseValue) Equal(o attr.Value) bool

func (DatabaseValue) IsNull

func (v DatabaseValue) IsNull() bool

func (DatabaseValue) IsUnknown

func (v DatabaseValue) IsUnknown() bool

func (DatabaseValue) String

func (v DatabaseValue) String() string

func (DatabaseValue) ToObjectValue

func (DatabaseValue) ToTerraformValue

func (v DatabaseValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (DatabaseValue) Type

func (v DatabaseValue) Type(ctx context.Context) attr.Type

type SeedType

type SeedType struct {
	basetypes.ObjectType
}

func (SeedType) Equal

func (t SeedType) Equal(o attr.Type) bool

func (SeedType) String

func (t SeedType) String() string

func (SeedType) ValueFromObject

func (SeedType) ValueFromTerraform

func (t SeedType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SeedType) ValueType

func (t SeedType) ValueType(ctx context.Context) attr.Value

type SeedValue

type SeedValue struct {
	Name      basetypes.StringValue `tfsdk:"name"`
	Timestamp basetypes.StringValue `tfsdk:"timestamp"`
	SeedType  basetypes.StringValue `tfsdk:"type"`
	Url       basetypes.StringValue `tfsdk:"url"`
	// contains filtered or unexported fields
}

func NewSeedValue

func NewSeedValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SeedValue, diag.Diagnostics)

func NewSeedValueMust

func NewSeedValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SeedValue

func NewSeedValueNull

func NewSeedValueNull() SeedValue

func NewSeedValueUnknown

func NewSeedValueUnknown() SeedValue

func (SeedValue) AttributeTypes

func (v SeedValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SeedValue) Equal

func (v SeedValue) Equal(o attr.Value) bool

func (SeedValue) IsNull

func (v SeedValue) IsNull() bool

func (SeedValue) IsUnknown

func (v SeedValue) IsUnknown() bool

func (SeedValue) String

func (v SeedValue) String() string

func (SeedValue) ToObjectValue

func (v SeedValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)

func (SeedValue) ToTerraformValue

func (v SeedValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SeedValue) Type

func (v SeedValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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