policy

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomSourceConfigToTerraType

func CustomSourceConfigToTerraType(customSourcePolicyConfig *sgsdkgo.CustomSourcePolicyConfig) (types.Object, diag.Diagnostics)

func CustomSourceToTerraType

func CustomSourceToTerraType(customSourcePolicy *sgsdkgo.CustomSourcePolicy) (types.Object, diag.Diagnostics)

func InputDataToTerraType

func InputDataToTerraType(policyInputData *sgsdkgo.InputData) (types.Object, diag.Diagnostics)

func NewResource

func NewResource() resource.Resource

func VCSConfigToTerraType

func VCSConfigToTerraType(VCSConfig *sgsdkgo.PolicyVcsConfig) (types.Object, diag.Diagnostics)

Types

type PolicyResourceModel

type PolicyResourceModel struct {
	ResourceName              types.String `tfsdk:"resource_name"`
	PolicyType                types.String `tfsdk:"policy_type"`
	Description               types.String `tfsdk:"description"`
	NumberOfApprovalsRequired types.Int32  `tfsdk:"number_of_approvals_required"`
	Approvers                 types.List   `tfsdk:"approvers"`
	EnforcedOn                types.List   `tfsdk:"enforced_on"`
	Tags                      types.List   `tfsdk:"tags"`
	PoliciesConfig            types.List   `tfsdk:"policies_config"`
}

func BuildAPIModelToPolicyModel

func BuildAPIModelToPolicyModel(apiResponse *sgsdkgo.PolicyGeneral) (*PolicyResourceModel, diag.Diagnostics)

func (*PolicyResourceModel) ToAPIModel

func (*PolicyResourceModel) ToPatchedAPIModel

Jump to

Keyboard shortcuts

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