Help us shape the future of Go! Take the 2026 Go Developer Survey

territory2

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NAME = "Territory2"

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectAccessLevel added in v0.63.0

type ObjectAccessLevel struct {
	AccessLevel struct {
		Text string `xml:",chardata"`
	} `xml:"accessLevel"`
	ObjectType struct {
		Text string `xml:",chardata"`
	} `xml:"objectType"`
}

ObjectAccessLevel is the access that users in a territory have to records of an object, such as Lead, assigned to the territory.

type RuleAssociation

type RuleAssociation struct {
	Inherited struct {
		Text string `xml:",chardata"`
	} `xml:"inherited"`
	RuleName struct {
		Text string `xml:",chardata"`
	} `xml:"ruleName"`
}

type Territory2

type Territory2 struct {
	metadata.MetadataInfo
	XMLName            xml.Name `xml:"Territory2"`
	Xmlns              string   `xml:"xmlns,attr"`
	Xsi                string   `xml:"xmlns:xsi,attr,omitempty"`
	Xsd                string   `xml:"xmlns:xsd,attr,omitempty"`
	AccountAccessLevel *struct {
		Text string `xml:",chardata"`
	} `xml:"accountAccessLevel"`
	CaseAccessLevel *struct {
		Text string `xml:",chardata"`
	} `xml:"caseAccessLevel"`
	ContactAccessLevel *struct {
		Text string `xml:",chardata"`
	} `xml:"contactAccessLevel"`
	CustomFields []territory2model.FieldValue `xml:"customFields"`
	Description  *struct {
		Text string `xml:",chardata"`
	} `xml:"description"`
	Name struct {
		Text string `xml:",chardata"`
	} `xml:"name"`
	ObjectAccessLevels     []ObjectAccessLevel `xml:"objectAccessLevels"`
	OpportunityAccessLevel *struct {
		Text string `xml:",chardata"`
	} `xml:"opportunityAccessLevel"`
	ParentTerritory *struct {
		Text string `xml:",chardata"`
	} `xml:"parentTerritory"`
	RuleAssociations []RuleAssociation `xml:"ruleAssociations"`
	Territory2Type   struct {
		Text string `xml:",chardata"`
	} `xml:"territory2Type"`
}

func Open

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

func (*Territory2) Files added in v0.63.0

func (c *Territory2) Files(format metadata.Format) (map[string][]byte, error)

Files writes the territory into its model's directory: territory2Models/<Model>/territories/<Territory>.territory2.

func (*Territory2) NameFromPath added in v0.63.0

func (c *Territory2) NameFromPath(path string) metadata.MetadataObjectName

NameFromPath names a territory as package.xml does, <Model>.<Territory>, since territories of different models may share a name.

func (*Territory2) SetMetadata

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

func (*Territory2) Type

func (c *Territory2) Type() metadata.MetadataType

Jump to

Keyboard shortcuts

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