RIC-642 related changes: REST subscription, rnib enhancements, symptomdata, rest...
[ric-plt/xapp-frame-py.git] / ricxappframe / subsclient / models / subscription_params_e2_subscription_directives.py
1 # coding: utf-8
2
3 """
4     RIC subscription
5
6     This is the initial REST API for RIC subscription  # noqa: E501
7
8     OpenAPI spec version: 0.0.4
9     
10     Generated by: https://github.com/swagger-api/swagger-codegen.git
11 """
12
13
14 import pprint
15 import re  # noqa: F401
16
17 import six
18
19 from ricxappframe.subsclient.configuration import Configuration
20
21
22 class SubscriptionParamsE2SubscriptionDirectives(object):
23     """NOTE: This class is auto generated by the swagger code generator program.
24
25     Do not edit the class manually.
26     """
27
28     """
29     Attributes:
30       swagger_types (dict): The key is attribute name
31                             and the value is attribute type.
32       attribute_map (dict): The key is attribute name
33                             and the value is json key in definition.
34     """
35     swagger_types = {
36         'e2_timeout_timer_value': 'int',
37         'e2_retry_count': 'int',
38         'rmr_routing_needed': 'bool'
39     }
40
41     attribute_map = {
42         'e2_timeout_timer_value': 'E2TimeoutTimerValue',
43         'e2_retry_count': 'E2RetryCount',
44         'rmr_routing_needed': 'RMRRoutingNeeded'
45     }
46
47     def __init__(self, e2_timeout_timer_value=None, e2_retry_count=None, rmr_routing_needed=None, _configuration=None):  # noqa: E501
48         """SubscriptionParamsE2SubscriptionDirectives - a model defined in Swagger"""  # noqa: E501
49         if _configuration is None:
50             _configuration = Configuration()
51         self._configuration = _configuration
52
53         self._e2_timeout_timer_value = None
54         self._e2_retry_count = None
55         self._rmr_routing_needed = None
56         self.discriminator = None
57
58         if e2_timeout_timer_value is not None:
59             self.e2_timeout_timer_value = e2_timeout_timer_value
60         if e2_retry_count is not None:
61             self.e2_retry_count = e2_retry_count
62         if rmr_routing_needed is not None:
63             self.rmr_routing_needed = rmr_routing_needed
64
65     @property
66     def e2_timeout_timer_value(self):
67         """Gets the e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
68
69         How long time response is waited from E2 node  # noqa: E501
70
71         :return: The e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
72         :rtype: int
73         """
74         return self._e2_timeout_timer_value
75
76     @e2_timeout_timer_value.setter
77     def e2_timeout_timer_value(self, e2_timeout_timer_value):
78         """Sets the e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives.
79
80         How long time response is waited from E2 node  # noqa: E501
81
82         :param e2_timeout_timer_value: The e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
83         :type: int
84         """
85         if (self._configuration.client_side_validation and
86                 e2_timeout_timer_value is not None and e2_timeout_timer_value > 10):  # noqa: E501
87             raise ValueError("Invalid value for `e2_timeout_timer_value`, must be a value less than or equal to `10`")  # noqa: E501
88         if (self._configuration.client_side_validation and
89                 e2_timeout_timer_value is not None and e2_timeout_timer_value < 1):  # noqa: E501
90             raise ValueError("Invalid value for `e2_timeout_timer_value`, must be a value greater than or equal to `1`")  # noqa: E501
91
92         self._e2_timeout_timer_value = e2_timeout_timer_value
93
94     @property
95     def e2_retry_count(self):
96         """Gets the e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
97
98         How many times E2 subscription request is retried  # noqa: E501
99
100         :return: The e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
101         :rtype: int
102         """
103         return self._e2_retry_count
104
105     @e2_retry_count.setter
106     def e2_retry_count(self, e2_retry_count):
107         """Sets the e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives.
108
109         How many times E2 subscription request is retried  # noqa: E501
110
111         :param e2_retry_count: The e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
112         :type: int
113         """
114         if (self._configuration.client_side_validation and
115                 e2_retry_count is not None and e2_retry_count > 10):  # noqa: E501
116             raise ValueError("Invalid value for `e2_retry_count`, must be a value less than or equal to `10`")  # noqa: E501
117         if (self._configuration.client_side_validation and
118                 e2_retry_count is not None and e2_retry_count < 0):  # noqa: E501
119             raise ValueError("Invalid value for `e2_retry_count`, must be a value greater than or equal to `0`")  # noqa: E501
120
121         self._e2_retry_count = e2_retry_count
122
123     @property
124     def rmr_routing_needed(self):
125         """Gets the rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
126
127         Subscription needs RMR route from E2Term to xApp  # noqa: E501
128
129         :return: The rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
130         :rtype: bool
131         """
132         return self._rmr_routing_needed
133
134     @rmr_routing_needed.setter
135     def rmr_routing_needed(self, rmr_routing_needed):
136         """Sets the rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives.
137
138         Subscription needs RMR route from E2Term to xApp  # noqa: E501
139
140         :param rmr_routing_needed: The rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives.  # noqa: E501
141         :type: bool
142         """
143
144         self._rmr_routing_needed = rmr_routing_needed
145
146     def to_dict(self):
147         """Returns the model properties as a dict"""
148         result = {}
149
150         for attr, _ in six.iteritems(self.swagger_types):
151             value = getattr(self, attr)
152             if isinstance(value, list):
153                 result[attr] = list(map(
154                     lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
155                     value
156                 ))
157             elif hasattr(value, "to_dict"):
158                 result[attr] = value.to_dict()
159             elif isinstance(value, dict):
160                 result[attr] = dict(map(
161                     lambda item: (item[0], item[1].to_dict())
162                     if hasattr(item[1], "to_dict") else item,
163                     value.items()
164                 ))
165             else:
166                 result[attr] = value
167         if issubclass(SubscriptionParamsE2SubscriptionDirectives, dict):
168             for key, value in self.items():
169                 result[key] = value
170
171         return result
172
173     def to_str(self):
174         """Returns the string representation of the model"""
175         return pprint.pformat(self.to_dict())
176
177     def __repr__(self):
178         """For `print` and `pprint`"""
179         return self.to_str()
180
181     def __eq__(self, other):
182         """Returns true if both objects are equal"""
183         if not isinstance(other, SubscriptionParamsE2SubscriptionDirectives):
184             return False
185
186         return self.to_dict() == other.to_dict()
187
188     def __ne__(self, other):
189         """Returns true if both objects are not equal"""
190         if not isinstance(other, SubscriptionParamsE2SubscriptionDirectives):
191             return True
192
193         return self.to_dict() != other.to_dict()