models

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APILabelsToLabelsV1

func APILabelsToLabelsV1(labels []api.AllowedLabelBeta) []api.LabelV1

func ActionsPlanToAPIActions

func ActionsPlanToAPIActions(ctx context.Context, actions types.Set) ([]api.DestinationFilterActionV1, diag.Diagnostics)

func FQLDefinedPropertiesPlanToAPIValue added in v0.9.0

func FQLDefinedPropertiesPlanToAPIValue(ctx context.Context, properties types.Set) ([]api.FQLDefinedPropertyV1, diag.Diagnostics)

func GetFunctionSettingAPIValueFromPlan

func GetFunctionSettingAPIValueFromPlan(ctx context.Context, settings types.Set) ([]api.FunctionSettingV1, diag.Diagnostics)

func GetPermissionsAPIValueFromPlan

func GetPermissionsAPIValueFromPlan(ctx context.Context, permissions types.Set) ([]api.PermissionV1, diag.Diagnostics)

func GetPermissionsAPIValueFromState

func GetPermissionsAPIValueFromState(permissions []PermissionState) []api.PermissionV1

func GetSchemaSettingsFromPlan added in v0.6.0

func GetSchemaSettingsFromPlan(ctx context.Context, settings types.Object) (*api.SourceSettingsOutputV1, diag.Diagnostics)

func GetSettings

func GetSettings(settings map[string]interface{}) (jsontypes.Normalized, error)

func GetSettingsFromMap added in v0.7.0

func GetSettingsFromMap(settings map[string]interface{}) (jsontypes.Normalized, error)

func LabelsPlanToAPILabels

func LabelsPlanToAPILabels(ctx context.Context, labels types.Set) ([]api.AllowedLabelBeta, diag.Diagnostics)

func PermissionsToInvitePermissions

func PermissionsToInvitePermissions(permissions []api.PermissionV1) []api.InvitePermissionV1

func PermissionsToPermissionsInput

func PermissionsToPermissionsInput(permissions []api.PermissionV1) []api.PermissionInputV1

func PropertyRenamesPlanToAPIValue added in v0.9.0

func PropertyRenamesPlanToAPIValue(ctx context.Context, renames types.Set) ([]api.PropertyRenameV1, diag.Diagnostics)

func PropertyValueTransformationsPlanToAPIValue added in v0.9.0

func PropertyValueTransformationsPlanToAPIValue(ctx context.Context, transforms types.Set) ([]api.PropertyValueTransformationV1, diag.Diagnostics)

Types

type Action

type Action struct {
	ID             types.String `tfsdk:"id"`
	Name           types.String `tfsdk:"name"`
	Slug           types.String `tfsdk:"slug"`
	Description    types.String `tfsdk:"description"`
	Platform       types.String `tfsdk:"platform"`
	Hidden         types.Bool   `tfsdk:"hidden"`
	DefaultTrigger types.String `tfsdk:"default_trigger"`
	Fields         []Field      `tfsdk:"fields"`
}

type Component

type Component struct {
	Type  types.String `tfsdk:"type"`
	Code  types.String `tfsdk:"code"`
	Owner types.String `tfsdk:"owner"`
}

type Contact

type Contact struct {
	Name      types.String `tfsdk:"name"`
	Email     types.String `tfsdk:"email"`
	Role      types.String `tfsdk:"role"`
	IsPrimary types.Bool   `tfsdk:"is_primary"`
}

type DestinationFilterActionState

type DestinationFilterActionState struct {
	Type    types.String         `tfsdk:"type"`
	Percent types.Float64        `tfsdk:"percent"`
	Path    types.String         `tfsdk:"path"`
	Fields  jsontypes.Normalized `tfsdk:"fields"`
}

func (*DestinationFilterActionState) Fill

func (*DestinationFilterActionState) ToAPIValue

type DestinationFilterPlan

type DestinationFilterPlan struct {
	ID            types.String `tfsdk:"id"`
	If            types.String `tfsdk:"if"`
	DestinationID types.String `tfsdk:"destination_id"`
	SourceID      types.String `tfsdk:"source_id"`
	Title         types.String `tfsdk:"title"`
	Description   types.String `tfsdk:"description"`
	Enabled       types.Bool   `tfsdk:"enabled"`
	Actions       types.Set    `tfsdk:"actions"`
}

type DestinationFilterState

type DestinationFilterState struct {
	ID            types.String                   `tfsdk:"id"`
	If            types.String                   `tfsdk:"if"`
	DestinationID types.String                   `tfsdk:"destination_id"`
	SourceID      types.String                   `tfsdk:"source_id"`
	Title         types.String                   `tfsdk:"title"`
	Description   types.String                   `tfsdk:"description"`
	Enabled       types.Bool                     `tfsdk:"enabled"`
	Actions       []DestinationFilterActionState `tfsdk:"actions"`
}

func (*DestinationFilterState) Fill

type DestinationMetadataState

type DestinationMetadataState struct {
	ID                 types.String             `tfsdk:"id"`
	Name               types.String             `tfsdk:"name"`
	Slug               types.String             `tfsdk:"slug"`
	Description        types.String             `tfsdk:"description"`
	Logos              *LogosState              `tfsdk:"logos"`
	Options            []IntegrationOptionState `tfsdk:"options"`
	Categories         []types.String           `tfsdk:"categories"`
	Website            types.String             `tfsdk:"website"`
	Components         []Component              `tfsdk:"components"`
	PreviousNames      []types.String           `tfsdk:"previous_names"`
	Status             types.String             `tfsdk:"status"`
	SupportedFeatures  *SupportedFeature        `tfsdk:"supported_features"`
	SupportedMethods   *SupportedMethod         `tfsdk:"supported_methods"`
	SupportedPlatforms *SupportedPlatform       `tfsdk:"supported_platforms"`
	Actions            []Action                 `tfsdk:"actions"`
	Presets            []Preset                 `tfsdk:"presets"`
	Contacts           []Contact                `tfsdk:"contacts"`
	PartnerOwned       types.Bool               `tfsdk:"partner_owned"`
	SupportedRegions   []types.String           `tfsdk:"supported_regions"`
	RegionEndpoints    []types.String           `tfsdk:"region_endpoints"`
}

func (*DestinationMetadataState) Fill

func (d *DestinationMetadataState) Fill(destinationMetadata api.DestinationMetadataV1) error

type DestinationPlan

type DestinationPlan struct {
	ID       types.String         `tfsdk:"id"`
	Name     types.String         `tfsdk:"name"`
	Enabled  types.Bool           `tfsdk:"enabled"`
	Metadata types.Object         `tfsdk:"metadata"`
	SourceID types.String         `tfsdk:"source_id"`
	Settings jsontypes.Normalized `tfsdk:"settings"`
}

type DestinationState

type DestinationState struct {
	ID       types.String              `tfsdk:"id"`
	Name     types.String              `tfsdk:"name"`
	Enabled  types.Bool                `tfsdk:"enabled"`
	Metadata *DestinationMetadataState `tfsdk:"metadata"`
	SourceID types.String              `tfsdk:"source_id"`
	Settings jsontypes.Normalized      `tfsdk:"settings"`
}

func (*DestinationState) Fill

func (d *DestinationState) Fill(destination *api.DestinationV1) error

type DestinationSubscriptionState

type DestinationSubscriptionState struct {
	ID            types.String         `tfsdk:"id"`
	DestinationID types.String         `tfsdk:"destination_id"`
	Name          types.String         `tfsdk:"name"`
	Enabled       types.Bool           `tfsdk:"enabled"`
	ActionID      types.String         `tfsdk:"action_id"`
	ActionSlug    types.String         `tfsdk:"action_slug"`
	Trigger       types.String         `tfsdk:"trigger"`
	ModelID       types.String         `tfsdk:"model_id"`
	Settings      jsontypes.Normalized `tfsdk:"settings"`
}

func (*DestinationSubscriptionState) Fill

type FQLDefinedProperty added in v0.9.0

type FQLDefinedProperty struct {
	FQL          types.String `tfsdk:"fql"`
	PropertyName types.String `tfsdk:"property_name"`
}

type Field

type Field struct {
	ID           types.String         `tfsdk:"id"`
	SortOrder    types.Float64        `tfsdk:"sort_order"`
	FieldKey     types.String         `tfsdk:"field_key"`
	Label        types.String         `tfsdk:"label"`
	Type         types.String         `tfsdk:"type"`
	Description  types.String         `tfsdk:"description"`
	Placeholder  types.String         `tfsdk:"placeholder"`
	Required     types.Bool           `tfsdk:"required"`
	Multiple     types.Bool           `tfsdk:"multiple"`
	Dynamic      types.Bool           `tfsdk:"dynamic"`
	AllowNull    types.Bool           `tfsdk:"allow_null"`
	DefaultValue jsontypes.Normalized `tfsdk:"default_value"`
	Choices      jsontypes.Normalized `tfsdk:"choices"`
}

type FunctionPlan

type FunctionPlan struct {
	ID                types.String `tfsdk:"id"`
	Code              types.String `tfsdk:"code"`
	DisplayName       types.String `tfsdk:"display_name"`
	LogoURL           types.String `tfsdk:"logo_url"`
	ResourceType      types.String `tfsdk:"resource_type"`
	Description       types.String `tfsdk:"description"`
	PreviewWebhookURL types.String `tfsdk:"preview_webhook_url"`
	CatalogID         types.String `tfsdk:"catalog_id"`
	Settings          types.Set    `tfsdk:"settings"`
}

type FunctionSettingState

type FunctionSettingState struct {
	Name        types.String `tfsdk:"name"`
	Label       types.String `tfsdk:"label"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
	Required    types.Bool   `tfsdk:"required"`
	Sensitive   types.Bool   `tfsdk:"sensitive"`
}

func (*FunctionSettingState) Fill

func (f *FunctionSettingState) Fill(setting api.FunctionSettingV1)

func (*FunctionSettingState) ToAPIValue

func (f *FunctionSettingState) ToAPIValue() api.FunctionSettingV1

type FunctionState

type FunctionState struct {
	ID                types.String           `tfsdk:"id"`
	Code              types.String           `tfsdk:"code"`
	DisplayName       types.String           `tfsdk:"display_name"`
	LogoURL           types.String           `tfsdk:"logo_url"`
	ResourceType      types.String           `tfsdk:"resource_type"`
	Description       types.String           `tfsdk:"description"`
	PreviewWebhookURL types.String           `tfsdk:"preview_webhook_url"`
	CatalogID         types.String           `tfsdk:"catalog_id"`
	Settings          []FunctionSettingState `tfsdk:"settings"`
}

func (*FunctionState) Fill

func (f *FunctionState) Fill(function api.Function)

type GroupSettings added in v0.6.0

type GroupSettings struct {
	AllowUnplannedTraits    types.Bool   `tfsdk:"allow_unplanned_traits"`
	AllowTraitsOnViolations types.Bool   `tfsdk:"allow_traits_on_violations"`
	CommonEventOnViolations types.String `tfsdk:"common_event_on_violations"`
}

func (*GroupSettings) Fill added in v0.6.0

func (g *GroupSettings) Fill(groupSettings *api.GroupSourceSettingsV1)

type IdentifySettings added in v0.6.0

type IdentifySettings struct {
	AllowUnplannedTraits    types.Bool   `tfsdk:"allow_unplanned_traits"`
	AllowTraitsOnViolations types.Bool   `tfsdk:"allow_traits_on_violations"`
	CommonEventOnViolations types.String `tfsdk:"common_event_on_violations"`
}

func (*IdentifySettings) Fill added in v0.6.0

func (i *IdentifySettings) Fill(identifySettings *api.IdentifySourceSettingsV1)

type InsertFunctionInstanceState added in v0.7.0

type InsertFunctionInstanceState struct {
	ID            types.String         `tfsdk:"id"`
	FunctionID    types.String         `tfsdk:"function_id"`
	IntegrationID types.String         `tfsdk:"integration_id"`
	Name          types.String         `tfsdk:"name"`
	Enabled       types.Bool           `tfsdk:"enabled"`
	Settings      jsontypes.Normalized `tfsdk:"settings"`
}

func (*InsertFunctionInstanceState) Fill added in v0.7.0

type IntegrationOptionState

type IntegrationOptionState struct {
	DefaultValue jsontypes.Normalized `tfsdk:"default_value"`
	Description  types.String         `tfsdk:"description"`
	Label        types.String         `tfsdk:"label"`
	Name         types.String         `tfsdk:"name"`
	Required     types.Bool           `tfsdk:"required"`
	Type         types.String         `tfsdk:"type"`
}

type LabelResourceState added in v0.6.0

type LabelResourceState struct {
	Key         types.String `tfsdk:"key"`
	Value       types.String `tfsdk:"value"`
	Description types.String `tfsdk:"description"`
}

func (*LabelResourceState) Fill added in v0.6.0

func (l *LabelResourceState) Fill(label api.LabelV1)

func (*LabelResourceState) ToAPIValue added in v0.6.0

func (l *LabelResourceState) ToAPIValue() api.AllowedLabelBeta

type LabelState

type LabelState struct {
	Key   types.String `tfsdk:"key"`
	Value types.String `tfsdk:"value"`
}

func (*LabelState) Fill

func (l *LabelState) Fill(label api.LabelV1)

func (*LabelState) ToAPIValue

func (l *LabelState) ToAPIValue() api.AllowedLabelBeta

type LogosState

type LogosState struct {
	Alt     types.String `tfsdk:"alt"`
	Default types.String `tfsdk:"default"`
	Mark    types.String `tfsdk:"mark"`
}

type PermissionPlan

type PermissionPlan struct {
	RoleID    types.String `tfsdk:"role_id"`
	Resources types.Set    `tfsdk:"resources"`
}

func (*PermissionPlan) ToAPIValue

type PermissionState

type PermissionState struct {
	RoleID    types.String    `tfsdk:"role_id"`
	Resources []ResourceState `tfsdk:"resources"`
}

func (*PermissionState) Fill

func (p *PermissionState) Fill(permission api.PermissionV1) error

func (*PermissionState) ToAPIValue

func (p *PermissionState) ToAPIValue() api.PermissionV1

type Preset

type Preset struct {
	ActionID types.String         `tfsdk:"action_id"`
	Name     types.String         `tfsdk:"name"`
	Trigger  types.String         `tfsdk:"trigger"`
	Fields   jsontypes.Normalized `tfsdk:"fields"`
}

type ProfilesWarehouseState

type ProfilesWarehouseState struct {
	ID         types.String         `tfsdk:"id"`
	SpaceID    types.String         `tfsdk:"space_id"`
	MetadataID types.String         `tfsdk:"metadata_id"`
	Name       types.String         `tfsdk:"name"`
	Enabled    types.Bool           `tfsdk:"enabled"`
	SchemaName types.String         `tfsdk:"schema_name"`
	Settings   jsontypes.Normalized `tfsdk:"settings"`
}

func (*ProfilesWarehouseState) Fill

type PropertyRename added in v0.9.0

type PropertyRename struct {
	OldName types.String `tfsdk:"old_name"`
	NewName types.String `tfsdk:"new_name"`
}

type PropertyValueTransform added in v0.9.0

type PropertyValueTransform struct {
	PropertyPaths []types.String `tfsdk:"property_paths"`
	PropertyValue types.String   `tfsdk:"property_value"`
}

type PropertyValueTransformPlan added in v0.9.0

type PropertyValueTransformPlan struct {
	PropertyPaths types.Set    `tfsdk:"property_paths"`
	PropertyValue types.String `tfsdk:"property_value"`
}

type ResourcePlan

type ResourcePlan struct {
	ID     types.String `tfsdk:"id"`
	Type   types.String `tfsdk:"type"`
	Labels types.Set    `tfsdk:"labels"`
}

func (*ResourcePlan) ToAPIValue

type ResourceState

type ResourceState struct {
	ID     types.String `tfsdk:"id"`
	Type   types.String `tfsdk:"type"`
	Labels []LabelState `tfsdk:"labels"`
}

func (*ResourceState) Fill

func (r *ResourceState) Fill(resource api.PermissionResourceV1)

func (*ResourceState) ToAPIValue

func (r *ResourceState) ToAPIValue() api.PermissionResourceV1

type ReverseETLModelState

type ReverseETLModelState struct {
	ID                    types.String         `tfsdk:"id"`
	SourceID              types.String         `tfsdk:"source_id"`
	Name                  types.String         `tfsdk:"name"`
	Description           types.String         `tfsdk:"description"`
	Enabled               types.Bool           `tfsdk:"enabled"`
	ScheduleStrategy      types.String         `tfsdk:"schedule_strategy"`
	Query                 types.String         `tfsdk:"query"`
	QueryIdentifierColumn types.String         `tfsdk:"query_identifier_column"`
	ScheduleConfig        jsontypes.Normalized `tfsdk:"schedule_config"`
}

func (*ReverseETLModelState) Fill

type RoleState

type RoleState struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Description types.String `tfsdk:"description"`
}

func (*RoleState) Fill

func (r *RoleState) Fill(role api.RoleV1) error

type RulesDSState

type RulesDSState struct {
	Type         types.String         `tfsdk:"type"`
	Key          types.String         `tfsdk:"key"`
	JSONSchema   jsontypes.Normalized `tfsdk:"json_schema"`
	Version      types.Float64        `tfsdk:"version"`
	CreatedAt    types.String         `tfsdk:"created_at"`
	UpdatedAt    types.String         `tfsdk:"updated_at"`
	DeprecatedAt types.String         `tfsdk:"deprecated_at"`
}

type RulesState

type RulesState struct {
	Type       types.String         `tfsdk:"type"`
	Key        types.String         `tfsdk:"key"`
	JSONSchema jsontypes.Normalized `tfsdk:"json_schema"`
	Version    types.Float64        `tfsdk:"version"`
}

func (*RulesState) ToAPIRule

func (r *RulesState) ToAPIRule() (api.RuleV1, diag.Diagnostics)

func (*RulesState) ToAPIRuleInput

func (r *RulesState) ToAPIRuleInput() (api.RuleInputV1, diag.Diagnostics)

type SchemaSettingsPlan added in v0.6.0

type SchemaSettingsPlan struct {
	Track                     types.Object `tfsdk:"track"`
	Identify                  types.Object `tfsdk:"identify"`
	Group                     types.Object `tfsdk:"group"`
	ForwardingViolationsTo    types.String `tfsdk:"forwarding_violations_to"`
	ForwardingBlockedEventsTo types.String `tfsdk:"forwarding_blocked_events_to"`
}

type SchemaSettingsState added in v0.6.0

type SchemaSettingsState struct {
	Track                     *TrackSettings    `tfsdk:"track"`
	Identify                  *IdentifySettings `tfsdk:"identify"`
	Group                     *GroupSettings    `tfsdk:"group"`
	ForwardingViolationsTo    types.String      `tfsdk:"forwarding_violations_to"`
	ForwardingBlockedEventsTo types.String      `tfsdk:"forwarding_blocked_events_to"`
}

func SchemaSettingsPlanToState added in v0.6.0

func SchemaSettingsPlanToState(ctx context.Context, settings types.Object) (*SchemaSettingsState, diag.Diagnostics)

func (*SchemaSettingsState) Fill added in v0.6.0

func (s *SchemaSettingsState) Fill(schemaSettings api.SourceSettingsOutputV1)

type SourceDataSourceState added in v0.8.0

type SourceDataSourceState struct {
	Enabled        types.Bool           `tfsdk:"enabled"`
	ID             types.String         `tfsdk:"id"`
	Labels         []LabelState         `tfsdk:"labels"`
	Metadata       *SourceMetadataState `tfsdk:"metadata"`
	Name           types.String         `tfsdk:"name"`
	Slug           types.String         `tfsdk:"slug"`
	WorkspaceID    types.String         `tfsdk:"workspace_id"`
	WriteKeys      []types.String       `tfsdk:"write_keys"`
	Settings       jsontypes.Normalized `tfsdk:"settings"`
	SchemaSettings *SchemaSettingsState `tfsdk:"schema_settings"`
}

func (*SourceDataSourceState) Fill added in v0.8.0

func (s *SourceDataSourceState) Fill(source api.SourceV1, schemaSettings *api.SourceSettingsOutputV1) error

type SourceMetadataState

type SourceMetadataState struct {
	ID                 types.String             `tfsdk:"id"`
	Name               types.String             `tfsdk:"name"`
	Slug               types.String             `tfsdk:"slug"`
	Description        types.String             `tfsdk:"description"`
	Logos              *LogosState              `tfsdk:"logos"`
	Options            []IntegrationOptionState `tfsdk:"options"`
	Categories         []types.String           `tfsdk:"categories"`
	IsCloudEventSource types.Bool               `tfsdk:"is_cloud_event_source"`
}

func (*SourceMetadataState) Fill

func (s *SourceMetadataState) Fill(sourceMetadata api.SourceMetadataV1) error

type SourcePlan

type SourcePlan struct {
	Enabled     types.Bool           `tfsdk:"enabled"`
	ID          types.String         `tfsdk:"id"`
	Labels      types.Set            `tfsdk:"labels"`
	Metadata    types.Object         `tfsdk:"metadata"`
	Name        types.String         `tfsdk:"name"`
	Slug        types.String         `tfsdk:"slug"`
	WorkspaceID types.String         `tfsdk:"workspace_id"`
	WriteKeys   types.List           `tfsdk:"write_keys"`
	Settings    jsontypes.Normalized `tfsdk:"settings"`
}

type SourceState

type SourceState struct {
	Enabled     types.Bool           `tfsdk:"enabled"`
	ID          types.String         `tfsdk:"id"`
	Labels      []LabelState         `tfsdk:"labels"`
	Metadata    *SourceMetadataState `tfsdk:"metadata"`
	Name        types.String         `tfsdk:"name"`
	Slug        types.String         `tfsdk:"slug"`
	WorkspaceID types.String         `tfsdk:"workspace_id"`
	WriteKeys   []types.String       `tfsdk:"write_keys"`
	Settings    jsontypes.Normalized `tfsdk:"settings"`
}

func (*SourceState) Fill

func (s *SourceState) Fill(source api.SourceV1) error

type SourceTrackingPlanConnectionPlan added in v0.8.0

type SourceTrackingPlanConnectionPlan struct {
	SourceID       types.String `tfsdk:"source_id"`
	TrackingPlanID types.String `tfsdk:"tracking_plan_id"`
	SchemaSettings types.Object `tfsdk:"schema_settings"`
}

type SourceTrackingPlanConnectionState added in v0.8.0

type SourceTrackingPlanConnectionState struct {
	SourceID       types.String         `tfsdk:"source_id"`
	TrackingPlanID types.String         `tfsdk:"tracking_plan_id"`
	SchemaSettings *SchemaSettingsState `tfsdk:"schema_settings"`
}

func (*SourceTrackingPlanConnectionState) Fill added in v0.8.0

func (s *SourceTrackingPlanConnectionState) Fill(sourceID string, trackingPlanID string, schemaSettings *api.SourceSettingsOutputV1)

type SupportedFeature

type SupportedFeature struct {
	CloudModeInstances     types.String `tfsdk:"cloud_mode_instances"`
	DeviceModeInstances    types.String `tfsdk:"device_mode_instances"`
	Replay                 types.Bool   `tfsdk:"replay"`
	BrowseUnbundling       types.Bool   `tfsdk:"browser_unbundling"`
	BrowseUnbundlingPublic types.Bool   `tfsdk:"browser_unbundling_public"`
}

type SupportedMethod

type SupportedMethod struct {
	PageView types.Bool `tfsdk:"pageview"`
	Identify types.Bool `tfsdk:"identify"`
	Alias    types.Bool `tfsdk:"alias"`
	Track    types.Bool `tfsdk:"track"`
	Group    types.Bool `tfsdk:"group"`
}

type SupportedPlatform

type SupportedPlatform struct {
	Browser types.Bool `tfsdk:"browser"`
	Server  types.Bool `tfsdk:"server"`
	Mobile  types.Bool `tfsdk:"mobile"`
}

type TrackSettings added in v0.6.0

type TrackSettings struct {
	AllowUnplannedEvents          types.Bool   `tfsdk:"allow_unplanned_events"`
	AllowUnplannedEventProperties types.Bool   `tfsdk:"allow_unplanned_event_properties"`
	AllowEventOnViolations        types.Bool   `tfsdk:"allow_event_on_violations"`
	AllowPropertiesOnViolations   types.Bool   `tfsdk:"allow_properties_on_violations"`
	CommonEventOnViolations       types.String `tfsdk:"common_event_on_violations"`
}

func (*TrackSettings) Fill added in v0.6.0

func (t *TrackSettings) Fill(trackSettings *api.TrackSourceSettingsV1)

type TrackingPlanDSState

type TrackingPlanDSState struct {
	ID          types.String   `tfsdk:"id"`
	Name        types.String   `tfsdk:"name"`
	Slug        types.String   `tfsdk:"slug"`
	Description types.String   `tfsdk:"description"`
	Type        types.String   `tfsdk:"type"`
	UpdatedAt   types.String   `tfsdk:"updated_at"`
	CreatedAt   types.String   `tfsdk:"created_at"`
	Rules       []RulesDSState `tfsdk:"rules"`
}

func (*TrackingPlanDSState) Fill

func (t *TrackingPlanDSState) Fill(trackingPlan api.TrackingPlanV1, rules *[]api.RuleV1) error

type TrackingPlanPlan

type TrackingPlanPlan struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Slug        types.String `tfsdk:"slug"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
	UpdatedAt   types.String `tfsdk:"updated_at"`
	CreatedAt   types.String `tfsdk:"created_at"`
	Rules       types.Set    `tfsdk:"rules"`
}

type TrackingPlanState

type TrackingPlanState struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Slug        types.String `tfsdk:"slug"`
	Description types.String `tfsdk:"description"`
	Type        types.String `tfsdk:"type"`
	UpdatedAt   types.String `tfsdk:"updated_at"`
	CreatedAt   types.String `tfsdk:"created_at"`
	Rules       []RulesState `tfsdk:"rules"`
}

func (*TrackingPlanState) Fill

func (t *TrackingPlanState) Fill(trackingPlan api.TrackingPlanV1, rules *[]api.RuleV1) error

type TransformationPlan added in v0.9.0

type TransformationPlan struct {
	ID                           types.String `tfsdk:"id"`
	SourceID                     types.String `tfsdk:"source_id"`
	DestinationMetadataID        types.String `tfsdk:"destination_metadata_id"`
	Name                         types.String `tfsdk:"name"`
	Enabled                      types.Bool   `tfsdk:"enabled"`
	If                           types.String `tfsdk:"if"`
	NewEventName                 types.String `tfsdk:"new_event_name"`
	PropertyRenames              types.Set    `tfsdk:"property_renames"`
	PropertyValueTransformations types.Set    `tfsdk:"property_value_transformations"`
	FQLDefinedProperties         types.Set    `tfsdk:"fql_defined_properties"`
}

type TransformationState added in v0.9.0

type TransformationState struct {
	ID                           types.String             `tfsdk:"id"`
	SourceID                     types.String             `tfsdk:"source_id"`
	DestinationMetadataID        types.String             `tfsdk:"destination_metadata_id"`
	Name                         types.String             `tfsdk:"name"`
	Enabled                      types.Bool               `tfsdk:"enabled"`
	If                           types.String             `tfsdk:"if"`
	NewEventName                 types.String             `tfsdk:"new_event_name"`
	PropertyRenames              []PropertyRename         `tfsdk:"property_renames"`
	PropertyValueTransformations []PropertyValueTransform `tfsdk:"property_value_transformations"`
	FQLDefinedProperties         []FQLDefinedProperty     `tfsdk:"fql_defined_properties"`
}

func (*TransformationState) Fill added in v0.9.0

func (t *TransformationState) Fill(transformation api.TransformationV1)

type UserDataSourceState

type UserDataSourceState struct {
	ID          types.String      `tfsdk:"id"`
	Name        types.String      `tfsdk:"name"`
	Email       types.String      `tfsdk:"email"`
	Permissions []PermissionState `tfsdk:"permissions"`
}

func (*UserDataSourceState) Fill

func (u *UserDataSourceState) Fill(user api.UserV1) error

type UserGroupPlan

type UserGroupPlan struct {
	ID          types.String   `tfsdk:"id"`
	Name        types.String   `tfsdk:"name"`
	Members     []types.String `tfsdk:"members"`
	Permissions types.Set      `tfsdk:"permissions"`
}

type UserGroupState

type UserGroupState struct {
	ID          types.String      `tfsdk:"id"`
	Name        types.String      `tfsdk:"name"`
	Members     []types.String    `tfsdk:"members"`
	Permissions []PermissionState `tfsdk:"permissions"`
}

func (*UserGroupState) Fill

func (u *UserGroupState) Fill(userGroup api.UserGroupV1, members []string) error

type UserPlan

type UserPlan struct {
	ID          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Email       types.String `tfsdk:"email"`
	IsInvite    types.Bool   `tfsdk:"is_invite"`
	Permissions types.Set    `tfsdk:"permissions"`
}

type UserState

type UserState struct {
	ID          types.String      `tfsdk:"id"`
	Name        types.String      `tfsdk:"name"`
	Email       types.String      `tfsdk:"email"`
	IsInvite    types.Bool        `tfsdk:"is_invite"`
	Permissions []PermissionState `tfsdk:"permissions"`
}

func (*UserState) Fill

func (u *UserState) Fill(user api.UserV1) error

type WarehouseMetadataState

type WarehouseMetadataState struct {
	ID          types.String             `tfsdk:"id"`
	Name        types.String             `tfsdk:"name"`
	Slug        types.String             `tfsdk:"slug"`
	Description types.String             `tfsdk:"description"`
	Logos       *LogosState              `tfsdk:"logos"`
	Options     []IntegrationOptionState `tfsdk:"options"`
}

func (*WarehouseMetadataState) Fill

func (w *WarehouseMetadataState) Fill(warehouseMetadata api.WarehouseMetadataV1) error

type WarehousePlan

type WarehousePlan struct {
	ID          types.String         `tfsdk:"id"`
	Metadata    types.Object         `tfsdk:"metadata"`
	Name        types.String         `tfsdk:"name"`
	WorkspaceID types.String         `tfsdk:"workspace_id"`
	Enabled     types.Bool           `tfsdk:"enabled"`
	Settings    jsontypes.Normalized `tfsdk:"settings"`
}

type WarehouseState

type WarehouseState struct {
	ID          types.String            `tfsdk:"id"`
	Metadata    *WarehouseMetadataState `tfsdk:"metadata"`
	Name        types.String            `tfsdk:"name"`
	WorkspaceID types.String            `tfsdk:"workspace_id"`
	Enabled     types.Bool              `tfsdk:"enabled"`
	Settings    jsontypes.Normalized    `tfsdk:"settings"`
}

func (*WarehouseState) Fill

func (w *WarehouseState) Fill(warehouse api.WarehouseV1) error

Jump to

Keyboard shortcuts

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