Documentation ¶
Index ¶
- func OrgServiceResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *OrgServiceModel) (models.Service, diag.Diagnostics)
- type OrgServiceModel
- 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 *OrgServiceModel) (models.Service, diag.Diagnostics)
Types ¶
type OrgServiceModel ¶
type OrgServiceModel struct { Addresses types.List `tfsdk:"addresses"` AppCategories types.List `tfsdk:"app_categories"` AppSubcategories types.List `tfsdk:"app_subcategories"` Apps types.List `tfsdk:"apps"` Description types.String `tfsdk:"description"` Dscp types.String `tfsdk:"dscp"` FailoverPolicy types.String `tfsdk:"failover_policy"` Hostnames types.List `tfsdk:"hostnames"` Id types.String `tfsdk:"id"` MaxJitter types.String `tfsdk:"max_jitter"` MaxLatency types.String `tfsdk:"max_latency"` MaxLoss types.String `tfsdk:"max_loss"` Name types.String `tfsdk:"name"` OrgId types.String `tfsdk:"org_id"` SleEnabled types.Bool `tfsdk:"sle_enabled"` Specs types.List `tfsdk:"specs"` SsrRelaxedTcpStateEnforcement types.Bool `tfsdk:"ssr_relaxed_tcp_state_enforcement"` TrafficClass types.String `tfsdk:"traffic_class"` TrafficType types.String `tfsdk:"traffic_type"` Type types.String `tfsdk:"type"` Urls types.List `tfsdk:"urls"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, d *models.Service) (OrgServiceModel, 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"` // 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.