A1-Simulator - Align with OSC Near-RT-RIC A1 Mediator
[sim/a1-interface.git] / near-rt-ric-simulator / src / OSC_2.1.0 / models / enforceStatus.py
1 # coding: utf-8
2
3 from __future__ import absolute_import
4 from datetime import date, datetime  # noqa: F401
5
6 from typing import List, Dict  # noqa: F401
7
8
9 class EnforceStatus():
10
11     def __init__(self, enforce_status: str=None, enforce_reason: str=None):  # noqa: E501
12         """EnforceStatus
13
14         :param enforce_status: The enforce_status of this EnforceStatus.  # noqa: E501
15         :type enforce_status: str
16         :param enforce_reason: The enforce_reason of this EnforceStatus.  # noqa: E501
17         :type enforce_reason: str
18         """
19         self._enforce_status = enforce_status
20         self._enforce_reason = enforce_reason
21
22     @property
23     def enforce_status(self) -> str:
24         """Gets the enforce_status of this EnforceStatus.
25
26         :return: The enforce_status of this EnforceStatus.
27         :rtype: str
28         """
29         return self._enforce_status
30
31     @enforce_status.setter
32     def enforce_status(self, enforce_status: str):
33         """Sets the enforce_status of this EnforceStatus.
34
35         :param enforce_status: The enforce_status of this EnforceStatus.
36         :type enforce_status: str
37         """
38         allowed_values = ["ENFORCED", "NOT_ENFORCED"]  # noqa: E501
39         if enforce_status not in allowed_values:
40             raise ValueError(
41                 "Invalid value for `enforce_status` ({0}), must be one of {1}"
42                 .format(enforce_status, allowed_values)
43             )
44
45         self._enforce_status = enforce_status
46
47     @property
48     def enforce_reason(self) -> str:
49         """Gets the enforce_reason of this EnforceStatus.
50
51         :return: The enforce_reason of this EnforceStatus.
52         :rtype: str
53         """
54         return self._enforce_reason
55
56     @enforce_reason.setter
57     def enforce_reason(self, enforce_reason: str):
58         """Sets the enforce_reason of this EnforceStatus.
59
60         :param enforce_reason: The enforce_reason of this EnforceStatus.
61         :type enforce_reason: str
62         """
63         allowed_values = ["SCOPE_NOT_APPLICABLE", "STATEMENT_NOT_APPLICABLE", "OTHER_REASON"]  # noqa: E501
64         if enforce_reason not in allowed_values:
65             raise ValueError(
66                 "Invalid value for `enforce_reason` ({0}), must be one of {1}"
67                 .format(enforce_reason, allowed_values)
68             )
69
70         self._enforce_reason = enforce_reason
71
72     def to_dict(self):
73         """Returns the model properties as a dict
74
75         :rtype: dict
76         """
77         result = {
78             'enforceStatus': self._enforce_status, 
79             'enforceReason': self._enforce_reason
80         }
81         return result