design

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlphaNumericChars  = "[A-Za-z0-9_-]"
	AlphaNumericRegexp = "^" + AlphaNumericChars + "*$"

	AsnAllocationSingle = "single"
	AsnAllocationUnique = "unique"

	OverlayControlProtocolEvpn   = "evpn"
	OverlayControlProtocolStatic = "static"

	VlanMin = 1
	VlanMax = 4094

	PoIdMin = 0
	PoIdMax = 4096
)

Variables

This section is empty.

Functions

func LeafRedundancyModes

func LeafRedundancyModes() []string

LeafRedundancyModes returns permitted fabric_connectivity_design mode strings

func NewAccessSwitchMap

func NewAccessSwitchMap(ctx context.Context, in []apstra.RackElementAccessSwitch, diags *diag.Diagnostics) types.Map

func NewDesignTemplateSpineObject

func NewDesignTemplateSpineObject(ctx context.Context, in *apstra.Spine, diags *diag.Diagnostics) types.Object

func NewDesignTemplateSuperSpineObject added in v0.55.0

func NewDesignTemplateSuperSpineObject(ctx context.Context, in *apstra.Superspine, diags *diag.Diagnostics) types.Object

func NewEsiLagInfo

func NewEsiLagInfo(ctx context.Context, in *apstra.EsiLagInfo, diags *diag.Diagnostics) types.Object

func NewGenericSystemMap

func NewGenericSystemMap(ctx context.Context, in []apstra.RackElementGenericSystem, diags *diag.Diagnostics) types.Map

func NewInterfaceMapInterfaceSet

func NewInterfaceMapInterfaceSet(ctx context.Context, in []apstra.InterfaceMapInterface, diags *diag.Diagnostics) types.Set

func NewInterfaceMapMappingObject

func NewInterfaceMapMappingObject(ctx context.Context, in *apstra.InterfaceMapMapping, diags *diag.Diagnostics) types.Object

func NewLinkMap

func NewLinkMap(ctx context.Context, in []apstra.RackLink, diags *diag.Diagnostics) types.Map

func NewLogicalDeviceObject

func NewLogicalDeviceObject(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics) types.Object

func NewLogicalDevicePanelList

func NewLogicalDevicePanelList(ctx context.Context, in []apstra.LogicalDevicePanel, diags *diag.Diagnostics) types.List

func NewMlagInfoObject

func NewMlagInfoObject(ctx context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics) types.Object

func NewPodInfoMap added in v0.55.0

func NewPodInfoMap(ctx context.Context, in *apstra.TemplatePodBasedData, diags *diag.Diagnostics) types.Map

func NewRackInfoMap

func NewRackInfoMap(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics) types.Map

func NewRackTypeObject

func NewRackTypeObject(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics) types.Object

func NewTagSet

func NewTagSet(ctx context.Context, in []apstra.DesignTagData, diags *diag.Diagnostics) types.Set

func NewTemplateRackBasedObject added in v0.55.0

func NewTemplateRackBasedObject(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics) types.Object

func ValidateAccessSwitch

func ValidateAccessSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)

func ValidateConfigletGenerator

func ValidateConfigletGenerator() validator.Object

func ValidateFcdSupport

func ValidateFcdSupport(_ context.Context, fcd apstra.FabricConnectivityDesign, diags *diag.Diagnostics)

func ValidateGenericSystem

func ValidateGenericSystem(rt *apstra.RackType, i int, diags *diag.Diagnostics)

func ValidateLeafSwitch

func ValidateLeafSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)

func ValidateRackType

func ValidateRackType(ctx context.Context, in *apstra.RackType, diags *diag.Diagnostics)

Types

type AccessSwitch

type AccessSwitch struct {
	LogicalDeviceId    types.String `tfsdk:"logical_device_id"`
	LogicalDevice      types.Object `tfsdk:"logical_device"`
	EsiLagInfo         types.Object `tfsdk:"esi_lag_info"`
	RedundancyProtocol types.String `tfsdk:"redundancy_protocol"`
	Count              types.Int64  `tfsdk:"count"`
	Links              types.Map    `tfsdk:"links"`
	TagIds             types.Set    `tfsdk:"tag_ids"`
	Tags               types.Set    `tfsdk:"tags"`
}

func (AccessSwitch) AttrTypes

func (o AccessSwitch) AttrTypes() map[string]attr.Type

func (*AccessSwitch) CopyWriteOnlyElements

func (o *AccessSwitch) CopyWriteOnlyElements(ctx context.Context, src *AccessSwitch, diags *diag.Diagnostics)

func (AccessSwitch) DataSourceAttributes

func (o AccessSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (o *AccessSwitch) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink

func (*AccessSwitch) LoadApiData

func (o *AccessSwitch) LoadApiData(ctx context.Context, in *apstra.RackElementAccessSwitch, diags *diag.Diagnostics)

func (*AccessSwitch) Request

func (AccessSwitch) ResourceAttributes

func (o AccessSwitch) ResourceAttributes() map[string]resourceSchema.Attribute

func (AccessSwitch) ResourceAttributesNested

func (o AccessSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute

type Configlet

type Configlet struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Generators types.List   `tfsdk:"generators"`
}

func (Configlet) DataSourceAttributes

func (o Configlet) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*Configlet) LoadApiData

func (o *Configlet) LoadApiData(ctx context.Context, in *apstra.ConfigletData, diags *diag.Diagnostics)

func (*Configlet) Request

func (o *Configlet) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.ConfigletData

func (Configlet) ResourceAttributes

func (o Configlet) ResourceAttributes() map[string]resourceSchema.Attribute

type ConfigletGenerator

type ConfigletGenerator struct {
	ConfigStyle          types.String `tfsdk:"config_style"`
	Section              types.String `tfsdk:"section"`
	TemplateText         types.String `tfsdk:"template_text"`
	NegationTemplateText types.String `tfsdk:"negation_template_text"`
	FileName             types.String `tfsdk:"filename"`
}

func (ConfigletGenerator) AttrTypes

func (o ConfigletGenerator) AttrTypes() map[string]attr.Type

func (ConfigletGenerator) DataSourceAttributesNested

func (o ConfigletGenerator) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*ConfigletGenerator) LoadApiData

func (o *ConfigletGenerator) LoadApiData(ctx context.Context, in *apstra.ConfigletGenerator, diags *diag.Diagnostics)

func (*ConfigletGenerator) Request

func (ConfigletGenerator) ResourceAttributesNested

func (o ConfigletGenerator) ResourceAttributesNested() map[string]resourceSchema.Attribute

type ConfigletGeneratorValidator

type ConfigletGeneratorValidator struct {
}

func (ConfigletGeneratorValidator) Description

func (ConfigletGeneratorValidator) MarkdownDescription

func (o ConfigletGeneratorValidator) MarkdownDescription(ctx context.Context) string

func (ConfigletGeneratorValidator) ValidateObject

type EsiLagInfo

type EsiLagInfo struct {
	L3PeerLinkCount types.Int64  `tfsdk:"l3_peer_link_count"`
	L3PeerLinkSpeed types.String `tfsdk:"l3_peer_link_speed"`
}

func (EsiLagInfo) AttrTypes

func (o EsiLagInfo) AttrTypes() map[string]attr.Type

func (EsiLagInfo) DataSourceAttributes

func (o EsiLagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*EsiLagInfo) LoadApiData

func (o *EsiLagInfo) LoadApiData(_ context.Context, in *apstra.EsiLagInfo, _ *diag.Diagnostics)

func (*EsiLagInfo) Request

func (o *EsiLagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.EsiLagInfo

func (EsiLagInfo) ResourceAttributes

func (o EsiLagInfo) ResourceAttributes() map[string]resourceSchema.Attribute

type GenericSystem

type GenericSystem struct {
	LogicalDeviceId  types.String `tfsdk:"logical_device_id"`
	LogicalDevice    types.Object `tfsdk:"logical_device"`
	PortChannelIdMin types.Int64  `tfsdk:"port_channel_id_min"`
	PortChannelIdMax types.Int64  `tfsdk:"port_channel_id_max"`
	Count            types.Int64  `tfsdk:"count"`
	Links            types.Map    `tfsdk:"links"`
	TagIds           types.Set    `tfsdk:"tag_ids"`
	Tags             types.Set    `tfsdk:"tags"`
}

func (GenericSystem) AttrTypes

func (o GenericSystem) AttrTypes() map[string]attr.Type

func (*GenericSystem) CopyWriteOnlyElements

func (o *GenericSystem) CopyWriteOnlyElements(ctx context.Context, src *GenericSystem, diags *diag.Diagnostics)

func (GenericSystem) DataSourceAttributes

func (o GenericSystem) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (o *GenericSystem) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink

func (*GenericSystem) LoadApiData

func (o *GenericSystem) LoadApiData(ctx context.Context, in *apstra.RackElementGenericSystem, diags *diag.Diagnostics)

func (*GenericSystem) Request

func (GenericSystem) ResourceAttributes

func (o GenericSystem) ResourceAttributes() map[string]resourceSchema.Attribute

func (GenericSystem) ResourceAttributesNested

func (o GenericSystem) ResourceAttributesNested() map[string]resourceSchema.Attribute

type InterfaceMap

type InterfaceMap struct {
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	LogicalDevice types.String `tfsdk:"logical_device_id"`
	DeviceProfile types.String `tfsdk:"device_profile_id"`
	Interfaces    types.Set    `tfsdk:"interfaces"`
}

func (InterfaceMap) DataSourceAttributes

func (o InterfaceMap) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*InterfaceMap) LoadApiData

func (o *InterfaceMap) LoadApiData(ctx context.Context, in *apstra.InterfaceMapData, diags *diag.Diagnostics)

type InterfaceMapInterface

type InterfaceMapInterface struct {
	Name     types.String `tfsdk:"name"`
	Roles    types.Set    `tfsdk:"roles"`
	Mapping  types.Object `tfsdk:"mapping"`
	Active   types.Bool   `tfsdk:"active"`
	Position types.Int64  `tfsdk:"position"`
	Speed    types.String `tfsdk:"speed"`
	Setting  types.String `tfsdk:"setting"`
}

func (InterfaceMapInterface) AttrTypes

func (o InterfaceMapInterface) AttrTypes() map[string]attr.Type

func (InterfaceMapInterface) DataSourceSchema

func (o InterfaceMapInterface) DataSourceSchema() map[string]dataSourceSchema.Attribute

func (*InterfaceMapInterface) LoadApiData

type InterfaceMapMapping

type InterfaceMapMapping struct {
	DPPort      types.Int64 `tfsdk:"device_profile_port_id"`
	DPTransform types.Int64 `tfsdk:"device_profile_transformation_id"`
	DPInterface types.Int64 `tfsdk:"device_profile_interface_id"`
	LDPanel     types.Int64 `tfsdk:"logical_device_panel"`
	LDPort      types.Int64 `tfsdk:"logical_device_panel_port"`
}

func (InterfaceMapMapping) AttrTypes

func (o InterfaceMapMapping) AttrTypes() map[string]attr.Type

func (InterfaceMapMapping) DataSourceAttributes

func (o InterfaceMapMapping) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*InterfaceMapMapping) LoadApiData

type LeafSwitch

type LeafSwitch struct {
	LogicalDeviceId    types.String `tfsdk:"logical_device_id"`
	LogicalDevice      types.Object `tfsdk:"logical_device"`
	MlagInfo           types.Object `tfsdk:"mlag_info"`
	RedundancyProtocol types.String `tfsdk:"redundancy_protocol"`
	SpineLinkCount     types.Int64  `tfsdk:"spine_link_count"`
	SpineLinkSpeed     types.String `tfsdk:"spine_link_speed"`
	TagIds             types.Set    `tfsdk:"tag_ids"`
	Tags               types.Set    `tfsdk:"tags"`
}

func (LeafSwitch) AttrTypes

func (o LeafSwitch) AttrTypes() map[string]attr.Type

func (*LeafSwitch) CopyWriteOnlyElements

func (o *LeafSwitch) CopyWriteOnlyElements(ctx context.Context, src *LeafSwitch, diags *diag.Diagnostics)

func (LeafSwitch) DataSourceAttributes

func (o LeafSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*LeafSwitch) LoadApiData

func (LeafSwitch) ResourceAttributes

func (o LeafSwitch) ResourceAttributes() map[string]resourceSchema.Attribute

func (LeafSwitch) ResourceAttributesNested

func (o LeafSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute

type LogicalDevice

type LogicalDevice struct {
	Id     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	Panels types.List   `tfsdk:"panels"`
}

func (LogicalDevice) AttrTypes

func (o LogicalDevice) AttrTypes() map[string]attr.Type

func (LogicalDevice) DataSourceAttributes

func (o LogicalDevice) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (LogicalDevice) DataSourceAttributesNested

func (o LogicalDevice) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*LogicalDevice) GetPanels

func (o *LogicalDevice) GetPanels(ctx context.Context, diags *diag.Diagnostics) []LogicalDevicePanel

func (*LogicalDevice) LoadApiData

func (o *LogicalDevice) LoadApiData(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics)

func (*LogicalDevice) Request

func (LogicalDevice) ResourceAttributes

func (o LogicalDevice) ResourceAttributes() map[string]resourceSchema.Attribute

func (LogicalDevice) ResourceAttributesNested

func (o LogicalDevice) ResourceAttributesNested() map[string]resourceSchema.Attribute

type LogicalDevicePanel

type LogicalDevicePanel struct {
	Rows       types.Int64 `tfsdk:"rows"`
	Columns    types.Int64 `tfsdk:"columns"`
	PortGroups types.List  `tfsdk:"port_groups"`
}

func (LogicalDevicePanel) AttrTypes

func (o LogicalDevicePanel) AttrTypes() map[string]attr.Type

func (LogicalDevicePanel) DataSourceAttributes

func (o LogicalDevicePanel) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*LogicalDevicePanel) GetPortGroups

func (*LogicalDevicePanel) LoadApiData

func (o *LogicalDevicePanel) LoadApiData(ctx context.Context, in *apstra.LogicalDevicePanel, diags *diag.Diagnostics)

func (*LogicalDevicePanel) Request

func (LogicalDevicePanel) ResourceAttributes

func (o LogicalDevicePanel) ResourceAttributes() map[string]resourceSchema.Attribute

func (LogicalDevicePanel) ResourceAttributesReadOnly

func (o LogicalDevicePanel) ResourceAttributesReadOnly() map[string]resourceSchema.Attribute

func (*LogicalDevicePanel) Validate

func (o *LogicalDevicePanel) Validate(ctx context.Context, i int, diags *diag.Diagnostics)

type LogicalDevicePanelPortGroup

type LogicalDevicePanelPortGroup struct {
	PortCount types.Int64  `tfsdk:"port_count"`
	PortSpeed types.String `tfsdk:"port_speed"`
	PortRoles types.Set    `tfsdk:"port_roles"`
}

func (LogicalDevicePanelPortGroup) AttrTypes

func (o LogicalDevicePanelPortGroup) AttrTypes() map[string]attr.Type

func (LogicalDevicePanelPortGroup) DataSourceAttributes

func (o LogicalDevicePanelPortGroup) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*LogicalDevicePanelPortGroup) LoadApiData

func (LogicalDevicePanelPortGroup) ResourceAttributes

func (o LogicalDevicePanelPortGroup) ResourceAttributes() map[string]resourceSchema.Attribute

func (LogicalDevicePanelPortGroup) ResourceAttributesNested

func (o LogicalDevicePanelPortGroup) ResourceAttributesNested() map[string]resourceSchema.Attribute

type MlagInfo

type MlagInfo struct {
	MlagKeepaliveVLan       types.Int64  `tfsdk:"mlag_keepalive_vlan"`
	PeerLinkCount           types.Int64  `tfsdk:"peer_link_count"`
	PeerLinkSpeed           types.String `tfsdk:"peer_link_speed"`
	PeerLinkPortChannelId   types.Int64  `tfsdk:"peer_link_port_channel_id"`
	L3PeerLinkCount         types.Int64  `tfsdk:"l3_peer_link_count"`
	L3PeerLinkSpeed         types.String `tfsdk:"l3_peer_link_speed"`
	L3PeerLinkPortChannelId types.Int64  `tfsdk:"l3_peer_link_port_channel_id"`
}

func (MlagInfo) AttrTypes

func (o MlagInfo) AttrTypes() map[string]attr.Type

func (MlagInfo) DataSourceAttributes

func (o MlagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*MlagInfo) LoadApiData

func (o *MlagInfo) LoadApiData(_ context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics)

func (*MlagInfo) Request

func (o *MlagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.LeafMlagInfo

func (MlagInfo) ResourceAttributes

func (o MlagInfo) ResourceAttributes() map[string]resourceSchema.Attribute

type PropertySet

type PropertySet struct {
	Id         types.String `tfsdk:"id"`
	Name       types.String `tfsdk:"name"`
	Data       types.String `tfsdk:"data"`
	Blueprints types.Set    `tfsdk:"blueprints"`
	Keys       types.Set    `tfsdk:"keys"`
}

func (PropertySet) DataSourceAttributes

func (o PropertySet) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*PropertySet) LoadApiData

func (o *PropertySet) LoadApiData(ctx context.Context, in *apstra.PropertySetData, diags *diag.Diagnostics)

func (*PropertySet) Request

func (PropertySet) ResourceAttributes

func (o PropertySet) ResourceAttributes() map[string]resourceSchema.Attribute
type RackLink struct {
	TargetSwitchName types.String `tfsdk:"target_switch_name"`
	LagMode          types.String `tfsdk:"lag_mode"`
	LinksPerSwitch   types.Int64  `tfsdk:"links_per_switch"`
	Speed            types.String `tfsdk:"speed"`
	SwitchPeer       types.String `tfsdk:"switch_peer"`
	TagIds           types.Set    `tfsdk:"tag_ids"`
	Tags             types.Set    `tfsdk:"tags"`
}

func (RackLink) AttrTypes

func (o RackLink) AttrTypes() map[string]attr.Type

func (*RackLink) CopyWriteOnlyElements

func (o *RackLink) CopyWriteOnlyElements(ctx context.Context, src *RackLink, diags *diag.Diagnostics)

func (RackLink) DataSourceAttributes

func (o RackLink) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*RackLink) LinkAttachmentType

func (o *RackLink) LinkAttachmentType(upstreamRedundancyMode fmt.Stringer, _ *diag.Diagnostics) apstra.RackLinkAttachmentType

func (*RackLink) LoadApiData

func (o *RackLink) LoadApiData(ctx context.Context, in *apstra.RackLink, diags *diag.Diagnostics)

func (*RackLink) Request

func (o *RackLink) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackLinkRequest

func (RackLink) ResourceAttributes

func (o RackLink) ResourceAttributes() map[string]resourceSchema.Attribute

func (RackLink) ResourceAttributesNested

func (o RackLink) ResourceAttributesNested() map[string]resourceSchema.Attribute

type RackType

type RackType struct {
	Id                       types.String `tfsdk:"id"`
	Name                     types.String `tfsdk:"name"`
	Description              types.String `tfsdk:"description"`
	FabricConnectivityDesign types.String `tfsdk:"fabric_connectivity_design"`
	LeafSwitches             types.Map    `tfsdk:"leaf_switches"`
	AccessSwitches           types.Map    `tfsdk:"access_switches"`
	GenericSystems           types.Map    `tfsdk:"generic_systems"`
}

func (RackType) AttrTypes

func (o RackType) AttrTypes() map[string]attr.Type

func (*RackType) CopyWriteOnlyElements

func (o *RackType) CopyWriteOnlyElements(ctx context.Context, src *RackType, diags *diag.Diagnostics)

CopyWriteOnlyElements copies elements (IDs of nested design API objects) from 'src' (plan or state - something which knows these facts) into 'o' a RackType to be used as state.

func (RackType) DataSourceAttributes

func (o RackType) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (RackType) DataSourceAttributesNested

func (o RackType) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*RackType) GetFabricConnectivityDesign

func (o *RackType) GetFabricConnectivityDesign(_ context.Context, diags *diag.Diagnostics) apstra.FabricConnectivityDesign

func (*RackType) GetSwitchRedundancyProtocolByName

func (o *RackType) GetSwitchRedundancyProtocolByName(ctx context.Context, name string, path path.Path, diags *diag.Diagnostics) fmt.Stringer

func (*RackType) LoadApiData

func (o *RackType) LoadApiData(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics)

func (*RackType) Request

func (o *RackType) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.RackTypeRequest

func (RackType) ResourceAttributes

func (o RackType) ResourceAttributes() map[string]resourceSchema.Attribute

func (RackType) ResourceAttributesNested

func (o RackType) ResourceAttributesNested() map[string]resourceSchema.Attribute

type Spine

type Spine struct {
	LogicalDeviceId     types.String `tfsdk:"logical_device_id"`
	LogicalDevice       types.Object `tfsdk:"logical_device"`
	Count               types.Int64  `tfsdk:"count"`
	SuperSpineLinkSpeed types.String `tfsdk:"super_spine_link_speed"`
	SuperSpineLinkCount types.Int64  `tfsdk:"super_spine_link_count"`
	TagIds              types.Set    `tfsdk:"tag_ids"`
	Tags                types.Set    `tfsdk:"tags"`
}

func (Spine) AttrTypes

func (o Spine) AttrTypes() map[string]attr.Type

func (*Spine) CopyWriteOnlyElements

func (o *Spine) CopyWriteOnlyElements(ctx context.Context, src *Spine, diags *diag.Diagnostics)

func (Spine) DataSourceAttributes

func (o Spine) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*Spine) LoadApiData

func (o *Spine) LoadApiData(ctx context.Context, in *apstra.Spine, diags *diag.Diagnostics)

func (*Spine) Request

func (Spine) ResourceAttributes

func (o Spine) ResourceAttributes() map[string]resourceSchema.Attribute

type SuperSpine added in v0.55.0

type SuperSpine struct {
	LogicalDeviceId types.String `tfsdk:"logical_device_id"`
	LogicalDevice   types.Object `tfsdk:"logical_device"`
	PlaneCount      types.Int64  `tfsdk:"plane_count"`
	PerPlaneCount   types.Int64  `tfsdk:"per_plane_count"`
	TagIds          types.Set    `tfsdk:"tag_ids"`
	Tags            types.Set    `tfsdk:"tags"`
}

func (SuperSpine) AttrTypes added in v0.55.0

func (o SuperSpine) AttrTypes() map[string]attr.Type

func (*SuperSpine) CopyWriteOnlyElements added in v0.55.0

func (o *SuperSpine) CopyWriteOnlyElements(ctx context.Context, src *SuperSpine, diags *diag.Diagnostics)

func (SuperSpine) DataSourceAttributes added in v0.55.0

func (o SuperSpine) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*SuperSpine) LoadApiData added in v0.55.0

func (o *SuperSpine) LoadApiData(ctx context.Context, in *apstra.Superspine, diags *diag.Diagnostics)

func (*SuperSpine) Request added in v0.55.0

func (SuperSpine) ResourceAttributes added in v0.55.0

func (o SuperSpine) ResourceAttributes() map[string]resourceSchema.Attribute

type Tag

type Tag struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

func (Tag) AttrTypes

func (o Tag) AttrTypes() map[string]attr.Type

func (Tag) DataSourceAttributes

func (o Tag) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (Tag) DataSourceAttributesNested

func (o Tag) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*Tag) LoadApiData

func (o *Tag) LoadApiData(ctx context.Context, in *apstra.DesignTagData, diags *diag.Diagnostics)

func (*Tag) Request

func (Tag) ResourceAttributes

func (o Tag) ResourceAttributes() map[string]resourceSchema.Attribute

func (Tag) ResourceAttributesNested

func (o Tag) ResourceAttributesNested() map[string]resourceSchema.Attribute

type TemplateCollapsed added in v0.57.0

type TemplateCollapsed struct {
	Id            types.String `tfsdk:"id"`
	Name          types.String `tfsdk:"name"`
	RackType      types.Object `tfsdk:"rack_type"`
	RackTypeId    types.String `tfsdk:"rack_type_id"`
	MeshLinkCount types.Int64  `tfsdk:"mesh_link_count"`
	MeshLinkSpeed types.String `tfsdk:"mesh_link_speed"`
}

func (TemplateCollapsed) AttrTypes added in v0.57.0

func (o TemplateCollapsed) AttrTypes() map[string]attr.Type

func (TemplateCollapsed) DataSourceAttributes added in v0.57.0

func (o TemplateCollapsed) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*TemplateCollapsed) LoadApiData added in v0.57.0

func (*TemplateCollapsed) Request added in v0.57.0

func (TemplateCollapsed) ResourceAttributes added in v0.57.0

func (o TemplateCollapsed) ResourceAttributes() map[string]resourceSchema.Attribute

type TemplatePodBased added in v0.55.0

type TemplatePodBased struct {
	Id               types.String `tfsdk:"id"`
	Name             types.String `tfsdk:"name"`
	SuperSpine       types.Object `tfsdk:"super_spine"`
	FabricAddressing types.String `tfsdk:"fabric_link_addressing"`
	PodInfos         types.Map    `tfsdk:"pod_infos"`
}

func (TemplatePodBased) AttrTypes added in v0.55.0

func (o TemplatePodBased) AttrTypes() map[string]attr.Type

func (*TemplatePodBased) CopyWriteOnlyElements added in v0.55.0

func (o *TemplatePodBased) CopyWriteOnlyElements(ctx context.Context, src *TemplatePodBased, diags *diag.Diagnostics)

func (TemplatePodBased) DataSourceAttributes added in v0.55.0

func (o TemplatePodBased) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*TemplatePodBased) LoadApiData added in v0.55.0

func (o *TemplatePodBased) LoadApiData(ctx context.Context, in *apstra.TemplatePodBasedData, diags *diag.Diagnostics)

func (*TemplatePodBased) Request added in v0.55.0

func (TemplatePodBased) ResourceAttributes added in v0.55.0

func (o TemplatePodBased) ResourceAttributes() map[string]resourceSchema.Attribute

func (TemplatePodBased) VersionConstraints added in v0.55.0

func (o TemplatePodBased) VersionConstraints() apiversions.Constraints

type TemplatePodInfo added in v0.55.0

type TemplatePodInfo struct {
	Count   types.Int64  `tfsdk:"count"`
	PodType types.Object `tfsdk:"pod_type"`
}

func (TemplatePodInfo) AttrTypes added in v0.55.0

func (o TemplatePodInfo) AttrTypes() map[string]attr.Type

func (TemplatePodInfo) DataSourceAttributes added in v0.55.0

func (o TemplatePodInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (*TemplatePodInfo) LoadApiData added in v0.55.0

func (o *TemplatePodInfo) LoadApiData(ctx context.Context, in *apstra.TemplatePodBasedInfo, diags *diag.Diagnostics)

func (TemplatePodInfo) ResourceAttributes added in v0.55.0

func (o TemplatePodInfo) ResourceAttributes() map[string]resourceSchema.Attribute

type TemplateRackBased

type TemplateRackBased struct {
	Id                     types.String `tfsdk:"id"`
	Name                   types.String `tfsdk:"name"`
	Spine                  types.Object `tfsdk:"spine"`
	AsnAllocation          types.String `tfsdk:"asn_allocation_scheme"`
	OverlayControlProtocol types.String `tfsdk:"overlay_control_protocol"`
	FabricAddressing       types.String `tfsdk:"fabric_link_addressing"`
	RackInfos              types.Map    `tfsdk:"rack_infos"`
}

func (TemplateRackBased) AttrTypes

func (o TemplateRackBased) AttrTypes() map[string]attr.Type

func (*TemplateRackBased) CopyWriteOnlyElements

func (o *TemplateRackBased) CopyWriteOnlyElements(ctx context.Context, src *TemplateRackBased, diags *diag.Diagnostics)

func (TemplateRackBased) DataSourceAttributes

func (o TemplateRackBased) DataSourceAttributes() map[string]dataSourceSchema.Attribute

func (TemplateRackBased) DataSourceAttributesNested added in v0.55.0

func (o TemplateRackBased) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*TemplateRackBased) LoadApiData

func (*TemplateRackBased) Request

func (TemplateRackBased) ResourceAttributes

func (o TemplateRackBased) ResourceAttributes() map[string]resourceSchema.Attribute

func (TemplateRackBased) ResourceAttributesNested added in v0.55.0

func (o TemplateRackBased) ResourceAttributesNested() map[string]resourceSchema.Attribute

func (TemplateRackBased) VersionConstraints added in v0.49.0

func (o TemplateRackBased) VersionConstraints() apiversions.Constraints

type TemplateRackInfo

type TemplateRackInfo struct {
	Count    types.Int64  `tfsdk:"count"`
	RackType types.Object `tfsdk:"rack_type"`
}

func (TemplateRackInfo) AttrTypes

func (o TemplateRackInfo) AttrTypes() map[string]attr.Type

func (TemplateRackInfo) DataSourceAttributesNested

func (o TemplateRackInfo) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute

func (*TemplateRackInfo) LoadApiData

func (TemplateRackInfo) ResourceAttributesNested

func (o TemplateRackInfo) ResourceAttributesNested() map[string]resourceSchema.Attribute

Jump to

Keyboard shortcuts

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