flexcluster

package
v1.24.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorUpdateNotAllowed = "update not allowed"

Variables

View Source
var BackupSettingsType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"enabled": types.BoolType,
}}
View Source
var ConnectionStringsType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"standard":     types.StringType,
	"standard_srv": types.StringType,
}}
View Source
var ProviderSettingsType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"backing_provider_name": types.StringType,
	"disk_size_gb":          types.Float64Type,
	"provider_name":         types.StringType,
	"region_name":           types.StringType,
}}

Functions

func ConvertBackupSettingsToTF

func ConvertBackupSettingsToTF(ctx context.Context, backupSettings *admin.FlexBackupSettings20241113) (*types.Object, diag.Diagnostics)

func ConvertConnectionStringsToTF

func ConvertConnectionStringsToTF(ctx context.Context, connectionStrings *admin.FlexConnectionStrings20241113) (*types.Object, diag.Diagnostics)

func ConvertProviderSettingsToTF

func ConvertProviderSettingsToTF(ctx context.Context, providerSettings admin.FlexProviderSettings20241113) (*types.Object, diag.Diagnostics)

func DataSource

func DataSource() datasource.DataSource

func PluralDataSource

func PluralDataSource() datasource.DataSource

func Resource

func Resource() resource.Resource

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

func WaitStateTransition

func WaitStateTransition(ctx context.Context, requestParams *admin.GetFlexClusterApiParams, client admin.FlexClustersApi, pendingStates, desiredStates []string) (*admin.FlexClusterDescription20241113, error)

func WaitStateTransitionDelete

func WaitStateTransitionDelete(ctx context.Context, requestParams *admin.GetFlexClusterApiParams, client admin.FlexClustersApi) error

Types

type TFBackupSettings

type TFBackupSettings struct {
	Enabled types.Bool `tfsdk:"enabled"`
}

type TFConnectionStrings

type TFConnectionStrings struct {
	Standard    types.String `tfsdk:"standard"`
	StandardSrv types.String `tfsdk:"standard_srv"`
}

type TFModel

type TFModel struct {
	ProviderSettings             types.Object `tfsdk:"provider_settings"`
	ConnectionStrings            types.Object `tfsdk:"connection_strings"`
	Tags                         types.Map    `tfsdk:"tags"`
	CreateDate                   types.String `tfsdk:"create_date"`
	ProjectId                    types.String `tfsdk:"project_id"`
	Id                           types.String `tfsdk:"id"`
	MongoDbversion               types.String `tfsdk:"mongo_db_version"`
	Name                         types.String `tfsdk:"name"`
	ClusterType                  types.String `tfsdk:"cluster_type"`
	StateName                    types.String `tfsdk:"state_name"`
	VersionReleaseSystem         types.String `tfsdk:"version_release_system"`
	BackupSettings               types.Object `tfsdk:"backup_settings"`
	TerminationProtectionEnabled types.Bool   `tfsdk:"termination_protection_enabled"`
}

type TFModelDSP

type TFModelDSP struct {
	ProjectId types.String `tfsdk:"project_id"`
	Results   []TFModel    `tfsdk:"results"`
}

func NewTFModelDSP

func NewTFModelDSP(ctx context.Context, projectID string, input []admin.FlexClusterDescription20241113) (*TFModelDSP, diag.Diagnostics)

type TFProviderSettings

type TFProviderSettings struct {
	BackingProviderName types.String  `tfsdk:"backing_provider_name"`
	DiskSizeGb          types.Float64 `tfsdk:"disk_size_gb"`
	ProviderName        types.String  `tfsdk:"provider_name"`
	RegionName          types.String  `tfsdk:"region_name"`
}

Jump to

Keyboard shortcuts

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