workflow

package
v1.11.0-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

Types

type CustomSourceConfigModel

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

func (CustomSourceConfigModel) AttributeTypes

func (m CustomSourceConfigModel) AttributeTypes(_ context.Context) map[string]attr.Type

type CustomSourceModel

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

func (CustomSourceModel) AttributeTypes

func (m CustomSourceModel) AttributeTypes(ctx context.Context) map[string]attr.Type

type IacInputDataModel

type IacInputDataModel struct {
	SchemaId   types.String `tfsdk:"schema_id"`
	SchemaType types.String `tfsdk:"schema_type"`
	Data       types.String `tfsdk:"data"`
}

func (IacInputDataModel) AttributeTypes

func (m IacInputDataModel) AttributeTypes(_ context.Context) map[string]attr.Type

type IacVcsConfigModel

type IacVcsConfigModel struct {
	UseMarketplaceTemplate types.Bool   `tfsdk:"use_marketplace_template"`
	IacTemplateId          types.String `tfsdk:"iac_template_id"`
	CustomSource           types.Object `tfsdk:"custom_source"`
}

func (IacVcsConfigModel) AttributeTypes

func (m IacVcsConfigModel) AttributeTypes(ctx context.Context) map[string]attr.Type

type VcsConfigModel

type VcsConfigModel struct {
	IacVcsConfig types.Object `tfsdk:"iac_vcs_config"`
	IacInputData types.Object `tfsdk:"iac_input_data"`
}

func (VcsConfigModel) AttributeTypes

func (m VcsConfigModel) AttributeTypes(ctx context.Context) map[string]attr.Type

type WorkflowResourceModel

type WorkflowResourceModel struct {
	Id                        types.String `tfsdk:"id"`
	WorkflowGroupId           types.String `tfsdk:"workflow_group_id"`
	ResourceName              types.String `tfsdk:"resource_name"`
	Description               types.String `tfsdk:"description"`
	WfType                    types.String `tfsdk:"wf_type"`
	EnvironmentVariables      types.List   `tfsdk:"environment_variables"`
	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"`
	VcsConfig                 types.Object `tfsdk:"vcs_config"`
	TerraformConfig           types.Object `tfsdk:"terraform_config"`
	DeploymentPlatformConfig  types.List   `tfsdk:"deployment_platform_config"`
	WfStepsConfig             types.List   `tfsdk:"wf_steps_config"`
}

func ConvertWorkflowFromAPI

func ConvertWorkflowFromAPI(ctx context.Context, response *sgworkflows.WorkflowReadResponse, workflowGroupId string) (WorkflowResourceModel, diag.Diagnostics)

func (WorkflowResourceModel) AttributeTypes

func (m WorkflowResourceModel) AttributeTypes(ctx context.Context) map[string]attr.Type

func (WorkflowResourceModel) ToAPIModel

func (WorkflowResourceModel) ToUpdateAPIModel

Jump to

Keyboard shortcuts

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