Documentation ¶
Index ¶
- Constants
- Variables
- func ConvertBackupSettingsToTF(ctx context.Context, backupSettings *admin.FlexBackupSettings20241113) (*types.Object, diag.Diagnostics)
- func ConvertConnectionStringsToTF(ctx context.Context, connectionStrings *admin.FlexConnectionStrings20241113) (*types.Object, diag.Diagnostics)
- func ConvertProviderSettingsToTF(ctx context.Context, providerSettings admin.FlexProviderSettings20241113) (*types.Object, diag.Diagnostics)
- func DataSource() datasource.DataSource
- func NewAtlasCreateReq(ctx context.Context, plan *TFModel) (*admin.FlexClusterDescriptionCreate20241113, diag.Diagnostics)
- func NewAtlasUpdateReq(ctx context.Context, plan *TFModel) (*admin.FlexClusterDescriptionUpdate20241113, diag.Diagnostics)
- func PluralDataSource() datasource.DataSource
- func Resource() resource.Resource
- func ResourceSchema(ctx context.Context) schema.Schema
- func WaitStateTransition(ctx context.Context, requestParams *admin.GetFlexClusterApiParams, ...) (*admin.FlexClusterDescription20241113, error)
- func WaitStateTransitionDelete(ctx context.Context, requestParams *admin.GetFlexClusterApiParams, ...) error
- type TFBackupSettings
- type TFConnectionStrings
- type TFModel
- type TFModelDSP
- type TFProviderSettings
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 NewAtlasCreateReq ¶
func NewAtlasCreateReq(ctx context.Context, plan *TFModel) (*admin.FlexClusterDescriptionCreate20241113, diag.Diagnostics)
func NewAtlasUpdateReq ¶
func NewAtlasUpdateReq(ctx context.Context, plan *TFModel) (*admin.FlexClusterDescriptionUpdate20241113, diag.Diagnostics)
func PluralDataSource ¶
func PluralDataSource() datasource.DataSource
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 TFConnectionStrings ¶
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"` }
func NewTFModel ¶
func NewTFModel(ctx context.Context, apiResp *admin.FlexClusterDescription20241113) (*TFModel, diag.Diagnostics)
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)
Click to show internal directories.
Click to hide internal directories.