Documentation ¶
Index ¶
- func DatabaseDataSourceSchema(ctx context.Context) schema.Schema
- type DatabaseModel
- type DatabaseType
- func (t DatabaseType) Equal(o attr.Type) bool
- func (t DatabaseType) String() string
- func (t DatabaseType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DatabaseType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DatabaseType) ValueType(ctx context.Context) attr.Value
- type DatabaseValue
- func NewDatabaseValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatabaseValue, diag.Diagnostics)
- func NewDatabaseValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatabaseValue
- func NewDatabaseValueNull() DatabaseValue
- func NewDatabaseValueUnknown() DatabaseValue
- func (v DatabaseValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DatabaseValue) Equal(o attr.Value) bool
- func (v DatabaseValue) IsNull() bool
- func (v DatabaseValue) IsUnknown() bool
- func (v DatabaseValue) String() string
- func (v DatabaseValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DatabaseValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DatabaseValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseModel ¶
type DatabaseModel struct { Database DatabaseValue `tfsdk:"database"` Id types.String `tfsdk:"id"` }
type DatabaseType ¶
type DatabaseType struct {
basetypes.ObjectType
}
func (DatabaseType) String ¶
func (t DatabaseType) String() string
func (DatabaseType) ValueFromObject ¶
func (t DatabaseType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DatabaseType) ValueFromTerraform ¶
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 NewDatabaseValueNull ¶
func NewDatabaseValueNull() DatabaseValue
func NewDatabaseValueUnknown ¶
func NewDatabaseValueUnknown() DatabaseValue
func (DatabaseValue) AttributeTypes ¶
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 (v DatabaseValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DatabaseValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.