6 This is the initial REST API for RIC subscription # noqa: E501
8 OpenAPI spec version: 0.0.4
10 Generated by: https://github.com/swagger-api/swagger-codegen.git
15 import re # noqa: F401
19 from ricxappframe.subsclient.configuration import Configuration
22 class SubscriptionParamsE2SubscriptionDirectives(object):
23 """NOTE: This class is auto generated by the swagger code generator program.
25 Do not edit the class manually.
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.
36 'e2_timeout_timer_value': 'int',
37 'e2_retry_count': 'int',
38 'rmr_routing_needed': 'bool'
42 'e2_timeout_timer_value': 'E2TimeoutTimerValue',
43 'e2_retry_count': 'E2RetryCount',
44 'rmr_routing_needed': 'RMRRoutingNeeded'
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
53 self._e2_timeout_timer_value = None
54 self._e2_retry_count = None
55 self._rmr_routing_needed = None
56 self.discriminator = None
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
66 def e2_timeout_timer_value(self):
67 """Gets the e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
69 How long time response is waited from E2 node # noqa: E501
71 :return: The e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
74 return self._e2_timeout_timer_value
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.
80 How long time response is waited from E2 node # noqa: E501
82 :param e2_timeout_timer_value: The e2_timeout_timer_value of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
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
92 self._e2_timeout_timer_value = e2_timeout_timer_value
95 def e2_retry_count(self):
96 """Gets the e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
98 How many times E2 subscription request is retried # noqa: E501
100 :return: The e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
103 return self._e2_retry_count
105 @e2_retry_count.setter
106 def e2_retry_count(self, e2_retry_count):
107 """Sets the e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives.
109 How many times E2 subscription request is retried # noqa: E501
111 :param e2_retry_count: The e2_retry_count of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
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
121 self._e2_retry_count = e2_retry_count
124 def rmr_routing_needed(self):
125 """Gets the rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
127 Subscription needs RMR route from E2Term to xApp # noqa: E501
129 :return: The rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
132 return self._rmr_routing_needed
134 @rmr_routing_needed.setter
135 def rmr_routing_needed(self, rmr_routing_needed):
136 """Sets the rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives.
138 Subscription needs RMR route from E2Term to xApp # noqa: E501
140 :param rmr_routing_needed: The rmr_routing_needed of this SubscriptionParamsE2SubscriptionDirectives. # noqa: E501
144 self._rmr_routing_needed = rmr_routing_needed
147 """Returns the model properties as a dict"""
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,
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,
167 if issubclass(SubscriptionParamsE2SubscriptionDirectives, dict):
168 for key, value in self.items():
174 """Returns the string representation of the model"""
175 return pprint.pformat(self.to_dict())
178 """For `print` and `pprint`"""
181 def __eq__(self, other):
182 """Returns true if both objects are equal"""
183 if not isinstance(other, SubscriptionParamsE2SubscriptionDirectives):
186 return self.to_dict() == other.to_dict()
188 def __ne__(self, other):
189 """Returns true if both objects are not equal"""
190 if not isinstance(other, SubscriptionParamsE2SubscriptionDirectives):
193 return self.to_dict() != other.to_dict()