66 lines
1.5 KiB
Go
66 lines
1.5 KiB
Go
package cmschema
|
|
|
|
// FileHeader ...
|
|
type FileHeader struct {
|
|
TimeStamp string `xml:"TimeStamp"`
|
|
TimeZone string `xml:"TimeZone"`
|
|
VendorName string `xml:"VendorName"`
|
|
ElementType string `xml:"ElementType"`
|
|
CmVersion string `xml:"CmVersion"`
|
|
}
|
|
|
|
// N ...
|
|
type N struct {
|
|
IAttr int `xml:"i,attr"`
|
|
Value string `xml:",chardata"`
|
|
}
|
|
|
|
// FieldName ...
|
|
type FieldName struct {
|
|
N []N `xml:"N"`
|
|
}
|
|
|
|
// V ...
|
|
type V struct {
|
|
IAttr int `xml:"i,attr"`
|
|
Value string `xml:",chardata"`
|
|
}
|
|
|
|
// Object ...
|
|
type Object struct {
|
|
RmUIDAttr string `xml:"rmUID,attr"`
|
|
DnAttr string `xml:"Dn,attr,omitempty"`
|
|
UserLabelAttr string `xml:"UserLabel,attr,omitempty"`
|
|
PVFlagAttr string `xml:"PVFlag,attr"`
|
|
VMIDAttr string `xml:"VMID,attr,omitempty"`
|
|
VNFInstanceIDAttr string `xml:"VNFInstanceID,attr,omitempty"`
|
|
V []V `xml:"V"`
|
|
}
|
|
|
|
// FieldValue ...
|
|
type FieldValue struct {
|
|
Object []Object `xml:"Object"`
|
|
}
|
|
|
|
// Objects ...
|
|
type ObjectData struct {
|
|
ObjectType string `xml:"ObjectType"`
|
|
FieldName FieldName `xml:"FieldName"`
|
|
FieldValue FieldValue `xml:"FieldValue"`
|
|
}
|
|
|
|
// DataFile ...
|
|
type DataFile struct {
|
|
FileHeader FileHeader `xml:"FileHeader"`
|
|
//Objects []Objects `xml:"Objects"`
|
|
ObjectData ObjectData `xml:"objectData"`
|
|
XsiAttr string `xml:"xmlns:xsi,attr"`
|
|
XsiLoc string `xml:"xsi:noNamespaceSchemaLocation,attr"`
|
|
}
|
|
|
|
// NRM xml file
|
|
type NRMXmlFile struct {
|
|
Header string `xml:"Header"`
|
|
DataFile DataFile `xml:"xmlns:xsi"`
|
|
}
|