Documentation ¶
Index ¶
- func SiteWxtagResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *SiteWxtagModel) (*models.WxlanTag, diag.Diagnostics)
- type SiteWxtagModel
- type SpecsType
- func (t SpecsType) Equal(o attr.Type) bool
- func (t SpecsType) String() string
- func (t SpecsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SpecsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SpecsType) ValueType(ctx context.Context) attr.Value
- type SpecsValue
- func NewSpecsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SpecsValue, diag.Diagnostics)
- func NewSpecsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SpecsValue
- func NewSpecsValueNull() SpecsValue
- func NewSpecsValueUnknown() SpecsValue
- func (v SpecsValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v SpecsValue) Equal(o attr.Value) bool
- func (v SpecsValue) IsNull() bool
- func (v SpecsValue) IsUnknown() bool
- func (v SpecsValue) String() string
- func (v SpecsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v SpecsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v SpecsValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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"` 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) ValueFromObject ¶
func (t SpecsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SpecsType) ValueFromTerraform ¶
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 NewSpecsValueNull ¶
func NewSpecsValueNull() SpecsValue
func NewSpecsValueUnknown ¶
func NewSpecsValueUnknown() SpecsValue
func (SpecsValue) AttributeTypes ¶
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 (v SpecsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (SpecsValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.