entity

package
v2.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntitySchema

func EntitySchema() map[string]schema.Attribute

func NewEntityResource

func NewEntityResource() resource.Resource

Types

type ArrayPropsModel

type ArrayPropsModel struct {
	StringItems  types.Map `tfsdk:"string_items"`
	NumberItems  types.Map `tfsdk:"number_items"`
	BooleanItems types.Map `tfsdk:"boolean_items"`
	ObjectItems  types.Map `tfsdk:"object_items"`
}

type EntityModel

type EntityModel struct {
	ID         types.String           `tfsdk:"id"`
	Identifier types.String           `tfsdk:"identifier"`
	Blueprint  types.String           `tfsdk:"blueprint"`
	Title      types.String           `tfsdk:"title"`
	Icon       types.String           `tfsdk:"icon"`
	RunID      types.String           `tfsdk:"run_id"`
	CreatedAt  types.String           `tfsdk:"created_at"`
	CreatedBy  types.String           `tfsdk:"created_by"`
	UpdatedAt  types.String           `tfsdk:"updated_at"`
	UpdatedBy  types.String           `tfsdk:"updated_by"`
	Properties *EntityPropertiesModel `tfsdk:"properties"`
	Teams      []types.String         `tfsdk:"teams"`
	Relations  *RelationModel         `tfsdk:"relations"`
}

type EntityPropertiesModel

type EntityPropertiesModel struct {
	StringProps  map[string]types.String  `tfsdk:"string_props"`
	NumberProps  map[string]types.Float64 `tfsdk:"number_props"`
	BooleanProps map[string]types.Bool    `tfsdk:"boolean_props"`
	ObjectProps  map[string]types.String  `tfsdk:"object_props"`
	ArrayProps   *ArrayPropsModel         `tfsdk:"array_props"`
}

type EntityResource

type EntityResource struct {
	// contains filtered or unexported fields
}

func (*EntityResource) Configure

func (*EntityResource) Create

func (*EntityResource) Delete

func (*EntityResource) ImportState

func (*EntityResource) Metadata

func (*EntityResource) Read

func (*EntityResource) Schema

func (*EntityResource) Update

type RelationModel

type RelationModel struct {
	SingleRelation map[string]*string  `tfsdk:"single_relations"`
	ManyRelations  map[string][]string `tfsdk:"many_relations"`
}

Jump to

Keyboard shortcuts

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