security_exception_item

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinVersionExpireTime = version.Must(version.NewVersion("8.7.2"))

MinVersionExpireTime defines the minimum server version required for expire_time field

Functions

func NewResource

func NewResource() resource.Resource

NewResource is a helper function to simplify the provider implementation.

Types

type CommentModel

type CommentModel struct {
	ID      types.String `tfsdk:"id"`
	Comment types.String `tfsdk:"comment"`
}

type CommonExceptionItemProps

CommonExceptionItemProps holds pointers to common fields across create/update requests

type EntryListModel

type EntryListModel struct {
	ID   types.String `tfsdk:"id"`
	Type types.String `tfsdk:"type"`
}

type EntryModel

type EntryModel struct {
	Type     types.String `tfsdk:"type"`
	Field    types.String `tfsdk:"field"`
	Operator types.String `tfsdk:"operator"`
	Value    types.String `tfsdk:"value"`
	Values   types.List   `tfsdk:"values"`
	List     types.Object `tfsdk:"list"`
	Entries  types.List   `tfsdk:"entries"`
}

type ExceptionItemModel

type ExceptionItemModel struct {
	ID            types.String         `tfsdk:"id"`
	SpaceID       types.String         `tfsdk:"space_id"`
	ItemID        types.String         `tfsdk:"item_id"`
	ListID        types.String         `tfsdk:"list_id"`
	Name          types.String         `tfsdk:"name"`
	Description   types.String         `tfsdk:"description"`
	Type          types.String         `tfsdk:"type"`
	NamespaceType types.String         `tfsdk:"namespace_type"`
	OsTypes       types.Set            `tfsdk:"os_types"`
	Tags          types.Set            `tfsdk:"tags"`
	Meta          jsontypes.Normalized `tfsdk:"meta"`
	Entries       types.List           `tfsdk:"entries"`
	Comments      types.List           `tfsdk:"comments"`
	ExpireTime    timetypes.RFC3339    `tfsdk:"expire_time"`
	CreatedAt     types.String         `tfsdk:"created_at"`
	CreatedBy     types.String         `tfsdk:"created_by"`
	UpdatedAt     types.String         `tfsdk:"updated_at"`
	UpdatedBy     types.String         `tfsdk:"updated_by"`
	TieBreakerID  types.String         `tfsdk:"tie_breaker_id"`
}

type ExceptionItemResource

type ExceptionItemResource struct {
	// contains filtered or unexported fields
}

func (*ExceptionItemResource) Configure

func (*ExceptionItemResource) Create

func (*ExceptionItemResource) Delete

func (*ExceptionItemResource) ImportState

func (*ExceptionItemResource) Metadata

Metadata returns the provider type name.

func (*ExceptionItemResource) Read

func (*ExceptionItemResource) Schema

func (*ExceptionItemResource) Update

func (*ExceptionItemResource) ValidateConfig

ValidateConfig validates the configuration for an exception item resource. It ensures that entries are properly configured based on their type:

- For "match" and "wildcard" types: 'value' must be set - For "match_any" type: 'values' must be set - For "list" type: 'list' object must be set with 'id' and 'type' - For "exists" type: only 'field' and 'operator' are required - For "nested" type: 'entries' must be set and validated recursively - The 'operator' field is required for all types except "nested"

Validation only runs on known values. Values that are unknown (e.g., references to other resources that haven't been created yet) are skipped.

The function adds appropriate error diagnostics if validation fails.

type NestedEntryModel

type NestedEntryModel struct {
	Type     types.String `tfsdk:"type"`
	Field    types.String `tfsdk:"field"`
	Operator types.String `tfsdk:"operator"`
	Value    types.String `tfsdk:"value"`
	Values   types.List   `tfsdk:"values"`
}

Jump to

Keyboard shortcuts

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