flexsnapshot

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSource

func DataSource() datasource.DataSource

func DataSourceSchema

func DataSourceSchema(ctx context.Context) schema.Schema

func ListFlexSnapshots

func ListFlexSnapshots(ctx context.Context, projectID, name string, client admin.FlexSnapshotsApi) (*[]admin.FlexBackupSnapshot20241113, error)

func PluralDataSource

func PluralDataSource() datasource.DataSource

Types

type TFFlexSnapshotsDSModel

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

func NewTFModelPluralDS

func NewTFModelPluralDS(projectID, name string, apiResp *[]admin.FlexBackupSnapshot20241113) *TFFlexSnapshotsDSModel

type TFModel

type TFModel struct {
	Expiration     types.String `tfsdk:"expiration"`
	FinishTime     types.String `tfsdk:"finish_time"`
	ProjectId      types.String `tfsdk:"project_id"`
	MongoDBVersion types.String `tfsdk:"mongo_db_version"`
	Name           types.String `tfsdk:"name"`
	ScheduledTime  types.String `tfsdk:"scheduled_time"`
	SnapshotId     types.String `tfsdk:"snapshot_id"`
	StartTime      types.String `tfsdk:"start_time"`
	Status         types.String `tfsdk:"status"`
}

func NewTFModel

func NewTFModel(projectID, name string, apiResp *admin.FlexBackupSnapshot20241113) *TFModel

Jump to

Keyboard shortcuts

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