gateway

package
v1.36.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDataSource

func NewDataSource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

Types

type DataSource

type DataSource struct {
	framework.BaseDataSource
}

func (*DataSource) Read

type DataSourceModel

type DataSourceModel struct {
	ID                    types.String `tfsdk:"id"`
	GatewayID             types.String `tfsdk:"gateway_id"`
	ProjectID             types.String `tfsdk:"project_id"`
	VlanID                types.String `tfsdk:"vlan_id"`
	VrfID                 types.String `tfsdk:"vrf_id"`
	IPReservationID       types.String `tfsdk:"ip_reservation_id"`
	PrivateIPv4SubnetSize types.Int64  `tfsdk:"private_ipv4_subnet_size"`
	State                 types.String `tfsdk:"state"`
}

type Resource

type Resource struct {
	framework.BaseResource
	framework.WithTimeouts
}

func (*Resource) Create

func (*Resource) Delete

func (*Resource) Read

func (*Resource) Schema

func (r *Resource) Schema(
	ctx context.Context,
	req resource.SchemaRequest,
	resp *resource.SchemaResponse,
)

func (*Resource) Update

func (r *Resource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type ResourceModel

type ResourceModel struct {
	ID                    types.String   `tfsdk:"id"`
	ProjectID             types.String   `tfsdk:"project_id"`
	VlanID                types.String   `tfsdk:"vlan_id"`
	VrfID                 types.String   `tfsdk:"vrf_id"`
	IPReservationID       types.String   `tfsdk:"ip_reservation_id"`
	PrivateIPv4SubnetSize types.Int64    `tfsdk:"private_ipv4_subnet_size"`
	State                 types.String   `tfsdk:"state"`
	Timeouts              timeouts.Value `tfsdk:"timeouts"`
}

Jump to

Keyboard shortcuts

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