huaweicloudsdkgaussdb 3.1.97__py2.py3-none-any.whl → 3.1.99__py2.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 (74) hide show
  1. huaweicloudsdkgaussdb/v3/__init__.py +63 -0
  2. huaweicloudsdkgaussdb/v3/gaussdb_async_client.py +1823 -435
  3. huaweicloudsdkgaussdb/v3/gaussdb_client.py +1823 -435
  4. huaweicloudsdkgaussdb/v3/model/__init__.py +63 -0
  5. huaweicloudsdkgaussdb/v3/model/auto_scaling_record_info.py +318 -0
  6. huaweicloudsdkgaussdb/v3/model/create_lts_configs.py +114 -0
  7. huaweicloudsdkgaussdb/v3/model/create_lts_configs_request.py +140 -0
  8. huaweicloudsdkgaussdb/v3/model/create_lts_configs_response.py +85 -0
  9. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request.py +140 -0
  10. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_request_body.py +114 -0
  11. huaweicloudsdkgaussdb/v3/model/delete_lts_configs_response.py +85 -0
  12. huaweicloudsdkgaussdb/v3/model/instance_delete_lts_config.py +142 -0
  13. huaweicloudsdkgaussdb/v3/model/instance_lts_basic_info.py +318 -0
  14. huaweicloudsdkgaussdb/v3/model/instance_save_lts_config.py +198 -0
  15. huaweicloudsdkgaussdb/v3/model/ip_group_item.py +142 -0
  16. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_request.py +172 -0
  17. huaweicloudsdkgaussdb/v3/model/list_params_template_apply_history_response.py +145 -0
  18. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_request.py +173 -0
  19. huaweicloudsdkgaussdb/v3/model/list_recycle_instances_response.py +145 -0
  20. huaweicloudsdkgaussdb/v3/model/lts_config.py +202 -0
  21. huaweicloudsdkgaussdb/v3/model/lts_configs_v3.py +140 -0
  22. huaweicloudsdkgaussdb/v3/model/modify_gauss_my_sql_proxy_route_mode_request_body.py +3 -3
  23. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request.py +196 -0
  24. huaweicloudsdkgaussdb/v3/model/modify_node_priority_request_body.py +114 -0
  25. huaweicloudsdkgaussdb/v3/model/modify_node_priority_response.py +116 -0
  26. huaweicloudsdkgaussdb/v3/model/mysql_update_instance_name_request.py +32 -3
  27. huaweicloudsdkgaussdb/v3/model/proxy_configuration.py +260 -0
  28. huaweicloudsdkgaussdb/v3/model/proxy_ip_group_detail.py +170 -0
  29. huaweicloudsdkgaussdb/v3/model/proxy_update_proxy_name_request.py +114 -0
  30. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_proxy_version_request.py +142 -0
  31. huaweicloudsdkgaussdb/v3/model/proxy_upgrade_version_detail.py +202 -0
  32. huaweicloudsdkgaussdb/v3/model/recycle_instance_v3.py +579 -0
  33. huaweicloudsdkgaussdb/v3/model/recycle_policy.py +114 -0
  34. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request.py +168 -0
  35. huaweicloudsdkgaussdb/v3/model/rename_instance_node_request_body.py +114 -0
  36. huaweicloudsdkgaussdb/v3/model/rename_instance_node_response.py +116 -0
  37. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_request.py +171 -0
  38. huaweicloudsdkgaussdb/v3/model/restart_proxy_instance_response.py +116 -0
  39. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request.py +140 -0
  40. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_request_body.py +111 -0
  41. huaweicloudsdkgaussdb/v3/model/set_recycle_policy_response.py +85 -0
  42. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_request.py +201 -0
  43. huaweicloudsdkgaussdb/v3/model/show_auto_scaling_history_response.py +145 -0
  44. huaweicloudsdkgaussdb/v3/model/show_instance_eip_request.py +143 -0
  45. huaweicloudsdkgaussdb/v3/model/show_instance_eip_response.py +493 -0
  46. huaweicloudsdkgaussdb/v3/model/show_lts_configs_request.py +260 -0
  47. huaweicloudsdkgaussdb/v3/model/show_lts_configs_response.py +145 -0
  48. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_request.py +258 -0
  49. huaweicloudsdkgaussdb/v3/model/show_proxy_configurations_response.py +145 -0
  50. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_request.py +171 -0
  51. huaweicloudsdkgaussdb/v3/model/show_proxy_ipgroup_response.py +170 -0
  52. huaweicloudsdkgaussdb/v3/model/show_proxy_version_request.py +199 -0
  53. huaweicloudsdkgaussdb/v3/model/show_proxy_version_response.py +174 -0
  54. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_request.py +115 -0
  55. huaweicloudsdkgaussdb/v3/model/show_recycle_policy_response.py +112 -0
  56. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_request.py +143 -0
  57. huaweicloudsdkgaussdb/v3/model/show_slowlog_sensitive_status_response.py +116 -0
  58. huaweicloudsdkgaussdb/v3/model/single_node_info.py +142 -0
  59. huaweicloudsdkgaussdb/v3/model/template_apply_history.py +231 -0
  60. huaweicloudsdkgaussdb/v3/model/update_proxy_name_request.py +196 -0
  61. huaweicloudsdkgaussdb/v3/model/update_proxy_name_response.py +116 -0
  62. huaweicloudsdkgaussdb/v3/model/update_serverless_policy.py +142 -0
  63. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_request.py +168 -0
  64. huaweicloudsdkgaussdb/v3/model/update_serverless_policy_response.py +85 -0
  65. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request.py +168 -0
  66. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_request_body.py +114 -0
  67. huaweicloudsdkgaussdb/v3/model/update_slowlog_sensitive_switch_response.py +85 -0
  68. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_request.py +196 -0
  69. huaweicloudsdkgaussdb/v3/model/upgrade_proxy_version_response.py +116 -0
  70. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/METADATA +2 -2
  71. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/RECORD +74 -11
  72. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/LICENSE +0 -0
  73. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/WHEEL +0 -0
  74. {huaweicloudsdkgaussdb-3.1.97.dist-info → huaweicloudsdkgaussdb-3.1.99.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SingleNodeInfo:
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
+ 'node_id': 'str',
21
+ 'name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'node_id': 'node_id',
26
+ 'name': 'name'
27
+ }
28
+
29
+ def __init__(self, node_id=None, name=None):
30
+ """SingleNodeInfo
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param node_id: 节点ID。
35
+ :type node_id: str
36
+ :param name: 节点名称。支持中文、数字、字母、连接符-和_,长度为4-128。
37
+ :type name: str
38
+ """
39
+
40
+
41
+
42
+ self._node_id = None
43
+ self._name = None
44
+ self.discriminator = None
45
+
46
+ self.node_id = node_id
47
+ self.name = name
48
+
49
+ @property
50
+ def node_id(self):
51
+ """Gets the node_id of this SingleNodeInfo.
52
+
53
+ 节点ID。
54
+
55
+ :return: The node_id of this SingleNodeInfo.
56
+ :rtype: str
57
+ """
58
+ return self._node_id
59
+
60
+ @node_id.setter
61
+ def node_id(self, node_id):
62
+ """Sets the node_id of this SingleNodeInfo.
63
+
64
+ 节点ID。
65
+
66
+ :param node_id: The node_id of this SingleNodeInfo.
67
+ :type node_id: str
68
+ """
69
+ self._node_id = node_id
70
+
71
+ @property
72
+ def name(self):
73
+ """Gets the name of this SingleNodeInfo.
74
+
75
+ 节点名称。支持中文、数字、字母、连接符-和_,长度为4-128。
76
+
77
+ :return: The name of this SingleNodeInfo.
78
+ :rtype: str
79
+ """
80
+ return self._name
81
+
82
+ @name.setter
83
+ def name(self, name):
84
+ """Sets the name of this SingleNodeInfo.
85
+
86
+ 节点名称。支持中文、数字、字母、连接符-和_,长度为4-128。
87
+
88
+ :param name: The name of this SingleNodeInfo.
89
+ :type name: str
90
+ """
91
+ self._name = name
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, SingleNodeInfo):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,231 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TemplateApplyHistory:
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
+ 'target_id': 'str',
21
+ 'target_name': 'str',
22
+ 'apply_result': 'str',
23
+ 'applied_at': 'float',
24
+ 'error_code': 'str'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'target_id': 'target_id',
29
+ 'target_name': 'target_name',
30
+ 'apply_result': 'apply_result',
31
+ 'applied_at': 'applied_at',
32
+ 'error_code': 'error_code'
33
+ }
34
+
35
+ def __init__(self, target_id=None, target_name=None, apply_result=None, applied_at=None, error_code=None):
36
+ """TemplateApplyHistory
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param target_id: 应用实例ID。
41
+ :type target_id: str
42
+ :param target_name: 应用实例名称。
43
+ :type target_name: str
44
+ :param apply_result: 应用结果。
45
+ :type apply_result: str
46
+ :param applied_at: 应用时间。
47
+ :type applied_at: float
48
+ :param error_code: 错误码。
49
+ :type error_code: str
50
+ """
51
+
52
+
53
+
54
+ self._target_id = None
55
+ self._target_name = None
56
+ self._apply_result = None
57
+ self._applied_at = None
58
+ self._error_code = None
59
+ self.discriminator = None
60
+
61
+ if target_id is not None:
62
+ self.target_id = target_id
63
+ if target_name is not None:
64
+ self.target_name = target_name
65
+ if apply_result is not None:
66
+ self.apply_result = apply_result
67
+ if applied_at is not None:
68
+ self.applied_at = applied_at
69
+ if error_code is not None:
70
+ self.error_code = error_code
71
+
72
+ @property
73
+ def target_id(self):
74
+ """Gets the target_id of this TemplateApplyHistory.
75
+
76
+ 应用实例ID。
77
+
78
+ :return: The target_id of this TemplateApplyHistory.
79
+ :rtype: str
80
+ """
81
+ return self._target_id
82
+
83
+ @target_id.setter
84
+ def target_id(self, target_id):
85
+ """Sets the target_id of this TemplateApplyHistory.
86
+
87
+ 应用实例ID。
88
+
89
+ :param target_id: The target_id of this TemplateApplyHistory.
90
+ :type target_id: str
91
+ """
92
+ self._target_id = target_id
93
+
94
+ @property
95
+ def target_name(self):
96
+ """Gets the target_name of this TemplateApplyHistory.
97
+
98
+ 应用实例名称。
99
+
100
+ :return: The target_name of this TemplateApplyHistory.
101
+ :rtype: str
102
+ """
103
+ return self._target_name
104
+
105
+ @target_name.setter
106
+ def target_name(self, target_name):
107
+ """Sets the target_name of this TemplateApplyHistory.
108
+
109
+ 应用实例名称。
110
+
111
+ :param target_name: The target_name of this TemplateApplyHistory.
112
+ :type target_name: str
113
+ """
114
+ self._target_name = target_name
115
+
116
+ @property
117
+ def apply_result(self):
118
+ """Gets the apply_result of this TemplateApplyHistory.
119
+
120
+ 应用结果。
121
+
122
+ :return: The apply_result of this TemplateApplyHistory.
123
+ :rtype: str
124
+ """
125
+ return self._apply_result
126
+
127
+ @apply_result.setter
128
+ def apply_result(self, apply_result):
129
+ """Sets the apply_result of this TemplateApplyHistory.
130
+
131
+ 应用结果。
132
+
133
+ :param apply_result: The apply_result of this TemplateApplyHistory.
134
+ :type apply_result: str
135
+ """
136
+ self._apply_result = apply_result
137
+
138
+ @property
139
+ def applied_at(self):
140
+ """Gets the applied_at of this TemplateApplyHistory.
141
+
142
+ 应用时间。
143
+
144
+ :return: The applied_at of this TemplateApplyHistory.
145
+ :rtype: float
146
+ """
147
+ return self._applied_at
148
+
149
+ @applied_at.setter
150
+ def applied_at(self, applied_at):
151
+ """Sets the applied_at of this TemplateApplyHistory.
152
+
153
+ 应用时间。
154
+
155
+ :param applied_at: The applied_at of this TemplateApplyHistory.
156
+ :type applied_at: float
157
+ """
158
+ self._applied_at = applied_at
159
+
160
+ @property
161
+ def error_code(self):
162
+ """Gets the error_code of this TemplateApplyHistory.
163
+
164
+ 错误码。
165
+
166
+ :return: The error_code of this TemplateApplyHistory.
167
+ :rtype: str
168
+ """
169
+ return self._error_code
170
+
171
+ @error_code.setter
172
+ def error_code(self, error_code):
173
+ """Sets the error_code of this TemplateApplyHistory.
174
+
175
+ 错误码。
176
+
177
+ :param error_code: The error_code of this TemplateApplyHistory.
178
+ :type error_code: str
179
+ """
180
+ self._error_code = error_code
181
+
182
+ def to_dict(self):
183
+ """Returns the model properties as a dict"""
184
+ result = {}
185
+
186
+ for attr, _ in six.iteritems(self.openapi_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
+ if attr in self.sensitive_list:
203
+ result[attr] = "****"
204
+ else:
205
+ result[attr] = value
206
+
207
+ return result
208
+
209
+ def to_str(self):
210
+ """Returns the string representation of the model"""
211
+ import simplejson as json
212
+ if six.PY2:
213
+ import sys
214
+ reload(sys)
215
+ sys.setdefaultencoding("utf-8")
216
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
217
+
218
+ def __repr__(self):
219
+ """For `print`"""
220
+ return self.to_str()
221
+
222
+ def __eq__(self, other):
223
+ """Returns true if both objects are equal"""
224
+ if not isinstance(other, TemplateApplyHistory):
225
+ return False
226
+
227
+ return self.__dict__ == other.__dict__
228
+
229
+ def __ne__(self, other):
230
+ """Returns true if both objects are not equal"""
231
+ return not self == other
@@ -0,0 +1,196 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateProxyNameRequest:
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
+ 'instance_id': 'str',
21
+ 'proxy_id': 'str',
22
+ 'x_language': 'str',
23
+ 'body': 'ProxyUpdateProxyNameRequest'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'instance_id': 'instance_id',
28
+ 'proxy_id': 'proxy_id',
29
+ 'x_language': 'X-Language',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, instance_id=None, proxy_id=None, x_language=None, body=None):
34
+ """UpdateProxyNameRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param instance_id: 实例ID,严格匹配UUID规则。
39
+ :type instance_id: str
40
+ :param proxy_id: 数据库代理ID,严格匹配UUID规则。
41
+ :type proxy_id: str
42
+ :param x_language: 语言。
43
+ :type x_language: str
44
+ :param body: Body of the UpdateProxyNameRequest
45
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
46
+ """
47
+
48
+
49
+
50
+ self._instance_id = None
51
+ self._proxy_id = None
52
+ self._x_language = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ self.instance_id = instance_id
57
+ self.proxy_id = proxy_id
58
+ if x_language is not None:
59
+ self.x_language = x_language
60
+ if body is not None:
61
+ self.body = body
62
+
63
+ @property
64
+ def instance_id(self):
65
+ """Gets the instance_id of this UpdateProxyNameRequest.
66
+
67
+ 实例ID,严格匹配UUID规则。
68
+
69
+ :return: The instance_id of this UpdateProxyNameRequest.
70
+ :rtype: str
71
+ """
72
+ return self._instance_id
73
+
74
+ @instance_id.setter
75
+ def instance_id(self, instance_id):
76
+ """Sets the instance_id of this UpdateProxyNameRequest.
77
+
78
+ 实例ID,严格匹配UUID规则。
79
+
80
+ :param instance_id: The instance_id of this UpdateProxyNameRequest.
81
+ :type instance_id: str
82
+ """
83
+ self._instance_id = instance_id
84
+
85
+ @property
86
+ def proxy_id(self):
87
+ """Gets the proxy_id of this UpdateProxyNameRequest.
88
+
89
+ 数据库代理ID,严格匹配UUID规则。
90
+
91
+ :return: The proxy_id of this UpdateProxyNameRequest.
92
+ :rtype: str
93
+ """
94
+ return self._proxy_id
95
+
96
+ @proxy_id.setter
97
+ def proxy_id(self, proxy_id):
98
+ """Sets the proxy_id of this UpdateProxyNameRequest.
99
+
100
+ 数据库代理ID,严格匹配UUID规则。
101
+
102
+ :param proxy_id: The proxy_id of this UpdateProxyNameRequest.
103
+ :type proxy_id: str
104
+ """
105
+ self._proxy_id = proxy_id
106
+
107
+ @property
108
+ def x_language(self):
109
+ """Gets the x_language of this UpdateProxyNameRequest.
110
+
111
+ 语言。
112
+
113
+ :return: The x_language of this UpdateProxyNameRequest.
114
+ :rtype: str
115
+ """
116
+ return self._x_language
117
+
118
+ @x_language.setter
119
+ def x_language(self, x_language):
120
+ """Sets the x_language of this UpdateProxyNameRequest.
121
+
122
+ 语言。
123
+
124
+ :param x_language: The x_language of this UpdateProxyNameRequest.
125
+ :type x_language: str
126
+ """
127
+ self._x_language = x_language
128
+
129
+ @property
130
+ def body(self):
131
+ """Gets the body of this UpdateProxyNameRequest.
132
+
133
+ :return: The body of this UpdateProxyNameRequest.
134
+ :rtype: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
135
+ """
136
+ return self._body
137
+
138
+ @body.setter
139
+ def body(self, body):
140
+ """Sets the body of this UpdateProxyNameRequest.
141
+
142
+ :param body: The body of this UpdateProxyNameRequest.
143
+ :type body: :class:`huaweicloudsdkgaussdb.v3.ProxyUpdateProxyNameRequest`
144
+ """
145
+ self._body = body
146
+
147
+ def to_dict(self):
148
+ """Returns the model properties as a dict"""
149
+ result = {}
150
+
151
+ for attr, _ in six.iteritems(self.openapi_types):
152
+ value = getattr(self, attr)
153
+ if isinstance(value, list):
154
+ result[attr] = list(map(
155
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
156
+ value
157
+ ))
158
+ elif hasattr(value, "to_dict"):
159
+ result[attr] = value.to_dict()
160
+ elif isinstance(value, dict):
161
+ result[attr] = dict(map(
162
+ lambda item: (item[0], item[1].to_dict())
163
+ if hasattr(item[1], "to_dict") else item,
164
+ value.items()
165
+ ))
166
+ else:
167
+ if attr in self.sensitive_list:
168
+ result[attr] = "****"
169
+ else:
170
+ result[attr] = value
171
+
172
+ return result
173
+
174
+ def to_str(self):
175
+ """Returns the string representation of the model"""
176
+ import simplejson as json
177
+ if six.PY2:
178
+ import sys
179
+ reload(sys)
180
+ sys.setdefaultencoding("utf-8")
181
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
182
+
183
+ def __repr__(self):
184
+ """For `print`"""
185
+ return self.to_str()
186
+
187
+ def __eq__(self, other):
188
+ """Returns true if both objects are equal"""
189
+ if not isinstance(other, UpdateProxyNameRequest):
190
+ return False
191
+
192
+ return self.__dict__ == other.__dict__
193
+
194
+ def __ne__(self, other):
195
+ """Returns true if both objects are not equal"""
196
+ 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 UpdateProxyNameResponse(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
+ }
23
+
24
+ attribute_map = {
25
+ 'result': 'result'
26
+ }
27
+
28
+ def __init__(self, result=None):
29
+ """UpdateProxyNameResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param result: 修改成功或者失败。
34
+ :type result: str
35
+ """
36
+
37
+ super(UpdateProxyNameResponse, self).__init__()
38
+
39
+ self._result = None
40
+ self.discriminator = None
41
+
42
+ if result is not None:
43
+ self.result = result
44
+
45
+ @property
46
+ def result(self):
47
+ """Gets the result of this UpdateProxyNameResponse.
48
+
49
+ 修改成功或者失败。
50
+
51
+ :return: The result of this UpdateProxyNameResponse.
52
+ :rtype: str
53
+ """
54
+ return self._result
55
+
56
+ @result.setter
57
+ def result(self, result):
58
+ """Sets the result of this UpdateProxyNameResponse.
59
+
60
+ 修改成功或者失败。
61
+
62
+ :param result: The result of this UpdateProxyNameResponse.
63
+ :type result: str
64
+ """
65
+ self._result = result
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, UpdateProxyNameResponse):
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