Documentation
¶
Index ¶
- func NewResource() resource.Resource
- type DeprecationModel
- type WorkflowStepTemplateRevisionResourceModel
- func (m *WorkflowStepTemplateRevisionResourceModel) ToAPIModel(ctx context.Context) (*workflowsteptemplaterevision.CreateWorkflowStepTemplateRevisionModel, ...)
- func (m *WorkflowStepTemplateRevisionResourceModel) ToPatchedAPIModel(ctx context.Context) (*workflowsteptemplaterevision.UpdateWorkflowStepTemplateRevisionModel, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
NewResource is a helper function to simplify the provider implementation.
Types ¶
type DeprecationModel ¶
type DeprecationModel struct {
EffectiveDate types.String `tfsdk:"effective_date"`
Message types.String `tfsdk:"message"`
}
DeprecationModel represents the deprecation nested object
func (DeprecationModel) AttributeTypes ¶
func (DeprecationModel) AttributeTypes() map[string]attr.Type
type WorkflowStepTemplateRevisionResourceModel ¶
type WorkflowStepTemplateRevisionResourceModel struct {
Id types.String `tfsdk:"id"`
TemplateId types.String `tfsdk:"template_id"`
Alias types.String `tfsdk:"alias"`
Notes types.String `tfsdk:"notes"`
LongDescription types.String `tfsdk:"description"`
TemplateType types.String `tfsdk:"template_type"`
SourceConfigKind types.String `tfsdk:"source_config_kind"`
IsActive types.String `tfsdk:"is_active"`
IsPublic types.String `tfsdk:"is_public"`
Tags types.List `tfsdk:"tags"`
ContextTags types.Map `tfsdk:"context_tags"`
RuntimeSource types.Object `tfsdk:"runtime_source"`
Deprecation types.Object `tfsdk:"deprecation"`
}
WorkflowStepTemplateRevisionResourceModel represents the Terraform resource model
func BuildAPIModelToRevisionModel ¶
func BuildAPIModelToRevisionModel(apiResponse *workflowsteptemplaterevision.WorkflowStepTemplateRevisionResponseData, id string, templateId string) (*WorkflowStepTemplateRevisionResourceModel, diag.Diagnostics)
BuildAPIModelToRevisionModel converts the SDK response to the Terraform model
func (*WorkflowStepTemplateRevisionResourceModel) ToAPIModel ¶
func (m *WorkflowStepTemplateRevisionResourceModel) ToAPIModel(ctx context.Context) (*workflowsteptemplaterevision.CreateWorkflowStepTemplateRevisionModel, diag.Diagnostics)
ToAPIModel converts the Terraform model to the SDK create request model
func (*WorkflowStepTemplateRevisionResourceModel) ToPatchedAPIModel ¶
func (m *WorkflowStepTemplateRevisionResourceModel) ToPatchedAPIModel(ctx context.Context) (*workflowsteptemplaterevision.UpdateWorkflowStepTemplateRevisionModel, diag.Diagnostics)
ToPatchedAPIModel converts the Terraform model to the SDK update request model
Click to show internal directories.
Click to hide internal directories.