resource_org_network

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OrgNetworkResourceSchema

func OrgNetworkResourceSchema(ctx context.Context) schema.Schema

func TenantSdkToTerraform

func TenantSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d map[string]models.NetworkTenant) basetypes.MapValue

func TenantTerraformToSdk

func TenantTerraformToSdk(ctx context.Context, diags *diag.Diagnostics, d basetypes.MapValue) map[string]models.NetworkTenant

func TerraformToSdk

func TerraformToSdk(ctx context.Context, plan *OrgNetworkModel) (*models.Network, diag.Diagnostics)

Types

type DestinationNatType

type DestinationNatType struct {
	basetypes.ObjectType
}

func (DestinationNatType) Equal

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

func (DestinationNatType) String

func (t DestinationNatType) String() string

func (DestinationNatType) ValueFromObject

func (DestinationNatType) ValueFromTerraform

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

func (DestinationNatType) ValueType

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

type DestinationNatValue

type DestinationNatValue struct {
	InternalIp basetypes.StringValue `tfsdk:"internal_ip"`
	Name       basetypes.StringValue `tfsdk:"name"`
	Port       basetypes.Int64Value  `tfsdk:"port"`
	// contains filtered or unexported fields
}

func NewDestinationNatValue

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

func NewDestinationNatValueMust

func NewDestinationNatValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DestinationNatValue

func NewDestinationNatValueNull

func NewDestinationNatValueNull() DestinationNatValue

func NewDestinationNatValueUnknown

func NewDestinationNatValueUnknown() DestinationNatValue

func (DestinationNatValue) AttributeTypes

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

func (DestinationNatValue) Equal

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

func (DestinationNatValue) IsNull

func (v DestinationNatValue) IsNull() bool

func (DestinationNatValue) IsUnknown

func (v DestinationNatValue) IsUnknown() bool

func (DestinationNatValue) String

func (v DestinationNatValue) String() string

func (DestinationNatValue) ToObjectValue

func (DestinationNatValue) ToTerraformValue

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

func (DestinationNatValue) Type

type InternalAccessType

type InternalAccessType struct {
	basetypes.ObjectType
}

func (InternalAccessType) Equal

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

func (InternalAccessType) String

func (t InternalAccessType) String() string

func (InternalAccessType) ValueFromObject

func (InternalAccessType) ValueFromTerraform

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

func (InternalAccessType) ValueType

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

type InternalAccessValue

type InternalAccessValue struct {
	Enabled basetypes.BoolValue `tfsdk:"enabled"`
	// contains filtered or unexported fields
}

func NewInternalAccessValue

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

func NewInternalAccessValueMust

func NewInternalAccessValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) InternalAccessValue

func NewInternalAccessValueNull

func NewInternalAccessValueNull() InternalAccessValue

func NewInternalAccessValueUnknown

func NewInternalAccessValueUnknown() InternalAccessValue

func (InternalAccessValue) AttributeTypes

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

func (InternalAccessValue) Equal

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

func (InternalAccessValue) IsNull

func (v InternalAccessValue) IsNull() bool

func (InternalAccessValue) IsUnknown

func (v InternalAccessValue) IsUnknown() bool

func (InternalAccessValue) String

func (v InternalAccessValue) String() string

func (InternalAccessValue) ToObjectValue

func (InternalAccessValue) ToTerraformValue

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

func (InternalAccessValue) Type

type InternetAccessType

type InternetAccessType struct {
	basetypes.ObjectType
}

func (InternetAccessType) Equal

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

func (InternetAccessType) String

func (t InternetAccessType) String() string

func (InternetAccessType) ValueFromObject

func (InternetAccessType) ValueFromTerraform

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

func (InternetAccessType) ValueType

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

type InternetAccessValue

type InternetAccessValue struct {
	CreateSimpleServicePolicy basetypes.BoolValue `tfsdk:"create_simple_service_policy"`
	DestinationNat            basetypes.MapValue  `tfsdk:"destination_nat"`
	Enabled                   basetypes.BoolValue `tfsdk:"enabled"`
	Restricted                basetypes.BoolValue `tfsdk:"restricted"`
	StaticNat                 basetypes.MapValue  `tfsdk:"static_nat"`
	// contains filtered or unexported fields
}

func NewInternetAccessValue

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

func NewInternetAccessValueMust

func NewInternetAccessValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) InternetAccessValue

func NewInternetAccessValueNull

func NewInternetAccessValueNull() InternetAccessValue

func NewInternetAccessValueUnknown

func NewInternetAccessValueUnknown() InternetAccessValue

func (InternetAccessValue) AttributeTypes

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

func (InternetAccessValue) Equal

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

func (InternetAccessValue) IsNull

func (v InternetAccessValue) IsNull() bool

func (InternetAccessValue) IsUnknown

func (v InternetAccessValue) IsUnknown() bool

func (InternetAccessValue) String

func (v InternetAccessValue) String() string

func (InternetAccessValue) ToObjectValue

func (InternetAccessValue) ToTerraformValue

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

func (InternetAccessValue) Type

type OrgNetworkModel

type OrgNetworkModel struct {
	DisallowMistServices types.Bool          `tfsdk:"disallow_mist_services"`
	Gateway              types.String        `tfsdk:"gateway"`
	Gateway6             types.String        `tfsdk:"gateway6"`
	Id                   types.String        `tfsdk:"id"`
	InternalAccess       InternalAccessValue `tfsdk:"internal_access"`
	InternetAccess       InternetAccessValue `tfsdk:"internet_access"`
	Isolation            types.Bool          `tfsdk:"isolation"`
	Name                 types.String        `tfsdk:"name"`
	OrgId                types.String        `tfsdk:"org_id"`
	RoutedForNetworks    types.List          `tfsdk:"routed_for_networks"`
	Subnet               types.String        `tfsdk:"subnet"`
	Subnet6              types.String        `tfsdk:"subnet6"`
	Tenants              types.Map           `tfsdk:"tenants"`
	VlanId               types.String        `tfsdk:"vlan_id"`
	VpnAccess            types.Map           `tfsdk:"vpn_access"`
}

func SdkToTerraform

func SdkToTerraform(ctx context.Context, data models.Network) (OrgNetworkModel, diag.Diagnostics)

type SourceNatType

type SourceNatType struct {
	basetypes.ObjectType
}

func (SourceNatType) Equal

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

func (SourceNatType) String

func (t SourceNatType) String() string

func (SourceNatType) ValueFromObject

func (SourceNatType) ValueFromTerraform

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

func (SourceNatType) ValueType

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

type SourceNatValue

type SourceNatValue struct {
	ExternalIp basetypes.StringValue `tfsdk:"external_ip"`
	// contains filtered or unexported fields
}

func NewSourceNatValue

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

func NewSourceNatValueMust

func NewSourceNatValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SourceNatValue

func NewSourceNatValueNull

func NewSourceNatValueNull() SourceNatValue

func NewSourceNatValueUnknown

func NewSourceNatValueUnknown() SourceNatValue

func (SourceNatValue) AttributeTypes

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

func (SourceNatValue) Equal

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

func (SourceNatValue) IsNull

func (v SourceNatValue) IsNull() bool

func (SourceNatValue) IsUnknown

func (v SourceNatValue) IsUnknown() bool

func (SourceNatValue) String

func (v SourceNatValue) String() string

func (SourceNatValue) ToObjectValue

func (SourceNatValue) ToTerraformValue

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

func (SourceNatValue) Type

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

type StaticNatType

type StaticNatType struct {
	basetypes.ObjectType
}

func (StaticNatType) Equal

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

func (StaticNatType) String

func (t StaticNatType) String() string

func (StaticNatType) ValueFromObject

func (StaticNatType) ValueFromTerraform

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

func (StaticNatType) ValueType

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

type StaticNatValue

type StaticNatValue struct {
	InternalIp basetypes.StringValue `tfsdk:"internal_ip"`
	Name       basetypes.StringValue `tfsdk:"name"`
	WanName    basetypes.StringValue `tfsdk:"wan_name"`
	// contains filtered or unexported fields
}

func NewStaticNatValue

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

func NewStaticNatValueMust

func NewStaticNatValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) StaticNatValue

func NewStaticNatValueNull

func NewStaticNatValueNull() StaticNatValue

func NewStaticNatValueUnknown

func NewStaticNatValueUnknown() StaticNatValue

func (StaticNatValue) AttributeTypes

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

func (StaticNatValue) Equal

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

func (StaticNatValue) IsNull

func (v StaticNatValue) IsNull() bool

func (StaticNatValue) IsUnknown

func (v StaticNatValue) IsUnknown() bool

func (StaticNatValue) String

func (v StaticNatValue) String() string

func (StaticNatValue) ToObjectValue

func (StaticNatValue) ToTerraformValue

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

func (StaticNatValue) Type

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

type TenantsType

type TenantsType struct {
	basetypes.ObjectType
}

func (TenantsType) Equal

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

func (TenantsType) String

func (t TenantsType) String() string

func (TenantsType) ValueFromObject

func (TenantsType) ValueFromTerraform

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

func (TenantsType) ValueType

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

type TenantsValue

type TenantsValue struct {
	Addresses basetypes.ListValue `tfsdk:"addresses"`
	// contains filtered or unexported fields
}

func NewTenantsValue

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

func NewTenantsValueMust

func NewTenantsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) TenantsValue

func NewTenantsValueNull

func NewTenantsValueNull() TenantsValue

func NewTenantsValueUnknown

func NewTenantsValueUnknown() TenantsValue

func (TenantsValue) AttributeTypes

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

func (TenantsValue) Equal

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

func (TenantsValue) IsNull

func (v TenantsValue) IsNull() bool

func (TenantsValue) IsUnknown

func (v TenantsValue) IsUnknown() bool

func (TenantsValue) String

func (v TenantsValue) String() string

func (TenantsValue) ToObjectValue

func (TenantsValue) ToTerraformValue

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

func (TenantsValue) Type

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

type VpnAccessType

type VpnAccessType struct {
	basetypes.ObjectType
}

func (VpnAccessType) Equal

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

func (VpnAccessType) String

func (t VpnAccessType) String() string

func (VpnAccessType) ValueFromObject

func (VpnAccessType) ValueFromTerraform

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

func (VpnAccessType) ValueType

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

type VpnAccessValue

type VpnAccessValue struct {
	AdvertisedSubnet          basetypes.StringValue `tfsdk:"advertised_subnet"`
	AllowPing                 basetypes.BoolValue   `tfsdk:"allow_ping"`
	DestinationNat            basetypes.MapValue    `tfsdk:"destination_nat"`
	NatPool                   basetypes.StringValue `tfsdk:"nat_pool"`
	NoReadvertiseToLanBgp     basetypes.BoolValue   `tfsdk:"no_readvertise_to_lan_bgp"`
	NoReadvertiseToLanOspf    basetypes.BoolValue   `tfsdk:"no_readvertise_to_lan_ospf"`
	NoReadvertiseToOverlay    basetypes.BoolValue   `tfsdk:"no_readvertise_to_overlay"`
	OtherVrfs                 basetypes.ListValue   `tfsdk:"other_vrfs"`
	Routed                    basetypes.BoolValue   `tfsdk:"routed"`
	SourceNat                 basetypes.ObjectValue `tfsdk:"source_nat"`
	StaticNat                 basetypes.MapValue    `tfsdk:"static_nat"`
	SummarizedSubnet          basetypes.StringValue `tfsdk:"summarized_subnet"`
	SummarizedSubnetToLanBgp  basetypes.StringValue `tfsdk:"summarized_subnet_to_lan_bgp"`
	SummarizedSubnetToLanOspf basetypes.StringValue `tfsdk:"summarized_subnet_to_lan_ospf"`
	// contains filtered or unexported fields
}

func NewVpnAccessValue

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

func NewVpnAccessValueMust

func NewVpnAccessValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) VpnAccessValue

func NewVpnAccessValueNull

func NewVpnAccessValueNull() VpnAccessValue

func NewVpnAccessValueUnknown

func NewVpnAccessValueUnknown() VpnAccessValue

func (VpnAccessValue) AttributeTypes

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

func (VpnAccessValue) Equal

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

func (VpnAccessValue) IsNull

func (v VpnAccessValue) IsNull() bool

func (VpnAccessValue) IsUnknown

func (v VpnAccessValue) IsUnknown() bool

func (VpnAccessValue) String

func (v VpnAccessValue) String() string

func (VpnAccessValue) ToObjectValue

func (VpnAccessValue) ToTerraformValue

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

func (VpnAccessValue) Type

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

Jump to

Keyboard shortcuts

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