instance

package
v1.29.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyClientResponse added in v1.9.3

func ApplyClientResponse(pi *Instance, i *instance.InstancesSingleInstance) error

func New

func New() datasource.DataSource

New returns a new configured data source

Types

type DataSource

type DataSource struct {
	// contains filtered or unexported fields
}

DataSource is the exported data source

func (*DataSource) Configure

Configure configures the data source client

func (*DataSource) Metadata

Metadata returns data resource metadata

func (DataSource) Read

Read - lifecycle function

func (*DataSource) Schema added in v1.9.0

Schema returns the terraform schema structure

type Instance

type Instance struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	ProjectID      types.String `tfsdk:"project_id"`
	MachineType    types.String `tfsdk:"machine_type"` // aka FlavorID
	Version        types.String `tfsdk:"version"`
	Replicas       types.Int64  `tfsdk:"replicas"`
	BackupSchedule types.String `tfsdk:"backup_schedule"`
	ACL            types.List   `tfsdk:"acl"`
	Storage        types.Object `tfsdk:"storage"`
}

Instance is the schema model

Jump to

Keyboard shortcuts

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