blueprint

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayPropertySchema

func ArrayPropertySchema() schema.MapNestedAttribute

func BlueprintSchema

func BlueprintSchema() map[string]schema.Attribute

func BooleanPropertySchema

func BooleanPropertySchema() schema.Attribute

func CalculationPropertiesToBody added in v2.1.8

func CalculationPropertiesToBody(ctx context.Context, state map[string]CalculationPropertyModel) map[string]cli.BlueprintCalculationProperty

func MetadataProperties

func MetadataProperties() map[string]schema.Attribute

func MirrorPropertiesToBody added in v2.1.8

func MirrorPropertiesToBody(state map[string]MirrorPropertyModel) map[string]cli.BlueprintMirrorProperty

func NewBlueprintResource

func NewBlueprintResource() resource.Resource

func NumberPropertySchema

func NumberPropertySchema() schema.Attribute

func ObjectPropertySchema

func ObjectPropertySchema() schema.MapNestedAttribute

func OwnershipSchema added in v2.1.3

func OwnershipSchema() schema.Attribute

func PropertiesSchema added in v2.1.8

func PropertiesSchema() schema.Attribute

func PropsResourceToBody added in v2.2.0

func PropsResourceToBody(ctx context.Context, state *PropertiesModel) (map[string]cli.BlueprintProperty, []string, error)

func RelationsResourceToBody added in v2.2.0

func RelationsResourceToBody(state map[string]RelationModel) map[string]cli.Relation

func SetCommonProperties added in v2.2.0

func SetCommonProperties(v cli.BlueprintProperty, prop interface{}, jsonEscapeHTML bool)

func StringPropertySchema

func StringPropertySchema() schema.Attribute

Types

type AggregateByPropertyModel

type AggregateByPropertyModel struct {
	Func     types.String `tfsdk:"func"`
	Property types.String `tfsdk:"property"`
}

type AggregationMethodsModel

type AggregationMethodsModel struct {
	CountEntities       types.Bool                `tfsdk:"count_entities"`
	AverageEntities     *AverageEntitiesModel     `tfsdk:"average_entities"`
	AverageByProperty   *AverageByProperty        `tfsdk:"average_by_property"`
	AggregateByProperty *AggregateByPropertyModel `tfsdk:"aggregate_by_property"`
}

type AggregationPropertyModel

type AggregationPropertyModel struct {
	Title       types.String             `tfsdk:"title"`
	Icon        types.String             `tfsdk:"icon"`
	Description types.String             `tfsdk:"description"`
	Target      types.String             `tfsdk:"target"`
	Method      *AggregationMethodsModel `tfsdk:"method"`
	Query       types.String             `tfsdk:"query"`
}

type ArrayPropModel

type ArrayPropModel struct {
	Title        types.String  `tfsdk:"title"`
	Icon         types.String  `tfsdk:"icon"`
	Description  types.String  `tfsdk:"description"`
	MaxItems     types.Int64   `tfsdk:"max_items"`
	MinItems     types.Int64   `tfsdk:"min_items"`
	Required     types.Bool    `tfsdk:"required"`
	StringItems  *StringItems  `tfsdk:"string_items"`
	NumberItems  *NumberItems  `tfsdk:"number_items"`
	BooleanItems *BooleanItems `tfsdk:"boolean_items"`
	ObjectItems  *ObjectItems  `tfsdk:"object_items"`
}

func AddArrayPropertiesToState added in v2.2.0

func AddArrayPropertiesToState(ctx context.Context, v *cli.BlueprintProperty, jsonEscapeHTML bool) *ArrayPropModel

type AverageByProperty

type AverageByProperty struct {
	MeasureTimeBy types.String `tfsdk:"measure_time_by"`
	AverageOf     types.String `tfsdk:"average_of"`
	Property      types.String `tfsdk:"property"`
}

type AverageEntitiesModel

type AverageEntitiesModel struct {
	AverageOf     types.String `tfsdk:"average_of"`
	MeasureTimeBy types.String `tfsdk:"measure_time_by"`
}

type BlueprintModel

type BlueprintModel struct {
	ID                          types.String                        `tfsdk:"id"`
	Identifier                  types.String                        `tfsdk:"identifier"`
	Title                       types.String                        `tfsdk:"title"`
	Icon                        types.String                        `tfsdk:"icon"`
	Description                 types.String                        `tfsdk:"description"`
	CreatedAt                   types.String                        `tfsdk:"created_at"`
	CreatedBy                   types.String                        `tfsdk:"created_by"`
	UpdatedAt                   types.String                        `tfsdk:"updated_at"`
	UpdatedBy                   types.String                        `tfsdk:"updated_by"`
	KafkaChangelogDestination   types.Object                        `tfsdk:"kafka_changelog_destination"`
	WebhookChangelogDestination *WebhookChangelogDestinationModel   `tfsdk:"webhook_changelog_destination"`
	TeamInheritance             *TeamInheritanceModel               `tfsdk:"team_inheritance"`
	Properties                  *PropertiesModel                    `tfsdk:"properties"`
	Relations                   map[string]RelationModel            `tfsdk:"relations"`
	MirrorProperties            map[string]MirrorPropertyModel      `tfsdk:"mirror_properties"`
	CalculationProperties       map[string]CalculationPropertyModel `tfsdk:"calculation_properties"`
	ForceDeleteEntities         types.Bool                          `tfsdk:"force_delete_entities"`
	CreateCatalogPage           types.Bool                          `tfsdk:"create_catalog_page"`
	Ownership                   *OwnershipModel                     `tfsdk:"ownership"`
}

type BlueprintResource

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

func (*BlueprintResource) Configure

func (*BlueprintResource) Create

func (*BlueprintResource) Delete

func (*BlueprintResource) ImportState

func (*BlueprintResource) Metadata

func (*BlueprintResource) Read

func (*BlueprintResource) Schema

func (*BlueprintResource) Update

type BooleanItems

type BooleanItems struct {
	Default types.List `tfsdk:"default"`
}

type BooleanPropModel

type BooleanPropModel struct {
	Title       types.String `tfsdk:"title"`
	Icon        types.String `tfsdk:"icon"`
	Description types.String `tfsdk:"description"`
	Default     types.Bool   `tfsdk:"default"`
	Required    types.Bool   `tfsdk:"required"`
}

type CalculationPropertyModel

type CalculationPropertyModel struct {
	Calculation types.String `tfsdk:"calculation"`
	Title       types.String `tfsdk:"title"`
	Format      types.String `tfsdk:"format"`
	Icon        types.String `tfsdk:"icon"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
	Colorized   types.Bool   `tfsdk:"colorized"`
	Colors      types.Map    `tfsdk:"colors"`
}

type MirrorPropertyModel

type MirrorPropertyModel struct {
	Title types.String `tfsdk:"title"`
	Path  types.String `tfsdk:"path"`
}

type NumberItems

type NumberItems struct {
	Default types.List `tfsdk:"default"`
}

type NumberPropModel

type NumberPropModel struct {
	Title       types.String  `tfsdk:"title"`
	Icon        types.String  `tfsdk:"icon"`
	Description types.String  `tfsdk:"description"`
	Default     types.Float64 `tfsdk:"default"`
	Required    types.Bool    `tfsdk:"required"`
	Maximum     types.Float64 `tfsdk:"maximum"`
	Minimum     types.Float64 `tfsdk:"minimum"`
	Enum        types.List    `tfsdk:"enum"`
	EnumColors  types.Map     `tfsdk:"enum_colors"`
}

func AddNumberPropertiesToState added in v2.2.0

func AddNumberPropertiesToState(ctx context.Context, v *cli.BlueprintProperty) *NumberPropModel

type ObjectItems

type ObjectItems struct {
	Default types.List `tfsdk:"default"`
}

type ObjectPropModel

type ObjectPropModel struct {
	Title       types.String `tfsdk:"title"`
	Icon        types.String `tfsdk:"icon"`
	Description types.String `tfsdk:"description"`
	Required    types.Bool   `tfsdk:"required"`
	Default     types.String `tfsdk:"default"`
	Spec        types.String `tfsdk:"spec"`
}

func AddObjectPropertiesToState added in v2.2.0

func AddObjectPropertiesToState(v *cli.BlueprintProperty) *ObjectPropModel

type OwnershipModel added in v2.1.3

type OwnershipModel struct {
	Type  types.String `tfsdk:"type"`
	Path  types.String `tfsdk:"path"`
	Title types.String `tfsdk:"title"`
}

type PropertiesModel

type PropertiesModel struct {
	StringProps  map[string]StringPropModel  `tfsdk:"string_props"`
	NumberProps  map[string]NumberPropModel  `tfsdk:"number_props"`
	BooleanProps map[string]BooleanPropModel `tfsdk:"boolean_props"`
	ArrayProps   map[string]ArrayPropModel   `tfsdk:"array_props"`
	ObjectProps  map[string]ObjectPropModel  `tfsdk:"object_props"`
}

type RelationModel

type RelationModel struct {
	Target      types.String `tfsdk:"target"`
	Title       types.String `tfsdk:"title"`
	Description types.String `tfsdk:"description"`
	Required    types.Bool   `tfsdk:"required"`
	Many        types.Bool   `tfsdk:"many"`
}

type SpecAuthenticationModel

type SpecAuthenticationModel struct {
	AuthorizationUrl types.String `tfsdk:"authorization_url"`
	TokenUrl         types.String `tfsdk:"token_url"`
	ClientId         types.String `tfsdk:"client_id"`
}

type StringItems

type StringItems struct {
	Format     types.String `tfsdk:"format"`
	Default    types.List   `tfsdk:"default"`
	Pattern    types.String `tfsdk:"pattern"`
	Enum       types.List   `tfsdk:"enum"`
	EnumColors types.Map    `tfsdk:"enum_colors"`
}

type StringPropModel

type StringPropModel struct {
	Title              types.String             `tfsdk:"title"`
	Icon               types.String             `tfsdk:"icon"`
	Description        types.String             `tfsdk:"description"`
	Default            types.String             `tfsdk:"default"`
	Required           types.Bool               `tfsdk:"required"`
	Format             types.String             `tfsdk:"format"`
	MaxLength          types.Int64              `tfsdk:"max_length"`
	MinLength          types.Int64              `tfsdk:"min_length"`
	Pattern            types.String             `tfsdk:"pattern"`
	Enum               types.List               `tfsdk:"enum"`
	EnumColors         types.Map                `tfsdk:"enum_colors"`
	Spec               types.String             `tfsdk:"spec"`
	SpecAuthentication *SpecAuthenticationModel `tfsdk:"spec_authentication"`
}

func AddStringPropertiesToState added in v2.2.0

func AddStringPropertiesToState(ctx context.Context, v *cli.BlueprintProperty) *StringPropModel

type TeamInheritanceModel

type TeamInheritanceModel struct {
	Path types.String `tfsdk:"path"`
}

type WebhookChangelogDestinationModel

type WebhookChangelogDestinationModel struct {
	Url   types.String `tfsdk:"url"`
	Agent types.Bool   `tfsdk:"agent"`
}

Jump to

Keyboard shortcuts

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