datacategorygroup

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "DataCategoryGroup"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataCategory

type DataCategory struct {
	DataCategory []DataCategory `xml:"dataCategory"`
	Label        string         `xml:"label"`
	Name         string         `xml:"name"`
}

DataCategory is a node in a data category group's category tree. The root node's children are the top-level categories; each child may have further children, forming the tree.

type DataCategoryGroup

type DataCategoryGroup struct {
	metadata.MetadataInfo
	XMLName      xml.Name     `xml:"DataCategoryGroup"`
	Xmlns        string       `xml:"xmlns,attr"`
	Active       BooleanText  `xml:"active"`
	Description  *string      `xml:"description"`
	Label        string       `xml:"label"`
	DataCategory DataCategory `xml:"dataCategory"`
	ObjectUsage  *ObjectUsage `xml:"objectUsage"`
}

func Open

func Open(path string) (*DataCategoryGroup, error)

func (*DataCategoryGroup) SetMetadata

func (c *DataCategoryGroup) SetMetadata(m metadata.MetadataInfo)

func (*DataCategoryGroup) Type

type ObjectUsage

type ObjectUsage struct {
	Object []string `xml:"object"`
}

ObjectUsage lists the SObjects a data category group applies to (e.g., KnowledgeArticleVersion, Question).

Jump to

Keyboard shortcuts

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