networkdhcpserver

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package networkdhcpserver implements a data source for network_dhcp_server

Index

Constants

View Source
const (
	ErrorNoValidSearchTerms         = `no valid search terms - an id or name is required`
	ErrorRunningPreApply            = `Error running pre-apply plan: exit status 1`
	ErrorNoNetworkDhcpServerFound   = `no network DHCP server found`
	ErrorMultipleNetworkDhcpServers = `multiple network DHCP servers were returned`
)

Variables

This section is empty.

Functions

func NetworkDhcpServerDataSourceSchema

func NetworkDhcpServerDataSourceSchema(ctx context.Context) schema.Schema

func NewDataSource

func NewDataSource() datasource.DataSource

NewDataSource is a helper function to simplify the provider implementation.

func RenderNetworkDhcpServerByIdConfig

func RenderNetworkDhcpServerByIdConfig(t *testing.T, overrides map[string]string) (string, error)

func RenderNetworkDhcpServerByNameConfig

func RenderNetworkDhcpServerByNameConfig(t *testing.T, overrides map[string]string) (string, error)

Types

type ConfigNsxtType

type ConfigNsxtType struct {
	basetypes.ObjectType
}

func (ConfigNsxtType) Equal

func (t ConfigNsxtType) Equal(o attr.Type) bool

func (ConfigNsxtType) String

func (t ConfigNsxtType) String() string

func (ConfigNsxtType) ValueFromObject

func (ConfigNsxtType) ValueFromTerraform

func (t ConfigNsxtType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (ConfigNsxtType) ValueType

func (t ConfigNsxtType) ValueType(ctx context.Context) attr.Value

type ConfigNsxtValue

type ConfigNsxtValue struct {
	ActiveEdgeNode  basetypes.StringValue `tfsdk:"active_edge_node"`
	EdgeCluster     basetypes.StringValue `tfsdk:"edge_cluster"`
	StandbyEdgeNode basetypes.StringValue `tfsdk:"standby_edge_node"`
	// contains filtered or unexported fields
}

func NewConfigNsxtValue

func NewConfigNsxtValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ConfigNsxtValue, diag.Diagnostics)

func NewConfigNsxtValueMust

func NewConfigNsxtValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ConfigNsxtValue

func NewConfigNsxtValueNull

func NewConfigNsxtValueNull() ConfigNsxtValue

func NewConfigNsxtValueUnknown

func NewConfigNsxtValueUnknown() ConfigNsxtValue

func (ConfigNsxtValue) AttributeTypes

func (v ConfigNsxtValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (ConfigNsxtValue) Equal

func (v ConfigNsxtValue) Equal(o attr.Value) bool

func (ConfigNsxtValue) IsNull

func (v ConfigNsxtValue) IsNull() bool

func (ConfigNsxtValue) IsUnknown

func (v ConfigNsxtValue) IsUnknown() bool

func (ConfigNsxtValue) String

func (v ConfigNsxtValue) String() string

func (ConfigNsxtValue) ToObjectValue

func (ConfigNsxtValue) ToTerraformValue

func (v ConfigNsxtValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (ConfigNsxtValue) Type

func (v ConfigNsxtValue) Type(ctx context.Context) attr.Type

type DataSource

DataSource is the data source implementation.

func (*DataSource) Metadata

Metadata returns the data source type name.

func (*DataSource) Read

Read refreshes the Terraform state with the latest data.

func (*DataSource) Schema

Schema defines the schema for the data source.

type NetworkDhcpServerModel

type NetworkDhcpServerModel struct {
	Config               types.Dynamic   `tfsdk:"config"`
	ConfigNsxt           ConfigNsxtValue `tfsdk:"config_nsxt"`
	Id                   types.Int64     `tfsdk:"id"`
	LeaseTime            types.Int64     `tfsdk:"lease_time"`
	Name                 types.String    `tfsdk:"name"`
	NetworkIntegrationId types.Int64     `tfsdk:"network_integration_id"`
	ServerIpAddress      types.String    `tfsdk:"server_ip_address"`
}

Jump to

Keyboard shortcuts

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