action

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionSchema

func ActionSchema() map[string]schema.Attribute

func ArrayPropertySchema

func ArrayPropertySchema() schema.Attribute

func BooleanPropertySchema

func BooleanPropertySchema() schema.Attribute

func MetadataProperties

func MetadataProperties() map[string]schema.Attribute

func NewActionResource

func NewActionResource() resource.Resource

func NumberPropertySchema

func NumberPropertySchema() schema.Attribute

func ObjectPropertySchema

func ObjectPropertySchema() schema.Attribute

func StringPropertySchema

func StringPropertySchema() schema.Attribute

Types

type ActionModel

type ActionModel struct {
	ID                          types.String                      `tfsdk:"id"`
	Identifier                  types.String                      `tfsdk:"identifier"`
	Blueprint                   types.String                      `tfsdk:"blueprint"`
	Title                       types.String                      `tfsdk:"title"`
	Icon                        types.String                      `tfsdk:"icon"`
	Description                 types.String                      `tfsdk:"description"`
	RequiredApproval            types.Bool                        `tfsdk:"required_approval"`
	Trigger                     types.String                      `tfsdk:"trigger"`
	KafkaMethod                 types.Object                      `tfsdk:"kafka_method"`
	WebhookMethod               *WebhookMethodModel               `tfsdk:"webhook_method"`
	GithubMethod                *GithubMethodModel                `tfsdk:"github_method"`
	AzureMethod                 *AzureMethodModel                 `tfsdk:"azure_method"`
	GitlabMethod                *GitlabMethodModel                `tfsdk:"gitlab_method"`
	UserProperties              *UserPropertiesModel              `tfsdk:"user_properties"`
	ApprovalWebhookNotification *ApprovalWebhookNotificationModel `tfsdk:"approval_webhook_notification"`
	ApprovalEmailNotification   types.Object                      `tfsdk:"approval_email_notification"`
	OrderProperties             types.List                        `tfsdk:"order_properties"`
}

type ActionResource

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

func (*ActionResource) Configure

func (*ActionResource) Create

func (*ActionResource) Delete

func (*ActionResource) ImportState

func (*ActionResource) Metadata

func (*ActionResource) Read

func (*ActionResource) Schema

func (*ActionResource) Update

type ApprovalWebhookNotificationModel

type ApprovalWebhookNotificationModel struct {
	Url    types.String `tfsdk:"url"`
	Format types.String `tfsdk:"format"`
}

type ArrayPropModel

type ArrayPropModel struct {
	Title          types.String  `tfsdk:"title"`
	Icon           types.String  `tfsdk:"icon"`
	Description    types.String  `tfsdk:"description"`
	MaxItems       types.Int64   `tfsdk:"max_items"`
	MinItems       types.Int64   `tfsdk:"min_items"`
	Required       types.Bool    `tfsdk:"required"`
	StringItems    *StringItems  `tfsdk:"string_items"`
	NumberItems    *NumberItems  `tfsdk:"number_items"`
	BooleanItems   *BooleanItems `tfsdk:"boolean_items"`
	ObjectItems    *ObjectItems  `tfsdk:"object_items"`
	DependsOn      types.List    `tfsdk:"depends_on"`
	Dataset        *DatasetModel `tfsdk:"dataset"`
	DefaultJqQuery types.String  `tfsdk:"default_jq_query"`
}

type AzureMethodModel

type AzureMethodModel struct {
	Org     types.String `tfsdk:"org"`
	Webhook types.String `tfsdk:"webhook"`
}

type BooleanItems

type BooleanItems struct {
	Default types.List `tfsdk:"default"`
}

type BooleanPropModel

type BooleanPropModel struct {
	Title          types.String  `tfsdk:"title"`
	Icon           types.String  `tfsdk:"icon"`
	Description    types.String  `tfsdk:"description"`
	Default        types.Bool    `tfsdk:"default"`
	Required       types.Bool    `tfsdk:"required"`
	DependsOn      types.List    `tfsdk:"depends_on"`
	Dataset        *DatasetModel `tfsdk:"dataset"`
	DefaultJqQuery types.String  `tfsdk:"default_jq_query"`
}

type DatasetModel added in v1.1.0

type DatasetModel struct {
	Combinator types.String `tfsdk:"combinator"`
	Rules      []Rule       `tfsdk:"rules"`
}

type GithubMethodModel

type GithubMethodModel struct {
	Org                  types.String `tfsdk:"org"`
	Repo                 types.String `tfsdk:"repo"`
	Workflow             types.String `tfsdk:"workflow"`
	OmitPayload          types.Bool   `tfsdk:"omit_payload"`
	OmitUserInputs       types.Bool   `tfsdk:"omit_user_inputs"`
	ReportWorkflowStatus types.Bool   `tfsdk:"report_workflow_status"`
}

type GitlabMethodModel added in v1.1.0

type GitlabMethodModel struct {
	ProjectName    types.String `tfsdk:"project_name"`
	GroupName      types.String `tfsdk:"group_name"`
	OmitPayload    types.Bool   `tfsdk:"omit_payload"`
	OmitUserInputs types.Bool   `tfsdk:"omit_user_inputs"`
	DefaultRef     types.String `tfsdk:"default_ref"`
	Agent          types.Bool   `tfsdk:"agent"`
}

type NumberItems

type NumberItems struct {
	Default     types.List   `tfsdk:"default"`
	Enum        types.List   `tfsdk:"enum"`
	EnumJqQuery types.String `tfsdk:"enum_jq_query"`
}

type NumberPropModel

type NumberPropModel struct {
	Title          types.String  `tfsdk:"title"`
	Icon           types.String  `tfsdk:"icon"`
	Description    types.String  `tfsdk:"description"`
	Default        types.Float64 `tfsdk:"default"`
	Required       types.Bool    `tfsdk:"required"`
	Maximum        types.Float64 `tfsdk:"maximum"`
	Minimum        types.Float64 `tfsdk:"minimum"`
	Enum           types.List    `tfsdk:"enum"`
	DependsOn      types.List    `tfsdk:"depends_on"`
	Dataset        *DatasetModel `tfsdk:"dataset"`
	DefaultJqQuery types.String  `tfsdk:"default_jq_query"`
	EnumJqQuery    types.String  `tfsdk:"enum_jq_query"`
}

type ObjectItems

type ObjectItems struct {
	Default types.List `tfsdk:"default"`
}

type ObjectPropModel

type ObjectPropModel struct {
	Title          types.String  `tfsdk:"title"`
	Icon           types.String  `tfsdk:"icon"`
	Description    types.String  `tfsdk:"description"`
	Required       types.Bool    `tfsdk:"required"`
	Default        types.String  `tfsdk:"default"`
	DependsOn      types.List    `tfsdk:"depends_on"`
	Dataset        *DatasetModel `tfsdk:"dataset"`
	DefaultJqQuery types.String  `tfsdk:"default_jq_query"`
}

type Rule added in v1.1.0

type Rule struct {
	Blueprint types.String `tfsdk:"blueprint"`
	Property  types.String `tfsdk:"property"`
	Operator  types.String `tfsdk:"operator"`
	Value     *Value       `tfsdk:"value"`
}

type StringItems

type StringItems struct {
	Blueprint   types.String `tfsdk:"blueprint"`
	Format      types.String `tfsdk:"format"`
	Default     types.List   `tfsdk:"default"`
	Enum        types.List   `tfsdk:"enum"`
	EnumJqQuery types.String `tfsdk:"enum_jq_query"`
}

type StringPropModel

type StringPropModel struct {
	Title          types.String  `tfsdk:"title"`
	Icon           types.String  `tfsdk:"icon"`
	Blueprint      types.String  `tfsdk:"blueprint"`
	Description    types.String  `tfsdk:"description"`
	Default        types.String  `tfsdk:"default"`
	Required       types.Bool    `tfsdk:"required"`
	Format         types.String  `tfsdk:"format"`
	MaxLength      types.Int64   `tfsdk:"max_length"`
	MinLength      types.Int64   `tfsdk:"min_length"`
	Pattern        types.String  `tfsdk:"pattern"`
	Enum           types.List    `tfsdk:"enum"`
	DependsOn      types.List    `tfsdk:"depends_on"`
	Dataset        *DatasetModel `tfsdk:"dataset"`
	DefaultJqQuery types.String  `tfsdk:"default_jq_query"`
	EnumJqQuery    types.String  `tfsdk:"enum_jq_query"`
}

type UserPropertiesModel

type UserPropertiesModel struct {
	StringProps  map[string]StringPropModel  `tfsdk:"string_props"`
	NumberProps  map[string]NumberPropModel  `tfsdk:"number_props"`
	BooleanProps map[string]BooleanPropModel `tfsdk:"boolean_props"`
	ArrayProps   map[string]ArrayPropModel   `tfsdk:"array_props"`
	ObjectProps  map[string]ObjectPropModel  `tfsdk:"object_props"`
}

type Value added in v1.1.0

type Value struct {
	JqQuery types.String `tfsdk:"jq_query"`
}

type WebhookMethodModel

type WebhookMethodModel struct {
	Url          types.String `tfsdk:"url"`
	Agent        types.Bool   `tfsdk:"agent"`
	Synchronized types.Bool   `tfsdk:"synchronized"`
	Method       types.String `tfsdk:"method"`
}

Jump to

Keyboard shortcuts

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