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 SubscriptionParamsClientEndpoint(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.
43 'http_port': 'HTTPPort',
47 def __init__(self, host=None, http_port=None, rmr_port=None, _configuration=None): # noqa: E501
48 """SubscriptionParamsClientEndpoint - a model defined in Swagger""" # noqa: E501
49 if _configuration is None:
50 _configuration = Configuration()
51 self._configuration = _configuration
54 self._http_port = None
56 self.discriminator = None
60 if http_port is not None:
61 self.http_port = http_port
62 if rmr_port is not None:
63 self.rmr_port = rmr_port
67 """Gets the host of this SubscriptionParamsClientEndpoint. # noqa: E501
69 xApp service address name like 'service-ricxapp-xappname-http.ricxapp' # noqa: E501
71 :return: The host of this SubscriptionParamsClientEndpoint. # noqa: E501
78 """Sets the host of this SubscriptionParamsClientEndpoint.
80 xApp service address name like 'service-ricxapp-xappname-http.ricxapp' # noqa: E501
82 :param host: The host of this SubscriptionParamsClientEndpoint. # noqa: E501
90 """Gets the http_port of this SubscriptionParamsClientEndpoint. # noqa: E501
92 xApp HTTP service address port # noqa: E501
94 :return: The http_port of this SubscriptionParamsClientEndpoint. # noqa: E501
97 return self._http_port
100 def http_port(self, http_port):
101 """Sets the http_port of this SubscriptionParamsClientEndpoint.
103 xApp HTTP service address port # noqa: E501
105 :param http_port: The http_port of this SubscriptionParamsClientEndpoint. # noqa: E501
108 if (self._configuration.client_side_validation and
109 http_port is not None and http_port > 65535): # noqa: E501
110 raise ValueError("Invalid value for `http_port`, must be a value less than or equal to `65535`") # noqa: E501
111 if (self._configuration.client_side_validation and
112 http_port is not None and http_port < 0): # noqa: E501
113 raise ValueError("Invalid value for `http_port`, must be a value greater than or equal to `0`") # noqa: E501
115 self._http_port = http_port
119 """Gets the rmr_port of this SubscriptionParamsClientEndpoint. # noqa: E501
121 xApp RMR service address port # noqa: E501
123 :return: The rmr_port of this SubscriptionParamsClientEndpoint. # noqa: E501
126 return self._rmr_port
129 def rmr_port(self, rmr_port):
130 """Sets the rmr_port of this SubscriptionParamsClientEndpoint.
132 xApp RMR service address port # noqa: E501
134 :param rmr_port: The rmr_port of this SubscriptionParamsClientEndpoint. # noqa: E501
137 if (self._configuration.client_side_validation and
138 rmr_port is not None and rmr_port > 65535): # noqa: E501
139 raise ValueError("Invalid value for `rmr_port`, must be a value less than or equal to `65535`") # noqa: E501
140 if (self._configuration.client_side_validation and
141 rmr_port is not None and rmr_port < 0): # noqa: E501
142 raise ValueError("Invalid value for `rmr_port`, must be a value greater than or equal to `0`") # noqa: E501
144 self._rmr_port = rmr_port
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(SubscriptionParamsClientEndpoint, 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, SubscriptionParamsClientEndpoint):
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, SubscriptionParamsClientEndpoint):
193 return self.to_dict() != other.to_dict()