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,172 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SetAuditLogPolicyRequestBody:
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
+ 'keep_days': 'int',
21
+ 'reserve_audit_logs': 'bool',
22
+ 'audit_types': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'keep_days': 'keep_days',
27
+ 'reserve_audit_logs': 'reserve_audit_logs',
28
+ 'audit_types': 'audit_types'
29
+ }
30
+
31
+ def __init__(self, keep_days=None, reserve_audit_logs=None, audit_types=None):
32
+ r"""SetAuditLogPolicyRequestBody
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param keep_days: **参数解释**: 审计日志保存天数,0表示关闭审计日志策略。 **约束限制**: 不涉及。 **取值范围**: 0~732。 **默认取值**: 7。
37
+ :type keep_days: int
38
+ :param reserve_audit_logs: **参数解释**: 仅关闭审计日志策略时有效。 - true(默认),表示关闭审计日志策略的同时,保留历史审计日志。 - false,表示关闭审计日志策略的同时,删除已有的历史审计日志。 **约束限制**: 不涉及。 **取值范围**: true|false。 **默认取值**: true。
39
+ :type reserve_audit_logs: bool
40
+ :param audit_types: **参数解释**: 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
41
+ :type audit_types: list[str]
42
+ """
43
+
44
+
45
+
46
+ self._keep_days = None
47
+ self._reserve_audit_logs = None
48
+ self._audit_types = None
49
+ self.discriminator = None
50
+
51
+ self.keep_days = keep_days
52
+ if reserve_audit_logs is not None:
53
+ self.reserve_audit_logs = reserve_audit_logs
54
+ if audit_types is not None:
55
+ self.audit_types = audit_types
56
+
57
+ @property
58
+ def keep_days(self):
59
+ r"""Gets the keep_days of this SetAuditLogPolicyRequestBody.
60
+
61
+ **参数解释**: 审计日志保存天数,0表示关闭审计日志策略。 **约束限制**: 不涉及。 **取值范围**: 0~732。 **默认取值**: 7。
62
+
63
+ :return: The keep_days of this SetAuditLogPolicyRequestBody.
64
+ :rtype: int
65
+ """
66
+ return self._keep_days
67
+
68
+ @keep_days.setter
69
+ def keep_days(self, keep_days):
70
+ r"""Sets the keep_days of this SetAuditLogPolicyRequestBody.
71
+
72
+ **参数解释**: 审计日志保存天数,0表示关闭审计日志策略。 **约束限制**: 不涉及。 **取值范围**: 0~732。 **默认取值**: 7。
73
+
74
+ :param keep_days: The keep_days of this SetAuditLogPolicyRequestBody.
75
+ :type keep_days: int
76
+ """
77
+ self._keep_days = keep_days
78
+
79
+ @property
80
+ def reserve_audit_logs(self):
81
+ r"""Gets the reserve_audit_logs of this SetAuditLogPolicyRequestBody.
82
+
83
+ **参数解释**: 仅关闭审计日志策略时有效。 - true(默认),表示关闭审计日志策略的同时,保留历史审计日志。 - false,表示关闭审计日志策略的同时,删除已有的历史审计日志。 **约束限制**: 不涉及。 **取值范围**: true|false。 **默认取值**: true。
84
+
85
+ :return: The reserve_audit_logs of this SetAuditLogPolicyRequestBody.
86
+ :rtype: bool
87
+ """
88
+ return self._reserve_audit_logs
89
+
90
+ @reserve_audit_logs.setter
91
+ def reserve_audit_logs(self, reserve_audit_logs):
92
+ r"""Sets the reserve_audit_logs of this SetAuditLogPolicyRequestBody.
93
+
94
+ **参数解释**: 仅关闭审计日志策略时有效。 - true(默认),表示关闭审计日志策略的同时,保留历史审计日志。 - false,表示关闭审计日志策略的同时,删除已有的历史审计日志。 **约束限制**: 不涉及。 **取值范围**: true|false。 **默认取值**: true。
95
+
96
+ :param reserve_audit_logs: The reserve_audit_logs of this SetAuditLogPolicyRequestBody.
97
+ :type reserve_audit_logs: bool
98
+ """
99
+ self._reserve_audit_logs = reserve_audit_logs
100
+
101
+ @property
102
+ def audit_types(self):
103
+ r"""Gets the audit_types of this SetAuditLogPolicyRequestBody.
104
+
105
+ **参数解释**: 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
106
+
107
+ :return: The audit_types of this SetAuditLogPolicyRequestBody.
108
+ :rtype: list[str]
109
+ """
110
+ return self._audit_types
111
+
112
+ @audit_types.setter
113
+ def audit_types(self, audit_types):
114
+ r"""Sets the audit_types of this SetAuditLogPolicyRequestBody.
115
+
116
+ **参数解释**: 审计记录的操作类型,动态范围。空表示不过滤任何操作类型。 **约束限制**: 不涉及。 **取值范围**: 不涉及。 **默认取值**: 不涉及。
117
+
118
+ :param audit_types: The audit_types of this SetAuditLogPolicyRequestBody.
119
+ :type audit_types: list[str]
120
+ """
121
+ self._audit_types = audit_types
122
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, SetAuditLogPolicyRequestBody):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other
@@ -0,0 +1,145 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class SetAuditLogPolicyResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'result': 'str',
22
+ 'job_id': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'result': 'result',
27
+ 'job_id': 'job_id'
28
+ }
29
+
30
+ def __init__(self, result=None, job_id=None):
31
+ r"""SetAuditLogPolicyResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param result: **参数解释**: 设置审计日志策略的操作结果。 **取值范围**: COMPLETED|FAILED。
36
+ :type result: str
37
+ :param job_id: **参数解释**: 任务流id。 **取值范围**: 不涉及。
38
+ :type job_id: str
39
+ """
40
+
41
+ super(SetAuditLogPolicyResponse, self).__init__()
42
+
43
+ self._result = None
44
+ self._job_id = None
45
+ self.discriminator = None
46
+
47
+ if result is not None:
48
+ self.result = result
49
+ if job_id is not None:
50
+ self.job_id = job_id
51
+
52
+ @property
53
+ def result(self):
54
+ r"""Gets the result of this SetAuditLogPolicyResponse.
55
+
56
+ **参数解释**: 设置审计日志策略的操作结果。 **取值范围**: COMPLETED|FAILED。
57
+
58
+ :return: The result of this SetAuditLogPolicyResponse.
59
+ :rtype: str
60
+ """
61
+ return self._result
62
+
63
+ @result.setter
64
+ def result(self, result):
65
+ r"""Sets the result of this SetAuditLogPolicyResponse.
66
+
67
+ **参数解释**: 设置审计日志策略的操作结果。 **取值范围**: COMPLETED|FAILED。
68
+
69
+ :param result: The result of this SetAuditLogPolicyResponse.
70
+ :type result: str
71
+ """
72
+ self._result = result
73
+
74
+ @property
75
+ def job_id(self):
76
+ r"""Gets the job_id of this SetAuditLogPolicyResponse.
77
+
78
+ **参数解释**: 任务流id。 **取值范围**: 不涉及。
79
+
80
+ :return: The job_id of this SetAuditLogPolicyResponse.
81
+ :rtype: str
82
+ """
83
+ return self._job_id
84
+
85
+ @job_id.setter
86
+ def job_id(self, job_id):
87
+ r"""Sets the job_id of this SetAuditLogPolicyResponse.
88
+
89
+ **参数解释**: 任务流id。 **取值范围**: 不涉及。
90
+
91
+ :param job_id: The job_id of this SetAuditLogPolicyResponse.
92
+ :type job_id: str
93
+ """
94
+ self._job_id = job_id
95
+
96
+ def to_dict(self):
97
+ """Returns the model properties as a dict"""
98
+ result = {}
99
+
100
+ for attr, _ in six.iteritems(self.openapi_types):
101
+ value = getattr(self, attr)
102
+ if isinstance(value, list):
103
+ result[attr] = list(map(
104
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
105
+ value
106
+ ))
107
+ elif hasattr(value, "to_dict"):
108
+ result[attr] = value.to_dict()
109
+ elif isinstance(value, dict):
110
+ result[attr] = dict(map(
111
+ lambda item: (item[0], item[1].to_dict())
112
+ if hasattr(item[1], "to_dict") else item,
113
+ value.items()
114
+ ))
115
+ else:
116
+ if attr in self.sensitive_list:
117
+ result[attr] = "****"
118
+ else:
119
+ result[attr] = value
120
+
121
+ return result
122
+
123
+ def to_str(self):
124
+ """Returns the string representation of the model"""
125
+ import simplejson as json
126
+ if six.PY2:
127
+ import sys
128
+ reload(sys)
129
+ sys.setdefaultencoding("utf-8")
130
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
131
+
132
+ def __repr__(self):
133
+ """For `print`"""
134
+ return self.to_str()
135
+
136
+ def __eq__(self, other):
137
+ """Returns true if both objects are equal"""
138
+ if not isinstance(other, SetAuditLogPolicyResponse):
139
+ return False
140
+
141
+ return self.__dict__ == other.__dict__
142
+
143
+ def __ne__(self, other):
144
+ """Returns true if both objects are not equal"""
145
+ 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 ShowAuditLogDownloadLinkRequest:
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': 'AuditLogDownloadLinkRequestBody'
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"""ShowAuditLogDownloadLinkRequest
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 ShowAuditLogDownloadLinkRequest
41
+ :type body: :class:`huaweicloudsdkgaussdb.v3.AuditLogDownloadLinkRequestBody`
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 ShowAuditLogDownloadLinkRequest.
60
+
61
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
62
+
63
+ :return: The x_language of this ShowAuditLogDownloadLinkRequest.
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 ShowAuditLogDownloadLinkRequest.
71
+
72
+ **参数解释**: 请求语言类型。 **约束限制**: 不涉及。 **取值范围**: - en-us - zh-cn **默认取值**: en-us。
73
+
74
+ :param x_language: The x_language of this ShowAuditLogDownloadLinkRequest.
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 ShowAuditLogDownloadLinkRequest.
82
+
83
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
84
+
85
+ :return: The instance_id of this ShowAuditLogDownloadLinkRequest.
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 ShowAuditLogDownloadLinkRequest.
93
+
94
+ **参数解释**: 实例ID,此参数是实例的唯一标识。 **约束限制**: 不涉及。 **取值范围**: 只能由英文字母、数字组成,后缀为in07,长度为36个字符。 **默认取值**: 不涉及。
95
+
96
+ :param instance_id: The instance_id of this ShowAuditLogDownloadLinkRequest.
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 ShowAuditLogDownloadLinkRequest.
104
+
105
+ :return: The body of this ShowAuditLogDownloadLinkRequest.
106
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.AuditLogDownloadLinkRequestBody`
107
+ """
108
+ return self._body
109
+
110
+ @body.setter
111
+ def body(self, body):
112
+ r"""Sets the body of this ShowAuditLogDownloadLinkRequest.
113
+
114
+ :param body: The body of this ShowAuditLogDownloadLinkRequest.
115
+ :type body: :class:`huaweicloudsdkgaussdb.v3.AuditLogDownloadLinkRequestBody`
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, ShowAuditLogDownloadLinkRequest):
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
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ShowAuditLogDownloadLinkResponse(SdkResponse):
10
+
11
+ """
12
+ Attributes:
13
+ openapi_types (dict): The key is attribute name
14
+ and the value is attribute type.
15
+ attribute_map (dict): The key is attribute name
16
+ and the value is json key in definition.
17
+ """
18
+ sensitive_list = []
19
+
20
+ openapi_types = {
21
+ 'links': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'links': 'links'
26
+ }
27
+
28
+ def __init__(self, links=None):
29
+ r"""ShowAuditLogDownloadLinkResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param links: **参数解释**: 审计日志下载链接列表,链接有效时间5分钟。 **取值范围**: 不涉及。
34
+ :type links: list[str]
35
+ """
36
+
37
+ super(ShowAuditLogDownloadLinkResponse, self).__init__()
38
+
39
+ self._links = None
40
+ self.discriminator = None
41
+
42
+ if links is not None:
43
+ self.links = links
44
+
45
+ @property
46
+ def links(self):
47
+ r"""Gets the links of this ShowAuditLogDownloadLinkResponse.
48
+
49
+ **参数解释**: 审计日志下载链接列表,链接有效时间5分钟。 **取值范围**: 不涉及。
50
+
51
+ :return: The links of this ShowAuditLogDownloadLinkResponse.
52
+ :rtype: list[str]
53
+ """
54
+ return self._links
55
+
56
+ @links.setter
57
+ def links(self, links):
58
+ r"""Sets the links of this ShowAuditLogDownloadLinkResponse.
59
+
60
+ **参数解释**: 审计日志下载链接列表,链接有效时间5分钟。 **取值范围**: 不涉及。
61
+
62
+ :param links: The links of this ShowAuditLogDownloadLinkResponse.
63
+ :type links: list[str]
64
+ """
65
+ self._links = links
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ShowAuditLogDownloadLinkResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other