-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nishu Goel
committed
Jun 11, 2024
1 parent
662619e
commit 111d633
Showing
32 changed files
with
1,509 additions
and
639 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
examples/data-sources/epilot-workflow_workflow_definition/data-source.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
data "epilot-workflow_workflow_definition" "my_workflowdefinition" { | ||
id = "7hj28a" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
examples/resources/epilot-workflow_workflow_definition/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
terraform import epilot-workflow_workflow_definition.my_epilot-workflow_workflow_definition "7hj28a" |
98 changes: 78 additions & 20 deletions
98
examples/resources/epilot-workflow_workflow_definition/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,80 @@ | ||
terraform { | ||
required_providers { | ||
epilot-workflow = { | ||
source = "epilot-dev/epilot-workflow" | ||
version = "1.0.1" | ||
} | ||
|
||
} | ||
} | ||
|
||
provider "epilot-workflow" { | ||
# Configuration options | ||
bearer_auth = var.bearer_auth | ||
} | ||
|
||
variable "bearer_auth" { | ||
type = string | ||
} | ||
|
||
resource "epilot-workflow_workflow_definition" "my_workflowdefinition" { | ||
|
||
creation_time = "2021-04-27T12:01:13.000Z" | ||
description = "...my_description..." | ||
due_date = "2021-04-27T12:00:00.000Z" | ||
enable_ecp_workflow = false | ||
flow = [ | ||
{ | ||
section = { | ||
id = "2a31ed4e-b201-4187-9740-15a348b64814" | ||
name = "Meredith Bruen" | ||
order = 1.95 | ||
steps = [ | ||
{ | ||
assigned_to = [ | ||
"...", | ||
] | ||
automation_config = { | ||
flow_id = "...my_flow_id..." | ||
} | ||
description = { | ||
enabled = true | ||
value = "...my_value..." | ||
} | ||
due_date = "2021-04-27T12:00:00.000Z" | ||
dynamic_due_date = { | ||
action_type_condition = "STEP_CLOSED" | ||
number_of_units = 73.8 | ||
step_id = "...my_step_id..." | ||
time_period = "weeks" | ||
} | ||
ecp = { | ||
description = "...my_description..." | ||
enabled = false | ||
journey = { | ||
id = "64361b27-76d7-498c-b5f3-e120ea0dc9e1" | ||
journey_id = "...my_journey_id..." | ||
name = "Lorraine Witting" | ||
} | ||
label = "...my_label..." | ||
} | ||
execution_type = "AUTOMATION" | ||
id = "3f96aa0e-3408-45f7-9b11-76521d792fea" | ||
installer = { | ||
description = "...my_description..." | ||
enabled = true | ||
journey = { | ||
id = "830af35a-c0f0-4516-986c-6d56674fb26d" | ||
journey_id = "...my_journey_id..." | ||
name = "Paulette O'Hara" | ||
} | ||
label = "...my_label..." | ||
} | ||
journey = { | ||
id = "9b2b84e8-8293-4d18-a93f-16fc9936c940" | ||
journey_id = "...my_journey_id..." | ||
name = "Dr. Joel Hermann" | ||
} | ||
name = "Lorene Denesik" | ||
order = 4.83 | ||
requirements = [ | ||
{ | ||
condition = "CLOSED" | ||
definition_id = "...my_definition_id..." | ||
type = "STEP" | ||
}, | ||
] | ||
type = "SECTION" | ||
user_ids = [ | ||
9.27, | ||
] | ||
}, | ||
] | ||
type = "STEP" | ||
} | ||
}, | ||
] | ||
id = "70408a19-3e72-4165-b76b-6381b5dd263e" | ||
last_update_time = "2021-04-27T12:01:13.000Z" | ||
name = "Nina Bednar" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type AutomationConfig struct { | ||
FlowID types.String `tfsdk:"flow_id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type ClosingReasonID struct { | ||
ID types.String `tfsdk:"id"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type DynamicDueDate struct { | ||
ActionTypeCondition types.String `tfsdk:"action_type_condition"` | ||
NumberOfUnits types.Number `tfsdk:"number_of_units"` | ||
StepID types.String `tfsdk:"step_id"` | ||
TimePeriod types.String `tfsdk:"time_period"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type ECPDetails struct { | ||
Description types.String `tfsdk:"description"` | ||
Enabled types.Bool `tfsdk:"enabled"` | ||
Journey *StepJourney `tfsdk:"journey"` | ||
Label types.String `tfsdk:"label"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
type Flow struct { | ||
Section *Section `tfsdk:"section" tfPlanOnly:"true"` | ||
Step *Step `tfsdk:"step" tfPlanOnly:"true"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type Section struct { | ||
ID types.String `tfsdk:"id"` | ||
Name types.String `tfsdk:"name"` | ||
Order types.Number `tfsdk:"order"` | ||
Steps []Step `tfsdk:"steps"` | ||
Type types.String `tfsdk:"type"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type Step struct { | ||
AssignedTo []types.String `tfsdk:"assigned_to"` | ||
AutomationConfig *AutomationConfig `tfsdk:"automation_config"` | ||
Description *StepDescription `tfsdk:"description"` | ||
DueDate types.String `tfsdk:"due_date"` | ||
DynamicDueDate *DynamicDueDate `tfsdk:"dynamic_due_date"` | ||
Ecp *ECPDetails `tfsdk:"ecp"` | ||
ExecutionType types.String `tfsdk:"execution_type"` | ||
ID types.String `tfsdk:"id"` | ||
Installer *ECPDetails `tfsdk:"installer"` | ||
Journey *StepJourney `tfsdk:"journey"` | ||
Name types.String `tfsdk:"name"` | ||
Order types.Number `tfsdk:"order"` | ||
Requirements []StepRequirement `tfsdk:"requirements"` | ||
Type types.String `tfsdk:"type"` | ||
UserIds []types.Number `tfsdk:"user_ids"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. | ||
|
||
package types | ||
|
||
import "github.com/hashicorp/terraform-plugin-framework/types" | ||
|
||
type StepDescription struct { | ||
Enabled types.Bool `tfsdk:"enabled"` | ||
Value types.String `tfsdk:"value"` | ||
} |
Oops, something went wrong.