freeform

package
v0.80.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocGroup added in v0.69.0

type AllocGroup struct {
	BlueprintId types.String `tfsdk:"blueprint_id"`
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Type        types.String `tfsdk:"type"`
	PoolIds     types.Set    `tfsdk:"pool_ids"`
}

func (AllocGroup) DataSourceAttributes added in v0.69.0

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

func (*AllocGroup) LoadApiData added in v0.69.0

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

func (*AllocGroup) Request added in v0.69.0

func (AllocGroup) ResourceAttributes added in v0.69.0

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

type Blueprint

type Blueprint struct {
	Id   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

func (Blueprint) DataSourceAttributes

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

func (Blueprint) ResourceAttributes

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

func (*Blueprint) SetName

func (o *Blueprint) SetName(ctx context.Context, bpClient *apstra.FreeformClient, state *Blueprint, diags *diag.Diagnostics)

type ConfigTemplate added in v0.69.0

type ConfigTemplate struct {
	Id          types.String `tfsdk:"id"`
	BlueprintId types.String `tfsdk:"blueprint_id"`
	Name        types.String `tfsdk:"name"`
	Text        types.String `tfsdk:"text"`
	Tags        types.Set    `tfsdk:"tags"`
	AssignedTo  types.Set    `tfsdk:"assigned_to"`
}

func (ConfigTemplate) DataSourceAttributes added in v0.69.0

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

func (*ConfigTemplate) LoadApiData added in v0.69.0

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

func (ConfigTemplate) NeedsUpdate added in v0.71.0

func (o ConfigTemplate) NeedsUpdate(state ConfigTemplate) bool

func (*ConfigTemplate) Request added in v0.69.0

func (ConfigTemplate) ResourceAttributes added in v0.69.0

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

type DeviceProfile added in v0.69.0

type DeviceProfile struct {
	Id              types.String `tfsdk:"id"`
	BlueprintId     types.String `tfsdk:"blueprint_id"`
	DeviceProfileId types.String `tfsdk:"device_profile_id"`
}

func (DeviceProfile) ResourceAttributes added in v0.69.0

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

type GroupGenerator added in v0.71.0

type GroupGenerator struct {
	Id          types.String `tfsdk:"id"`
	BlueprintId types.String `tfsdk:"blueprint_id"`
	GroupId     types.String `tfsdk:"group_id"`
	Name        types.String `tfsdk:"name"`
	Scope       types.String `tfsdk:"scope"`
}

func (GroupGenerator) DataSourceAttributes added in v0.71.0

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

func (*GroupGenerator) LoadApiData added in v0.71.0

func (*GroupGenerator) Request added in v0.71.0

func (GroupGenerator) ResourceAttributes added in v0.71.0

func (o GroupGenerator) ResourceAttributes() map[string]resourceSchema.Attribute
type Link struct {
	BlueprintId     types.String `tfsdk:"blueprint_id"`
	Id              types.String `tfsdk:"id"`
	Speed           types.String `tfsdk:"speed"`
	Name            types.String `tfsdk:"name"`
	AggregateLinkId types.String `tfsdk:"aggregate_link_id"`
	Endpoints       types.Map    `tfsdk:"endpoints"`
	Tags            types.Set    `tfsdk:"tags"`
}

func (Link) DataSourceAttributes added in v0.69.0

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

func (*Link) LoadApiData added in v0.69.0

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

func (*Link) Request added in v0.69.0

func (o *Link) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.FreeformLinkRequest

func (Link) ResourceAttributes added in v0.69.0

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

type LinkEndpoint added in v0.75.0

type LinkEndpoint struct {
	InterfaceName    types.String         `tfsdk:"interface_name"`
	InterfaceId      types.String         `tfsdk:"interface_id"`
	TransformationId types.Int64          `tfsdk:"transformation_id"`
	Ipv4Address      cidrtypes.IPv4Prefix `tfsdk:"ipv4_address"`
	Ipv6Address      cidrtypes.IPv6Prefix `tfsdk:"ipv6_address"`
	Tags             types.Set            `tfsdk:"tags"`
}

func (LinkEndpoint) DatasourceAttributes added in v0.75.0

func (o LinkEndpoint) DatasourceAttributes() map[string]dataSourceSchema.Attribute

func (LinkEndpoint) ResourceAttributes added in v0.75.0

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

type PropertySet added in v0.69.0

type PropertySet struct {
	Id          types.String         `tfsdk:"id"`
	BlueprintId types.String         `tfsdk:"blueprint_id"`
	Name        types.String         `tfsdk:"name"`
	SystemId    types.String         `tfsdk:"system_id"`
	Values      jsontypes.Normalized `tfsdk:"values"`
}

func (PropertySet) DataSourceAttributes added in v0.69.0

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

func (*PropertySet) LoadApiData added in v0.69.0

func (*PropertySet) Request added in v0.69.0

func (PropertySet) ResourceAttributes added in v0.69.0

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

type Resource added in v0.69.0

type Resource struct {
	BlueprintId   types.String         `tfsdk:"blueprint_id"`
	Id            types.String         `tfsdk:"id"`
	Name          types.String         `tfsdk:"name"`
	GroupId       types.String         `tfsdk:"group_id"`
	Type          types.String         `tfsdk:"type"`
	AllocatedFrom types.String         `tfsdk:"allocated_from"`
	IntValue      types.Int64          `tfsdk:"integer_value"`
	Ipv4Value     cidrtypes.IPv4Prefix `tfsdk:"ipv4_value"`
	Ipv6Value     cidrtypes.IPv6Prefix `tfsdk:"ipv6_value"`
	GeneratorId   types.String         `tfsdk:"generator_id"`
	AssignedTo    types.Set            `tfsdk:"assigned_to"`
}

func (Resource) DataSourceAttributes added in v0.69.0

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

func (*Resource) LoadApiData added in v0.69.0

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

func (Resource) NeedsUpdate added in v0.71.0

func (o Resource) NeedsUpdate(state Resource) bool

func (*Resource) Request added in v0.69.0

func (Resource) ResourceAttributes added in v0.69.0

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

type ResourceGenerator added in v0.69.0

type ResourceGenerator struct {
	BlueprintId     types.String `tfsdk:"blueprint_id"`
	Id              types.String `tfsdk:"id"`
	Type            types.String `tfsdk:"type"`
	Name            types.String `tfsdk:"name"`
	Scope           types.String `tfsdk:"scope"`
	AllocatedFrom   types.String `tfsdk:"allocated_from"`
	ContainerId     types.String `tfsdk:"container_id"`
	SubnetPrefixLen types.Int64  `tfsdk:"subnet_prefix_len"`
}

func (ResourceGenerator) DataSourceAttributes added in v0.69.0

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

func (*ResourceGenerator) LoadApiData added in v0.69.0

func (*ResourceGenerator) Request added in v0.69.0

func (ResourceGenerator) ResourceAttributes added in v0.69.0

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

type ResourceGroup added in v0.69.0

type ResourceGroup struct {
	BlueprintId types.String `tfsdk:"blueprint_id"`
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	ParentId    types.String `tfsdk:"parent_id"`
	// Tags        types.Set            `tfsdk:"tags"`
	Data        jsontypes.Normalized `tfsdk:"data"`
	GeneratorId types.String         `tfsdk:"generator_id"`
}

func (ResourceGroup) DataSourceAttributes added in v0.69.0

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

func (*ResourceGroup) LoadApiData added in v0.69.0

func (*ResourceGroup) Request added in v0.69.0

func (ResourceGroup) ResourceAttributes added in v0.69.0

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

type System added in v0.69.0

type System struct {
	BlueprintId     types.String `tfsdk:"blueprint_id"`
	Id              types.String `tfsdk:"id"`
	Name            types.String `tfsdk:"name"`
	DeviceProfileId types.String `tfsdk:"device_profile_id"`
	Hostname        types.String `tfsdk:"hostname"`
	Type            types.String `tfsdk:"type"`
	SystemId        types.String `tfsdk:"system_id"`
	DeployMode      types.String `tfsdk:"deploy_mode"`
	Tags            types.Set    `tfsdk:"tags"`
}

func (System) DataSourceAttributes added in v0.69.0

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

func (*System) LoadApiData added in v0.69.0

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

func (*System) Request added in v0.69.0

func (o *System) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.FreeformSystemData

func (System) ResourceAttributes added in v0.69.0

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

Jump to

Keyboard shortcuts

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