|
| 1 | +package models |
| 2 | + |
| 3 | +import "encoding/xml" |
| 4 | + |
| 5 | +// XBResourceList represents the DownloadXML data for a resource |
| 6 | +type XBResourceList struct { |
| 7 | + XMLName xml.Name `xml:"XBResourceList"` |
| 8 | + Text string `xml:",chardata"` |
| 9 | + XBResource []struct { |
| 10 | + Text string `xml:",chardata"` |
| 11 | + Protocol string `xml:"protocol"` |
| 12 | + TypeSIPgw struct { |
| 13 | + Text string `xml:",chardata"` |
| 14 | + PortAddress string `xml:"portAddress"` |
| 15 | + ServiceState string `xml:"serviceState"` |
| 16 | + Direction string `xml:"direction"` |
| 17 | + NAT string `xml:"NAT"` |
| 18 | + AllowDirectMedia string `xml:"allowDirectMedia"` |
| 19 | + SipProfileIndex string `xml:"sipProfileIndex"` |
| 20 | + OptionPoll string `xml:"optionPoll"` |
| 21 | + AuthorizedRPS string `xml:"authorizedRPS"` |
| 22 | + UnauthorizedRPS string `xml:"unauthorizedRPS"` |
| 23 | + } `xml:"typeSIPgw"` |
| 24 | + Name string `xml:"name"` |
| 25 | + CompanyName string `xml:"companyName"` |
| 26 | + TrunkId string `xml:"trunkId"` |
| 27 | + SgId string `xml:"sgId"` |
| 28 | + Capacity string `xml:"capacity"` |
| 29 | + CpsLimit string `xml:"cpsLimit"` |
| 30 | + Node struct { |
| 31 | + Text string `xml:",chardata"` |
| 32 | + Fqdn string `xml:"fqdn"` |
| 33 | + Netmask string `xml:"netmask"` |
| 34 | + Capacity string `xml:"capacity"` |
| 35 | + CpsLimit string `xml:"cpsLimit"` |
| 36 | + CacProfileId string `xml:"cacProfileId"` |
| 37 | + } `xml:"node"` |
| 38 | + Rtid string `xml:"rtid"` |
| 39 | + Ingress1 struct { |
| 40 | + Text string `xml:",chardata"` |
| 41 | + Match string `xml:"match"` |
| 42 | + Action1 string `xml:"action1"` |
| 43 | + Digits1 string `xml:"digits1"` |
| 44 | + Action2 string `xml:"action2"` |
| 45 | + Digits2 string `xml:"digits2"` |
| 46 | + } `xml:"ingress1"` |
| 47 | + Ingress2 struct { |
| 48 | + Text string `xml:",chardata"` |
| 49 | + Match string `xml:"match"` |
| 50 | + Action1 string `xml:"action1"` |
| 51 | + Digits1 string `xml:"digits1"` |
| 52 | + Action2 string `xml:"action2"` |
| 53 | + Digits2 string `xml:"digits2"` |
| 54 | + } `xml:"ingress2"` |
| 55 | + Egress1 struct { |
| 56 | + Text string `xml:",chardata"` |
| 57 | + Match string `xml:"match"` |
| 58 | + Action1 string `xml:"action1"` |
| 59 | + Digits1 string `xml:"digits1"` |
| 60 | + Action2 string `xml:"action2"` |
| 61 | + Digits2 string `xml:"digits2"` |
| 62 | + } `xml:"egress1"` |
| 63 | + Egress2 struct { |
| 64 | + Text string `xml:",chardata"` |
| 65 | + Match string `xml:"match"` |
| 66 | + Action1 string `xml:"action1"` |
| 67 | + Digits1 string `xml:"digits1"` |
| 68 | + Action2 string `xml:"action2"` |
| 69 | + Digits2 string `xml:"digits2"` |
| 70 | + } `xml:"egress2"` |
| 71 | + OutboundANI string `xml:"outboundANI"` |
| 72 | + TechPrefix string `xml:"techPrefix"` |
| 73 | + RnIngress1 struct { |
| 74 | + Text string `xml:",chardata"` |
| 75 | + Match string `xml:"match"` |
| 76 | + Action1 string `xml:"action1"` |
| 77 | + Digits1 string `xml:"digits1"` |
| 78 | + Action2 string `xml:"action2"` |
| 79 | + Digits2 string `xml:"digits2"` |
| 80 | + } `xml:"rnIngress1"` |
| 81 | + RnIngress2 struct { |
| 82 | + Text string `xml:",chardata"` |
| 83 | + Match string `xml:"match"` |
| 84 | + Action1 string `xml:"action1"` |
| 85 | + Digits1 string `xml:"digits1"` |
| 86 | + Action2 string `xml:"action2"` |
| 87 | + Digits2 string `xml:"digits2"` |
| 88 | + } `xml:"rnIngress2"` |
| 89 | + RnEgress1 struct { |
| 90 | + Text string `xml:",chardata"` |
| 91 | + Match string `xml:"match"` |
| 92 | + Action1 string `xml:"action1"` |
| 93 | + Digits1 string `xml:"digits1"` |
| 94 | + Action2 string `xml:"action2"` |
| 95 | + Digits2 string `xml:"digits2"` |
| 96 | + } `xml:"rnEgress1"` |
| 97 | + RnEgress2 struct { |
| 98 | + Text string `xml:",chardata"` |
| 99 | + Match string `xml:"match"` |
| 100 | + Action1 string `xml:"action1"` |
| 101 | + Digits1 string `xml:"digits1"` |
| 102 | + Action2 string `xml:"action2"` |
| 103 | + Digits2 string `xml:"digits2"` |
| 104 | + } `xml:"rnEgress2"` |
| 105 | + CodecPolicy string `xml:"codecPolicy"` |
| 106 | + GroupPolicy string `xml:"groupPolicy"` |
| 107 | + Dtid string `xml:"dtid"` |
| 108 | + T38 string `xml:"t38"` |
| 109 | + Rfc2833 string `xml:"rfc2833"` |
| 110 | + PayloadType string `xml:"payloadType"` |
| 111 | + Tos string `xml:"tos"` |
| 112 | + SvcPortIndex string `xml:"svcPortIndex"` |
| 113 | + RadiusAuthGrpIndex string `xml:"radiusAuthGrpIndex"` |
| 114 | + RadiusAcctGrpIndex string `xml:"radiusAcctGrpIndex"` |
| 115 | + LnpGrpIndex string `xml:"lnpGrpIndex"` |
| 116 | + TeleblockGrpIndex string `xml:"teleblockGrpIndex"` |
| 117 | + CnamGrpIndex string `xml:"cnamGrpIndex"` |
| 118 | + ErsGrpIndex string `xml:"ersGrpIndex"` |
| 119 | + MaxCallDuration string `xml:"maxCallDuration"` |
| 120 | + MinCallDuration string `xml:"minCallDuration"` |
| 121 | + NoAnswerTimeout string `xml:"noAnswerTimeout"` |
| 122 | + NoRingTimeout string `xml:"noRingTimeout"` |
| 123 | + CauseCodeProfile string `xml:"causeCodeProfile"` |
| 124 | + StopRouteProfile string `xml:"stopRouteProfile"` |
| 125 | + PaiAction string `xml:"paiAction"` |
| 126 | + PaiString string `xml:"paiString"` |
| 127 | + InheritedGenericHeader string `xml:"inheritedGenericHeader"` |
| 128 | + OutSMCProfileId string `xml:"outSMCProfileId"` |
| 129 | + } `xml:"XBResource"` |
| 130 | +} |
0 commit comments