vlan

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ipv6AttrTypes

func Ipv6AttrTypes() map[string]attr.Type

Ipv6AttrTypes is Used in both the vlan_resource and vlan_datasource

func Ipv6PrefixAssignmentAttrTypes

func Ipv6PrefixAssignmentAttrTypes() map[string]attr.Type

Ipv6PrefixAssignmentAttrTypes returns the attribute types for a prefix assignment.

func Ipv6PrefixAssignmentOriginAttrMap

func Ipv6PrefixAssignmentOriginAttrMap(origin *Ipv6PrefixAssignmentOrigin) map[string]attr.Value

Ipv6PrefixAssignmentOriginAttrMap returns the attribute map for a given origin. It converts a Ipv6PrefixAssignmentOrigin instance to a map suitable for ObjectValueFrom.

func Ipv6PrefixAssignmentOriginAttrTypes

func Ipv6PrefixAssignmentOriginAttrTypes() map[string]attr.Type

Ipv6PrefixAssignmentOriginAttrTypes returns the attribute types for the origin. This function is useful to define the schema of the origin in a consistent manner.

func NewNDatasource

func NewNDatasource() datasource.DataSource

func NewResource

func NewResource() resource.Resource

func ReadHttpResponse

ReadHttpResponse - used by READ, UPDATE & DELETE funcs

Types

type Datasource

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

Datasource defines the resource implementation.

func (*Datasource) Configure

func (*Datasource) Metadata

func (*Datasource) Read

func (*Datasource) Schema

type FixedIpAssignment

type FixedIpAssignment struct {
	IP   string `json:"ip"`
	Name string `json:"name"`
}

type FixedIpAssignmentTerraform

type FixedIpAssignmentTerraform struct {
	IP   types.String `tfsdk:"ip"`
	Name types.String `tfsdk:"name"`
}

type Ipv6PrefixAssignment

type Ipv6PrefixAssignment struct {
	Autonomous         types.Bool   `tfsdk:"autonomous" json:"autonomous"`
	StaticPrefix       types.String `tfsdk:"static_prefix" json:"staticPrefix"`
	StaticApplianceIp6 types.String `tfsdk:"static_appliance_ip6" json:"staticApplianceIp6"`
	Origin             types.Object `tfsdk:"origin" json:"origin"`
}

Ipv6PrefixAssignment represents a prefix assignment for an IPv6 configuration in the VLAN resource model.

func (*Ipv6PrefixAssignment) FromAPIResponse

FromAPIResponse fills the Ipv6PrefixAssignment with data from the API response. This method transforms the OpenAPI response into the format expected by the Terraform provider. This method is used in both the vlan_resource and the vlan_datasource

func (*Ipv6PrefixAssignment) ToAPIPayload

ToAPIPayload converts the Terraform prefix assignment into the API prefix assignment payload.

func (*Ipv6PrefixAssignment) ToTerraformObject

func (pa *Ipv6PrefixAssignment) ToTerraformObject(ctx context.Context) (map[string]attr.Value, diag.Diagnostics)

ToTerraformObject converts the Ipv6PrefixAssignment instance to a map suitable for ObjectValueFrom.

type Ipv6PrefixAssignmentOrigin

type Ipv6PrefixAssignmentOrigin struct {
	Type       types.String `tfsdk:"type" json:"type"`
	Interfaces types.Set    `tfsdk:"interfaces" json:"interfaces"`
}

Ipv6PrefixAssignmentOrigin represents the origin data structure for a VLAN resource model.

func (*Ipv6PrefixAssignmentOrigin) FromAPIResponse

FromAPIResponse fills the Ipv6PrefixAssignmentOrigin with data from the API response. This method transforms the OpenAPI response into the format expected by the Terraform provider.

func (*Ipv6PrefixAssignmentOrigin) ToAPIPayload

ToAPIPayload converts the Terraform origin into the API origin payload.

type NetworksApplianceVLANModel

type NetworksApplianceVLANModel struct {
	Id                     types.String `tfsdk:"id" json:"-"`
	NetworkId              types.String `tfsdk:"network_id" json:"networkId"`
	VlanId                 types.Int64  `tfsdk:"vlan_id" json:"id"`
	InterfaceId            types.String `tfsdk:"interface_id" json:"interfaceId,omitempty"`
	Name                   types.String `tfsdk:"name" json:"name"`
	Subnet                 types.String `tfsdk:"subnet" json:"subnet"`
	ApplianceIp            types.String `tfsdk:"appliance_ip" json:"applianceIp"`
	GroupPolicyId          types.String `tfsdk:"group_policy_id" json:"groupPolicyId"`
	TemplateVlanType       types.String `tfsdk:"template_vlan_type" json:"templateVlanType"`
	Cidr                   types.String `tfsdk:"cidr" json:"cidr"`
	Mask                   types.Int64  `tfsdk:"mask" json:"mask"`
	DhcpRelayServerIps     types.List   `tfsdk:"dhcp_relay_server_ips" json:"dhcpRelayServerIps"`
	DhcpHandling           types.String `tfsdk:"dhcp_handling" json:"dhcpHandling"`
	DhcpLeaseTime          types.String `tfsdk:"dhcp_lease_time" json:"dhcpLeaseTime"`
	DhcpBootOptionsEnabled types.Bool   `tfsdk:"dhcp_boot_options_enabled" json:"dhcpBootOptionsEnabled"`
	DhcpBootNextServer     types.String `tfsdk:"dhcp_boot_next_server" json:"dhcpBootNextServer"`
	DhcpBootFilename       types.String `tfsdk:"dhcp_boot_filename" json:"dhcpBootFilename"`
	FixedIpAssignments     types.Map    `tfsdk:"fixed_ip_assignments" json:"fixedIpAssignments"`
	ReservedIpRanges       types.List   `tfsdk:"reserved_ip_ranges" json:"reservedIpRanges"`
	DnsNameservers         types.String `tfsdk:"dns_nameservers" json:"dnsNameservers"`
	DhcpOptions            types.List   `tfsdk:"dhcp_options" json:"dhcpOptions"`
	VpnNatSubnet           types.String `tfsdk:"vpn_nat_subnet" json:"vpnNatSubnet"`
	MandatoryDhcp          types.Object `tfsdk:"mandatory_dhcp" json:"MandatoryDhcp"`
	IPv6                   types.Object `tfsdk:"ipv6" json:"ipv6"`
}

NetworksApplianceVLANModel is Used in both the vlan_resource and vlan_datasource

type NetworksApplianceVLANModelIpv6

type NetworksApplianceVLANModelIpv6 struct {
	Enabled           types.Bool `tfsdk:"enabled" json:"enabled"`
	PrefixAssignments types.List `tfsdk:"prefix_assignments" json:"prefixAssignments"`
}

NetworksApplianceVLANModelIpv6 represents the IPv6 configuration for a VLAN resource model. For both the vlan_resource and vlan_datasource

func (*NetworksApplianceVLANModelIpv6) FromAPIResponse

FromAPIResponse transforms an API response into the NetworksApplianceVLANModelIpv6 Terraform structure.

func (*NetworksApplianceVLANModelIpv6) ToAPIPayload

ToAPIPayload converts the Terraform resource data model into the API payload.

type NetworksApplianceVLANModelMandatoryDhcp

type NetworksApplianceVLANModelMandatoryDhcp struct {
	Enabled types.Bool `tfsdk:"enabled" json:"enabled"`
}

type NetworksApplianceVLANModelReservedIpRange

type NetworksApplianceVLANModelReservedIpRange struct {
	Start   types.String `tfsdk:"start" json:"start"`
	End     types.String `tfsdk:"end" json:"end"`
	Comment types.String `tfsdk:"comment" json:"comment"`
}

func (*NetworksApplianceVLANModelReservedIpRange) FromTerraformValue

func (n *NetworksApplianceVLANModelReservedIpRange) FromTerraformValue(val tftypes.Value) error

type NetworksApplianceVLANResourceModelDhcpOption

type NetworksApplianceVLANResourceModelDhcpOption struct {
	Code  types.String `tfsdk:"code" json:"code"`
	Type  types.String `tfsdk:"type" json:"type"`
	Value types.String `tfsdk:"value" json:"value"`
}

func (*NetworksApplianceVLANResourceModelDhcpOption) FromTerraformValue

type Resource

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

Resource defines the resource implementation.

func (*Resource) Configure

func (*Resource) Create

func (*Resource) Delete

func (*Resource) ImportState

func (*Resource) Metadata

func (*Resource) Read

func (*Resource) Schema

func (*Resource) Update

Jump to

Keyboard shortcuts

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