workflowtemplaterevision

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDeploymentPlatformConfigFromAPI added in v1.11.0

func ConvertDeploymentPlatformConfigFromAPI(ctx context.Context, deploymentConfigList []*workflowtemplaterevisions.DeploymentPlatformConfig) (types.List, diag.Diagnostics)

func ConvertDeploymentPlatformConfigToAPI added in v1.11.0

func ConvertDeploymentPlatformConfigToAPI(ctx context.Context, deploymentConfigList types.List) ([]*workflowtemplaterevisions.DeploymentPlatformConfig, diag.Diagnostics)

func ConvertDeprecationFromAPI added in v1.11.0

func ConvertDeprecationFromAPI(ctx context.Context, deprecationAPIModle *workflowtemplaterevisions.Deprecation) (types.Object, diag.Diagnostics)

func ConvertDeprecationToAPIModel added in v1.11.0

func ConvertDeprecationToAPIModel(ctx context.Context, deprecationObj types.Object) (*workflowtemplaterevisions.Deprecation, diag.Diagnostics)

func ConvertEnvironmentVariablesFromAPI added in v1.11.0

func ConvertEnvironmentVariablesFromAPI(ctx context.Context, envVars []sgsdkgo.EnvVars) (types.List, diag.Diagnostics)

Conversion helpers for EnvironmentVariables (Flatteners - API to Terraform)

func ConvertEnvironmentVariablesToAPI added in v1.11.0

func ConvertEnvironmentVariablesToAPI(ctx context.Context, envVarsList types.List) ([]sgsdkgo.EnvVars, diag.Diagnostics)

ConvertEnvironmentVariablesToAPI converts a list of terraform EnvironmentVariableModel to API EnvVars

func ConvertInputSchemasFromAPI added in v1.11.0

func ConvertInputSchemasFromAPI(ctx context.Context, inputSchemas []sgsdkgo.InputSchemas) (types.List, diag.Diagnostics)

Conversion helpers for InputSchemas (Flatteners - API to Terraform)

func ConvertInputSchemasToAPI added in v1.11.0

func ConvertInputSchemasToAPI(ctx context.Context, inputSchemasList types.List) ([]sgsdkgo.InputSchemas, diag.Diagnostics)

Conversion helpers for EnvironmentVariables (Expanders - Terraform to API) Conversion helpers for InputSchemas (Expanders - Terraform to API)

func ConvertMinistepsFromAPI added in v1.11.0

func ConvertMinistepsFromAPI(ctx context.Context, ministeps *workflowtemplaterevisions.Ministeps) (types.Object, diag.Diagnostics)

Conversion helpers for MiniSteps (Flatteners - API to Terraform)

func ConvertMinistepsToAPI added in v1.11.0

func ConvertMinistepsToAPI(ctx context.Context, ministepsObj types.Object) (*workflowtemplaterevisions.Ministeps, diag.Diagnostics)

func ConvertMountPointListFromAPI added in v1.11.0

func ConvertMountPointListFromAPI(ctx context.Context, mountPointListAPI []sgsdkgo.MountPoint) (types.List, diag.Diagnostics)

func ConvertMountPointsListToAPI added in v1.11.0

func ConvertMountPointsListToAPI(ctx context.Context, mountPointsList types.List) ([]sgsdkgo.MountPoint, diag.Diagnostics)

func ConvertNotificationRecipientsFromAPI added in v1.11.0

func ConvertNotificationRecipientsFromAPI(ctx context.Context, recipients []workflowtemplaterevisions.MinistepsNotificationRecepients) (types.List, diag.Diagnostics)

Helper function to convert notification recipients

func ConvertNotificationRecipientsToAPI added in v1.11.0

func ConvertNotificationRecipientsToAPI(ctx context.Context, recepientsObj types.List) ([]workflowtemplaterevisions.MinistepsNotificationRecepients, diag.Diagnostics)

Helper function to convert notification recipients to API

func ConvertRunnerConstraintsFromAPI added in v1.11.0

func ConvertRunnerConstraintsFromAPI(ctx context.Context, runnerConstraints *sgsdkgo.RunnerConstraints) (types.Object, diag.Diagnostics)

ConvertRunnerConstraintsFromAPI converts API RunnerConstraints to terraform types.Object

func ConvertRunnerConstraintsToAPIModel added in v1.11.0

func ConvertRunnerConstraintsToAPIModel(ctx context.Context, runnerConstraintsTerraType types.Object) (*sgsdkgo.RunnerConstraints, diag.Diagnostics)

func ConvertRuntimeSourceFromAPI added in v1.11.0

func ConvertRuntimeSourceFromAPI(ctx context.Context, runtimeSource *workflowtemplates.RuntimeSource) (types.Object, diag.Diagnostics)

func ConvertRuntimeSourceToAPI added in v1.11.0

func ConvertRuntimeSourceToAPI(ctx context.Context, runtimeSourceObj types.Object) (*workflowtemplates.RuntimeSourceUpdate, diag.Diagnostics)

Helper functions for type conversion

func ConvertTerraformConfigFromAPI added in v1.11.0

func ConvertTerraformConfigFromAPI(ctx context.Context, terraformConfig *sgsdkgo.TerraformConfig) (types.Object, diag.Diagnostics)

func ConvertTerraformConfigToAPI added in v1.11.0

func ConvertTerraformConfigToAPI(ctx context.Context, terraformConfigObj types.Object) (*sgsdkgo.TerraformConfig, diag.Diagnostics)

func ConvertUserSchedulesFromAPI added in v1.11.0

func ConvertUserSchedulesFromAPI(ctx context.Context, userSchedules []workflowtemplaterevisions.UserSchedules) (types.List, diag.Diagnostics)

ConvertUserSchedulesFromAPI converts API UserSchedules to terraform types.List

func ConvertUserSchedulesToAPIModel added in v1.11.0

func ConvertUserSchedulesToAPIModel(ctx context.Context, userSchedulesList types.List) ([]workflowtemplaterevisions.UserSchedules, diag.Diagnostics)

func ConvertWebhookFromAPI added in v1.11.0

Helper function to convert webhooks

func ConvertWebhookToAPI added in v1.11.0

Helper function to convert webhook to API

func ConvertWfStepInputDataFromAPI added in v1.11.0

func ConvertWfStepInputDataFromAPI(ctx context.Context, inputData *sgsdkgo.WfStepInputData) (types.Object, diag.Diagnostics)

ConvertWfStepInputDataFromAPI converts API WfStepInputData to terraform WfStepInputDataModel

func ConvertWfStepInputDataToAPI added in v1.11.0

func ConvertWfStepInputDataToAPI(ctx context.Context, inputDataObj types.Object) (*sgsdkgo.WfStepInputData, diag.Diagnostics)

ConvertWfStepInputDataToAPI converts terraform WfStepInputDataModel to API WfStepInputData

func ConvertWfStepsConfigFromAPI added in v1.11.0

func ConvertWfStepsConfigFromAPI(ctx context.Context, wfStepConfig *sgsdkgo.WfStepsConfig) (types.Object, diag.Diagnostics)

ConvertWfStepsConfigFromAPI converts API WfStepsConfig to terraform WfStepsConfigModel

func ConvertWfStepsConfigListFromAPI added in v1.11.0

func ConvertWfStepsConfigListFromAPI(ctx context.Context, wfStepsConfigList []sgsdkgo.WfStepsConfig) (types.List, diag.Diagnostics)

ConvertWfStepsConfigListFromAPI converts API WfStepsConfig list to terraform WfStepsConfigModel list

func ConvertWfStepsConfigListToAPI added in v1.11.0

func ConvertWfStepsConfigListToAPI(ctx context.Context, wfStepsConfigList types.List) ([]sgsdkgo.WfStepsConfig, diag.Diagnostics)

func ConvertWfStepsConfigToAPI added in v1.11.0

func ConvertWfStepsConfigToAPI(ctx context.Context, wfStepModel WfStepsConfigModel) (*sgsdkgo.WfStepsConfig, diag.Diagnostics)

ConvertWfStepsConfigToAPI converts a single terraform WfStepsConfigModel to API WfStepsConfig

func ConvertWorkflowChainingFromAPI added in v1.11.0

func ConvertWorkflowChainingFromAPI(ctx context.Context, wfChainingList []workflowtemplaterevisions.MinistepsWfChainingSchema) (types.List, diag.Diagnostics)

Helper function to convert workflow chaining

func ConvertWorkflowChainingToAPI added in v1.11.0

func ConvertWorkflowChainingToAPI(ctx context.Context, chainingObj types.List) ([]workflowtemplaterevisions.MinistepsWfChainingSchema, diag.Diagnostics)

Helper function to convert workflow chaining to API

func NewResource

func NewResource() resource.Resource

NewResource is a helper function to simplify the provider implementation.

Types

type DeploymentPlatformConfigConfigModel

type DeploymentPlatformConfigConfigModel struct {
	IntegrationId types.String `tfsdk:"integration_id"`
	ProfileName   types.String `tfsdk:"profile_name"`
}

func (DeploymentPlatformConfigConfigModel) AttributeTypes

func (DeploymentPlatformConfigConfigModel) AttributeTypes() map[string]attr.Type

type DeploymentPlatformConfigModel

type DeploymentPlatformConfigModel struct {
	Kind   types.String `tfsdk:"kind"`
	Config types.Object `tfsdk:"config"`
}

func (DeploymentPlatformConfigModel) AttributeTypes

func (DeploymentPlatformConfigModel) AttributeTypes() map[string]attr.Type

type DeprecationModel

type DeprecationModel struct {
	EffectiveDate types.String `tfsdk:"effective_date"`
	Message       types.String `tfsdk:"message"`
}

func (DeprecationModel) AttributeTypes

func (DeprecationModel) AttributeTypes() map[string]attr.Type

type EnvironmentVariableConfigModel

type EnvironmentVariableConfigModel struct {
	VarName   types.String `tfsdk:"var_name"`
	SecretId  types.String `tfsdk:"secret_id"`
	TextValue types.String `tfsdk:"text_value"`
}

func (EnvironmentVariableConfigModel) AttributeTypes

func (EnvironmentVariableConfigModel) AttributeTypes() map[string]attr.Type

type EnvironmentVariableModel

type EnvironmentVariableModel struct {
	Config types.Object `tfsdk:"config"`
	Kind   types.String `tfsdk:"kind"`
}

func (EnvironmentVariableModel) AttributeTypes

func (EnvironmentVariableModel) AttributeTypes() map[string]attr.Type

type InputSchemaModel

type InputSchemaModel struct {
	Name         types.String `tfsdk:"name"`
	Type         types.String `tfsdk:"type"`
	EncodedData  types.String `tfsdk:"encoded_data"`
	UISchemaData types.String `tfsdk:"ui_schema_data"`
}

func (InputSchemaModel) AttributeTypes

func (InputSchemaModel) AttributeTypes() map[string]attr.Type

type MinistepsEmailModel

type MinistepsEmailModel struct {
	ApprovalRequired types.List `tfsdk:"approval_required"`
	Cancelled        types.List `tfsdk:"cancelled"`
	Completed        types.List `tfsdk:"completed"`
	DriftDetected    types.List `tfsdk:"drift_detected"`
	Errored          types.List `tfsdk:"errored"`
}

func (MinistepsEmailModel) AttributeTypes

func (MinistepsEmailModel) AttributeTypes() map[string]attr.Type

type MinistepsModel

type MinistepsModel struct {
	Notifications types.Object `tfsdk:"notifications"`
	Webhooks      types.Object `tfsdk:"webhooks"`
	WfChaining    types.Object `tfsdk:"wf_chaining"`
}

func (MinistepsModel) AttributeTypes

func (MinistepsModel) AttributeTypes() map[string]attr.Type

type MinistepsNotificationRecipientsModel

type MinistepsNotificationRecipientsModel struct {
	Recipients types.List `tfsdk:"recipients"`
}

func (MinistepsNotificationRecipientsModel) AttributeTypes

type MinistepsNotificationsModel

type MinistepsNotificationsModel struct {
	Email types.Object `tfsdk:"email"`
}

func (MinistepsNotificationsModel) AttributeTypes

func (MinistepsNotificationsModel) AttributeTypes() map[string]attr.Type

type MinistepsWebhooksContainerModel

type MinistepsWebhooksContainerModel struct {
	ApprovalRequired types.List `tfsdk:"approval_required"`
	Cancelled        types.List `tfsdk:"cancelled"`
	Completed        types.List `tfsdk:"completed"`
	DriftDetected    types.List `tfsdk:"drift_detected"`
	Errored          types.List `tfsdk:"errored"`
}

func (MinistepsWebhooksContainerModel) AttributeTypes

func (MinistepsWebhooksContainerModel) AttributeTypes() map[string]attr.Type

type MinistepsWebhooksModel

type MinistepsWebhooksModel struct {
	WebhookName   types.String `tfsdk:"webhook_name"`
	WebhookUrl    types.String `tfsdk:"webhook_url"`
	WebhookSecret types.String `tfsdk:"webhook_secret"`
}

func (MinistepsWebhooksModel) AttributeTypes

func (MinistepsWebhooksModel) AttributeTypes() map[string]attr.Type

type MinistepsWfChainingContainerModel

type MinistepsWfChainingContainerModel struct {
	Completed types.List `tfsdk:"completed"`
	Errored   types.List `tfsdk:"errored"`
}

func (MinistepsWfChainingContainerModel) AttributeTypes

func (MinistepsWfChainingContainerModel) AttributeTypes() map[string]attr.Type

type MinistepsWorkflowChainingModel

type MinistepsWorkflowChainingModel struct {
	WorkflowGroupId    types.String `tfsdk:"workflow_group_id"`
	StackId            types.String `tfsdk:"stack_id"`
	StackRunPayload    types.String `tfsdk:"stack_run_payload"`
	WorkflowId         types.String `tfsdk:"workflow_id"`
	WorkflowRunPayload types.String `tfsdk:"workflow_run_payload"`
}

func (MinistepsWorkflowChainingModel) AttributeTypes

func (MinistepsWorkflowChainingModel) AttributeTypes() map[string]attr.Type

type MountPointModel

type MountPointModel struct {
	Source   types.String `tfsdk:"source"`
	Target   types.String `tfsdk:"target"`
	ReadOnly types.Bool   `tfsdk:"read_only"`
}

func (MountPointModel) AttributeTypes

func (MountPointModel) AttributeTypes() map[string]attr.Type

type RunnerConstraintsModel

type RunnerConstraintsModel struct {
	Type  types.String `tfsdk:"type"`
	Names types.List   `tfsdk:"names"`
}

func (RunnerConstraintsModel) AttributeTypes

func (RunnerConstraintsModel) AttributeTypes() map[string]attr.Type

type RuntimeSourceConfigModel

type RuntimeSourceConfigModel struct {
	IsPrivate               types.Bool   `tfsdk:"is_private"`
	Auth                    types.String `tfsdk:"auth"`
	GitCoreAutoCrlf         types.Bool   `tfsdk:"git_core_auto_crlf"`
	GitSparseCheckoutConfig types.String `tfsdk:"git_sparse_checkout_config"`
	IncludeSubModule        types.Bool   `tfsdk:"include_sub_module"`
	Ref                     types.String `tfsdk:"ref"`
	Repo                    types.String `tfsdk:"repo"`
	WorkingDir              types.String `tfsdk:"working_dir"`
}

func (RuntimeSourceConfigModel) AttributeTypes

func (RuntimeSourceConfigModel) AttributeTypes() map[string]attr.Type

type RuntimeSourceModel

type RuntimeSourceModel struct {
	SourceConfigDestKind types.String `tfsdk:"source_config_dest_kind"`
	Config               types.Object `tfsdk:"config"`
}

func (RuntimeSourceModel) AttributeTypes

func (RuntimeSourceModel) AttributeTypes() map[string]attr.Type

type TerraformConfigModel

type TerraformConfigModel struct {
	TerraformVersion       types.String `tfsdk:"terraform_version"`
	DriftCheck             types.Bool   `tfsdk:"drift_check"`
	DriftCron              types.String `tfsdk:"drift_cron"`
	ManagedTerraformState  types.Bool   `tfsdk:"managed_terraform_state"`
	ApprovalPreApply       types.Bool   `tfsdk:"approval_pre_apply"`
	TerraformPlanOptions   types.String `tfsdk:"terraform_plan_options"`
	TerraformInitOptions   types.String `tfsdk:"terraform_init_options"`
	TerraformBinPath       types.List   `tfsdk:"terraform_bin_path"`
	Timeout                types.Int64  `tfsdk:"timeout"`
	PostApplyWfStepsConfig types.List   `tfsdk:"post_apply_wf_steps_config"`
	PreApplyWfStepsConfig  types.List   `tfsdk:"pre_apply_wf_steps_config"`
	PrePlanWfStepsConfig   types.List   `tfsdk:"pre_plan_wf_steps_config"`
	PostPlanWfStepsConfig  types.List   `tfsdk:"post_plan_wf_steps_config"`
	PreInitHooks           types.List   `tfsdk:"pre_init_hooks"`
	PrePlanHooks           types.List   `tfsdk:"pre_plan_hooks"`
	PostPlanHooks          types.List   `tfsdk:"post_plan_hooks"`
	PreApplyHooks          types.List   `tfsdk:"pre_apply_hooks"`
	PostApplyHooks         types.List   `tfsdk:"post_apply_hooks"`
	RunPreInitHooksOnDrift types.Bool   `tfsdk:"run_pre_init_hooks_on_drift"`
}

func (TerraformConfigModel) AttributeTypes

func (TerraformConfigModel) AttributeTypes() map[string]attr.Type

type UserSchedulesModel

type UserSchedulesModel struct {
	Cron  types.String `tfsdk:"cron"`
	State types.String `tfsdk:"state"`
	Desc  types.String `tfsdk:"desc"`
	Name  types.String `tfsdk:"name"`
}

func (UserSchedulesModel) AttributeTypes

func (UserSchedulesModel) AttributeTypes() map[string]attr.Type

type WfStepInputDataModel

type WfStepInputDataModel struct {
	SchemaType types.String `tfsdk:"schema_type"`
	Data       types.String `tfsdk:"data"`
}

func (WfStepInputDataModel) AttributeTypes

func (WfStepInputDataModel) AttributeTypes() map[string]attr.Type

type WfStepsConfigModel

type WfStepsConfigModel struct {
	Name                 types.String `tfsdk:"name"`
	EnvironmentVariables types.List   `tfsdk:"environment_variables"`
	Approval             types.Bool   `tfsdk:"approval"`
	Timeout              types.Int64  `tfsdk:"timeout"`
	CmdOverride          types.String `tfsdk:"cmd_override"`
	MountPoints          types.List   `tfsdk:"mount_points"`
	WfStepTemplateId     types.String `tfsdk:"wf_step_template_id"`
	WfStepInputData      types.Object `tfsdk:"wf_step_input_data"`
}

func (WfStepsConfigModel) AttributeTypes

func (WfStepsConfigModel) AttributeTypes() map[string]attr.Type

type WorkflowTemplateRevisionResourceModel

type WorkflowTemplateRevisionResourceModel struct {
	Id                        types.String `tfsdk:"id"`
	TemplateId                types.String `tfsdk:"template_id"`
	LongDescription           types.String `tfsdk:"description"`
	Alias                     types.String `tfsdk:"alias"`
	Notes                     types.String `tfsdk:"notes"`
	SourceConfigKind          types.String `tfsdk:"source_config_kind"`
	IsPublic                  types.String `tfsdk:"is_public"`
	Deprecation               types.Object `tfsdk:"deprecation"`
	EnvironmentVariables      types.List   `tfsdk:"environment_variables"`
	InputSchemas              types.List   `tfsdk:"input_schemas"`
	MiniSteps                 types.Object `tfsdk:"mini_steps"`
	RunnerConstraints         types.Object `tfsdk:"runner_constraints"`
	Tags                      types.List   `tfsdk:"tags"`
	UserSchedules             types.List   `tfsdk:"user_schedules"`
	ContextTags               types.Map    `tfsdk:"context_tags"`
	Approvers                 types.List   `tfsdk:"approvers"`
	NumberOfApprovalsRequired types.Int64  `tfsdk:"number_of_approvals_required"`
	UserJobCPU                types.Int64  `tfsdk:"user_job_cpu"`
	UserJobMemory             types.Int64  `tfsdk:"user_job_memory"`
	RuntimeSource             types.Object `tfsdk:"runtime_source"`
	TerraformConfig           types.Object `tfsdk:"terraform_config"`
	DeploymentPlatformConfig  types.List   `tfsdk:"deployment_platform_config"`
	WfStepsConfig             types.List   `tfsdk:"wf_steps_config"`
}

WorkflowTemplateRevisionResourceModel describes the resource data model based on schema.go

func BuildAPIModelToWorkflowTemplateRevisionModel

BuildAPIModelToWorkflowTemplateRevisionModel converts API response to Terraform model

func (*WorkflowTemplateRevisionResourceModel) ToAPIModel

ToAPIModel converts the Terraform model to the API request model

Jump to

Keyboard shortcuts

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