Documentation ¶
Index ¶
- func OrgVpnResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *OrgVpnModel) (*models.Vpn, diag.Diagnostics)
- type OrgVpnModel
- type PathsType
- func (t PathsType) Equal(o attr.Type) bool
- func (t PathsType) String() string
- func (t PathsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t PathsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t PathsType) ValueType(ctx context.Context) attr.Value
- type PathsValue
- func NewPathsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PathsValue, diag.Diagnostics)
- func NewPathsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) PathsValue
- func NewPathsValueNull() PathsValue
- func NewPathsValueUnknown() PathsValue
- func (v PathsValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v PathsValue) Equal(o attr.Value) bool
- func (v PathsValue) IsNull() bool
- func (v PathsValue) IsUnknown() bool
- func (v PathsValue) String() string
- func (v PathsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v PathsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v PathsValue) 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 *OrgVpnModel) (*models.Vpn, diag.Diagnostics)
Types ¶
type OrgVpnModel ¶
type OrgVpnModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OrgId types.String `tfsdk:"org_id"` Paths types.Map `tfsdk:"paths"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, d *models.Vpn) (OrgVpnModel, diag.Diagnostics)
type PathsType ¶
type PathsType struct {
basetypes.ObjectType
}
func (PathsType) ValueFromObject ¶
func (t PathsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (PathsType) ValueFromTerraform ¶
type PathsValue ¶
type PathsValue struct { BfdProfile basetypes.StringValue `tfsdk:"bfd_profile"` Ip basetypes.StringValue `tfsdk:"ip"` Pod basetypes.Int64Value `tfsdk:"pod"` // contains filtered or unexported fields }
func NewPathsValue ¶
func NewPathsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PathsValue, diag.Diagnostics)
func NewPathsValueMust ¶
func NewPathsValueNull ¶
func NewPathsValueNull() PathsValue
func NewPathsValueUnknown ¶
func NewPathsValueUnknown() PathsValue
func (PathsValue) AttributeTypes ¶
func (PathsValue) IsNull ¶
func (v PathsValue) IsNull() bool
func (PathsValue) IsUnknown ¶
func (v PathsValue) IsUnknown() bool
func (PathsValue) String ¶
func (v PathsValue) String() string
func (PathsValue) ToObjectValue ¶
func (v PathsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (PathsValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.