workflow

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func DataSourceSchema

func DataSourceSchema(ctx context.Context) schema.Schema

func ListDataSourceSchema added in v0.21.0

func ListDataSourceSchema(ctx context.Context) schema.Schema

func NewResource

func NewResource() resource.Resource

func NewWorkflowDataSource

func NewWorkflowDataSource() datasource.DataSource

func NewWorkflowsDataSource added in v0.21.0

func NewWorkflowsDataSource() datasource.DataSource

func Prefetch added in v0.19.2

func Prefetch(ctx context.Context, client *serval.Client, teamIDs []string) (int, error)

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

Types

type WorkflowDataDataSourceEnvelope

type WorkflowDataDataSourceEnvelope struct {
	Data WorkflowDataSourceModel `json:"data,computed"`
}

type WorkflowDataEnvelope

type WorkflowDataEnvelope struct {
	Data WorkflowModel `json:"data"`
}

type WorkflowDataSource

type WorkflowDataSource struct {
	// contains filtered or unexported fields
}

func (*WorkflowDataSource) ConfigValidators

func (d *WorkflowDataSource) ConfigValidators(_ context.Context) []datasource.ConfigValidator

func (*WorkflowDataSource) Configure

func (*WorkflowDataSource) Metadata

func (*WorkflowDataSource) Read

func (*WorkflowDataSource) Schema

type WorkflowDataSourceModel

type WorkflowDataSourceModel struct {
	ID                      types.String                      `tfsdk:"id" path:"id,computed_optional"`
	Content                 types.String                      `tfsdk:"content" json:"content,computed"`
	Description             types.String                      `tfsdk:"description" json:"description,computed"`
	ExecutionScope          types.String                      `tfsdk:"execution_scope" json:"executionScope,computed"`
	HasUnpublishedChanges   types.Bool                        `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
	IsPublished             types.Bool                        `tfsdk:"is_published" json:"isPublished,computed"`
	Name                    types.String                      `tfsdk:"name" json:"name,computed"`
	RequireFormConfirmation types.Bool                        `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed"`
	TeamID                  types.String                      `tfsdk:"team_id" json:"teamId,computed"`
	TagIDs                  customfield.List[types.String]    `tfsdk:"tag_ids" json:"tagIds,computed"`
	FindOneBy               *WorkflowFindOneByDataSourceModel `tfsdk:"find_one_by"`
}

type WorkflowFindOneByDataSourceModel added in v0.21.0

type WorkflowFindOneByDataSourceModel struct {
	TeamID types.String `tfsdk:"team_id" query:"teamId,optional"`
}

type WorkflowModel

type WorkflowModel struct {
	ID                      types.String    `tfsdk:"id" json:"id,computed"`
	TeamID                  types.String    `tfsdk:"team_id" json:"teamId,required"`
	Content                 types.String    `tfsdk:"content" json:"content,required"`
	Name                    types.String    `tfsdk:"name" json:"name,required"`
	Description             types.String    `tfsdk:"description" json:"description,optional"`
	ExecutionScope          types.String    `tfsdk:"execution_scope" json:"executionScope,optional"`
	TagIDs                  *[]types.String `tfsdk:"tag_ids" json:"tagIds,optional"`
	IsPublished             types.Bool      `tfsdk:"is_published" json:"isPublished,computed_optional"`
	RequireFormConfirmation types.Bool      `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed_optional"`
	HasUnpublishedChanges   types.Bool      `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
}

func TryRead added in v0.19.2

func TryRead(id string) (*WorkflowModel, bool, error)

func (WorkflowModel) MarshalJSON

func (m WorkflowModel) MarshalJSON() (data []byte, err error)

func (WorkflowModel) MarshalJSONForUpdate

func (m WorkflowModel) MarshalJSONForUpdate(state WorkflowModel) (data []byte, err error)

type WorkflowResource

type WorkflowResource struct {
	// contains filtered or unexported fields
}

WorkflowResource defines the resource implementation.

func (*WorkflowResource) ConfigValidators

func (r *WorkflowResource) ConfigValidators(_ context.Context) []resource.ConfigValidator

func (*WorkflowResource) Configure

func (*WorkflowResource) Create

func (*WorkflowResource) Delete

func (*WorkflowResource) ImportState

func (*WorkflowResource) Metadata

func (*WorkflowResource) ModifyPlan

func (*WorkflowResource) Read

func (*WorkflowResource) Schema

func (*WorkflowResource) Update

func (*WorkflowResource) UpgradeState

func (r *WorkflowResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader

type WorkflowsDataListDataSourceEnvelope added in v0.21.0

type WorkflowsDataListDataSourceEnvelope struct {
	Data customfield.NestedObjectList[WorkflowsItemsDataSourceModel] `json:"data,computed"`
}

type WorkflowsDataSource added in v0.21.0

type WorkflowsDataSource struct {
	// contains filtered or unexported fields
}

func (*WorkflowsDataSource) ConfigValidators added in v0.21.0

func (*WorkflowsDataSource) Configure added in v0.21.0

func (*WorkflowsDataSource) Metadata added in v0.21.0

func (*WorkflowsDataSource) Read added in v0.21.0

func (*WorkflowsDataSource) Schema added in v0.21.0

type WorkflowsDataSourceModel added in v0.21.0

type WorkflowsDataSourceModel struct {
	TeamID   types.String                                                `tfsdk:"team_id" query:"teamId,optional"`
	MaxItems types.Int64                                                 `tfsdk:"max_items"`
	Items    customfield.NestedObjectList[WorkflowsItemsDataSourceModel] `tfsdk:"items"`
}

type WorkflowsItemsDataSourceModel added in v0.21.0

type WorkflowsItemsDataSourceModel struct {
	ID                      types.String                   `tfsdk:"id" json:"id,computed"`
	Content                 types.String                   `tfsdk:"content" json:"content,computed"`
	Description             types.String                   `tfsdk:"description" json:"description,computed"`
	ExecutionScope          types.String                   `tfsdk:"execution_scope" json:"executionScope,computed"`
	HasUnpublishedChanges   types.Bool                     `tfsdk:"has_unpublished_changes" json:"hasUnpublishedChanges,computed"`
	IsPublished             types.Bool                     `tfsdk:"is_published" json:"isPublished,computed"`
	Name                    types.String                   `tfsdk:"name" json:"name,computed"`
	RequireFormConfirmation types.Bool                     `tfsdk:"require_form_confirmation" json:"requireFormConfirmation,computed"`
	TagIDs                  customfield.List[types.String] `tfsdk:"tag_ids" json:"tagIds,computed"`
	TeamID                  types.String                   `tfsdk:"team_id" json:"teamId,computed"`
}

Jump to

Keyboard shortcuts

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