582453f2081fc046e4c28db2980e9f229722d654
[ric-plt/e2mgr.git] / E2Manager / models / e2_reset_request.go
1 //
2 // Copyright 2022 Samsung Electronics Co.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15
16 //  This source code is part of the near-RT RIC (RAN Intelligent Controller)
17 //  platform project (RICP).
18
19 package models
20
21 import (
22         "encoding/xml"
23 )
24
25 type E2ResetRequestMessage struct {
26         XMLName xml.Name `xml:"E2ResetRequestMessage"`
27         Text    string   `xml:",chardata"`
28         E2APPDU struct {
29                 XMLName           xml.Name `xml:"E2AP-PDU"`
30                 Text              string   `xml:",chardata"`
31                 InitiatingMessage struct {
32                         Text          string `xml:",chardata"`
33                         ProcedureCode string `xml:"procedureCode"`
34                         Criticality   struct {
35                                 Text   string `xml:",chardata"`
36                                 Reject string `xml:"reject"`
37                         } `xml:"criticality"`
38                         Value struct {
39                                 Text         string `xml:",chardata"`
40                                 ResetRequest struct {
41                                         Text        string `xml:",chardata"`
42                                         ProtocolIEs struct {
43                                                 Text            string `xml:",chardata"`
44                                                 ResetRequestIEs []struct {
45                                                         Text        string `xml:",chardata"`
46                                                         ID          string `xml:"id"`
47                                                         Criticality struct {
48                                                                 Text   string `xml:",chardata"`
49                                                                 Ignore string `xml:"ignore"`
50                                                         } `xml:"criticality"`
51                                                         Value struct {
52                                                                 Text          string            `xml:",chardata"`
53                                                                 TransactionID string            `xml:"TransactionID"`
54                                                                 Cause         CauseResetRequest `xml:"Cause"`
55                                                         } `xml:"value"`
56                                                 } `xml:"ResetRequestIEs"`
57                                         } `xml:"protocolIEs"`
58                                 } `xml:"ResetRequest"`
59                         } `xml:"value"`
60                 } `xml:"initiatingMessage"`
61         } `xml:"E2AP-PDU"`
62 }
63
64 type CauseResetRequest struct {
65         Text       string     `xml:",chardata"`
66         E2Node     E2Node     `xml:"e2Node"`
67         RicRequest RicRequest `xml:"ricRequest"`
68         Misc       Misc       `xml:"misc"`
69         Protocol   Protocol   `xml:"protocol"`
70         Transport  Transport  `xml:"transport"`
71         RicService RicService `xml:"ricService"`
72 }
73
74 type E2Node struct {
75         Text                   string    `xml:",chardata"`
76         E2nodeComponentUnknown *struct{} `xml:"e2node-component-unknown"`
77 }
78
79 type RicRequest struct {
80         Text                                       string    `xml:",chardata"`
81         RanFunctionIDInvalid                       *struct{} `xml:"ran-function-id-invalid"`
82         ActionNotSupported                         *struct{} `xml:"action-not-supported"`
83         ExcessiveActions                           *struct{} `xml:"excessive-actions"`
84         DuplicateAction                            *struct{} `xml:"duplicate-action"`
85         DuplicateEventTrigger                      *struct{} `xml:"duplicate-event-trigger"`
86         FunctionResourceLimit                      *struct{} `xml:"function-resource-limit"`
87         RequestIDUnknown                           *struct{} `xml:"request-id-unknown"`
88         InconsistentActionSubsequentActionSequence *struct{} `xml:"inconsistent-action-subsequent-action-sequence"`
89         ControlMessageInvalid                      *struct{} `xml:"control-message-invalid"`
90         RicCallProcessIDInvalid                    *struct{} `xml:"ric-call-process-id-invalid"`
91         ControlTimerExpired                        *struct{} `xml:"control-timer-expired"`
92         ControlFailedToExecute                     *struct{} `xml:"control-failed-to-execute"`
93         SystemNotReady                             *struct{} `xml:"system-not-ready"`
94         Unspecified                                *struct{} `xml:"unspecified"`
95 }
96
97 type Misc struct {
98         Text                      string    `xml:",chardata"`
99         ControlProcessingOverload *struct{} `xml:"control-processing-overload"`
100         HardwareFailure           *struct{} `xml:"hardware-failure"`
101         OmIntervention            *struct{} `xml:"om-intervention"`
102         Unspecified               *struct{} `xml:"unspecified"`
103 }
104
105 type Protocol struct {
106         Text                                         string    `xml:",chardata"`
107         TransferSyntaxError                          *struct{} `xml:"transfer-syntax-error"`
108         AbstractSyntaxErrorReject                    *struct{} `xml:"abstract-syntax-error-reject"`
109         AbstractSyntaxErrorIgnoreAndNotify           *struct{} `xml:"abstract-syntax-error-ignore-and-notify"`
110         MessageNotCompatibleWithReceiverState        *struct{} `xml:"message-not-compatible-with-receiver-state"`
111         SemanticError                                *struct{} `xml:"semantic-error"`
112         AbstractSyntaxErrorFalselyConstructedMessage *struct{} `xml:"abstract-syntax-error-falsely-constructed-message"`
113         Unspecified                                  *struct{} `xml:"unspecified"`
114 }
115
116 type Transport struct {
117         Text                         string    `xml:",chardata"`
118         Unspecified                  *struct{} `xml:"unspecified"`
119         TransportResourceUnavailable *struct{} `xml:"transport-resource-unavailable"`
120 }
121
122 type RicService struct {
123         Text                    string    `xml:",chardata"`
124         RanFunctionNotSupported *struct{} `xml:"ran-function-not-supported"`
125         ExcessiveFunctions      *struct{} `xml:"excessive-functions"`
126         RicResourceLimit        *struct{} `xml:"ric-resource-limit"`
127 }