Documentation
¶
Index ¶
- func APILabelsToLabelsV1(labels []api.AllowedLabelBeta) []api.LabelV1
- func ActionsPlanToAPIActions(ctx context.Context, actions types.Set) ([]api.DestinationFilterActionV1, diag.Diagnostics)
- func GetFunctionSettingAPIValueFromPlan(ctx context.Context, settings types.Set) ([]api.FunctionSettingV1, diag.Diagnostics)
- func GetPermissionsAPIValueFromPlan(ctx context.Context, permissions types.Set) ([]api.PermissionV1, diag.Diagnostics)
- func GetPermissionsAPIValueFromState(permissions []PermissionState) []api.PermissionV1
- func GetSettings(settings api.NullableModelMap) (jsontypes.Normalized, error)
- func LabelsPlanToAPILabels(ctx context.Context, labels types.Set) ([]api.AllowedLabelBeta, diag.Diagnostics)
- func PermissionsToInvitePermissions(permissions []api.PermissionV1) []api.InvitePermissionV1
- func PermissionsToPermissionsInput(permissions []api.PermissionV1) []api.PermissionInputV1
- type Action
- type Component
- type Contact
- type DestinationFilterActionState
- type DestinationFilterPlan
- type DestinationFilterState
- type DestinationMetadataState
- type DestinationPlan
- type DestinationState
- type DestinationSubscriptionState
- type Field
- type FunctionPlan
- type FunctionSettingState
- type FunctionState
- type IntegrationOptionState
- type LabelState
- type LogosState
- type PermissionPlan
- type PermissionState
- type Preset
- type ProfilesWarehouseState
- type ResourcePlan
- type ResourceState
- type RoleState
- type RulesDSState
- type RulesState
- type SourceMetadataState
- type SourcePlan
- type SourceState
- type SupportedFeature
- type SupportedMethod
- type SupportedPlatform
- type TrackingPlanDSState
- type TrackingPlanPlan
- type TrackingPlanState
- type UserDataSourceState
- type UserGroupPlan
- type UserGroupState
- type UserPlan
- type UserState
- type WarehouseMetadataState
- type WarehousePlan
- type WarehouseState
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 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 GetSettings ¶
func GetSettings(settings api.NullableModelMap) (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
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 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 (d *DestinationFilterActionState) Fill(action api.DestinationFilterActionV1) error
func (*DestinationFilterActionState) ToAPIValue ¶
func (d *DestinationFilterActionState) ToAPIValue() (api.DestinationFilterActionV1, diag.Diagnostics)
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"`
}
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.DestinationMetadata) error
type DestinationPlan ¶
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.Destination) 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 ¶
func (d *DestinationSubscriptionState) Fill(subscription api.DestinationSubscription) error
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 IntegrationOptionState ¶
type LabelState ¶
type LabelState struct {
Key types.String `tfsdk:"key"`
Value types.String `tfsdk:"value"`
Description types.String `tfsdk:"description"`
}
func (*LabelState) Fill ¶
func (l *LabelState) Fill(label api.LabelV1)
func (*LabelState) ToAPIValue ¶
func (l *LabelState) ToAPIValue() api.AllowedLabelBeta
type LogosState ¶
type PermissionPlan ¶
type PermissionPlan struct {
RoleID types.String `tfsdk:"role_id"`
Resources types.Set `tfsdk:"resources"`
}
func (*PermissionPlan) ToAPIValue ¶
func (p *PermissionPlan) ToAPIValue(ctx context.Context) (api.PermissionV1, diag.Diagnostics)
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 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 ¶
func (w *ProfilesWarehouseState) Fill(warehouse api.ProfilesWarehouse1) error
type ResourcePlan ¶
type ResourcePlan struct {
ID types.String `tfsdk:"id"`
Type types.String `tfsdk:"type"`
Labels types.Set `tfsdk:"labels"`
}
func (*ResourcePlan) ToAPIValue ¶
func (r *ResourcePlan) ToAPIValue(ctx context.Context) (api.PermissionResourceV1, diag.Diagnostics)
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 RoleState ¶
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 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.SourceMetadata) 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"`
}
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 SupportedPlatform ¶
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.TrackingPlan, 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.TrackingPlan, rules *[]api.RuleV1) error
type UserDataSourceState ¶
type UserGroupPlan ¶
type UserGroupState ¶
type UserState ¶
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"`
}
type WarehousePlan ¶
type WarehouseState ¶
Click to show internal directories.
Click to hide internal directories.