RIC-642 related changes: REST subscription, rnib enhancements, symptomdata, rest...
[ric-plt/xapp-frame-py.git] / ricxappframe / subsclient / models / subscription_data.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 SubscriptionData(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         'subscription_id': 'int',
37         'meid': 'str',
38         'client_endpoint': 'list[str]',
39         'subscription_instances': 'list[SubscriptionInstance]'
40     }
41
42     attribute_map = {
43         'subscription_id': 'SubscriptionId',
44         'meid': 'Meid',
45         'client_endpoint': 'ClientEndpoint',
46         'subscription_instances': 'SubscriptionInstances'
47     }
48
49     def __init__(self, subscription_id=None, meid=None, client_endpoint=None, subscription_instances=None, _configuration=None):  # noqa: E501
50         """SubscriptionData - a model defined in Swagger"""  # noqa: E501
51         if _configuration is None:
52             _configuration = Configuration()
53         self._configuration = _configuration
54
55         self._subscription_id = None
56         self._meid = None
57         self._client_endpoint = None
58         self._subscription_instances = None
59         self.discriminator = None
60
61         if subscription_id is not None:
62             self.subscription_id = subscription_id
63         if meid is not None:
64             self.meid = meid
65         if client_endpoint is not None:
66             self.client_endpoint = client_endpoint
67         if subscription_instances is not None:
68             self.subscription_instances = subscription_instances
69
70     @property
71     def subscription_id(self):
72         """Gets the subscription_id of this SubscriptionData.  # noqa: E501
73
74
75         :return: The subscription_id of this SubscriptionData.  # noqa: E501
76         :rtype: int
77         """
78         return self._subscription_id
79
80     @subscription_id.setter
81     def subscription_id(self, subscription_id):
82         """Sets the subscription_id of this SubscriptionData.
83
84
85         :param subscription_id: The subscription_id of this SubscriptionData.  # noqa: E501
86         :type: int
87         """
88
89         self._subscription_id = subscription_id
90
91     @property
92     def meid(self):
93         """Gets the meid of this SubscriptionData.  # noqa: E501
94
95
96         :return: The meid of this SubscriptionData.  # noqa: E501
97         :rtype: str
98         """
99         return self._meid
100
101     @meid.setter
102     def meid(self, meid):
103         """Sets the meid of this SubscriptionData.
104
105
106         :param meid: The meid of this SubscriptionData.  # noqa: E501
107         :type: str
108         """
109
110         self._meid = meid
111
112     @property
113     def client_endpoint(self):
114         """Gets the client_endpoint of this SubscriptionData.  # noqa: E501
115
116
117         :return: The client_endpoint of this SubscriptionData.  # noqa: E501
118         :rtype: list[str]
119         """
120         return self._client_endpoint
121
122     @client_endpoint.setter
123     def client_endpoint(self, client_endpoint):
124         """Sets the client_endpoint of this SubscriptionData.
125
126
127         :param client_endpoint: The client_endpoint of this SubscriptionData.  # noqa: E501
128         :type: list[str]
129         """
130
131         self._client_endpoint = client_endpoint
132
133     @property
134     def subscription_instances(self):
135         """Gets the subscription_instances of this SubscriptionData.  # noqa: E501
136
137
138         :return: The subscription_instances of this SubscriptionData.  # noqa: E501
139         :rtype: list[SubscriptionInstance]
140         """
141         return self._subscription_instances
142
143     @subscription_instances.setter
144     def subscription_instances(self, subscription_instances):
145         """Sets the subscription_instances of this SubscriptionData.
146
147
148         :param subscription_instances: The subscription_instances of this SubscriptionData.  # noqa: E501
149         :type: list[SubscriptionInstance]
150         """
151
152         self._subscription_instances = subscription_instances
153
154     def to_dict(self):
155         """Returns the model properties as a dict"""
156         result = {}
157
158         for attr, _ in six.iteritems(self.swagger_types):
159             value = getattr(self, attr)
160             if isinstance(value, list):
161                 result[attr] = list(map(
162                     lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163                     value
164                 ))
165             elif hasattr(value, "to_dict"):
166                 result[attr] = value.to_dict()
167             elif isinstance(value, dict):
168                 result[attr] = dict(map(
169                     lambda item: (item[0], item[1].to_dict())
170                     if hasattr(item[1], "to_dict") else item,
171                     value.items()
172                 ))
173             else:
174                 result[attr] = value
175         if issubclass(SubscriptionData, dict):
176             for key, value in self.items():
177                 result[key] = value
178
179         return result
180
181     def to_str(self):
182         """Returns the string representation of the model"""
183         return pprint.pformat(self.to_dict())
184
185     def __repr__(self):
186         """For `print` and `pprint`"""
187         return self.to_str()
188
189     def __eq__(self, other):
190         """Returns true if both objects are equal"""
191         if not isinstance(other, SubscriptionData):
192             return False
193
194         return self.to_dict() == other.to_dict()
195
196     def __ne__(self, other):
197         """Returns true if both objects are not equal"""
198         if not isinstance(other, SubscriptionData):
199             return True
200
201         return self.to_dict() != other.to_dict()