Versions in this module Expand all Collapse all v1 v1.3.1 Mar 3, 2026 v1.3.0 Feb 28, 2026 Changes in this version + const TemplateType + type Client struct + func NewClient(opts ...option.RequestOption) *Client + func (c *Client) CreateWorkflowTemplate(ctx context.Context, org string, createFirstRevision bool, ...) (*CreateWorkflowTemplateResponseModel, error) + func (c *Client) DeleteWorkflowTemplate(ctx context.Context, org string, templateId string, ...) error + func (c *Client) ReadWorkflowTemplate(ctx context.Context, org string, templateId string, ...) (*ReadWorkflowTemplateResponseModel, error) + func (c *Client) UpdateWorkflowTemplate(ctx context.Context, org string, templateId string, ...) (*UpdateWorkflowTemplateResponseModel, error) + type CreateWorkflowTemplateRequest struct + ContextTags map[string]string + Id *string + IsActive *sgsdkgo.IsPublicEnum + IsPublic *sgsdkgo.IsPublicEnum + OwnerOrg string + RuntimeSource *RuntimeSource + SharedOrgsList []string + ShortDescription *string + SourceConfigKind *WorkflowTemplateSourceConfigKindEnum + Tags []string + TemplateName string + TemplateType sgsdkgo.TemplateTypeEnum + VCSTriggers *VCSTriggers + type CreateWorkflowTemplateResponseData struct + Parent CreateWorkflowTemplateRequest + type CreateWorkflowTemplateResponseModel struct + Data CreateWorkflowTemplateResponseData + Msg string + type ReadWorkflowTemplateResponse struct + ContextTags map[string]string + Id *string + IsActive *sgsdkgo.IsPublicEnum + IsPublic *sgsdkgo.IsPublicEnum + OwnerOrg *string + RuntimeSource *RuntimeSource + SharedOrgsList []string + ShortDescription *string + SourceConfigKind *WorkflowTemplateSourceConfigKindEnum + Tags []string + TemplateName *string + TemplateType *sgsdkgo.TemplateTypeEnum + VCSTriggers *VCSTriggers + type ReadWorkflowTemplateResponseModel struct + Msg ReadWorkflowTemplateResponse + type RuntimeSource struct + Config *RuntimeSourceConfig + SourceConfigDestKind *SourceConfigDestKindEnum + type RuntimeSourceConfig struct + Auth *string + GitCoreAutoCRLF *bool + GitSparseCheckoutConfig *string + IncludeSubModule *bool + IsPrivate *bool + Ref *string + Repo string + WorkingDir *string + type RuntimeSourceConfigUpdate struct + GitCoreAutoCRLF *bool + GitSparseCheckoutConfig *string + IncludeSubModule *bool + IsPrivate *bool + Ref *string + WorkingDir *string + type RuntimeSourceUpdate struct + Config *RuntimeSourceConfigUpdate + SourceConfigDestKind *SourceConfigDestKindEnum + type SourceConfigDestKindEnum string + const SourceConfigDestKindEnumAzureDevops + const SourceConfigDestKindEnumAzureDevopsSp + const SourceConfigDestKindEnumBitbucketOrg + const SourceConfigDestKindEnumGitOther + const SourceConfigDestKindEnumGithubAppCustom + const SourceConfigDestKindEnumGithubCom + const SourceConfigDestKindEnumGitlabCom + func (t SourceConfigDestKindEnum) Ptr() *SourceConfigDestKindEnum + type UpdateWorkflowTemplateRequest struct + ContextTags *core.Optional[map[string]string] + IsActive *core.Optional[sgsdkgo.IsPublicEnum] + IsPublic *core.Optional[sgsdkgo.IsPublicEnum] + OwnerOrg *core.Optional[string] + RuntimeSource *core.Optional[RuntimeSourceUpdate] + SharedOrgsList *core.Optional[[]string] + ShortDescription *core.Optional[string] + SourceConfigKind *core.Optional[WorkflowTemplateSourceConfigKindEnum] + Tags *core.Optional[[]string] + TemplateName *core.Optional[string] + VCSTriggers *core.Optional[VCSTriggers] + type UpdateWorkflowTemplateResponse struct + ContextTags *core.Optional[map[string]string] + Id *core.Optional[string] + IsActive *core.Optional[sgsdkgo.IsPublicEnum] + IsPublic *core.Optional[sgsdkgo.IsPublicEnum] + OwnerOrg *core.Optional[string] + RuntimeSource *core.Optional[RuntimeSource] + SharedOrgsList *core.Optional[[]string] + ShortDescription *core.Optional[string] + SourceConfigKind *core.Optional[WorkflowTemplateSourceConfigKindEnum] + Tags *core.Optional[[]string] + TemplateName *core.Optional[string] + TemplateType *core.Optional[sgsdkgo.TemplateTypeEnum] + VCSTriggers *core.Optional[VCSTriggers] + type UpdateWorkflowTemplateResponseModel struct + Data UpdateWorkflowTemplateResponse + Msg string + type VCSTriggers struct + CreateTag *VCSTriggersCreateTag + Type *VCSTriggersTypeEnum + type VCSTriggersCreateTag struct + CreateRevision *VCSTriggersCreateTagCreateRevision + type VCSTriggersCreateTagCreateRevision struct + Enabled *bool + type VCSTriggersTypeEnum string + const VCSTriggersTypeEnumGithubAppCustom + const VCSTriggersTypeEnumGithubCom + const VCSTriggersTypeEnumGitlabCom + const VCSTriggersTypeEnumGitlabOauthSsh + func (t VCSTriggersTypeEnum) Ptr() *VCSTriggersTypeEnum + type WorkflowTemplateSourceConfigKindEnum string + const WorkflowTemplateSourceConfigKindAnsiblePlaybook + const WorkflowTemplateSourceConfigKindCloudformation + const WorkflowTemplateSourceConfigKindCustom + const WorkflowTemplateSourceConfigKindHelm + const WorkflowTemplateSourceConfigKindKubectl + const WorkflowTemplateSourceConfigKindOpentofu + const WorkflowTemplateSourceConfigKindTerraform + func NewWorkflowTemplateSourceConfigKindEnumFromString(s string) (WorkflowTemplateSourceConfigKindEnum, error) + func (t WorkflowTemplateSourceConfigKindEnum) Ptr() *WorkflowTemplateSourceConfigKindEnum