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,202 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class QueryTableRequestV3:
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
+ 'database_tables': 'list[DatabaseTablesInfo]',
21
+ 'source_instance_id': 'str',
22
+ 'selected_tables': 'list[DatabaseTablesInfo]',
23
+ 'filter_type': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'database_tables': 'database_tables',
28
+ 'source_instance_id': 'source_instance_id',
29
+ 'selected_tables': 'selected_tables',
30
+ 'filter_type': 'filter_type'
31
+ }
32
+
33
+ def __init__(self, database_tables=None, source_instance_id=None, selected_tables=None, filter_type=None):
34
+ r"""QueryTableRequestV3
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param database_tables: **参数解释**: 查询的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
39
+ :type database_tables: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
40
+ :param source_instance_id: **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
41
+ :type source_instance_id: str
42
+ :param selected_tables: **参数解释**: 已选择的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
43
+ :type selected_tables: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
44
+ :param filter_type: **参数解释**: 表黑白名单设置。include_tables:白名单,exclude_tables:黑名单。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
45
+ :type filter_type: str
46
+ """
47
+
48
+
49
+
50
+ self._database_tables = None
51
+ self._source_instance_id = None
52
+ self._selected_tables = None
53
+ self._filter_type = None
54
+ self.discriminator = None
55
+
56
+ if database_tables is not None:
57
+ self.database_tables = database_tables
58
+ if source_instance_id is not None:
59
+ self.source_instance_id = source_instance_id
60
+ if selected_tables is not None:
61
+ self.selected_tables = selected_tables
62
+ if filter_type is not None:
63
+ self.filter_type = filter_type
64
+
65
+ @property
66
+ def database_tables(self):
67
+ r"""Gets the database_tables of this QueryTableRequestV3.
68
+
69
+ **参数解释**: 查询的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
70
+
71
+ :return: The database_tables of this QueryTableRequestV3.
72
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
73
+ """
74
+ return self._database_tables
75
+
76
+ @database_tables.setter
77
+ def database_tables(self, database_tables):
78
+ r"""Sets the database_tables of this QueryTableRequestV3.
79
+
80
+ **参数解释**: 查询的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
81
+
82
+ :param database_tables: The database_tables of this QueryTableRequestV3.
83
+ :type database_tables: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
84
+ """
85
+ self._database_tables = database_tables
86
+
87
+ @property
88
+ def source_instance_id(self):
89
+ r"""Gets the source_instance_id of this QueryTableRequestV3.
90
+
91
+ **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
92
+
93
+ :return: The source_instance_id of this QueryTableRequestV3.
94
+ :rtype: str
95
+ """
96
+ return self._source_instance_id
97
+
98
+ @source_instance_id.setter
99
+ def source_instance_id(self, source_instance_id):
100
+ r"""Sets the source_instance_id of this QueryTableRequestV3.
101
+
102
+ **参数解释**: 需要查询数据库的源实例ID,严格匹配UUID规则。 **约束限制**: 只能由英文字母、数字组成,且长度为36个字符。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
103
+
104
+ :param source_instance_id: The source_instance_id of this QueryTableRequestV3.
105
+ :type source_instance_id: str
106
+ """
107
+ self._source_instance_id = source_instance_id
108
+
109
+ @property
110
+ def selected_tables(self):
111
+ r"""Gets the selected_tables of this QueryTableRequestV3.
112
+
113
+ **参数解释**: 已选择的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
114
+
115
+ :return: The selected_tables of this QueryTableRequestV3.
116
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
117
+ """
118
+ return self._selected_tables
119
+
120
+ @selected_tables.setter
121
+ def selected_tables(self, selected_tables):
122
+ r"""Sets the selected_tables of this QueryTableRequestV3.
123
+
124
+ **参数解释**: 已选择的数据库及表名称的列表。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
125
+
126
+ :param selected_tables: The selected_tables of this QueryTableRequestV3.
127
+ :type selected_tables: list[:class:`huaweicloudsdkgaussdb.v3.DatabaseTablesInfo`]
128
+ """
129
+ self._selected_tables = selected_tables
130
+
131
+ @property
132
+ def filter_type(self):
133
+ r"""Gets the filter_type of this QueryTableRequestV3.
134
+
135
+ **参数解释**: 表黑白名单设置。include_tables:白名单,exclude_tables:黑名单。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
136
+
137
+ :return: The filter_type of this QueryTableRequestV3.
138
+ :rtype: str
139
+ """
140
+ return self._filter_type
141
+
142
+ @filter_type.setter
143
+ def filter_type(self, filter_type):
144
+ r"""Sets the filter_type of this QueryTableRequestV3.
145
+
146
+ **参数解释**: 表黑白名单设置。include_tables:白名单,exclude_tables:黑名单。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
147
+
148
+ :param filter_type: The filter_type of this QueryTableRequestV3.
149
+ :type filter_type: str
150
+ """
151
+ self._filter_type = filter_type
152
+
153
+ def to_dict(self):
154
+ """Returns the model properties as a dict"""
155
+ result = {}
156
+
157
+ for attr, _ in six.iteritems(self.openapi_types):
158
+ value = getattr(self, attr)
159
+ if isinstance(value, list):
160
+ result[attr] = list(map(
161
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
162
+ value
163
+ ))
164
+ elif hasattr(value, "to_dict"):
165
+ result[attr] = value.to_dict()
166
+ elif isinstance(value, dict):
167
+ result[attr] = dict(map(
168
+ lambda item: (item[0], item[1].to_dict())
169
+ if hasattr(item[1], "to_dict") else item,
170
+ value.items()
171
+ ))
172
+ else:
173
+ if attr in self.sensitive_list:
174
+ result[attr] = "****"
175
+ else:
176
+ result[attr] = value
177
+
178
+ return result
179
+
180
+ def to_str(self):
181
+ """Returns the string representation of the model"""
182
+ import simplejson as json
183
+ if six.PY2:
184
+ import sys
185
+ reload(sys)
186
+ sys.setdefaultencoding("utf-8")
187
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
188
+
189
+ def __repr__(self):
190
+ """For `print`"""
191
+ return self.to_str()
192
+
193
+ def __eq__(self, other):
194
+ """Returns true if both objects are equal"""
195
+ if not isinstance(other, QueryTableRequestV3):
196
+ return False
197
+
198
+ return self.__dict__ == other.__dict__
199
+
200
+ def __ne__(self, other):
201
+ """Returns true if both objects are not equal"""
202
+ return not self == other
@@ -0,0 +1,289 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class RDSErrorLogDownload:
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
+ 'job_id': 'str',
21
+ 'file_name': 'str',
22
+ 'status': 'str',
23
+ 'file_size': 'str',
24
+ 'file_link': 'str',
25
+ 'create_at': 'int',
26
+ 'updated_at': 'int'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'job_id': 'job_id',
31
+ 'file_name': 'file_name',
32
+ 'status': 'status',
33
+ 'file_size': 'file_size',
34
+ 'file_link': 'file_link',
35
+ 'create_at': 'create_at',
36
+ 'updated_at': 'updated_at'
37
+ }
38
+
39
+ def __init__(self, job_id=None, file_name=None, status=None, file_size=None, file_link=None, create_at=None, updated_at=None):
40
+ r"""RDSErrorLogDownload
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param job_id: **参数解释**: 任务ID。 **取值范围**: 不涉及。
45
+ :type job_id: str
46
+ :param file_name: **参数解释**: 日志文件名称。 **取值范围**: 不涉及。
47
+ :type file_name: str
48
+ :param status: **参数解释**: 状态。 **取值范围**: 不涉及。
49
+ :type status: str
50
+ :param file_size: **参数解释**: 文件大小。 **取值范围**: 不涉及。
51
+ :type file_size: str
52
+ :param file_link: **参数解释**: 文件下载链接。 **取值范围**: 不涉及。
53
+ :type file_link: str
54
+ :param create_at: **参数解释**: 创建时间。 **取值范围**: 不涉及。
55
+ :type create_at: int
56
+ :param updated_at: **参数解释**: 更新时间。 **取值范围**: 不涉及。
57
+ :type updated_at: int
58
+ """
59
+
60
+
61
+
62
+ self._job_id = None
63
+ self._file_name = None
64
+ self._status = None
65
+ self._file_size = None
66
+ self._file_link = None
67
+ self._create_at = None
68
+ self._updated_at = None
69
+ self.discriminator = None
70
+
71
+ if job_id is not None:
72
+ self.job_id = job_id
73
+ if file_name is not None:
74
+ self.file_name = file_name
75
+ if status is not None:
76
+ self.status = status
77
+ if file_size is not None:
78
+ self.file_size = file_size
79
+ if file_link is not None:
80
+ self.file_link = file_link
81
+ if create_at is not None:
82
+ self.create_at = create_at
83
+ if updated_at is not None:
84
+ self.updated_at = updated_at
85
+
86
+ @property
87
+ def job_id(self):
88
+ r"""Gets the job_id of this RDSErrorLogDownload.
89
+
90
+ **参数解释**: 任务ID。 **取值范围**: 不涉及。
91
+
92
+ :return: The job_id of this RDSErrorLogDownload.
93
+ :rtype: str
94
+ """
95
+ return self._job_id
96
+
97
+ @job_id.setter
98
+ def job_id(self, job_id):
99
+ r"""Sets the job_id of this RDSErrorLogDownload.
100
+
101
+ **参数解释**: 任务ID。 **取值范围**: 不涉及。
102
+
103
+ :param job_id: The job_id of this RDSErrorLogDownload.
104
+ :type job_id: str
105
+ """
106
+ self._job_id = job_id
107
+
108
+ @property
109
+ def file_name(self):
110
+ r"""Gets the file_name of this RDSErrorLogDownload.
111
+
112
+ **参数解释**: 日志文件名称。 **取值范围**: 不涉及。
113
+
114
+ :return: The file_name of this RDSErrorLogDownload.
115
+ :rtype: str
116
+ """
117
+ return self._file_name
118
+
119
+ @file_name.setter
120
+ def file_name(self, file_name):
121
+ r"""Sets the file_name of this RDSErrorLogDownload.
122
+
123
+ **参数解释**: 日志文件名称。 **取值范围**: 不涉及。
124
+
125
+ :param file_name: The file_name of this RDSErrorLogDownload.
126
+ :type file_name: str
127
+ """
128
+ self._file_name = file_name
129
+
130
+ @property
131
+ def status(self):
132
+ r"""Gets the status of this RDSErrorLogDownload.
133
+
134
+ **参数解释**: 状态。 **取值范围**: 不涉及。
135
+
136
+ :return: The status of this RDSErrorLogDownload.
137
+ :rtype: str
138
+ """
139
+ return self._status
140
+
141
+ @status.setter
142
+ def status(self, status):
143
+ r"""Sets the status of this RDSErrorLogDownload.
144
+
145
+ **参数解释**: 状态。 **取值范围**: 不涉及。
146
+
147
+ :param status: The status of this RDSErrorLogDownload.
148
+ :type status: str
149
+ """
150
+ self._status = status
151
+
152
+ @property
153
+ def file_size(self):
154
+ r"""Gets the file_size of this RDSErrorLogDownload.
155
+
156
+ **参数解释**: 文件大小。 **取值范围**: 不涉及。
157
+
158
+ :return: The file_size of this RDSErrorLogDownload.
159
+ :rtype: str
160
+ """
161
+ return self._file_size
162
+
163
+ @file_size.setter
164
+ def file_size(self, file_size):
165
+ r"""Sets the file_size of this RDSErrorLogDownload.
166
+
167
+ **参数解释**: 文件大小。 **取值范围**: 不涉及。
168
+
169
+ :param file_size: The file_size of this RDSErrorLogDownload.
170
+ :type file_size: str
171
+ """
172
+ self._file_size = file_size
173
+
174
+ @property
175
+ def file_link(self):
176
+ r"""Gets the file_link of this RDSErrorLogDownload.
177
+
178
+ **参数解释**: 文件下载链接。 **取值范围**: 不涉及。
179
+
180
+ :return: The file_link of this RDSErrorLogDownload.
181
+ :rtype: str
182
+ """
183
+ return self._file_link
184
+
185
+ @file_link.setter
186
+ def file_link(self, file_link):
187
+ r"""Sets the file_link of this RDSErrorLogDownload.
188
+
189
+ **参数解释**: 文件下载链接。 **取值范围**: 不涉及。
190
+
191
+ :param file_link: The file_link of this RDSErrorLogDownload.
192
+ :type file_link: str
193
+ """
194
+ self._file_link = file_link
195
+
196
+ @property
197
+ def create_at(self):
198
+ r"""Gets the create_at of this RDSErrorLogDownload.
199
+
200
+ **参数解释**: 创建时间。 **取值范围**: 不涉及。
201
+
202
+ :return: The create_at of this RDSErrorLogDownload.
203
+ :rtype: int
204
+ """
205
+ return self._create_at
206
+
207
+ @create_at.setter
208
+ def create_at(self, create_at):
209
+ r"""Sets the create_at of this RDSErrorLogDownload.
210
+
211
+ **参数解释**: 创建时间。 **取值范围**: 不涉及。
212
+
213
+ :param create_at: The create_at of this RDSErrorLogDownload.
214
+ :type create_at: int
215
+ """
216
+ self._create_at = create_at
217
+
218
+ @property
219
+ def updated_at(self):
220
+ r"""Gets the updated_at of this RDSErrorLogDownload.
221
+
222
+ **参数解释**: 更新时间。 **取值范围**: 不涉及。
223
+
224
+ :return: The updated_at of this RDSErrorLogDownload.
225
+ :rtype: int
226
+ """
227
+ return self._updated_at
228
+
229
+ @updated_at.setter
230
+ def updated_at(self, updated_at):
231
+ r"""Sets the updated_at of this RDSErrorLogDownload.
232
+
233
+ **参数解释**: 更新时间。 **取值范围**: 不涉及。
234
+
235
+ :param updated_at: The updated_at of this RDSErrorLogDownload.
236
+ :type updated_at: int
237
+ """
238
+ self._updated_at = updated_at
239
+
240
+ def to_dict(self):
241
+ """Returns the model properties as a dict"""
242
+ result = {}
243
+
244
+ for attr, _ in six.iteritems(self.openapi_types):
245
+ value = getattr(self, attr)
246
+ if isinstance(value, list):
247
+ result[attr] = list(map(
248
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
249
+ value
250
+ ))
251
+ elif hasattr(value, "to_dict"):
252
+ result[attr] = value.to_dict()
253
+ elif isinstance(value, dict):
254
+ result[attr] = dict(map(
255
+ lambda item: (item[0], item[1].to_dict())
256
+ if hasattr(item[1], "to_dict") else item,
257
+ value.items()
258
+ ))
259
+ else:
260
+ if attr in self.sensitive_list:
261
+ result[attr] = "****"
262
+ else:
263
+ result[attr] = value
264
+
265
+ return result
266
+
267
+ def to_str(self):
268
+ """Returns the string representation of the model"""
269
+ import simplejson as json
270
+ if six.PY2:
271
+ import sys
272
+ reload(sys)
273
+ sys.setdefaultencoding("utf-8")
274
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
275
+
276
+ def __repr__(self):
277
+ """For `print`"""
278
+ return self.to_str()
279
+
280
+ def __eq__(self, other):
281
+ """Returns true if both objects are equal"""
282
+ if not isinstance(other, RDSErrorLogDownload):
283
+ return False
284
+
285
+ return self.__dict__ == other.__dict__
286
+
287
+ def __ne__(self, other):
288
+ """Returns true if both objects are not equal"""
289
+ return not self == other
@@ -0,0 +1,168 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SetAuditLogPolicyRequest:
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
+ 'x_language': 'str',
21
+ 'instance_id': 'str',
22
+ 'body': 'SetAuditLogPolicyRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'instance_id': 'instance_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, x_language=None, instance_id=None, body=None):
32
+ r"""SetAuditLogPolicyRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
37
+ :type x_language: str
38
+ :param instance_id: **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
39
+ :type instance_id: str
40
+ :param body: Body of the SetAuditLogPolicyRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.SetAuditLogPolicyRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._instance_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ self.instance_id = instance_id
54
+ if body is not None:
55
+ self.body = body
56
+
57
+ @property
58
+ def x_language(self):
59
+ r"""Gets the x_language of this SetAuditLogPolicyRequest.
60
+
61
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
62
+
63
+ :return: The x_language of this SetAuditLogPolicyRequest.
64
+ :rtype: str
65
+ """
66
+ return self._x_language
67
+
68
+ @x_language.setter
69
+ def x_language(self, x_language):
70
+ r"""Sets the x_language of this SetAuditLogPolicyRequest.
71
+
72
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
73
+
74
+ :param x_language: The x_language of this SetAuditLogPolicyRequest.
75
+ :type x_language: str
76
+ """
77
+ self._x_language = x_language
78
+
79
+ @property
80
+ def instance_id(self):
81
+ r"""Gets the instance_id of this SetAuditLogPolicyRequest.
82
+
83
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
84
+
85
+ :return: The instance_id of this SetAuditLogPolicyRequest.
86
+ :rtype: str
87
+ """
88
+ return self._instance_id
89
+
90
+ @instance_id.setter
91
+ def instance_id(self, instance_id):
92
+ r"""Sets the instance_id of this SetAuditLogPolicyRequest.
93
+
94
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
95
+
96
+ :param instance_id: The instance_id of this SetAuditLogPolicyRequest.
97
+ :type instance_id: str
98
+ """
99
+ self._instance_id = instance_id
100
+
101
+ @property
102
+ def body(self):
103
+ r"""Gets the body of this SetAuditLogPolicyRequest.
104
+
105
+ :return: The body of this SetAuditLogPolicyRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.SetAuditLogPolicyRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ r"""Sets the body of this SetAuditLogPolicyRequest.
113
+
114
+ :param body: The body of this SetAuditLogPolicyRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.SetAuditLogPolicyRequestBody`
116
+ """
117
+ self._body = body
118
+
119
+ def to_dict(self):
120
+ """Returns the model properties as a dict"""
121
+ result = {}
122
+
123
+ for attr, _ in six.iteritems(self.openapi_types):
124
+ value = getattr(self, attr)
125
+ if isinstance(value, list):
126
+ result[attr] = list(map(
127
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
128
+ value
129
+ ))
130
+ elif hasattr(value, "to_dict"):
131
+ result[attr] = value.to_dict()
132
+ elif isinstance(value, dict):
133
+ result[attr] = dict(map(
134
+ lambda item: (item[0], item[1].to_dict())
135
+ if hasattr(item[1], "to_dict") else item,
136
+ value.items()
137
+ ))
138
+ else:
139
+ if attr in self.sensitive_list:
140
+ result[attr] = "****"
141
+ else:
142
+ result[attr] = value
143
+
144
+ return result
145
+
146
+ def to_str(self):
147
+ """Returns the string representation of the model"""
148
+ import simplejson as json
149
+ if six.PY2:
150
+ import sys
151
+ reload(sys)
152
+ sys.setdefaultencoding("utf-8")
153
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
154
+
155
+ def __repr__(self):
156
+ """For `print`"""
157
+ return self.to_str()
158
+
159
+ def __eq__(self, other):
160
+ """Returns true if both objects are equal"""
161
+ if not isinstance(other, SetAuditLogPolicyRequest):
162
+ return False
163
+
164
+ return self.__dict__ == other.__dict__
165
+
166
+ def __ne__(self, other):
167
+ """Returns true if both objects are not equal"""
168
+ return not self == other