Documentation ¶
Index ¶
- func DeviceGatewayClusterResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *DeviceGatewayClusterModel) (*models.GatewayCluster, diag.Diagnostics)
- type DeviceGatewayClusterModel
- type NodesType
- func (t NodesType) Equal(o attr.Type) bool
- func (t NodesType) String() string
- func (t NodesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t NodesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NodesType) ValueType(ctx context.Context) attr.Value
- type NodesValue
- func NewNodesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NodesValue, diag.Diagnostics)
- func NewNodesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) NodesValue
- func NewNodesValueNull() NodesValue
- func NewNodesValueUnknown() NodesValue
- func (v NodesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v NodesValue) Equal(o attr.Value) bool
- func (v NodesValue) IsNull() bool
- func (v NodesValue) IsUnknown() bool
- func (v NodesValue) String() string
- func (v NodesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v NodesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v NodesValue) 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 *DeviceGatewayClusterModel) (*models.GatewayCluster, diag.Diagnostics)
Types ¶
type DeviceGatewayClusterModel ¶
type DeviceGatewayClusterModel struct { Id types.String `tfsdk:"id"` Nodes types.List `tfsdk:"nodes"` SiteId types.String `tfsdk:"site_id"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, siteId uuid.UUID, deviceId uuid.UUID, data *models.GatewayCluster) (DeviceGatewayClusterModel, diag.Diagnostics)
type NodesType ¶
type NodesType struct {
basetypes.ObjectType
}
func (NodesType) ValueFromObject ¶
func (t NodesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (NodesType) ValueFromTerraform ¶
type NodesValue ¶
type NodesValue struct { Mac basetypes.StringValue `tfsdk:"mac"` // contains filtered or unexported fields }
func NewNodesValue ¶
func NewNodesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NodesValue, diag.Diagnostics)
func NewNodesValueMust ¶
func NewNodesValueNull ¶
func NewNodesValueNull() NodesValue
func NewNodesValueUnknown ¶
func NewNodesValueUnknown() NodesValue
func (NodesValue) AttributeTypes ¶
func (NodesValue) IsNull ¶
func (v NodesValue) IsNull() bool
func (NodesValue) IsUnknown ¶
func (v NodesValue) IsUnknown() bool
func (NodesValue) String ¶
func (v NodesValue) String() string
func (NodesValue) ToObjectValue ¶
func (v NodesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (NodesValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.