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,260 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowLtsConfigsRequest:
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
+ 'enterprise_project_id': 'str',
22
+ 'instance_id': 'str',
23
+ 'instance_name': 'str',
24
+ 'limit': 'str',
25
+ 'offset': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'x_language': 'X-Language',
30
+ 'enterprise_project_id': 'enterprise_project_id',
31
+ 'instance_id': 'instance_id',
32
+ 'instance_name': 'instance_name',
33
+ 'limit': 'limit',
34
+ 'offset': 'offset'
35
+ }
36
+
37
+ def __init__(self, x_language=None, enterprise_project_id=None, instance_id=None, instance_name=None, limit=None, offset=None):
38
+ """ShowLtsConfigsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param x_language: 语言。
43
+ :type x_language: str
44
+ :param enterprise_project_id: 企业项目ID。
45
+ :type enterprise_project_id: str
46
+ :param instance_id: 实例ID。
47
+ :type instance_id: str
48
+ :param instance_name: 实例名称
49
+ :type instance_name: str
50
+ :param limit: 查询记录数,默认值为10,最小为1,最大为100。
51
+ :type limit: str
52
+ :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。
53
+ :type offset: str
54
+ """
55
+
56
+
57
+
58
+ self._x_language = None
59
+ self._enterprise_project_id = None
60
+ self._instance_id = None
61
+ self._instance_name = None
62
+ self._limit = None
63
+ self._offset = None
64
+ self.discriminator = None
65
+
66
+ if x_language is not None:
67
+ self.x_language = x_language
68
+ if enterprise_project_id is not None:
69
+ self.enterprise_project_id = enterprise_project_id
70
+ if instance_id is not None:
71
+ self.instance_id = instance_id
72
+ if instance_name is not None:
73
+ self.instance_name = instance_name
74
+ if limit is not None:
75
+ self.limit = limit
76
+ if offset is not None:
77
+ self.offset = offset
78
+
79
+ @property
80
+ def x_language(self):
81
+ """Gets the x_language of this ShowLtsConfigsRequest.
82
+
83
+ 语言。
84
+
85
+ :return: The x_language of this ShowLtsConfigsRequest.
86
+ :rtype: str
87
+ """
88
+ return self._x_language
89
+
90
+ @x_language.setter
91
+ def x_language(self, x_language):
92
+ """Sets the x_language of this ShowLtsConfigsRequest.
93
+
94
+ 语言。
95
+
96
+ :param x_language: The x_language of this ShowLtsConfigsRequest.
97
+ :type x_language: str
98
+ """
99
+ self._x_language = x_language
100
+
101
+ @property
102
+ def enterprise_project_id(self):
103
+ """Gets the enterprise_project_id of this ShowLtsConfigsRequest.
104
+
105
+ 企业项目ID。
106
+
107
+ :return: The enterprise_project_id of this ShowLtsConfigsRequest.
108
+ :rtype: str
109
+ """
110
+ return self._enterprise_project_id
111
+
112
+ @enterprise_project_id.setter
113
+ def enterprise_project_id(self, enterprise_project_id):
114
+ """Sets the enterprise_project_id of this ShowLtsConfigsRequest.
115
+
116
+ 企业项目ID。
117
+
118
+ :param enterprise_project_id: The enterprise_project_id of this ShowLtsConfigsRequest.
119
+ :type enterprise_project_id: str
120
+ """
121
+ self._enterprise_project_id = enterprise_project_id
122
+
123
+ @property
124
+ def instance_id(self):
125
+ """Gets the instance_id of this ShowLtsConfigsRequest.
126
+
127
+ 实例ID。
128
+
129
+ :return: The instance_id of this ShowLtsConfigsRequest.
130
+ :rtype: str
131
+ """
132
+ return self._instance_id
133
+
134
+ @instance_id.setter
135
+ def instance_id(self, instance_id):
136
+ """Sets the instance_id of this ShowLtsConfigsRequest.
137
+
138
+ 实例ID。
139
+
140
+ :param instance_id: The instance_id of this ShowLtsConfigsRequest.
141
+ :type instance_id: str
142
+ """
143
+ self._instance_id = instance_id
144
+
145
+ @property
146
+ def instance_name(self):
147
+ """Gets the instance_name of this ShowLtsConfigsRequest.
148
+
149
+ 实例名称
150
+
151
+ :return: The instance_name of this ShowLtsConfigsRequest.
152
+ :rtype: str
153
+ """
154
+ return self._instance_name
155
+
156
+ @instance_name.setter
157
+ def instance_name(self, instance_name):
158
+ """Sets the instance_name of this ShowLtsConfigsRequest.
159
+
160
+ 实例名称
161
+
162
+ :param instance_name: The instance_name of this ShowLtsConfigsRequest.
163
+ :type instance_name: str
164
+ """
165
+ self._instance_name = instance_name
166
+
167
+ @property
168
+ def limit(self):
169
+ """Gets the limit of this ShowLtsConfigsRequest.
170
+
171
+ 查询记录数,默认值为10,最小为1,最大为100。
172
+
173
+ :return: The limit of this ShowLtsConfigsRequest.
174
+ :rtype: str
175
+ """
176
+ return self._limit
177
+
178
+ @limit.setter
179
+ def limit(self, limit):
180
+ """Sets the limit of this ShowLtsConfigsRequest.
181
+
182
+ 查询记录数,默认值为10,最小为1,最大为100。
183
+
184
+ :param limit: The limit of this ShowLtsConfigsRequest.
185
+ :type limit: str
186
+ """
187
+ self._limit = limit
188
+
189
+ @property
190
+ def offset(self):
191
+ """Gets the offset of this ShowLtsConfigsRequest.
192
+
193
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。
194
+
195
+ :return: The offset of this ShowLtsConfigsRequest.
196
+ :rtype: str
197
+ """
198
+ return self._offset
199
+
200
+ @offset.setter
201
+ def offset(self, offset):
202
+ """Sets the offset of this ShowLtsConfigsRequest.
203
+
204
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。
205
+
206
+ :param offset: The offset of this ShowLtsConfigsRequest.
207
+ :type offset: str
208
+ """
209
+ self._offset = offset
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, ShowLtsConfigsRequest):
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,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 ShowLtsConfigsResponse(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
+ 'instance_lts_configs': 'list[LtsConfigsV3]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'instance_lts_configs': 'instance_lts_configs',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, instance_lts_configs=None, total_count=None):
31
+ """ShowLtsConfigsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param instance_lts_configs: 实例LTS日志配置列表
36
+ :type instance_lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.LtsConfigsV3`]
37
+ :param total_count: 总数。
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ShowLtsConfigsResponse, self).__init__()
42
+
43
+ self._instance_lts_configs = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if instance_lts_configs is not None:
48
+ self.instance_lts_configs = instance_lts_configs
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def instance_lts_configs(self):
54
+ """Gets the instance_lts_configs of this ShowLtsConfigsResponse.
55
+
56
+ 实例LTS日志配置列表
57
+
58
+ :return: The instance_lts_configs of this ShowLtsConfigsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdb.v3.LtsConfigsV3`]
60
+ """
61
+ return self._instance_lts_configs
62
+
63
+ @instance_lts_configs.setter
64
+ def instance_lts_configs(self, instance_lts_configs):
65
+ """Sets the instance_lts_configs of this ShowLtsConfigsResponse.
66
+
67
+ 实例LTS日志配置列表
68
+
69
+ :param instance_lts_configs: The instance_lts_configs of this ShowLtsConfigsResponse.
70
+ :type instance_lts_configs: list[:class:`huaweicloudsdkgaussdb.v3.LtsConfigsV3`]
71
+ """
72
+ self._instance_lts_configs = instance_lts_configs
73
+
74
+ @property
75
+ def total_count(self):
76
+ """Gets the total_count of this ShowLtsConfigsResponse.
77
+
78
+ 总数。
79
+
80
+ :return: The total_count of this ShowLtsConfigsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total_count
84
+
85
+ @total_count.setter
86
+ def total_count(self, total_count):
87
+ """Sets the total_count of this ShowLtsConfigsResponse.
88
+
89
+ 总数。
90
+
91
+ :param total_count: The total_count of this ShowLtsConfigsResponse.
92
+ :type total_count: int
93
+ """
94
+ self._total_count = total_count
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, ShowLtsConfigsResponse):
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,258 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowProxyConfigurationsRequest:
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
+ 'proxy_id': 'str',
23
+ 'limit': 'int',
24
+ 'offset': 'int',
25
+ 'name': 'str'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'x_language': 'X-Language',
30
+ 'instance_id': 'instance_id',
31
+ 'proxy_id': 'proxy_id',
32
+ 'limit': 'limit',
33
+ 'offset': 'offset',
34
+ 'name': 'name'
35
+ }
36
+
37
+ def __init__(self, x_language=None, instance_id=None, proxy_id=None, limit=None, offset=None, name=None):
38
+ """ShowProxyConfigurationsRequest
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param x_language: 语言。
43
+ :type x_language: str
44
+ :param instance_id: 实例ID。
45
+ :type instance_id: str
46
+ :param proxy_id: 数据库代理ID。
47
+ :type proxy_id: str
48
+ :param limit: 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
49
+ :type limit: int
50
+ :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
51
+ :type offset: int
52
+ :param name: 参数名称,为空则全量查询。
53
+ :type name: str
54
+ """
55
+
56
+
57
+
58
+ self._x_language = None
59
+ self._instance_id = None
60
+ self._proxy_id = None
61
+ self._limit = None
62
+ self._offset = None
63
+ self._name = None
64
+ self.discriminator = None
65
+
66
+ if x_language is not None:
67
+ self.x_language = x_language
68
+ self.instance_id = instance_id
69
+ self.proxy_id = proxy_id
70
+ if limit is not None:
71
+ self.limit = limit
72
+ if offset is not None:
73
+ self.offset = offset
74
+ if name is not None:
75
+ self.name = name
76
+
77
+ @property
78
+ def x_language(self):
79
+ """Gets the x_language of this ShowProxyConfigurationsRequest.
80
+
81
+ 语言。
82
+
83
+ :return: The x_language of this ShowProxyConfigurationsRequest.
84
+ :rtype: str
85
+ """
86
+ return self._x_language
87
+
88
+ @x_language.setter
89
+ def x_language(self, x_language):
90
+ """Sets the x_language of this ShowProxyConfigurationsRequest.
91
+
92
+ 语言。
93
+
94
+ :param x_language: The x_language of this ShowProxyConfigurationsRequest.
95
+ :type x_language: str
96
+ """
97
+ self._x_language = x_language
98
+
99
+ @property
100
+ def instance_id(self):
101
+ """Gets the instance_id of this ShowProxyConfigurationsRequest.
102
+
103
+ 实例ID。
104
+
105
+ :return: The instance_id of this ShowProxyConfigurationsRequest.
106
+ :rtype: str
107
+ """
108
+ return self._instance_id
109
+
110
+ @instance_id.setter
111
+ def instance_id(self, instance_id):
112
+ """Sets the instance_id of this ShowProxyConfigurationsRequest.
113
+
114
+ 实例ID。
115
+
116
+ :param instance_id: The instance_id of this ShowProxyConfigurationsRequest.
117
+ :type instance_id: str
118
+ """
119
+ self._instance_id = instance_id
120
+
121
+ @property
122
+ def proxy_id(self):
123
+ """Gets the proxy_id of this ShowProxyConfigurationsRequest.
124
+
125
+ 数据库代理ID。
126
+
127
+ :return: The proxy_id of this ShowProxyConfigurationsRequest.
128
+ :rtype: str
129
+ """
130
+ return self._proxy_id
131
+
132
+ @proxy_id.setter
133
+ def proxy_id(self, proxy_id):
134
+ """Sets the proxy_id of this ShowProxyConfigurationsRequest.
135
+
136
+ 数据库代理ID。
137
+
138
+ :param proxy_id: The proxy_id of this ShowProxyConfigurationsRequest.
139
+ :type proxy_id: str
140
+ """
141
+ self._proxy_id = proxy_id
142
+
143
+ @property
144
+ def limit(self):
145
+ """Gets the limit of this ShowProxyConfigurationsRequest.
146
+
147
+ 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
148
+
149
+ :return: The limit of this ShowProxyConfigurationsRequest.
150
+ :rtype: int
151
+ """
152
+ return self._limit
153
+
154
+ @limit.setter
155
+ def limit(self, limit):
156
+ """Sets the limit of this ShowProxyConfigurationsRequest.
157
+
158
+ 查询记录数。默认为10,不能为负数,最小值为1,最大值为100。
159
+
160
+ :param limit: The limit of this ShowProxyConfigurationsRequest.
161
+ :type limit: int
162
+ """
163
+ self._limit = limit
164
+
165
+ @property
166
+ def offset(self):
167
+ """Gets the offset of this ShowProxyConfigurationsRequest.
168
+
169
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
170
+
171
+ :return: The offset of this ShowProxyConfigurationsRequest.
172
+ :rtype: int
173
+ """
174
+ return self._offset
175
+
176
+ @offset.setter
177
+ def offset(self, offset):
178
+ """Sets the offset of this ShowProxyConfigurationsRequest.
179
+
180
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
181
+
182
+ :param offset: The offset of this ShowProxyConfigurationsRequest.
183
+ :type offset: int
184
+ """
185
+ self._offset = offset
186
+
187
+ @property
188
+ def name(self):
189
+ """Gets the name of this ShowProxyConfigurationsRequest.
190
+
191
+ 参数名称,为空则全量查询。
192
+
193
+ :return: The name of this ShowProxyConfigurationsRequest.
194
+ :rtype: str
195
+ """
196
+ return self._name
197
+
198
+ @name.setter
199
+ def name(self, name):
200
+ """Sets the name of this ShowProxyConfigurationsRequest.
201
+
202
+ 参数名称,为空则全量查询。
203
+
204
+ :param name: The name of this ShowProxyConfigurationsRequest.
205
+ :type name: str
206
+ """
207
+ self._name = name
208
+
209
+ def to_dict(self):
210
+ """Returns the model properties as a dict"""
211
+ result = {}
212
+
213
+ for attr, _ in six.iteritems(self.openapi_types):
214
+ value = getattr(self, attr)
215
+ if isinstance(value, list):
216
+ result[attr] = list(map(
217
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
218
+ value
219
+ ))
220
+ elif hasattr(value, "to_dict"):
221
+ result[attr] = value.to_dict()
222
+ elif isinstance(value, dict):
223
+ result[attr] = dict(map(
224
+ lambda item: (item[0], item[1].to_dict())
225
+ if hasattr(item[1], "to_dict") else item,
226
+ value.items()
227
+ ))
228
+ else:
229
+ if attr in self.sensitive_list:
230
+ result[attr] = "****"
231
+ else:
232
+ result[attr] = value
233
+
234
+ return result
235
+
236
+ def to_str(self):
237
+ """Returns the string representation of the model"""
238
+ import simplejson as json
239
+ if six.PY2:
240
+ import sys
241
+ reload(sys)
242
+ sys.setdefaultencoding("utf-8")
243
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
244
+
245
+ def __repr__(self):
246
+ """For `print`"""
247
+ return self.to_str()
248
+
249
+ def __eq__(self, other):
250
+ """Returns true if both objects are equal"""
251
+ if not isinstance(other, ShowProxyConfigurationsRequest):
252
+ return False
253
+
254
+ return self.__dict__ == other.__dict__
255
+
256
+ def __ne__(self, other):
257
+ """Returns true if both objects are not equal"""
258
+ return not self == other