 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func ArrayPropertySchema() schema.MapNestedAttribute
- func BlueprintSchema() map[string]schema.Attribute
- func BooleanPropertySchema() schema.Attribute
- func CalculationPropertiesToBody(ctx context.Context, state map[string]CalculationPropertyModel) map[string]cli.BlueprintCalculationProperty
- func MetadataProperties() map[string]schema.Attribute
- func MirrorPropertiesToBody(state map[string]MirrorPropertyModel) map[string]cli.BlueprintMirrorProperty
- func NewBlueprintResource() resource.Resource
- func NumberPropertySchema() schema.Attribute
- func ObjectPropertySchema() schema.MapNestedAttribute
- func OwnershipSchema() schema.Attribute
- func PropertiesSchema() schema.Attribute
- func PropsResourceToBody(ctx context.Context, state *PropertiesModel) (map[string]cli.BlueprintProperty, []string, error)
- func RelationsResourceToBody(state map[string]RelationModel) map[string]cli.Relation
- func SetCommonProperties(v cli.BlueprintProperty, prop interface{}, jsonEscapeHTML bool)
- func StringPropertySchema() schema.Attribute
- type AggregateByPropertyModel
- type AggregationMethodsModel
- type AggregationPropertyModel
- type ArrayPropModel
- type AverageByProperty
- type AverageEntitiesModel
- type BlueprintModel
- type BlueprintResource
- func (r *BlueprintResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BlueprintResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BlueprintResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BlueprintResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BlueprintResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BlueprintResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BlueprintResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BlueprintResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
 
- type BooleanItems
- type BooleanPropModel
- type CalculationPropertyModel
- type MirrorPropertyModel
- type NumberItems
- type NumberPropModel
- type ObjectItems
- type ObjectPropModel
- type OwnershipModel
- type PropertiesModel
- type RelationModel
- type SpecAuthenticationModel
- type StringItems
- type StringPropModel
- type TeamInheritanceModel
- type WebhookChangelogDestinationModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayPropertySchema ¶
func ArrayPropertySchema() schema.MapNestedAttribute
func BlueprintSchema ¶
func BooleanPropertySchema ¶
func CalculationPropertiesToBody ¶ added in v2.1.8
func CalculationPropertiesToBody(ctx context.Context, state map[string]CalculationPropertyModel) map[string]cli.BlueprintCalculationProperty
func MetadataProperties ¶
func MirrorPropertiesToBody ¶ added in v2.1.8
func MirrorPropertiesToBody(state map[string]MirrorPropertyModel) map[string]cli.BlueprintMirrorProperty
func NewBlueprintResource ¶
func NumberPropertySchema ¶
func ObjectPropertySchema ¶
func ObjectPropertySchema() schema.MapNestedAttribute
func OwnershipSchema ¶ added in v2.1.3
func PropertiesSchema ¶ added in v2.1.8
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 ¶
Types ¶
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 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 AverageEntitiesModel ¶
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 (r *BlueprintResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BlueprintResource) Create ¶
func (r *BlueprintResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BlueprintResource) Delete ¶
func (r *BlueprintResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BlueprintResource) ImportState ¶
func (r *BlueprintResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BlueprintResource) Metadata ¶
func (r *BlueprintResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BlueprintResource) Read ¶
func (r *BlueprintResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BlueprintResource) Schema ¶
func (r *BlueprintResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BlueprintResource) Update ¶
func (r *BlueprintResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type BooleanItems ¶
type BooleanPropModel ¶
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 NumberItems ¶
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 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 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 SpecAuthenticationModel ¶
type StringItems ¶
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 ¶
 Click to show internal directories. 
   Click to hide internal directories.