resources

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IntegerPoolMin = 1
	IntegerPoolMax = math.MaxUint32
)
View Source
const (
	VniMin = 4096
	VniMax = 16777214
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AsnPool

type AsnPool struct {
	Id          types.String  `tfsdk:"id"`
	Name        types.String  `tfsdk:"name"`
	Ranges      types.Set     `tfsdk:"ranges"`
	Total       types.Int64   `tfsdk:"total"`
	Status      types.String  `tfsdk:"status"`
	Used        types.Int64   `tfsdk:"used"`
	UsedPercent types.Float64 `tfsdk:"used_percentage"`
}

func (AsnPool) DataSourceAttributes

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

func (*AsnPool) LoadApiData

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

func (*AsnPool) Request

func (o *AsnPool) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.AsnPoolRequest

func (AsnPool) ResourceAttributes

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

type AsnPoolRange

type AsnPoolRange struct {
	Status         types.String  `tfsdk:"status"`
	First          types.Int64   `tfsdk:"first"`
	Last           types.Int64   `tfsdk:"last"`
	Total          types.Int64   `tfsdk:"total"`
	Used           types.Int64   `tfsdk:"used"`
	UsedPercentage types.Float64 `tfsdk:"used_percentage"`
}

func (AsnPoolRange) AttrTypes

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

func (AsnPoolRange) DataSourceAttributes

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

func (*AsnPoolRange) LoadApiData

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

func (*AsnPoolRange) Request

func (AsnPoolRange) ResourceAttributes

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

type IntegerPool

type IntegerPool struct {
	Id          types.String  `tfsdk:"id"`
	Name        types.String  `tfsdk:"name"`
	Ranges      types.Set     `tfsdk:"ranges"`
	Total       types.Int64   `tfsdk:"total"`
	Status      types.String  `tfsdk:"status"`
	Used        types.Int64   `tfsdk:"used"`
	UsedPercent types.Float64 `tfsdk:"used_percentage"`
}

func (IntegerPool) DataSourceAttributes

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

func (*IntegerPool) LoadApiData

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

func (*IntegerPool) Request

func (o *IntegerPool) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.IntPoolRequest

func (IntegerPool) ResourceAttributes

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

type IntegerPoolRange

type IntegerPoolRange struct {
	Status         types.String  `tfsdk:"status"`
	First          types.Int64   `tfsdk:"first"`
	Last           types.Int64   `tfsdk:"last"`
	Total          types.Int64   `tfsdk:"total"`
	Used           types.Int64   `tfsdk:"used"`
	UsedPercentage types.Float64 `tfsdk:"used_percentage"`
}

func (IntegerPoolRange) AttrTypes

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

func (IntegerPoolRange) DataSourceAttributes

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

func (*IntegerPoolRange) LoadApiData

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

func (*IntegerPoolRange) Request

func (IntegerPoolRange) ResourceAttributes

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

type Ipv4Pool

type Ipv4Pool struct {
	Id          types.String  `tfsdk:"id"`
	Name        types.String  `tfsdk:"name"`
	Subnets     types.Set     `tfsdk:"subnets"`
	Total       types.Number  `tfsdk:"total"`
	Status      types.String  `tfsdk:"status"`
	Used        types.Number  `tfsdk:"used"`
	UsedPercent types.Float64 `tfsdk:"used_percentage"`
}

func (Ipv4Pool) DataSourceAttributes

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

func (*Ipv4Pool) LoadApiData

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

func (*Ipv4Pool) Request

func (o *Ipv4Pool) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.NewIpPoolRequest

func (Ipv4Pool) ResourceAttributes

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

type Ipv4PoolSubnet

type Ipv4PoolSubnet struct {
	Status         types.String         `tfsdk:"status"`
	Network        cidrtypes.IPv4Prefix `tfsdk:"network"`
	Total          types.Number         `tfsdk:"total"`
	Used           types.Number         `tfsdk:"used"`
	UsedPercentage types.Float64        `tfsdk:"used_percentage"`
}

func (Ipv4PoolSubnet) AttrTypes

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

func (Ipv4PoolSubnet) DataSourceAttributes

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

func (*Ipv4PoolSubnet) LoadApiData

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

func (*Ipv4PoolSubnet) Request

func (Ipv4PoolSubnet) ResourceAttributes

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

type Ipv6Pool

type Ipv6Pool struct {
	Id          types.String  `tfsdk:"id"`
	Name        types.String  `tfsdk:"name"`
	Subnets     types.Set     `tfsdk:"subnets"`
	Total       types.Number  `tfsdk:"total"`
	Status      types.String  `tfsdk:"status"`
	Used        types.Number  `tfsdk:"used"`
	UsedPercent types.Float64 `tfsdk:"used_percentage"`
}

func (Ipv6Pool) DataSourceAttributes

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

func (*Ipv6Pool) LoadApiData

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

func (*Ipv6Pool) Request

func (o *Ipv6Pool) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.NewIpPoolRequest

func (Ipv6Pool) ResourceAttributes

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

type Ipv6PoolSubnet

type Ipv6PoolSubnet struct {
	Status         types.String         `tfsdk:"status"`
	Network        cidrtypes.IPv6Prefix `tfsdk:"network"`
	Total          types.Number         `tfsdk:"total"`
	Used           types.Number         `tfsdk:"used"`
	UsedPercentage types.Float64        `tfsdk:"used_percentage"`
}

func (Ipv6PoolSubnet) AttrTypes

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

func (Ipv6PoolSubnet) DataSourceAttributes

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

func (*Ipv6PoolSubnet) LoadApiData

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

func (*Ipv6PoolSubnet) Request

func (Ipv6PoolSubnet) ResourceAttributes

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

type VniPool

type VniPool struct {
	Id          types.String  `tfsdk:"id"`
	Name        types.String  `tfsdk:"name"`
	Ranges      types.Set     `tfsdk:"ranges"`
	Total       types.Int64   `tfsdk:"total"`
	Status      types.String  `tfsdk:"status"`
	Used        types.Int64   `tfsdk:"used"`
	UsedPercent types.Float64 `tfsdk:"used_percentage"`
}

func (VniPool) DataSourceAttributes

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

func (*VniPool) LoadApiData

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

func (*VniPool) Request

func (o *VniPool) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.VniPoolRequest

func (VniPool) ResourceAttributes

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

type VniPoolRange

type VniPoolRange struct {
	Status         types.String  `tfsdk:"status"`
	First          types.Int64   `tfsdk:"first"`
	Last           types.Int64   `tfsdk:"last"`
	Total          types.Int64   `tfsdk:"total"`
	Used           types.Int64   `tfsdk:"used"`
	UsedPercentage types.Float64 `tfsdk:"used_percentage"`
}

func (VniPoolRange) AttrTypes

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

func (VniPoolRange) DataSourceAttributes

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

func (*VniPoolRange) LoadApiData

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

func (*VniPoolRange) Request

func (VniPoolRange) ResourceAttributes

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

Jump to

Keyboard shortcuts

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