network

package
v1.31.4 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Resource

New returns a new configured resource

Types

type Network

type Network struct {
	ID             types.String   `tfsdk:"id"`
	Name           types.String   `tfsdk:"name"`
	NameServers    types.Set      `tfsdk:"nameservers"`
	Prefixes       types.List     `tfsdk:"prefixes"`
	PrefixLengthV4 types.Int64    `tfsdk:"prefix_length_v4"`
	PublicIp       types.String   `tfsdk:"public_ip"`
	ProjectID      types.String   `tfsdk:"project_id"`
	Timeouts       timeouts.Value `tfsdk:"timeouts"`
}

Network is the schema model

type Resource

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

Resource is the exported resource

func (*Resource) Configure

Configure the resource client

func (Resource) Create

Create - lifecycle function

func (Resource) Delete

Delete - lifecycle function

func (*Resource) ImportState

ImportState handles terraform import

func (*Resource) Metadata

Metadata returns data resource metadata

func (Resource) Read

Read - lifecycle function

func (*Resource) Schema

Schema returns terraform schema structure

func (Resource) Update

Update - lifecycle function

func (*Resource) UpgradeState added in v1.31.4

func (r *Resource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader

Jump to

Keyboard shortcuts

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