controlPolicyMappings

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanIdentifier

func CleanIdentifier(s string) string

func UpdateStateAfterRead

func UpdateStateAfterRead(apiEntities []*sdkControlPolicy.ControlPolicyMapping, state *ResourceModel)

Types

type MergedEntities

type MergedEntities struct {
	EntitiesToCreate []*controlPolicy.ControlPolicyMapping
	EntitiesToUpdate []*controlPolicy.ControlPolicyMapping
	EntitiesToDelete []*controlPolicy.ControlPolicyMapping
}

func Merge

func Merge(plan *ResourceModel, state *ResourceModel, converterType commons.ConverterType) *MergedEntities

type ResourceModel

type ResourceModel struct {
	ID              types.String   `tfsdk:"id"`
	ControlPolicyId types.String   `tfsdk:"control_policy_id"`
	Targets         []*TargetModel `tfsdk:"targets"`
}

type TargetModel

type TargetModel struct {
	TargetId         types.String `tfsdk:"target_id"`
	TargetType       types.String `tfsdk:"target_type"`
	EnforcementLevel types.String `tfsdk:"enforcement_level"`
}

func (*TargetModel) GetBlockIdentifier

func (e *TargetModel) GetBlockIdentifier() string

func (*TargetModel) Hash

func (e *TargetModel) Hash() string

Jump to

Keyboard shortcuts

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