|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + rds_mysql_v2 |
| 5 | +
|
| 6 | + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 |
| 7 | +
|
| 8 | + OpenAPI spec version: common-version |
| 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 volcenginesdkcore.configuration import Configuration |
| 20 | + |
| 21 | + |
| 22 | +class AddressForDescribeDBInstanceEndpointsOutput(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 | + 'dns_visibility': 'bool', |
| 37 | + 'domain': 'str', |
| 38 | + 'eip_id': 'str', |
| 39 | + 'ip_address': 'str', |
| 40 | + 'internet_protocol': 'str', |
| 41 | + 'network_type': 'str', |
| 42 | + 'port': 'str', |
| 43 | + 'subnet_id': 'str' |
| 44 | + } |
| 45 | + |
| 46 | + attribute_map = { |
| 47 | + 'dns_visibility': 'DNSVisibility', |
| 48 | + 'domain': 'Domain', |
| 49 | + 'eip_id': 'EipId', |
| 50 | + 'ip_address': 'IPAddress', |
| 51 | + 'internet_protocol': 'InternetProtocol', |
| 52 | + 'network_type': 'NetworkType', |
| 53 | + 'port': 'Port', |
| 54 | + 'subnet_id': 'SubnetId' |
| 55 | + } |
| 56 | + |
| 57 | + def __init__(self, dns_visibility=None, domain=None, eip_id=None, ip_address=None, internet_protocol=None, network_type=None, port=None, subnet_id=None, _configuration=None): # noqa: E501 |
| 58 | + """AddressForDescribeDBInstanceEndpointsOutput - a model defined in Swagger""" # noqa: E501 |
| 59 | + if _configuration is None: |
| 60 | + _configuration = Configuration() |
| 61 | + self._configuration = _configuration |
| 62 | + |
| 63 | + self._dns_visibility = None |
| 64 | + self._domain = None |
| 65 | + self._eip_id = None |
| 66 | + self._ip_address = None |
| 67 | + self._internet_protocol = None |
| 68 | + self._network_type = None |
| 69 | + self._port = None |
| 70 | + self._subnet_id = None |
| 71 | + self.discriminator = None |
| 72 | + |
| 73 | + if dns_visibility is not None: |
| 74 | + self.dns_visibility = dns_visibility |
| 75 | + if domain is not None: |
| 76 | + self.domain = domain |
| 77 | + if eip_id is not None: |
| 78 | + self.eip_id = eip_id |
| 79 | + if ip_address is not None: |
| 80 | + self.ip_address = ip_address |
| 81 | + if internet_protocol is not None: |
| 82 | + self.internet_protocol = internet_protocol |
| 83 | + if network_type is not None: |
| 84 | + self.network_type = network_type |
| 85 | + if port is not None: |
| 86 | + self.port = port |
| 87 | + if subnet_id is not None: |
| 88 | + self.subnet_id = subnet_id |
| 89 | + |
| 90 | + @property |
| 91 | + def dns_visibility(self): |
| 92 | + """Gets the dns_visibility of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 93 | +
|
| 94 | +
|
| 95 | + :return: The dns_visibility of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 96 | + :rtype: bool |
| 97 | + """ |
| 98 | + return self._dns_visibility |
| 99 | + |
| 100 | + @dns_visibility.setter |
| 101 | + def dns_visibility(self, dns_visibility): |
| 102 | + """Sets the dns_visibility of this AddressForDescribeDBInstanceEndpointsOutput. |
| 103 | +
|
| 104 | +
|
| 105 | + :param dns_visibility: The dns_visibility of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 106 | + :type: bool |
| 107 | + """ |
| 108 | + |
| 109 | + self._dns_visibility = dns_visibility |
| 110 | + |
| 111 | + @property |
| 112 | + def domain(self): |
| 113 | + """Gets the domain of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 114 | +
|
| 115 | +
|
| 116 | + :return: The domain of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 117 | + :rtype: str |
| 118 | + """ |
| 119 | + return self._domain |
| 120 | + |
| 121 | + @domain.setter |
| 122 | + def domain(self, domain): |
| 123 | + """Sets the domain of this AddressForDescribeDBInstanceEndpointsOutput. |
| 124 | +
|
| 125 | +
|
| 126 | + :param domain: The domain of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 127 | + :type: str |
| 128 | + """ |
| 129 | + |
| 130 | + self._domain = domain |
| 131 | + |
| 132 | + @property |
| 133 | + def eip_id(self): |
| 134 | + """Gets the eip_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 135 | +
|
| 136 | +
|
| 137 | + :return: The eip_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 138 | + :rtype: str |
| 139 | + """ |
| 140 | + return self._eip_id |
| 141 | + |
| 142 | + @eip_id.setter |
| 143 | + def eip_id(self, eip_id): |
| 144 | + """Sets the eip_id of this AddressForDescribeDBInstanceEndpointsOutput. |
| 145 | +
|
| 146 | +
|
| 147 | + :param eip_id: The eip_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 148 | + :type: str |
| 149 | + """ |
| 150 | + |
| 151 | + self._eip_id = eip_id |
| 152 | + |
| 153 | + @property |
| 154 | + def ip_address(self): |
| 155 | + """Gets the ip_address of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 156 | +
|
| 157 | +
|
| 158 | + :return: The ip_address of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 159 | + :rtype: str |
| 160 | + """ |
| 161 | + return self._ip_address |
| 162 | + |
| 163 | + @ip_address.setter |
| 164 | + def ip_address(self, ip_address): |
| 165 | + """Sets the ip_address of this AddressForDescribeDBInstanceEndpointsOutput. |
| 166 | +
|
| 167 | +
|
| 168 | + :param ip_address: The ip_address of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 169 | + :type: str |
| 170 | + """ |
| 171 | + |
| 172 | + self._ip_address = ip_address |
| 173 | + |
| 174 | + @property |
| 175 | + def internet_protocol(self): |
| 176 | + """Gets the internet_protocol of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 177 | +
|
| 178 | +
|
| 179 | + :return: The internet_protocol of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 180 | + :rtype: str |
| 181 | + """ |
| 182 | + return self._internet_protocol |
| 183 | + |
| 184 | + @internet_protocol.setter |
| 185 | + def internet_protocol(self, internet_protocol): |
| 186 | + """Sets the internet_protocol of this AddressForDescribeDBInstanceEndpointsOutput. |
| 187 | +
|
| 188 | +
|
| 189 | + :param internet_protocol: The internet_protocol of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 190 | + :type: str |
| 191 | + """ |
| 192 | + |
| 193 | + self._internet_protocol = internet_protocol |
| 194 | + |
| 195 | + @property |
| 196 | + def network_type(self): |
| 197 | + """Gets the network_type of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 198 | +
|
| 199 | +
|
| 200 | + :return: The network_type of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 201 | + :rtype: str |
| 202 | + """ |
| 203 | + return self._network_type |
| 204 | + |
| 205 | + @network_type.setter |
| 206 | + def network_type(self, network_type): |
| 207 | + """Sets the network_type of this AddressForDescribeDBInstanceEndpointsOutput. |
| 208 | +
|
| 209 | +
|
| 210 | + :param network_type: The network_type of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 211 | + :type: str |
| 212 | + """ |
| 213 | + |
| 214 | + self._network_type = network_type |
| 215 | + |
| 216 | + @property |
| 217 | + def port(self): |
| 218 | + """Gets the port of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 219 | +
|
| 220 | +
|
| 221 | + :return: The port of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 222 | + :rtype: str |
| 223 | + """ |
| 224 | + return self._port |
| 225 | + |
| 226 | + @port.setter |
| 227 | + def port(self, port): |
| 228 | + """Sets the port of this AddressForDescribeDBInstanceEndpointsOutput. |
| 229 | +
|
| 230 | +
|
| 231 | + :param port: The port of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 232 | + :type: str |
| 233 | + """ |
| 234 | + |
| 235 | + self._port = port |
| 236 | + |
| 237 | + @property |
| 238 | + def subnet_id(self): |
| 239 | + """Gets the subnet_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 240 | +
|
| 241 | +
|
| 242 | + :return: The subnet_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 243 | + :rtype: str |
| 244 | + """ |
| 245 | + return self._subnet_id |
| 246 | + |
| 247 | + @subnet_id.setter |
| 248 | + def subnet_id(self, subnet_id): |
| 249 | + """Sets the subnet_id of this AddressForDescribeDBInstanceEndpointsOutput. |
| 250 | +
|
| 251 | +
|
| 252 | + :param subnet_id: The subnet_id of this AddressForDescribeDBInstanceEndpointsOutput. # noqa: E501 |
| 253 | + :type: str |
| 254 | + """ |
| 255 | + |
| 256 | + self._subnet_id = subnet_id |
| 257 | + |
| 258 | + def to_dict(self): |
| 259 | + """Returns the model properties as a dict""" |
| 260 | + result = {} |
| 261 | + |
| 262 | + for attr, _ in six.iteritems(self.swagger_types): |
| 263 | + value = getattr(self, attr) |
| 264 | + if isinstance(value, list): |
| 265 | + result[attr] = list(map( |
| 266 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 267 | + value |
| 268 | + )) |
| 269 | + elif hasattr(value, "to_dict"): |
| 270 | + result[attr] = value.to_dict() |
| 271 | + elif isinstance(value, dict): |
| 272 | + result[attr] = dict(map( |
| 273 | + lambda item: (item[0], item[1].to_dict()) |
| 274 | + if hasattr(item[1], "to_dict") else item, |
| 275 | + value.items() |
| 276 | + )) |
| 277 | + else: |
| 278 | + result[attr] = value |
| 279 | + if issubclass(AddressForDescribeDBInstanceEndpointsOutput, dict): |
| 280 | + for key, value in self.items(): |
| 281 | + result[key] = value |
| 282 | + |
| 283 | + return result |
| 284 | + |
| 285 | + def to_str(self): |
| 286 | + """Returns the string representation of the model""" |
| 287 | + return pprint.pformat(self.to_dict()) |
| 288 | + |
| 289 | + def __repr__(self): |
| 290 | + """For `print` and `pprint`""" |
| 291 | + return self.to_str() |
| 292 | + |
| 293 | + def __eq__(self, other): |
| 294 | + """Returns true if both objects are equal""" |
| 295 | + if not isinstance(other, AddressForDescribeDBInstanceEndpointsOutput): |
| 296 | + return False |
| 297 | + |
| 298 | + return self.to_dict() == other.to_dict() |
| 299 | + |
| 300 | + def __ne__(self, other): |
| 301 | + """Returns true if both objects are not equal""" |
| 302 | + if not isinstance(other, AddressForDescribeDBInstanceEndpointsOutput): |
| 303 | + return True |
| 304 | + |
| 305 | + return self.to_dict() != other.to_dict() |
0 commit comments