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 SubscriptionParams(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 'subscription_id': 'str',
37 'client_endpoint': 'SubscriptionParamsClientEndpoint',
39 'ran_function_id': 'int',
40 'e2_subscription_directives': 'SubscriptionParamsE2SubscriptionDirectives',
41 'subscription_details': 'SubscriptionDetailsList'
45 'subscription_id': 'SubscriptionId',
46 'client_endpoint': 'ClientEndpoint',
48 'ran_function_id': 'RANFunctionID',
49 'e2_subscription_directives': 'E2SubscriptionDirectives',
50 'subscription_details': 'SubscriptionDetails'
53 def __init__(self, subscription_id=None, client_endpoint=None, meid=None, ran_function_id=None, e2_subscription_directives=None, subscription_details=None, _configuration=None): # noqa: E501
54 """SubscriptionParams - a model defined in Swagger""" # noqa: E501
55 if _configuration is None:
56 _configuration = Configuration()
57 self._configuration = _configuration
59 self._subscription_id = None
60 self._client_endpoint = None
62 self._ran_function_id = None
63 self._e2_subscription_directives = None
64 self._subscription_details = None
65 self.discriminator = None
67 if subscription_id is not None:
68 self.subscription_id = subscription_id
69 self.client_endpoint = client_endpoint
71 self.ran_function_id = ran_function_id
72 if e2_subscription_directives is not None:
73 self.e2_subscription_directives = e2_subscription_directives
74 self.subscription_details = subscription_details
77 def subscription_id(self):
78 """Gets the subscription_id of this SubscriptionParams. # noqa: E501
80 Optional subscription ID (Submgr allocates if not given) # noqa: E501
82 :return: The subscription_id of this SubscriptionParams. # noqa: E501
85 return self._subscription_id
87 @subscription_id.setter
88 def subscription_id(self, subscription_id):
89 """Sets the subscription_id of this SubscriptionParams.
91 Optional subscription ID (Submgr allocates if not given) # noqa: E501
93 :param subscription_id: The subscription_id of this SubscriptionParams. # noqa: E501
97 self._subscription_id = subscription_id
100 def client_endpoint(self):
101 """Gets the client_endpoint of this SubscriptionParams. # noqa: E501
104 :return: The client_endpoint of this SubscriptionParams. # noqa: E501
105 :rtype: SubscriptionParamsClientEndpoint
107 return self._client_endpoint
109 @client_endpoint.setter
110 def client_endpoint(self, client_endpoint):
111 """Sets the client_endpoint of this SubscriptionParams.
114 :param client_endpoint: The client_endpoint of this SubscriptionParams. # noqa: E501
115 :type: SubscriptionParamsClientEndpoint
117 if self._configuration.client_side_validation and client_endpoint is None:
118 raise ValueError("Invalid value for `client_endpoint`, must not be `None`") # noqa: E501
120 self._client_endpoint = client_endpoint
124 """Gets the meid of this SubscriptionParams. # noqa: E501
127 :return: The meid of this SubscriptionParams. # noqa: E501
133 def meid(self, meid):
134 """Sets the meid of this SubscriptionParams.
137 :param meid: The meid of this SubscriptionParams. # noqa: E501
140 if self._configuration.client_side_validation and meid is None:
141 raise ValueError("Invalid value for `meid`, must not be `None`") # noqa: E501
146 def ran_function_id(self):
147 """Gets the ran_function_id of this SubscriptionParams. # noqa: E501
150 :return: The ran_function_id of this SubscriptionParams. # noqa: E501
153 return self._ran_function_id
155 @ran_function_id.setter
156 def ran_function_id(self, ran_function_id):
157 """Sets the ran_function_id of this SubscriptionParams.
160 :param ran_function_id: The ran_function_id of this SubscriptionParams. # noqa: E501
163 if self._configuration.client_side_validation and ran_function_id is None:
164 raise ValueError("Invalid value for `ran_function_id`, must not be `None`") # noqa: E501
165 if (self._configuration.client_side_validation and
166 ran_function_id is not None and ran_function_id > 4095): # noqa: E501
167 raise ValueError("Invalid value for `ran_function_id`, must be a value less than or equal to `4095`") # noqa: E501
168 if (self._configuration.client_side_validation and
169 ran_function_id is not None and ran_function_id < 0): # noqa: E501
170 raise ValueError("Invalid value for `ran_function_id`, must be a value greater than or equal to `0`") # noqa: E501
172 self._ran_function_id = ran_function_id
175 def e2_subscription_directives(self):
176 """Gets the e2_subscription_directives of this SubscriptionParams. # noqa: E501
179 :return: The e2_subscription_directives of this SubscriptionParams. # noqa: E501
180 :rtype: SubscriptionParamsE2SubscriptionDirectives
182 return self._e2_subscription_directives
184 @e2_subscription_directives.setter
185 def e2_subscription_directives(self, e2_subscription_directives):
186 """Sets the e2_subscription_directives of this SubscriptionParams.
189 :param e2_subscription_directives: The e2_subscription_directives of this SubscriptionParams. # noqa: E501
190 :type: SubscriptionParamsE2SubscriptionDirectives
193 self._e2_subscription_directives = e2_subscription_directives
196 def subscription_details(self):
197 """Gets the subscription_details of this SubscriptionParams. # noqa: E501
200 :return: The subscription_details of this SubscriptionParams. # noqa: E501
201 :rtype: SubscriptionDetailsList
203 return self._subscription_details
205 @subscription_details.setter
206 def subscription_details(self, subscription_details):
207 """Sets the subscription_details of this SubscriptionParams.
210 :param subscription_details: The subscription_details of this SubscriptionParams. # noqa: E501
211 :type: SubscriptionDetailsList
213 if self._configuration.client_side_validation and subscription_details is None:
214 raise ValueError("Invalid value for `subscription_details`, must not be `None`") # noqa: E501
216 self._subscription_details = subscription_details
219 """Returns the model properties as a dict"""
222 for attr, _ in six.iteritems(self.swagger_types):
223 value = getattr(self, attr)
224 if isinstance(value, list):
225 result[attr] = list(map(
226 lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
229 elif hasattr(value, "to_dict"):
230 result[attr] = value.to_dict()
231 elif isinstance(value, dict):
232 result[attr] = dict(map(
233 lambda item: (item[0], item[1].to_dict())
234 if hasattr(item[1], "to_dict") else item,
239 if issubclass(SubscriptionParams, dict):
240 for key, value in self.items():
246 """Returns the string representation of the model"""
247 return pprint.pformat(self.to_dict())
250 """For `print` and `pprint`"""
253 def __eq__(self, other):
254 """Returns true if both objects are equal"""
255 if not isinstance(other, SubscriptionParams):
258 return self.to_dict() == other.to_dict()
260 def __ne__(self, other):
261 """Returns true if both objects are not equal"""
262 if not isinstance(other, SubscriptionParams):
265 return self.to_dict() != other.to_dict()