huaweicloudsdkgaussdb 3.1.165__py3-none-any.whl → 3.1.166__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +54 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1239 -48
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1239 -48
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +54 -0
  5. huaweicloudsdkgaussdb/v3/model/audit_log_detail.py +231 -0
  6. huaweicloudsdkgaussdb/v3/model/audit_log_download_link_request_body.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_request_body.py +171 -0
  9. huaweicloudsdkgaussdb/v3/model/batch_upgrade_databases_response.py +116 -0
  10. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_request.py +171 -0
  11. huaweicloudsdkgaussdb/v3/model/create_proxy_dns_name_response.py +116 -0
  12. huaweicloudsdkgaussdb/v3/model/database_tables_info.py +144 -0
  13. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_request.py +171 -0
  14. huaweicloudsdkgaussdb/v3/model/delete_proxy_private_dns_name_response.py +116 -0
  15. huaweicloudsdkgaussdb/v3/model/htap_error_log_detail_response_error_log_list.py +226 -0
  16. huaweicloudsdkgaussdb/v3/model/htap_error_log_query_request_body.py +255 -0
  17. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance.py +284 -0
  18. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_instance_lts_configs.py +138 -0
  19. huaweicloudsdkgaussdb/v3/model/htap_lts_config_response_lts_configs.py +198 -0
  20. huaweicloudsdkgaussdb/v3/model/htap_node_info_response_body_node_list.py +170 -0
  21. huaweicloudsdkgaussdb/v3/model/list_audit_logs_request.py +255 -0
  22. huaweicloudsdkgaussdb/v3/model/list_audit_logs_response.py +145 -0
  23. huaweicloudsdkgaussdb/v3/model/list_instance_node_request.py +142 -0
  24. huaweicloudsdkgaussdb/v3/model/list_instance_node_response.py +116 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_req.py +114 -0
  26. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_request.py +168 -0
  27. huaweicloudsdkgaussdb/v3/model/modify_star_rocks_security_group_response.py +116 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_flavor.py +260 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_flavor_group.py +144 -0
  30. huaweicloudsdkgaussdb/v3/model/query_data_base_request_v3.py +144 -0
  31. huaweicloudsdkgaussdb/v3/model/query_table_request_v3.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/rds_error_log_download.py +289 -0
  33. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request.py +168 -0
  34. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_request_body.py +172 -0
  35. huaweicloudsdkgaussdb/v3/model/set_audit_log_policy_response.py +145 -0
  36. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_request.py +168 -0
  37. huaweicloudsdkgaussdb/v3/model/show_audit_log_download_link_response.py +116 -0
  38. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_request.py +143 -0
  39. huaweicloudsdkgaussdb/v3/model/show_audit_log_policy_response.py +174 -0
  40. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_request.py +171 -0
  41. huaweicloudsdkgaussdb/v3/model/show_error_log_download_link_response.py +145 -0
  42. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_request.py +167 -0
  43. huaweicloudsdkgaussdb/v3/model/show_htap_error_log_detail_response.py +116 -0
  44. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_request.py +259 -0
  45. huaweicloudsdkgaussdb/v3/model/show_htap_lts_config_response.py +145 -0
  46. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_request.py +225 -0
  47. huaweicloudsdkgaussdb/v3/model/show_instance_databases_for_htap_response.py +174 -0
  48. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_request.py +225 -0
  49. huaweicloudsdkgaussdb/v3/model/show_instance_tables_for_htap_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_flavors_by_az_code_response.py +116 -0
  52. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_request.py +201 -0
  53. huaweicloudsdkgaussdb/v3/model/show_table_meta_info_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/table_meta_info.py +260 -0
  55. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name.py +142 -0
  56. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_request.py +196 -0
  57. huaweicloudsdkgaussdb/v3/model/update_proxy_private_dns_name_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/upgrade_databases_single_instance.py +142 -0
  59. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/METADATA +9 -10
  60. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/RECORD +62 -9
  61. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info}/WHEEL +1 -2
  62. huaweicloudsdkgaussdb-3.1.165.dist-info/top_level.txt +0 -1
  63. {huaweicloudsdkgaussdb-3.1.165.dist-info → huaweicloudsdkgaussdb-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ProxyFlavor:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'spec_code': 'str',
21
+ 'vcpus': 'str',
22
+ 'ram': 'str',
23
+ 'db_type': 'str',
24
+ 'az_status': 'object',
25
+ 'supported_ipv6': 'bool'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'spec_code': 'spec_code',
30
+ 'vcpus': 'vcpus',
31
+ 'ram': 'ram',
32
+ 'db_type': 'db_type',
33
+ 'az_status': 'az_status',
34
+ 'supported_ipv6': 'supported_ipv6'
35
+ }
36
+
37
+ def __init__(self, spec_code=None, vcpus=None, ram=None, db_type=None, az_status=None, supported_ipv6=None):
38
+ r"""ProxyFlavor
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param spec_code: **参数解释**: 规格码。 **取值范围**: 不涉及。
43
+ :type spec_code: str
44
+ :param vcpus: **参数解释**: cpu核数。 **取值范围**: 不涉及。
45
+ :type vcpus: str
46
+ :param ram: **参数解释**: 内存。 **取值范围**: 不涉及。
47
+ :type ram: str
48
+ :param db_type: **参数解释**: 数据库类型。 **取值范围**: 不涉及。
49
+ :type db_type: str
50
+ :param az_status: **参数解释**: az状态。
51
+ :type az_status: object
52
+ :param supported_ipv6: **参数解释**: 是否支持ipv6。 **取值范围**: - true: 支持ipv6。 - false: 不支持ipv6。
53
+ :type supported_ipv6: bool
54
+ """
55
+
56
+
57
+
58
+ self._spec_code = None
59
+ self._vcpus = None
60
+ self._ram = None
61
+ self._db_type = None
62
+ self._az_status = None
63
+ self._supported_ipv6 = None
64
+ self.discriminator = None
65
+
66
+ if spec_code is not None:
67
+ self.spec_code = spec_code
68
+ if vcpus is not None:
69
+ self.vcpus = vcpus
70
+ if ram is not None:
71
+ self.ram = ram
72
+ if db_type is not None:
73
+ self.db_type = db_type
74
+ if az_status is not None:
75
+ self.az_status = az_status
76
+ if supported_ipv6 is not None:
77
+ self.supported_ipv6 = supported_ipv6
78
+
79
+ @property
80
+ def spec_code(self):
81
+ r"""Gets the spec_code of this ProxyFlavor.
82
+
83
+ **参数解释**: 规格码。 **取值范围**: 不涉及。
84
+
85
+ :return: The spec_code of this ProxyFlavor.
86
+ :rtype: str
87
+ """
88
+ return self._spec_code
89
+
90
+ @spec_code.setter
91
+ def spec_code(self, spec_code):
92
+ r"""Sets the spec_code of this ProxyFlavor.
93
+
94
+ **参数解释**: 规格码。 **取值范围**: 不涉及。
95
+
96
+ :param spec_code: The spec_code of this ProxyFlavor.
97
+ :type spec_code: str
98
+ """
99
+ self._spec_code = spec_code
100
+
101
+ @property
102
+ def vcpus(self):
103
+ r"""Gets the vcpus of this ProxyFlavor.
104
+
105
+ **参数解释**: cpu核数。 **取值范围**: 不涉及。
106
+
107
+ :return: The vcpus of this ProxyFlavor.
108
+ :rtype: str
109
+ """
110
+ return self._vcpus
111
+
112
+ @vcpus.setter
113
+ def vcpus(self, vcpus):
114
+ r"""Sets the vcpus of this ProxyFlavor.
115
+
116
+ **参数解释**: cpu核数。 **取值范围**: 不涉及。
117
+
118
+ :param vcpus: The vcpus of this ProxyFlavor.
119
+ :type vcpus: str
120
+ """
121
+ self._vcpus = vcpus
122
+
123
+ @property
124
+ def ram(self):
125
+ r"""Gets the ram of this ProxyFlavor.
126
+
127
+ **参数解释**: 内存。 **取值范围**: 不涉及。
128
+
129
+ :return: The ram of this ProxyFlavor.
130
+ :rtype: str
131
+ """
132
+ return self._ram
133
+
134
+ @ram.setter
135
+ def ram(self, ram):
136
+ r"""Sets the ram of this ProxyFlavor.
137
+
138
+ **参数解释**: 内存。 **取值范围**: 不涉及。
139
+
140
+ :param ram: The ram of this ProxyFlavor.
141
+ :type ram: str
142
+ """
143
+ self._ram = ram
144
+
145
+ @property
146
+ def db_type(self):
147
+ r"""Gets the db_type of this ProxyFlavor.
148
+
149
+ **参数解释**: 数据库类型。 **取值范围**: 不涉及。
150
+
151
+ :return: The db_type of this ProxyFlavor.
152
+ :rtype: str
153
+ """
154
+ return self._db_type
155
+
156
+ @db_type.setter
157
+ def db_type(self, db_type):
158
+ r"""Sets the db_type of this ProxyFlavor.
159
+
160
+ **参数解释**: 数据库类型。 **取值范围**: 不涉及。
161
+
162
+ :param db_type: The db_type of this ProxyFlavor.
163
+ :type db_type: str
164
+ """
165
+ self._db_type = db_type
166
+
167
+ @property
168
+ def az_status(self):
169
+ r"""Gets the az_status of this ProxyFlavor.
170
+
171
+ **参数解释**: az状态。
172
+
173
+ :return: The az_status of this ProxyFlavor.
174
+ :rtype: object
175
+ """
176
+ return self._az_status
177
+
178
+ @az_status.setter
179
+ def az_status(self, az_status):
180
+ r"""Sets the az_status of this ProxyFlavor.
181
+
182
+ **参数解释**: az状态。
183
+
184
+ :param az_status: The az_status of this ProxyFlavor.
185
+ :type az_status: object
186
+ """
187
+ self._az_status = az_status
188
+
189
+ @property
190
+ def supported_ipv6(self):
191
+ r"""Gets the supported_ipv6 of this ProxyFlavor.
192
+
193
+ **参数解释**: 是否支持ipv6。 **取值范围**: - true: 支持ipv6。 - false: 不支持ipv6。
194
+
195
+ :return: The supported_ipv6 of this ProxyFlavor.
196
+ :rtype: bool
197
+ """
198
+ return self._supported_ipv6
199
+
200
+ @supported_ipv6.setter
201
+ def supported_ipv6(self, supported_ipv6):
202
+ r"""Sets the supported_ipv6 of this ProxyFlavor.
203
+
204
+ **参数解释**: 是否支持ipv6。 **取值范围**: - true: 支持ipv6。 - false: 不支持ipv6。
205
+
206
+ :param supported_ipv6: The supported_ipv6 of this ProxyFlavor.
207
+ :type supported_ipv6: bool
208
+ """
209
+ self._supported_ipv6 = supported_ipv6
210
+
211
+ def to_dict(self):
212
+ """Returns the model properties as a dict"""
213
+ result = {}
214
+
215
+ for attr, _ in six.iteritems(self.openapi_types):
216
+ value = getattr(self, attr)
217
+ if isinstance(value, list):
218
+ result[attr] = list(map(
219
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
220
+ value
221
+ ))
222
+ elif hasattr(value, "to_dict"):
223
+ result[attr] = value.to_dict()
224
+ elif isinstance(value, dict):
225
+ result[attr] = dict(map(
226
+ lambda item: (item[0], item[1].to_dict())
227
+ if hasattr(item[1], "to_dict") else item,
228
+ value.items()
229
+ ))
230
+ else:
231
+ if attr in self.sensitive_list:
232
+ result[attr] = "****"
233
+ else:
234
+ result[attr] = value
235
+
236
+ return result
237
+
238
+ def to_str(self):
239
+ """Returns the string representation of the model"""
240
+ import simplejson as json
241
+ if six.PY2:
242
+ import sys
243
+ reload(sys)
244
+ sys.setdefaultencoding("utf-8")
245
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
246
+
247
+ def __repr__(self):
248
+ """For `print`"""
249
+ return self.to_str()
250
+
251
+ def __eq__(self, other):
252
+ """Returns true if both objects are equal"""
253
+ if not isinstance(other, ProxyFlavor):
254
+ return False
255
+
256
+ return self.__dict__ == other.__dict__
257
+
258
+ def __ne__(self, other):
259
+ """Returns true if both objects are not equal"""
260
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ProxyFlavorGroup:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'group_type': 'str',
21
+ 'proxy_flavors': 'list[ProxyFlavor]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'group_type': 'group_type',
26
+ 'proxy_flavors': 'proxy_flavors'
27
+ }
28
+
29
+ def __init__(self, group_type=None, proxy_flavors=None):
30
+ r"""ProxyFlavorGroup
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param group_type: **参数解释**: 规格分组类型。 **取值范围**: 不涉及。
35
+ :type group_type: str
36
+ :param proxy_flavors: **参数解释**: 规格列表。
37
+ :type proxy_flavors: list[:class:`huaweicloudsdkgaussdb.v3.ProxyFlavor`]
38
+ """
39
+
40
+
41
+
42
+ self._group_type = None
43
+ self._proxy_flavors = None
44
+ self.discriminator = None
45
+
46
+ if group_type is not None:
47
+ self.group_type = group_type
48
+ if proxy_flavors is not None:
49
+ self.proxy_flavors = proxy_flavors
50
+
51
+ @property
52
+ def group_type(self):
53
+ r"""Gets the group_type of this ProxyFlavorGroup.
54
+
55
+ **参数解释**: 规格分组类型。 **取值范围**: 不涉及。
56
+
57
+ :return: The group_type of this ProxyFlavorGroup.
58
+ :rtype: str
59
+ """
60
+ return self._group_type
61
+
62
+ @group_type.setter
63
+ def group_type(self, group_type):
64
+ r"""Sets the group_type of this ProxyFlavorGroup.
65
+
66
+ **参数解释**: 规格分组类型。 **取值范围**: 不涉及。
67
+
68
+ :param group_type: The group_type of this ProxyFlavorGroup.
69
+ :type group_type: str
70
+ """
71
+ self._group_type = group_type
72
+
73
+ @property
74
+ def proxy_flavors(self):
75
+ r"""Gets the proxy_flavors of this ProxyFlavorGroup.
76
+
77
+ **参数解释**: 规格列表。
78
+
79
+ :return: The proxy_flavors of this ProxyFlavorGroup.
80
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.ProxyFlavor`]
81
+ """
82
+ return self._proxy_flavors
83
+
84
+ @proxy_flavors.setter
85
+ def proxy_flavors(self, proxy_flavors):
86
+ r"""Sets the proxy_flavors of this ProxyFlavorGroup.
87
+
88
+ **参数解释**: 规格列表。
89
+
90
+ :param proxy_flavors: The proxy_flavors of this ProxyFlavorGroup.
91
+ :type proxy_flavors: list[:class:`huaweicloudsdkgaussdb.v3.ProxyFlavor`]
92
+ """
93
+ self._proxy_flavors = proxy_flavors
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, ProxyFlavorGroup):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryDataBaseRequestV3:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'databases': 'list[str]',
21
+ 'source_instance_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'databases': 'databases',
26
+ 'source_instance_id': 'source_instance_id'
27
+ }
28
+
29
+ def __init__(self, databases=None, source_instance_id=None):
30
+ r"""QueryDataBaseRequestV3
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param databases: **参数解释**: 查询的数据库名称。 **约束限制**: 仅支持英文大小写字母、数字以及下划线,模糊搜索时列表元素数目必须为1。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
35
+ :type databases: list[str]
36
+ :param source_instance_id: **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
37
+ :type source_instance_id: str
38
+ """
39
+
40
+
41
+
42
+ self._databases = None
43
+ self._source_instance_id = None
44
+ self.discriminator = None
45
+
46
+ if databases is not None:
47
+ self.databases = databases
48
+ if source_instance_id is not None:
49
+ self.source_instance_id = source_instance_id
50
+
51
+ @property
52
+ def databases(self):
53
+ r"""Gets the databases of this QueryDataBaseRequestV3.
54
+
55
+ **参数解释**: 查询的数据库名称。 **约束限制**: 仅支持英文大小写字母、数字以及下划线,模糊搜索时列表元素数目必须为1。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
56
+
57
+ :return: The databases of this QueryDataBaseRequestV3.
58
+ :rtype: list[str]
59
+ """
60
+ return self._databases
61
+
62
+ @databases.setter
63
+ def databases(self, databases):
64
+ r"""Sets the databases of this QueryDataBaseRequestV3.
65
+
66
+ **参数解释**: 查询的数据库名称。 **约束限制**: 仅支持英文大小写字母、数字以及下划线,模糊搜索时列表元素数目必须为1。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
67
+
68
+ :param databases: The databases of this QueryDataBaseRequestV3.
69
+ :type databases: list[str]
70
+ """
71
+ self._databases = databases
72
+
73
+ @property
74
+ def source_instance_id(self):
75
+ r"""Gets the source_instance_id of this QueryDataBaseRequestV3.
76
+
77
+ **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
78
+
79
+ :return: The source_instance_id of this QueryDataBaseRequestV3.
80
+ :rtype: str
81
+ """
82
+ return self._source_instance_id
83
+
84
+ @source_instance_id.setter
85
+ def source_instance_id(self, source_instance_id):
86
+ r"""Sets the source_instance_id of this QueryDataBaseRequestV3.
87
+
88
+ **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
89
+
90
+ :param source_instance_id: The source_instance_id of this QueryDataBaseRequestV3.
91
+ :type source_instance_id: str
92
+ """
93
+ self._source_instance_id = source_instance_id
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, QueryDataBaseRequestV3):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other