resource_site_wxtag

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SiteWxtagResourceSchema

func SiteWxtagResourceSchema(ctx context.Context) schema.Schema

func TerraformToSdk

func TerraformToSdk(ctx context.Context, plan *SiteWxtagModel) (*models.WxlanTag, diag.Diagnostics)

Types

type SiteWxtagModel

type SiteWxtagModel struct {
	Id     types.String `tfsdk:"id"`
	Mac    types.String `tfsdk:"mac"`
	Match  types.String `tfsdk:"match"`
	Name   types.String `tfsdk:"name"`
	Op     types.String `tfsdk:"op"`
	OrgId  types.String `tfsdk:"org_id"`
	SiteId types.String `tfsdk:"site_id"`
	Specs  types.List   `tfsdk:"specs"`
	Type   types.String `tfsdk:"type"`
	Values types.List   `tfsdk:"values"`
	VlanId types.String `tfsdk:"vlan_id"`
}

func SdkToTerraform

func SdkToTerraform(ctx context.Context, data models.WxlanTag) (SiteWxtagModel, diag.Diagnostics)

type SpecsType

type SpecsType struct {
	basetypes.ObjectType
}

func (SpecsType) Equal

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

func (SpecsType) String

func (t SpecsType) String() string

func (SpecsType) ValueFromObject

func (SpecsType) ValueFromTerraform

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

func (SpecsType) ValueType

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

type SpecsValue

type SpecsValue struct {
	PortRange basetypes.StringValue `tfsdk:"port_range"`
	Protocol  basetypes.StringValue `tfsdk:"protocol"`
	Subnets   basetypes.ListValue   `tfsdk:"subnets"`
	// contains filtered or unexported fields
}

func NewSpecsValue

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

func NewSpecsValueMust

func NewSpecsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SpecsValue

func NewSpecsValueNull

func NewSpecsValueNull() SpecsValue

func NewSpecsValueUnknown

func NewSpecsValueUnknown() SpecsValue

func (SpecsValue) AttributeTypes

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

func (SpecsValue) Equal

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

func (SpecsValue) IsNull

func (v SpecsValue) IsNull() bool

func (SpecsValue) IsUnknown

func (v SpecsValue) IsUnknown() bool

func (SpecsValue) String

func (v SpecsValue) String() string

func (SpecsValue) ToObjectValue

func (SpecsValue) ToTerraformValue

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

func (SpecsValue) Type

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

Jump to

Keyboard shortcuts

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