Documentation
¶
Index ¶
Constants ¶
View Source
const ( NODE_TYPE_SINGLE = "Single" NODE_TYPE_REPLICA = "Replica" NODE_TYPE_SINGLE_VALUE int32 = 1 NODE_TYPE_REPLICA_VALUE int32 = 3 )
Variables ¶
This section is empty.
Functions ¶
func NewInstanceDataSource ¶
func NewInstanceDataSource() datasource.DataSource
NewInstanceDataSource is a helper function to simplify the provider implementation.
func NewInstanceResource ¶
NewInstanceResource is a helper function to simplify the provider implementation.
func UseStateForUnknownIfFlavorUnchanged ¶ added in v0.26.3
func UseStateForUnknownIfFlavorUnchanged(req resource.SchemaRequest) planmodifier.String
UseStateForUnknownIfFlavorUnchanged returns a plan modifier similar to UseStateForUnknown if the RAM and CPU values are not changed in the plan. Otherwise, the plan modifier does nothing.
Types ¶
type Model ¶
type Model struct {
Id types.String `tfsdk:"id"` // needed by TF
InstanceId types.String `tfsdk:"instance_id"`
ProjectId types.String `tfsdk:"project_id"`
Name types.String `tfsdk:"name"`
// Deprecated: ACL is deprecated and will be removed after February 2027.
ACL types.List `tfsdk:"acl"`
BackupSchedule types.String `tfsdk:"backup_schedule"`
ConnectionInfo types.Object `tfsdk:"connection_info"`
Flavor types.Object `tfsdk:"flavor"`
FlavorId types.String `tfsdk:"flavor_id"`
Replicas types.Int32 `tfsdk:"replicas"`
Storage types.Object `tfsdk:"storage"`
Encryption types.Object `tfsdk:"encryption"`
Network types.Object `tfsdk:"network"`
RetentionDays types.Int32 `tfsdk:"retention_days"`
Version types.String `tfsdk:"version"`
Region types.String `tfsdk:"region"`
}
Click to show internal directories.
Click to hide internal directories.