vpcsubnets

package
v2.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

Types

type DataSource

type DataSource struct {
	helper.BaseDataSource
}

func (*DataSource) Read

type VPCSubnetFilterModel

type VPCSubnetFilterModel struct {
	ID         types.String                     `tfsdk:"id"`
	VPCId      types.Int64                      `tfsdk:"vpc_id"`
	Filters    frameworkfilter.FiltersModelType `tfsdk:"filter"`
	VPCSubnets []VPCSubnetModel                 `tfsdk:"vpc_subnets"`
}

VPCSubnetFilterModel describes the Terraform resource data model to match the resource schema.

func (*VPCSubnetFilterModel) FlattenSubnets added in v2.12.0

func (model *VPCSubnetFilterModel) FlattenSubnets(
	ctx context.Context,
	subnets []linodego.VPCSubnet,
	preserveKnown bool,
) diag.Diagnostics

func (*VPCSubnetFilterModel) ListVPCSubnets

func (data *VPCSubnetFilterModel) ListVPCSubnets(
	ctx context.Context,
	client *linodego.Client,
	filter string,
) ([]any, error)

type VPCSubnetModel

type VPCSubnetModel struct {
	ID      types.Int64       `tfsdk:"id"`
	Label   types.String      `tfsdk:"label"`
	IPv4    types.String      `tfsdk:"ipv4"`
	Linodes types.List        `tfsdk:"linodes"`
	Created timetypes.RFC3339 `tfsdk:"created"`
	Updated timetypes.RFC3339 `tfsdk:"updated"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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