a0a35f806ba95064fa1a16d2127e547fd021c4b7
[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 type E2ResetRequestMessage struct {
22         E2ApPDU E2ApPDU `xml:"E2AP-PDU"`
23 }
24
25 type E2ApPDU struct {
26         InitiatingMessage InitiatingMessageY `xml:"initiatingMessage"`
27 }
28
29 type InitiatingMessageY struct {
30         ProcedureCode int64                        `xml:"procedureCode"`
31         Criticality   InitiatingMessageCriticality `xml:"criticality"`
32         Value         InitiatingMessageValue       `xml:"value"`
33 }
34
35 type InitiatingMessageCriticality struct {
36         Reject string `xml:"reject"`
37 }
38
39 type InitiatingMessageValue struct {
40         E2ResetRequest E2ResetRequest `xml:"ResetRequest"`
41 }
42
43 type E2ResetRequest struct {
44         ProtocolIes ProtocolIes `xml:"protocolIEs"`
45 }
46
47 type ProtocolIes struct {
48         ResetRequestIEs []ResetRequestIEs `xml:"ResetRequestIEs"`
49 }
50
51 type ResetRequestIEs struct {
52         ID          int64                   `xml:"id"`
53         Criticality ResetRequestCriticality `xml:"criticality"`
54         Value       ResetRequestValue       `xml:"value"`
55 }
56
57 type ResetRequestCriticality struct {
58         Ignore string `xml:"ignore"`
59 }
60
61 type ResetRequestValue struct {
62         TransactionID *int64             `xml:"TransactionID"`
63         Cause         *CauseResetRequest `xml:"Cause"`
64 }
65
66 type CauseResetRequest struct {
67         Text       string     `xml:",chardata"`
68         E2Node     E2Node     `xml:"e2Node"`
69         RicRequest RicRequest `xml:"ricRequest"`
70         Misc       Misc       `xml:"misc"`
71         Protocol   Protocol   `xml:"protocol"`
72         Transport  Transport  `xml:"transport"`
73         RicService RicService `xml:"ricService"`
74 }
75
76 type E2Node struct {
77         Text                   string    `xml:",chardata"`
78         E2nodeComponentUnknown *struct{} `xml:"e2node-component-unknown"`
79 }
80
81 type RicRequest struct {
82         Text                                       string    `xml:",chardata"`
83         RanFunctionIDInvalid                       *struct{} `xml:"ran-function-id-invalid"`
84         ActionNotSupported                         *struct{} `xml:"action-not-supported"`
85         ExcessiveActions                           *struct{} `xml:"excessive-actions"`
86         DuplicateAction                            *struct{} `xml:"duplicate-action"`
87         DuplicateEventTrigger                      *struct{} `xml:"duplicate-event-trigger"`
88         FunctionResourceLimit                      *struct{} `xml:"function-resource-limit"`
89         RequestIDUnknown                           *struct{} `xml:"request-id-unknown"`
90         InconsistentActionSubsequentActionSequence *struct{} `xml:"inconsistent-action-subsequent-action-sequence"`
91         ControlMessageInvalid                      *struct{} `xml:"control-message-invalid"`
92         RicCallProcessIDInvalid                    *struct{} `xml:"ric-call-process-id-invalid"`
93         ControlTimerExpired                        *struct{} `xml:"control-timer-expired"`
94         ControlFailedToExecute                     *struct{} `xml:"control-failed-to-execute"`
95         SystemNotReady                             *struct{} `xml:"system-not-ready"`
96         Unspecified                                *struct{} `xml:"unspecified"`
97 }
98
99 type Misc struct {
100         Text                      string    `xml:",chardata"`
101         ControlProcessingOverload *struct{} `xml:"control-processing-overload"`
102         HardwareFailure           *struct{} `xml:"hardware-failure"`
103         OmIntervention            *struct{} `xml:"om-intervention"`
104         Unspecified               *struct{} `xml:"unspecified"`
105 }
106
107 type Protocol struct {
108         Text                                         string    `xml:",chardata"`
109         TransferSyntaxError                          *struct{} `xml:"transfer-syntax-error"`
110         AbstractSyntaxErrorReject                    *struct{} `xml:"abstract-syntax-error-reject"`
111         AbstractSyntaxErrorIgnoreAndNotify           *struct{} `xml:"abstract-syntax-error-ignore-and-notify"`
112         MessageNotCompatibleWithReceiverState        *struct{} `xml:"message-not-compatible-with-receiver-state"`
113         SemanticError                                *struct{} `xml:"semantic-error"`
114         AbstractSyntaxErrorFalselyConstructedMessage *struct{} `xml:"abstract-syntax-error-falsely-constructed-message"`
115         Unspecified                                  *struct{} `xml:"unspecified"`
116 }
117
118 type Transport struct {
119         Text                         string    `xml:",chardata"`
120         Unspecified                  *struct{} `xml:"unspecified"`
121         TransportResourceUnavailable *struct{} `xml:"transport-resource-unavailable"`
122 }
123
124 type RicService struct {
125         Text                    string    `xml:",chardata"`
126         RanFunctionNotSupported *struct{} `xml:"ran-function-not-supported"`
127         ExcessiveFunctions      *struct{} `xml:"excessive-functions"`
128         RicResourceLimit        *struct{} `xml:"ric-resource-limit"`
129 }