models

package
v1.33.4 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: MPL-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func A

func A(data map[string]interface{}, key string, value interface{})

func BoolToString

func BoolToString(value bool) string

func CurlyBraces

func CurlyBraces(value string) string

func G

func G(cont *container.Container, key ...string) string

func InterSchemaSiteVrfRegionFromContainer added in v1.3.1

func InterSchemaSiteVrfRegionFromContainer(cont *container.Container, regionHubNetwork *InterSchemaSiteVrfRegionHubNetork) (map[string]interface{}, error)

func ListFromContainer

func ListFromContainer(cont *container.Container, klass string) []*container.Container

func StringInSlice added in v1.3.8

func StringInSlice(a string, list []string) bool

func StringToBool

func StringToBool(value string) bool

func StripQuotes

func StripQuotes(word string) string

func StripSquareBrackets

func StripSquareBrackets(word string) string

Types

type DHCPOption added in v1.3.1

type DHCPOption struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Data string `json:"data"`
}

type DHCPOptionPolicy added in v1.3.1

type DHCPOptionPolicy struct {
	ID            string       `json:"id,omitempty"`
	Name          string       `json:"name"`
	PolicyType    string       `json:"policyType,omitempty"`
	PolicySubtype string       `json:"policySubtype,omitempty"`
	Desc          string       `json:"desc"`
	TenantID      string       `json:"tenantId"`
	DHCPOption    []DHCPOption `json:"dhcpOption"`
}

func DHCPOptionPolicyFromContainer added in v1.3.1

func DHCPOptionPolicyFromContainer(cont *container.Container) (*DHCPOptionPolicy, error)

func NewDHCPOptionPolicy added in v1.3.1

func NewDHCPOptionPolicy(policy DHCPOptionPolicy) *DHCPOptionPolicy

func PrepareDHCPOptionPolicyModelForUpdate added in v1.3.1

func PrepareDHCPOptionPolicyModelForUpdate(remotePolicyCont *container.Container, newPolicy *DHCPOptionPolicy) (*DHCPOptionPolicy, error)

func (*DHCPOptionPolicy) ToMap added in v1.3.1

func (model *DHCPOptionPolicy) ToMap() (map[string]interface{}, error)

type DHCPOptionPolicyOption added in v1.3.1

type DHCPOptionPolicyOption struct {
	ID         string
	Name       string
	Data       string
	PolicyName string
}

func DHCPOptionPolicyOptionFromContainer added in v1.3.1

func DHCPOptionPolicyOptionFromContainer(cont *container.Container) (*DHCPOptionPolicyOption, error)

type DHCPProvider added in v1.3.1

type DHCPProvider struct {
	ExternalEPG       string `json:"externalEpgRef"`
	EPG               string `json:"epgRef"`
	DHCPServerAddress string `json:"addr"`
	TenantID          string `json:"tenantId"`
	Operation         string `json:"-"`
}

type DHCPRelayPolicy added in v1.3.1

type DHCPRelayPolicy struct {
	ID            string         `json:"id,omitempty"`
	Name          string         `json:"name"`
	PolicyType    string         `json:"policyType,omitempty"`
	PolicySubtype string         `json:"policySubtype,omitempty"`
	Desc          string         `json:"desc"`
	TenantID      string         `json:"tenantId"`
	DHCPProvider  []DHCPProvider `json:"provider"`
}

func DHCPRelayPolicyFromContainer added in v1.3.1

func DHCPRelayPolicyFromContainer(cont *container.Container) (*DHCPRelayPolicy, error)

func NewDHCPRelayPolicy added in v1.3.1

func NewDHCPRelayPolicy(policy DHCPRelayPolicy) *DHCPRelayPolicy

func PrepareDHCPRelayPolicyModelForUpdate added in v1.3.1

func PrepareDHCPRelayPolicyModelForUpdate(remotePolicyCont *container.Container, newPolicy *DHCPRelayPolicy) (*DHCPRelayPolicy, error)

func (*DHCPRelayPolicy) ToMap added in v1.3.1

func (model *DHCPRelayPolicy) ToMap() (map[string]interface{}, error)

type DHCPRelayPolicyProvider added in v1.3.1

type DHCPRelayPolicyProvider struct {
	PolicyName     string
	Addr           string
	EpgRef         string
	ExternalEpgRef string
}

type ExternalEpgContract

type ExternalEpgContract struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateExternalEpgContract

func NewTemplateExternalEpgContract(ops, path, relationshipType string, contractRefMap map[string]interface{}) *ExternalEpgContract

func (*ExternalEpgContract) ToMap

func (anpAttributes *ExternalEpgContract) ToMap() (map[string]interface{}, error)

type ExternalEpgSubnet

type ExternalEpgSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateExternalEpgSubnet

func NewTemplateExternalEpgSubnet(ops, path, ip, name string, scope, aggregate []interface{}) *ExternalEpgSubnet

func (*ExternalEpgSubnet) ToMap

func (subnetAttribute *ExternalEpgSubnet) ToMap() (map[string]interface{}, error)

type InterSchemaSiteVrfRegionHubNetork added in v1.3.1

type InterSchemaSiteVrfRegionHubNetork struct {
	Name         string
	TenantName   string
	SiteID       string
	TemplateName string
	VrfName      string
	Region       string
	SchemaID     string
}

func InterSchemaSiteVrfRegionHubNetworkFromContainer added in v1.3.1

func InterSchemaSiteVrfRegionHubNetworkFromContainer(cont *container.Container, regionHubNetwork *InterSchemaSiteVrfRegionHubNetork) (*InterSchemaSiteVrfRegionHubNetork, error)

type IntersiteL3outs added in v1.3.1

type IntersiteL3outs struct {
	L3outName    string
	VRFName      string
	SchemaID     string
	TemplateName string
	SiteId       string
}

func IntersiteL3outsFromContainer added in v1.3.1

func IntersiteL3outsFromContainer(cont *container.Container, tf *IntersiteL3outs) (*IntersiteL3outs, error)

type Label

type Label struct {
	Id          string `json:",omitempty"`
	DisplayName string `json:",omitempty"`
	Type        string `json:",omitempty"`
}

func NewLabel

func NewLabel(id, labels, types string) *Label

func (*Label) ToMap

func (label *Label) ToMap() (map[string]interface{}, error)

type Location

type Location struct {
	Lat  float64 `json:"lat,omitempty"`
	Long float64 `json:"long,omitempty"`
}

type Model

type Model interface {
	ToMap() (map[string]interface{}, error)
}

type PatchPayload added in v1.8.0

type PatchPayload struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func GetPatchPayload added in v1.23.0

func GetPatchPayload(ops, path string, value map[string]interface{}) *PatchPayload

func GetRemovePatchPayload added in v1.8.0

func GetRemovePatchPayload(path string) *PatchPayload

func NewSchemaSiteVrfRouteLeak added in v1.17.0

func NewSchemaSiteVrfRouteLeak(ops, path, tenantName, vrfRef string, includeAllSubnets bool, prefixSubnets []map[string]string, siteIds []string) *PatchPayload

func NewSiteContractServiceGraphListener added in v1.26.0

func NewSiteContractServiceGraphListener(ops, path, name, protocol, securityPolicy string, port int, certificates []interface{}, rules []interface{}, frontendIpDnMap map[string]string) *PatchPayload

func NewSystemConfigChangeControl added in v1.22.0

func NewSystemConfigChangeControl(enable bool, numOfApprovers int) *PatchPayload

func NewTemplateBD

func NewTemplateBD(ops, path, name, displayName, layer2Unicast, unkMcastAct, multiDstPktAct, v6unkMcastAct, vmac, epMoveDetectMode, description string, intersiteBumTrafficAllow, optimizeWanBandwidth, l2Stretch, l3MCast, arpFlood, unicastRouting bool, vrfRef, dhcpLabel map[string]interface{}, dhcpLabels []interface{}) *PatchPayload

func NewTemplateContractFilterRelationShip

func NewTemplateContractFilterRelationShip(ops, path, action, priority, desc string, filterRef map[string]interface{}, directives []interface{}) *PatchPayload

func (*PatchPayload) ToMap added in v1.8.0

func (patchPayloadAttributes *PatchPayload) ToMap() (map[string]interface{}, error)

type PatchPayloadList added in v1.10.0

type PatchPayloadList struct {
	Ops   string        `json:",omitempty"`
	Path  string        `json:",omitempty"`
	Value []interface{} `json:",omitempty"`
}

func GetPatchPayloadList added in v1.23.0

func GetPatchPayloadList(ops, path string, value []interface{}) *PatchPayloadList

func NewSchemaSiteAnpEpgBulkStaticPort added in v1.10.0

func NewSchemaSiteAnpEpgBulkStaticPort(ops, path string, staticPortsList []interface{}) *PatchPayloadList

func NewSystemConfigBanner added in v1.22.0

func NewSystemConfigBanner(alias, bannerState, bannerType, message string) *PatchPayloadList

func (*PatchPayloadList) ToMap added in v1.10.0

func (patchPayloadListAttributes *PatchPayloadList) ToMap() (map[string]interface{}, error)

type RemoteLocation added in v1.18.0

type RemoteLocation struct {
	Name        string                 `json:",omitempty"`
	Description string                 `json:",omitempty"`
	Id          string                 `json:",omitempty"`
	Credential  map[string]interface{} `json:",omitempty"`
}

func NewRemoteLocation added in v1.18.0

func NewRemoteLocation(name, description, id string, credential map[string]interface{}) *RemoteLocation

func (*RemoteLocation) ToMap added in v1.18.0

func (remoteLocation *RemoteLocation) ToMap() (map[string]interface{}, error)

type RoleAttributes

type RoleAttributes struct {
	Id          string `json:",omitempty"`
	Name        string `json:",omitempty`
	DisplayName string `json:",omitempty"`
	Description string `json:",omitempty"`

	ReadPermissions []interface{} `json:",omitempty"`

	WritePermissions []interface{} `json:",omitempty"`
}

func NewRole

func NewRole(roleAttr RoleAttributes) *RoleAttributes

func (*RoleAttributes) ToMap

func (role *RoleAttributes) ToMap() (map[string]interface{}, error)

type SchemValidate added in v1.3.1

type SchemValidate struct {
	SchmaId string
	Result  string
}

type Schema

type Schema struct {
	Id          string                   `json:",omitempty"`
	DisplayName string                   `json:",omitempty"`
	Description string                   `json:",omitempty"`
	Templates   []map[string]interface{} `json:",omitempty"`

	Sites []map[string]interface{} `json:",omitempty"`
}

func NewSchema

func NewSchema(id, displayName, description, templateName, tenantId string, template []interface{}) *Schema

func (*Schema) ToMap

func (schema *Schema) ToMap() (map[string]interface{}, error)

type SchemaSite

type SchemaSite struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSite

func NewSchemaSite(ops, path, siteId, templateName string) *SchemaSite

func NewSchemaTemplateVrf

func NewSchemaTemplateVrf(ops, path, Name, displayName, ipDataPlaneLearning, desc string, l3m, vzany, preferredGroup, siteAwarePolicyEnforcementMode bool, rendezvousPoints []interface{}) *SchemaSite

func (*SchemaSite) ToMap

func (schemasiteAttributes *SchemaSite) ToMap() (map[string]interface{}, error)

type SchemaSiteAnpEpg

type SchemaSiteAnpEpg struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpg

func NewSchemaSiteAnpEpg(ops, path string, privateLinkLabel, epgRef map[string]interface{}) *SchemaSiteAnpEpg

func (*SchemaSiteAnpEpg) ToMap

func (siteAnpEpgAttributes *SchemaSiteAnpEpg) ToMap() (map[string]interface{}, error)

type SchemaSiteAnpEpgDomain

type SchemaSiteAnpEpgDomain struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpgDomain

func NewSchemaSiteAnpEpgDomain(ops, path, domainType, dn, deploymentImmediacy, resolutionImmediacy string, vmmDomainProperties map[string]interface{}) *SchemaSiteAnpEpgDomain

func (*SchemaSiteAnpEpgDomain) ToMap

func (siteAnpEpgDomainAttributes *SchemaSiteAnpEpgDomain) ToMap() (map[string]interface{}, error)

type SchemaSiteAnpEpgSelector

type SchemaSiteAnpEpgSelector struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpgSelector

func NewSchemaSiteAnpEpgSelector(ops, path string, SiteAnpEpgSelectorMap map[string]interface{}) *SchemaSiteAnpEpgSelector

func (*SchemaSiteAnpEpgSelector) ToMap

func (schemasiteanpepgselectorattr *SchemaSiteAnpEpgSelector) ToMap() (map[string]interface{}, error)

type SchemaSiteAnpEpgStaticPort

type SchemaSiteAnpEpgStaticPort struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpgStaticPort

func NewSchemaSiteAnpEpgStaticPort(ops, path, Type, portPath string, vlan int, deploymentImmediacy string, microsegVlan int, mode string) *SchemaSiteAnpEpgStaticPort

func (*SchemaSiteAnpEpgStaticPort) ToMap

func (anpAttributes *SchemaSiteAnpEpgStaticPort) ToMap() (map[string]interface{}, error)

type SchemaSiteAnpEpgSubnet

type SchemaSiteAnpEpgSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpgSubnet

func NewSchemaSiteAnpEpgSubnet(ops, path, ip, desc, scope string, shared, noDefaultGateway, querier, primary bool) *SchemaSiteAnpEpgSubnet

func (*SchemaSiteAnpEpgSubnet) ToMap

func (bdAttributes *SchemaSiteAnpEpgSubnet) ToMap() (map[string]interface{}, error)

type SchemaSiteBdL3out

type SchemaSiteBdL3out struct {
	Ops   string `json:",omitempty"`
	Path  string `json:",omitempty"`
	Value string `json:",omitempty"`
}

func NewSchemaSiteBdL3out

func NewSchemaSiteBdL3out(ops, path, l3out string) *SchemaSiteBdL3out

func (*SchemaSiteBdL3out) ToMap

func (siteBdL3outAttributes *SchemaSiteBdL3out) ToMap() (map[string]interface{}, error)

type SchemaSiteBdSubnet

type SchemaSiteBdSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteBdSubnet

func NewSchemaSiteBdSubnet(ops, path, ip, desc, scope string, shared, noDefaultGateway, querier, primary, virtual bool) *SchemaSiteBdSubnet

func (*SchemaSiteBdSubnet) ToMap

func (bdAttributes *SchemaSiteBdSubnet) ToMap() (map[string]interface{}, error)

type SchemaSiteExternalEpg

type SchemaSiteExternalEpg struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteExternalEpg

func NewSchemaSiteExternalEpg(ops, path string, siteEpgMap map[string]interface{}) *SchemaSiteExternalEpg

func (*SchemaSiteExternalEpg) ToMap

func (schemaSiteExternalEpgAttributes *SchemaSiteExternalEpg) ToMap() (map[string]interface{}, error)

type SchemaSiteExternalEpgSelector

type SchemaSiteExternalEpgSelector struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteExternalEpgSelector

func NewSchemaSiteExternalEpgSelector(ops, path string, selectorMap map[string]interface{}) *SchemaSiteExternalEpgSelector

func (*SchemaSiteExternalEpgSelector) ToMap

func (schemaSiteExternalEpgSelector *SchemaSiteExternalEpgSelector) ToMap() (map[string]interface{}, error)

type SchemaSiteVrfRegion

type SchemaSiteVrfRegion struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteVrfRegion

func NewSchemaSiteVrfRegion(ops, path, name, vpcGroup string, vpnGateway, hubNetwork bool, hubNetworkMap map[string]interface{}, cidrs []interface{}) *SchemaSiteVrfRegion

func (*SchemaSiteVrfRegion) ToMap

func (siteVrfRegionAttributes *SchemaSiteVrfRegion) ToMap() (map[string]interface{}, error)

type SchemaSiteVrfRegionCidr

type SchemaSiteVrfRegionCidr struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteVrfRegionCidr

func NewSchemaSiteVrfRegionCidr(ops, path, ip string, primary bool) *SchemaSiteVrfRegionCidr

func (*SchemaSiteVrfRegionCidr) ToMap

func (siteVrfRegionCidrAttributes *SchemaSiteVrfRegionCidr) ToMap() (map[string]interface{}, error)

type SchemaSiteVrfRegionCidrSubnet

type SchemaSiteVrfRegionCidrSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteVrfRegionCidrSubnet

func NewSchemaSiteVrfRegionCidrSubnet(ops, path, name, ip, zone, usage, subnetGroup string) *SchemaSiteVrfRegionCidrSubnet

func (*SchemaSiteVrfRegionCidrSubnet) ToMap

func (bdAttributes *SchemaSiteVrfRegionCidrSubnet) ToMap() (map[string]interface{}, error)

type SchemaSiteVrfRegionHubNetork added in v1.3.1

type SchemaSiteVrfRegionHubNetork struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func CreateInterSchemaSiteVrfRegionNetworkModel added in v1.3.1

func CreateInterSchemaSiteVrfRegionNetworkModel(hubNetwork *InterSchemaSiteVrfRegionHubNetork, cont *container.Container) (*SchemaSiteVrfRegionHubNetork, error)

func DeleteInterSchemaSiteVrfRegionNetworkModel added in v1.3.1

func DeleteInterSchemaSiteVrfRegionNetworkModel(hubNetwork *InterSchemaSiteVrfRegionHubNetork, cont *container.Container) (*SchemaSiteVrfRegionHubNetork, error)

func (*SchemaSiteVrfRegionHubNetork) ToMap added in v1.3.1

func (hubNetwork *SchemaSiteVrfRegionHubNetork) ToMap() (map[string]interface{}, error)

type SchemaTemplate

type SchemaTemplate struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplate

func NewSchemaTemplate(ops, path, tenantId, templateName, templateDisplayName, description, templateType string, templateSubTypes []string) *SchemaTemplate

func (*SchemaTemplate) ToMap

func (schematemplateAttributes *SchemaTemplate) ToMap() (map[string]interface{}, error)

type SchemaTemplateAnp

type SchemaTemplateAnp struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplateAnp

func NewSchemaTemplateAnp(ops, path, Name, displayName, desc string) *SchemaTemplateAnp

func (*SchemaTemplateAnp) ToMap

func (schematemplateanpAttributes *SchemaTemplateAnp) ToMap() (map[string]interface{}, error)

type SchemaTemplateAnpEpgSelector

type SchemaTemplateAnpEpgSelector struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplateAnpEpgSelector

func NewSchemaTemplateAnpEpgSelector(ops, path string, selectorMap map[string]interface{}) *SchemaTemplateAnpEpgSelector

func (*SchemaTemplateAnpEpgSelector) ToMap

func (schematemplateanpepgselectorattr *SchemaTemplateAnpEpgSelector) ToMap() (map[string]interface{}, error)

type SchemaTemplateAnpEpgSubnet

type SchemaTemplateAnpEpgSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplateAnpEpgSubnet

func NewSchemaTemplateAnpEpgSubnet(ops, path, ip, desc, scope string, shared, noDefaultGateway, querier, primary bool) *SchemaTemplateAnpEpgSubnet

func (*SchemaTemplateAnpEpgSubnet) ToMap

func (schematemplateanpepgsubnetAttributes *SchemaTemplateAnpEpgSubnet) ToMap() (map[string]interface{}, error)

type SchemaTemplateAnpEpgUsegAttr

type SchemaTemplateAnpEpgUsegAttr struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplateAnpEpgUsegAttr

func NewSchemaTemplateAnpEpgUsegAttr(ops, path string, selectorMap map[string]interface{}) *SchemaTemplateAnpEpgUsegAttr

func (*SchemaTemplateAnpEpgUsegAttr) ToMap

func (schematemplateanpepgusegattr *SchemaTemplateAnpEpgUsegAttr) ToMap() (map[string]interface{}, error)

type SchemaTemplateExternalEPGSelector

type SchemaTemplateExternalEPGSelector struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaTemplateExternalEPGSelector

func NewSchemaTemplateExternalEPGSelector(ops, path string, extrepgSelectorMap map[string]interface{}) *SchemaTemplateExternalEPGSelector

func (*SchemaTemplateExternalEPGSelector) ToMap

func (schemaTempleteExtrEPGSelectorattr *SchemaTemplateExternalEPGSelector) ToMap() (map[string]interface{}, error)

type SchemaTemplateVrf

type SchemaTemplateVrf struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func (*SchemaTemplateVrf) ToMap

func (schematemplatevrfAttributes *SchemaTemplateVrf) ToMap() (map[string]interface{}, error)

type ServiceNodeTypeAttributes

type ServiceNodeTypeAttributes struct {
	Name        string `json:",omitempty"`
	DisplayName string `json:",omitempty"`
}

func (*ServiceNodeTypeAttributes) ToMap

func (typeAttributes *ServiceNodeTypeAttributes) ToMap() (map[string]interface{}, error)

type SiteAnp

type SiteAnp struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnp

func NewSchemaSiteAnp(ops, path string, anpRef map[string]interface{}) *SiteAnp

func (*SiteAnp) ToMap

func (externalepgAttributes *SiteAnp) ToMap() (map[string]interface{}, error)

type SiteAnpEpgStaticLeaf

type SiteAnpEpgStaticLeaf struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteAnpEpgStaticleaf

func NewSchemaSiteAnpEpgStaticleaf(ops, path, paths string, port int) *SiteAnpEpgStaticLeaf

func (*SiteAnpEpgStaticLeaf) ToMap

func (externalepgAttributes *SiteAnpEpgStaticLeaf) ToMap() (map[string]interface{}, error)

type SiteAnpEpgUsegAttr added in v1.3.8

type SiteAnpEpgUsegAttr struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func SiteAnpEpgUsegAttrForCreation added in v1.3.8

func SiteAnpEpgUsegAttrForCreation(useg *SiteUsegAttr) *SiteAnpEpgUsegAttr

func SiteAnpEpgUsegAttrforDeletion added in v1.3.8

func SiteAnpEpgUsegAttrforDeletion(useg *SiteUsegAttr, index int) *SiteAnpEpgUsegAttr

func SiteAnpEpgUsegAttrforUpdate added in v1.3.8

func SiteAnpEpgUsegAttrforUpdate(useg *SiteUsegAttr, index int) *SiteAnpEpgUsegAttr

func (*SiteAnpEpgUsegAttr) ToMap added in v1.3.8

func (useg *SiteAnpEpgUsegAttr) ToMap() (map[string]interface{}, error)

type SiteAttributes

type SiteAttributes struct {
	Name            string        `json:",omitempty"`
	ApicUsername    string        `json:",omitempty"`
	ApicPassword    string        `json:",omitempty"`
	ApicSiteId      string        `json:",omitempty"`
	Labels          []interface{} `json:",omitempty"`
	Location        *Location     `json:",omitempty"`
	Url             []interface{} `json:",omitempty"`
	Platform        string        `json:",omitempty"`
	CloudProviders  []interface{} `json:",omitempty"`
	MaintenanceMode bool          `json:",omitempty"`
	Domain          string        `json:",omitempty"`
	HasDomain       bool          `json:",omitempty"`
}

func NewSite

func NewSite(siteAttr SiteAttributes) *SiteAttributes

func (*SiteAttributes) ToMap

func (siteAttributes *SiteAttributes) ToMap() (map[string]interface{}, error)

type SiteBd

type SiteBd struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteBd

func NewSchemaSiteBd(ops, path, mac string, bdRef map[string]interface{}, host bool) *SiteBd

func (*SiteBd) ToMap

func (externalepgAttributes *SiteBd) ToMap() (map[string]interface{}, error)

type SiteContractServiceGraph

type SiteContractServiceGraph struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func (*SiteContractServiceGraph) ToMap

func (graphAttr *SiteContractServiceGraph) ToMap() (map[string]interface{}, error)

type SiteL3Out added in v1.3.1

type SiteL3Out struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func CreateIntersiteL3outsModel added in v1.3.1

func CreateIntersiteL3outsModel(l3out *IntersiteL3outs) *SiteL3Out

func DeleteIntersiteL3outsModel added in v1.3.1

func DeleteIntersiteL3outsModel(l3out *IntersiteL3outs) *SiteL3Out

func (*SiteL3Out) ToMap added in v1.3.1

func (l3out *SiteL3Out) ToMap() (map[string]interface{}, error)

type SiteUsegAttr added in v1.3.8

type SiteUsegAttr struct {
	SchemaID     string
	TemplateName string
	SiteID       string
	AnpName      string
	EpgName      string
	UsegName     string
	Description  string
	Type         string
	Operator     string
	Category     string
	Value        string
	FvSubnet     bool
}

func SiteAnpEpgUsegAttrFromContainer added in v1.3.8

func SiteAnpEpgUsegAttrFromContainer(cont *container.Container, tf *SiteUsegAttr) (*SiteUsegAttr, int, error)

type SiteVrf

type SiteVrf struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSchemaSiteVrf

func NewSchemaSiteVrf(ops, path string, vrfRef map[string]interface{}) *SiteVrf

func (*SiteVrf) ToMap

func (externalepgAttributes *SiteVrf) ToMap() (map[string]interface{}, error)

type TemplateAnpEpg

type TemplateAnpEpg struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateAnpEpg

func NewTemplateAnpEpg(ops, path, name, displayName, intraEpg, epgType, description string, uSegEpg, intersiteMulticasteSource, preferredGroup, proxyArp bool, vrfRef, bdRef, cloudServiceEpgConfig map[string]interface{}) *TemplateAnpEpg

func (*TemplateAnpEpg) ToMap

func (anpAttributes *TemplateAnpEpg) ToMap() (map[string]interface{}, error)

type TemplateAnpEpgContract

type TemplateAnpEpgContract struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateAnpEpgContract

func NewTemplateAnpEpgContract(ops, path string, contractRef map[string]interface{}, relationshipType string) *TemplateAnpEpgContract

func (*TemplateAnpEpgContract) ToMap

func (bdAttributes *TemplateAnpEpgContract) ToMap() (map[string]interface{}, error)

type TemplateBD

type TemplateBD struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

type TemplateBDDHCPPolicy added in v1.3.1

type TemplateBDDHCPPolicy struct {
	Name              string
	Version           int
	DHCPOptionName    string
	DHCPOptionVersion int
	BDName            string
	TemplateName      string
	SchemaID          string
}

func TemplateBDDHCPPolicyFromContainer added in v1.3.1

func TemplateBDDHCPPolicyFromContainer(cont *container.Container, tf *TemplateBDDHCPPolicy) (*TemplateBDDHCPPolicy, error)

type TemplateBDDHCPPolicyOps added in v1.3.1

type TemplateBDDHCPPolicyOps struct {
	Ops   string                 `json:"op,omitempty"`
	Path  string                 `json:"path,omitempty"`
	Value map[string]interface{} `json:"value,omitempty"`
}

func TemplateBDDHCPPolicyModelForCreation added in v1.3.1

func TemplateBDDHCPPolicyModelForCreation(bdDHCPPol *TemplateBDDHCPPolicy) *TemplateBDDHCPPolicyOps

func TemplateBDDHCPPolicyModelForDeletion added in v1.3.1

func TemplateBDDHCPPolicyModelForDeletion(bdDHCPPol *TemplateBDDHCPPolicy) *TemplateBDDHCPPolicyOps

func TemplateBDDHCPPolicyModelForUpdate added in v1.3.1

func TemplateBDDHCPPolicyModelForUpdate(bdDHCPPol *TemplateBDDHCPPolicy) *TemplateBDDHCPPolicyOps

func (*TemplateBDDHCPPolicyOps) ToMap added in v1.3.1

func (templateBDDHCPPolicyOps *TemplateBDDHCPPolicyOps) ToMap() (map[string]interface{}, error)

type TemplateBDSubnet

type TemplateBDSubnet struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateBDSubnet

func NewTemplateBDSubnet(ops, path, ip, desc, scope string, shared, noDefaultGateway, querier, primary, virtual bool) *TemplateBDSubnet

func (*TemplateBDSubnet) ToMap

func (bdAttributes *TemplateBDSubnet) ToMap() (map[string]interface{}, error)

type TemplateContract

type TemplateContract struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateContract

func NewTemplateContract(ops, path, name, displayName, scope, filterType, targetDscp, priority, desc string, filterRelationships, filterRelationshipsProviderToConsumer, filterRelationshipsConsumerToProvider []interface{}) *TemplateContract

func (*TemplateContract) ToMap

func (anpAttributes *TemplateContract) ToMap() (map[string]interface{}, error)

type TemplateContractServiceGraph

type TemplateContractServiceGraph struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func (*TemplateContractServiceGraph) ToMap

func (graphAttr *TemplateContractServiceGraph) ToMap() (map[string]interface{}, error)

type TemplateExternalepg

type TemplateExternalepg struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewSiteContractServiceGraph

func NewSiteContractServiceGraph(ops, path string, serviceGraph map[string]interface{}, nodeRelation []interface{}) *TemplateExternalepg

func NewTemplateContractServiceGraph

func NewTemplateContractServiceGraph(ops, path string, serviceGraph map[string]interface{}, nodeRelation []interface{}) *TemplateExternalepg

func NewTemplateExternalepg

func NewTemplateExternalepg(ops, path, name, displayName, externalEpgType, desc string, preferredGroup bool, vrfRef map[string]interface{}, l3outRef map[string]interface{}, anpRef map[string]interface{}, selector []interface{}) *TemplateExternalepg

func (*TemplateExternalepg) ToMap

func (externalepgAttributes *TemplateExternalepg) ToMap() (map[string]interface{}, error)

type TemplateFilterEntry

type TemplateFilterEntry struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateFilter

func NewTemplateFilter(ops, path, filterName, filterDisplayName string, entries []interface{}) *TemplateFilterEntry

func NewTemplateFilterEntry

func NewTemplateFilterEntry(ops, path, entryName, entryDisplayName, entryDescription, etherType, arpFlag, ipProtocol, sourceFrom, sourceTo, destinationFrom, destinationTo string, matchOnlyFragments, stateful bool, tcpSessionRules []interface{}) *TemplateFilterEntry

func (*TemplateFilterEntry) ToMap

func (anpAttributes *TemplateFilterEntry) ToMap() (map[string]interface{}, error)

type TemplateL3out

type TemplateL3out struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateL3out

func NewTemplateL3out(ops, path, name, displayName, desc string, vrfRef map[string]interface{}) *TemplateL3out

func (*TemplateL3out) ToMap

func (l3outAttributes *TemplateL3out) ToMap() (map[string]interface{}, error)

type TemplateServiceGraph

type TemplateServiceGraph struct {
	Ops   string `json:",omitempty"`
	Path  string `json:",omitempty"`
	Value map[string]interface{}
}

func NewTemplateServiceGraph

func NewTemplateServiceGraph(ops, path string, graphRef map[string]interface{}) *TemplateServiceGraph

func (*TemplateServiceGraph) ToMap

func (graphAttributes *TemplateServiceGraph) ToMap() (map[string]interface{}, error)

type TemplateServiceGraphUpdate

type TemplateServiceGraphUpdate struct {
	Ops   string `json:",omitempty"`
	Path  string `json:",omitempty"`
	Value interface{}
}

func NewTemplateServiceGraphUpdate

func NewTemplateServiceGraphUpdate(ops, path string, graphRef interface{}) *TemplateServiceGraphUpdate

func (*TemplateServiceGraphUpdate) ToMap

func (graphAttributes *TemplateServiceGraphUpdate) ToMap() (map[string]interface{}, error)

type TemplateVRFContract

type TemplateVRFContract struct {
	Ops   string                 `json:",omitempty"`
	Path  string                 `json:",omitempty"`
	Value map[string]interface{} `json:",omitempty"`
}

func NewTemplateVRFContract

func NewTemplateVRFContract(ops, path string, contractRef map[string]interface{}) *TemplateVRFContract

func (*TemplateVRFContract) ToMap

func (vrfConAttributes *TemplateVRFContract) ToMap() (map[string]interface{}, error)

type TenantAttributes

type TenantAttributes struct {
	Name        string        `json:",omitempty"`
	DisplayName string        `json:",omitempty"`
	Description string        `json:",omitempty"`
	Users       []interface{} `json:",omitempty"`
	Sites       []interface{} `json:",omitempty"`
}

func NewTenant

func NewTenant(tenantAttr TenantAttributes) *TenantAttributes

func (*TenantAttributes) ToMap

func (tenantAttributes *TenantAttributes) ToMap() (map[string]interface{}, error)

type User

type User struct {
	Id           string `json:",omitempty"`
	User         string `json:",omitempty"`
	UserPassword string `json:",omitempty"`

	FirstName string `json:",omitempty"`

	LastName      string        `json:",omitempty"`
	Email         string        `json:",omitempty"`
	Phone         string        `json:",omitempty"`
	AccountStatus string        `json:",omitempty"`
	Domain        string        `json:",omitempty"`
	Roles         []interface{} `json:",omitempty"`
}

func NewUser

func NewUser(id, user, userPassword, firstName, lastName, email, phone, accountStatus, domain string, roles []interface{}) *User

func (*User) ToMap

func (user *User) ToMap() (map[string]interface{}, error)

Source Files

Jump to

Keyboard shortcuts

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