Documentation
¶
Index ¶
- func NewResource() resource.Resource
- type CustomSourceConfigModel
- type CustomSourceModel
- type IacInputDataModel
- type IacVcsConfigModel
- type VcsConfigModel
- type WorkflowResourceModel
- func (m WorkflowResourceModel) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (m WorkflowResourceModel) ToAPIModel(ctx context.Context) (*sgworkflows.Workflow, diag.Diagnostics)
- func (m WorkflowResourceModel) ToUpdateAPIModel(ctx context.Context) (*sgworkflows.PatchedWorkflow, diag.Diagnostics)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
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 ¶
type CustomSourceModel ¶
type CustomSourceModel struct {
SourceConfigDestKind types.String `tfsdk:"source_config_dest_kind"`
Config types.Object `tfsdk:"config"`
}
func (CustomSourceModel) AttributeTypes ¶
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 ¶
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 ¶
type VcsConfigModel ¶
type VcsConfigModel struct {
IacVcsConfig types.Object `tfsdk:"iac_vcs_config"`
IacInputData types.Object `tfsdk:"iac_input_data"`
}
func (VcsConfigModel) AttributeTypes ¶
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 (WorkflowResourceModel) ToAPIModel ¶
func (m WorkflowResourceModel) ToAPIModel(ctx context.Context) (*sgworkflows.Workflow, diag.Diagnostics)
func (WorkflowResourceModel) ToUpdateAPIModel ¶
func (m WorkflowResourceModel) ToUpdateAPIModel(ctx context.Context) (*sgworkflows.PatchedWorkflow, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.