|
| 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 AddDiagnosticsEntityRequest(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 | + 'diagnostics_type': 'str', |
| 37 | + 'ecs_instance_ids': 'list[str]', |
| 38 | + 'endpoint_id': 'str', |
| 39 | + 'instance_id': 'str', |
| 40 | + 'public_ip_addresses': 'list[str]' |
| 41 | + } |
| 42 | + |
| 43 | + attribute_map = { |
| 44 | + 'diagnostics_type': 'DiagnosticsType', |
| 45 | + 'ecs_instance_ids': 'EcsInstanceIds', |
| 46 | + 'endpoint_id': 'EndpointId', |
| 47 | + 'instance_id': 'InstanceId', |
| 48 | + 'public_ip_addresses': 'PublicIpAddresses' |
| 49 | + } |
| 50 | + |
| 51 | + def __init__(self, diagnostics_type=None, ecs_instance_ids=None, endpoint_id=None, instance_id=None, public_ip_addresses=None, _configuration=None): # noqa: E501 |
| 52 | + """AddDiagnosticsEntityRequest - a model defined in Swagger""" # noqa: E501 |
| 53 | + if _configuration is None: |
| 54 | + _configuration = Configuration() |
| 55 | + self._configuration = _configuration |
| 56 | + |
| 57 | + self._diagnostics_type = None |
| 58 | + self._ecs_instance_ids = None |
| 59 | + self._endpoint_id = None |
| 60 | + self._instance_id = None |
| 61 | + self._public_ip_addresses = None |
| 62 | + self.discriminator = None |
| 63 | + |
| 64 | + if diagnostics_type is not None: |
| 65 | + self.diagnostics_type = diagnostics_type |
| 66 | + if ecs_instance_ids is not None: |
| 67 | + self.ecs_instance_ids = ecs_instance_ids |
| 68 | + self.endpoint_id = endpoint_id |
| 69 | + self.instance_id = instance_id |
| 70 | + if public_ip_addresses is not None: |
| 71 | + self.public_ip_addresses = public_ip_addresses |
| 72 | + |
| 73 | + @property |
| 74 | + def diagnostics_type(self): |
| 75 | + """Gets the diagnostics_type of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 76 | +
|
| 77 | +
|
| 78 | + :return: The diagnostics_type of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 79 | + :rtype: str |
| 80 | + """ |
| 81 | + return self._diagnostics_type |
| 82 | + |
| 83 | + @diagnostics_type.setter |
| 84 | + def diagnostics_type(self, diagnostics_type): |
| 85 | + """Sets the diagnostics_type of this AddDiagnosticsEntityRequest. |
| 86 | +
|
| 87 | +
|
| 88 | + :param diagnostics_type: The diagnostics_type of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 89 | + :type: str |
| 90 | + """ |
| 91 | + |
| 92 | + self._diagnostics_type = diagnostics_type |
| 93 | + |
| 94 | + @property |
| 95 | + def ecs_instance_ids(self): |
| 96 | + """Gets the ecs_instance_ids of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 97 | +
|
| 98 | +
|
| 99 | + :return: The ecs_instance_ids of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 100 | + :rtype: list[str] |
| 101 | + """ |
| 102 | + return self._ecs_instance_ids |
| 103 | + |
| 104 | + @ecs_instance_ids.setter |
| 105 | + def ecs_instance_ids(self, ecs_instance_ids): |
| 106 | + """Sets the ecs_instance_ids of this AddDiagnosticsEntityRequest. |
| 107 | +
|
| 108 | +
|
| 109 | + :param ecs_instance_ids: The ecs_instance_ids of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 110 | + :type: list[str] |
| 111 | + """ |
| 112 | + |
| 113 | + self._ecs_instance_ids = ecs_instance_ids |
| 114 | + |
| 115 | + @property |
| 116 | + def endpoint_id(self): |
| 117 | + """Gets the endpoint_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 118 | +
|
| 119 | +
|
| 120 | + :return: The endpoint_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 121 | + :rtype: str |
| 122 | + """ |
| 123 | + return self._endpoint_id |
| 124 | + |
| 125 | + @endpoint_id.setter |
| 126 | + def endpoint_id(self, endpoint_id): |
| 127 | + """Sets the endpoint_id of this AddDiagnosticsEntityRequest. |
| 128 | +
|
| 129 | +
|
| 130 | + :param endpoint_id: The endpoint_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 131 | + :type: str |
| 132 | + """ |
| 133 | + if self._configuration.client_side_validation and endpoint_id is None: |
| 134 | + raise ValueError("Invalid value for `endpoint_id`, must not be `None`") # noqa: E501 |
| 135 | + |
| 136 | + self._endpoint_id = endpoint_id |
| 137 | + |
| 138 | + @property |
| 139 | + def instance_id(self): |
| 140 | + """Gets the instance_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 141 | +
|
| 142 | +
|
| 143 | + :return: The instance_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 144 | + :rtype: str |
| 145 | + """ |
| 146 | + return self._instance_id |
| 147 | + |
| 148 | + @instance_id.setter |
| 149 | + def instance_id(self, instance_id): |
| 150 | + """Sets the instance_id of this AddDiagnosticsEntityRequest. |
| 151 | +
|
| 152 | +
|
| 153 | + :param instance_id: The instance_id of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 154 | + :type: str |
| 155 | + """ |
| 156 | + if self._configuration.client_side_validation and instance_id is None: |
| 157 | + raise ValueError("Invalid value for `instance_id`, must not be `None`") # noqa: E501 |
| 158 | + |
| 159 | + self._instance_id = instance_id |
| 160 | + |
| 161 | + @property |
| 162 | + def public_ip_addresses(self): |
| 163 | + """Gets the public_ip_addresses of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 164 | +
|
| 165 | +
|
| 166 | + :return: The public_ip_addresses of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 167 | + :rtype: list[str] |
| 168 | + """ |
| 169 | + return self._public_ip_addresses |
| 170 | + |
| 171 | + @public_ip_addresses.setter |
| 172 | + def public_ip_addresses(self, public_ip_addresses): |
| 173 | + """Sets the public_ip_addresses of this AddDiagnosticsEntityRequest. |
| 174 | +
|
| 175 | +
|
| 176 | + :param public_ip_addresses: The public_ip_addresses of this AddDiagnosticsEntityRequest. # noqa: E501 |
| 177 | + :type: list[str] |
| 178 | + """ |
| 179 | + |
| 180 | + self._public_ip_addresses = public_ip_addresses |
| 181 | + |
| 182 | + def to_dict(self): |
| 183 | + """Returns the model properties as a dict""" |
| 184 | + result = {} |
| 185 | + |
| 186 | + for attr, _ in six.iteritems(self.swagger_types): |
| 187 | + value = getattr(self, attr) |
| 188 | + if isinstance(value, list): |
| 189 | + result[attr] = list(map( |
| 190 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 191 | + value |
| 192 | + )) |
| 193 | + elif hasattr(value, "to_dict"): |
| 194 | + result[attr] = value.to_dict() |
| 195 | + elif isinstance(value, dict): |
| 196 | + result[attr] = dict(map( |
| 197 | + lambda item: (item[0], item[1].to_dict()) |
| 198 | + if hasattr(item[1], "to_dict") else item, |
| 199 | + value.items() |
| 200 | + )) |
| 201 | + else: |
| 202 | + result[attr] = value |
| 203 | + if issubclass(AddDiagnosticsEntityRequest, dict): |
| 204 | + for key, value in self.items(): |
| 205 | + result[key] = value |
| 206 | + |
| 207 | + return result |
| 208 | + |
| 209 | + def to_str(self): |
| 210 | + """Returns the string representation of the model""" |
| 211 | + return pprint.pformat(self.to_dict()) |
| 212 | + |
| 213 | + def __repr__(self): |
| 214 | + """For `print` and `pprint`""" |
| 215 | + return self.to_str() |
| 216 | + |
| 217 | + def __eq__(self, other): |
| 218 | + """Returns true if both objects are equal""" |
| 219 | + if not isinstance(other, AddDiagnosticsEntityRequest): |
| 220 | + return False |
| 221 | + |
| 222 | + return self.to_dict() == other.to_dict() |
| 223 | + |
| 224 | + def __ne__(self, other): |
| 225 | + """Returns true if both objects are not equal""" |
| 226 | + if not isinstance(other, AddDiagnosticsEntityRequest): |
| 227 | + return True |
| 228 | + |
| 229 | + return self.to_dict() != other.to_dict() |
0 commit comments