flexrestorejob

package
v1.29.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 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 ListFlexRestoreJobs

func ListFlexRestoreJobs(ctx context.Context, projectID, name string, client admin.FlexRestoreJobsApi) (*[]admin.FlexBackupRestoreJob20241113, error)

func PluralDataSource

func PluralDataSource() datasource.DataSource

Types

type TFFlexRestoreJobsDSModel

type TFFlexRestoreJobsDSModel 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.FlexBackupRestoreJob20241113) *TFFlexRestoreJobsDSModel

type TFModel

type TFModel struct {
	DeliveryType             types.String `tfsdk:"delivery_type"`
	ExpirationDate           types.String `tfsdk:"expiration_date"`
	ProjectID                types.String `tfsdk:"project_id"`
	RestoreJobID             types.String `tfsdk:"restore_job_id"`
	Name                     types.String `tfsdk:"name"`
	RestoreFinishedDate      types.String `tfsdk:"restore_finished_date"`
	RestoreScheduledDate     types.String `tfsdk:"restore_scheduled_date"`
	SnapshotFinishedDate     types.String `tfsdk:"snapshot_finished_date"`
	SnapshotID               types.String `tfsdk:"snapshot_id"`
	SnapshotUrl              types.String `tfsdk:"snapshot_url"`
	Status                   types.String `tfsdk:"status"`
	TargetDeploymentItemName types.String `tfsdk:"target_deployment_item_name"`
	TargetProjectID          types.String `tfsdk:"target_project_id"`
}

func NewTFModel

func NewTFModel(apiResp *admin.FlexBackupRestoreJob20241113) *TFModel

Jump to

Keyboard shortcuts

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