models

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type AddExceptionObjectInput

type AddExceptionObjectInput struct {
	Match   string   `json:"match"`
	Actions []string `json:"actions"`
	Comment string   `json:"comment,omitempty"`
}

type CreateExceptionBehaviorInput

type CreateExceptionBehaviorInput struct {
	Name       string                `json:"name,omitempty"`
	Visibility string                `json:"visibility,omitempty"`
	Exceptions ExceptionObjectInputs `json:"exceptions,omitempty"`
}

CreateExceptionBehaviorInput represents the api input for creating an Exception behavior object

type DisplayObject added in v1.1.3

type DisplayObject struct {
	ID           string `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	Type         string `json:"type,omitempty"`
	SubType      string `json:"subType,omitempty"`
	ObjectStatus string `json:"objectStatus,omitempty"`
}

type DisplayObjects added in v1.1.3

type DisplayObjects []DisplayObject

type ExceptionBehavior

type ExceptionBehavior struct {
	ID         string            `json:"id"`
	Name       string            `json:"name"`
	Visibility string            `json:"visibility"`
	Exceptions ExceptionsObjects `json:"exceptions"`
}

ExceptionBehavior represents an exception behavior object as it is returned from the API

type ExceptionObject

type ExceptionObject struct {
	ID      string                  `json:"id"`
	Match   string                  `json:"match"`
	Actions []ExceptionObjectAction `json:"actions"`
	Comment string                  `json:"comment,omitempty"`
}

func (ExceptionObject) ToSchema

func (exception ExceptionObject) ToSchema() SchemaExceptionObject

type ExceptionObjectAction

type ExceptionObjectAction struct {
	ID     string `json:"id"`
	Action string `json:"action"`
}

type ExceptionObjectActionUpdate added in v1.1.1

type ExceptionObjectActionUpdate struct {
	ID            string                       `json:"id,omitempty"`
	Match         string                       `json:"match,omitempty"`
	AddActions    []string                     `json:"addActions,omitempty"`
	RemoveActions []string                     `json:"removeActions,omitempty"`
	UpdateActions UpdateExceptionsObjectInputs `json:"updateActions,omitempty"`
	Comment       string                       `json:"comment,omitempty"`
}

type ExceptionObjectActionsUpdate added in v1.1.1

type ExceptionObjectActionsUpdate []ExceptionObjectActionUpdate

type ExceptionObjectInput

type ExceptionObjectInput struct {
	ID      string   `json:"id,omitempty"`
	Match   string   `json:"match"`
	Actions []string `json:"actions"`
	Comment string   `json:"comment,omitempty"`
}

type ExceptionObjectInputs added in v1.1.1

type ExceptionObjectInputs []ExceptionObjectInput

type ExceptionsObjects

type ExceptionsObjects []ExceptionObject

func (ExceptionsObjects) ToSchema

func (exceptions ExceptionsObjects) ToSchema() []SchemaExceptionObject

type Match

type Match struct {
	Type     string   `json:"type"`
	Operator string   `json:"op"`
	Items    []Match  `json:"items,omitempty"`
	Key      string   `json:"key,omitempty"`
	Value    []string `json:"value,omitempty"`
}

type SchemaExceptionObject

type SchemaExceptionObject struct {
	ID       string                  `json:"id,omitempty"`
	Match    []SchemaMatchExpression `json:"match"`
	Action   string                  `json:"action"`
	ActionID string                  `json:"action_id,omitempty"`
	Comment  string                  `json:"comment,omitempty"`
}

type SchemaMatchExpression

type SchemaMatchExpression struct {
	Operator string                  `json:"operator,omitempty"`
	Operands []SchemaMatchExpression `json:"operand,omitempty"`
	Key      string                  `json:"key,omitempty"`
	Value    []string                `json:"value,omitempty"`
}

func MatchToSchema

func MatchToSchema(match Match) SchemaMatchExpression

type UpdateExceptionBehaviorInput

type UpdateExceptionBehaviorInput struct {
	Name             string                       `json:"name,omitempty"`
	Visibility       string                       `json:"visibility,omitempty"`
	AddExceptions    []AddExceptionObjectInput    `json:"addExceptions,omitempty"`
	RemoveExceptions []string                     `json:"removeExceptions,omitempty"`
	UpdateExceptions ExceptionObjectActionsUpdate `json:"updateExceptions,omitempty"`
}

type UpdateExceptionObjectActionInput added in v1.1.1

type UpdateExceptionObjectActionInput struct {
	ID     string `json:"id"`
	Action string `json:"action"`
}

type UpdateExceptionsObjectInputs added in v1.1.1

type UpdateExceptionsObjectInputs []UpdateExceptionObjectActionInput

Jump to

Keyboard shortcuts

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