Documentation
¶
Index ¶
- func DataSource() datasource.DataSource
- func DataSourceSchema(ctx context.Context) schema.Schema
- func ListFlexRestoreJobs(ctx context.Context, projectID, name string, client admin.FlexRestoreJobsApi) (*[]admin.FlexBackupRestoreJob20241113, error)
- func PluralDataSource() datasource.DataSource
- type TFFlexRestoreJobsDSModel
- type TFModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSource ¶
func DataSource() datasource.DataSource
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
Click to show internal directories.
Click to hide internal directories.