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