port

package
v0.0.0-...-8fb3fdf Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

func PortResourcePayload

func PortResourcePayload(ctx context.Context, plan *resourceModel) (openApiClient.UpdateDeviceSwitchPortRequest, diag.Diagnostics)

func PortResourceState

func PortResourceState(ctx context.Context, response *openApiClient.GetDeviceSwitchPorts200ResponseInner, state *resourceModel) (*resourceModel, diag.Diagnostics)

Types

type PortsDataSourceModel

type PortsDataSourceModel struct {
	Serial jsontypes.String `tfsdk:"id" json:"serial"`
	Ports  []resourceModel  `tfsdk:"list"`
}

type Resource

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

func (*Resource) Configure

Configure is a method of the Resource interface that Terraform calls to provide the configured provider instance to the resource.

func (*Resource) Create

Create method is responsible for creating a new resource.

func (*Resource) Delete

Delete function is responsible for deleting a resource.

func (*Resource) ImportState

ImportState function is used to import an existing resource into Terraform.

func (*Resource) Metadata

Metadata provides a way to define information about the resource.

func (*Resource) Read

Read method is responsible for reading an existing resource's state.

func (*Resource) Schema

Schema provides a way to define the structure of the resource data.

func (*Resource) Update

Update function is responsible for updating the state of an existing resource.

Jump to

Keyboard shortcuts

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