huaweicloudsdkgaussdbforopengauss 3.1.42__py2.py3-none-any.whl → 3.1.44__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 (35) hide show
  1. huaweicloudsdkgaussdbforopengauss/v3/__init__.py +26 -0
  2. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +393 -0
  3. huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +387 -0
  4. huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +26 -0
  5. huaweicloudsdkgaussdbforopengauss/v3/model/backups_result.py +372 -0
  6. huaweicloudsdkgaussdbforopengauss/v3/model/configuration_result.py +339 -0
  7. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_request.py +140 -0
  8. huaweicloudsdkgaussdbforopengauss/v3/model/create_db_instance_response.py +170 -0
  9. huaweicloudsdkgaussdbforopengauss/v3/model/flavor_result.py +310 -0
  10. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_request.py +318 -0
  11. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_backups_response.py +145 -0
  12. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_request.py +260 -0
  13. huaweicloudsdkgaussdbforopengauss/v3/model/list_db_flavors_response.py +145 -0
  14. huaweicloudsdkgaussdbforopengauss/v3/model/list_ha_result.py +142 -0
  15. huaweicloudsdkgaussdbforopengauss/v3/model/list_instance_result.py +932 -0
  16. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_request.py +376 -0
  17. huaweicloudsdkgaussdbforopengauss/v3/model/list_instances_details_response.py +145 -0
  18. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_request.py +173 -0
  19. huaweicloudsdkgaussdbforopengauss/v3/model/list_param_group_templates_response.py +145 -0
  20. huaweicloudsdkgaussdbforopengauss/v3/model/node_result.py +311 -0
  21. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_option.py +143 -0
  22. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_datastore_result.py +142 -0
  23. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_option.py +170 -0
  24. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_ha_result.py +170 -0
  25. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_request_body.py +693 -0
  26. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_instance_result.py +544 -0
  27. huaweicloudsdkgaussdbforopengauss/v3/model/open_gauss_volume_result.py +142 -0
  28. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_request.py +143 -0
  29. huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_response.py +232 -0
  30. huaweicloudsdkgaussdbforopengauss/v3/model/tag_result.py +142 -0
  31. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/METADATA +2 -2
  32. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/RECORD +35 -9
  33. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/LICENSE +0 -0
  34. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/WHEEL +0 -0
  35. {huaweicloudsdkgaussdbforopengauss-3.1.42.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.44.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,376 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListInstancesDetailsRequest:
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
+ 'id': 'str',
22
+ 'name': 'str',
23
+ 'type': 'str',
24
+ 'datastore_type': 'str',
25
+ 'vpc_id': 'str',
26
+ 'subnet_id': 'str',
27
+ 'offset': 'int',
28
+ 'limit': 'int',
29
+ 'tags': 'list[str]'
30
+ }
31
+
32
+ attribute_map = {
33
+ 'x_language': 'X-Language',
34
+ 'id': 'id',
35
+ 'name': 'name',
36
+ 'type': 'type',
37
+ 'datastore_type': 'datastore_type',
38
+ 'vpc_id': 'vpc_id',
39
+ 'subnet_id': 'subnet_id',
40
+ 'offset': 'offset',
41
+ 'limit': 'limit',
42
+ 'tags': 'tags'
43
+ }
44
+
45
+ def __init__(self, x_language=None, id=None, name=None, type=None, datastore_type=None, vpc_id=None, subnet_id=None, offset=None, limit=None, tags=None):
46
+ """ListInstancesDetailsRequest
47
+
48
+ The model defined in huaweicloud sdk
49
+
50
+ :param x_language: 语言
51
+ :type x_language: str
52
+ :param id: 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
53
+ :type id: str
54
+ :param name: 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
55
+ :type name: str
56
+ :param type: 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
57
+ :type type: str
58
+ :param datastore_type: 数据库类型,区分大小写。 - GaussDB
59
+ :type datastore_type: str
60
+ :param vpc_id: 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
61
+ :type vpc_id: str
62
+ :param subnet_id: 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
63
+ :type subnet_id: str
64
+ :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
65
+ :type offset: int
66
+ :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100
67
+ :type limit: int
68
+ :param tags: 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
69
+ :type tags: list[str]
70
+ """
71
+
72
+
73
+
74
+ self._x_language = None
75
+ self._id = None
76
+ self._name = None
77
+ self._type = None
78
+ self._datastore_type = None
79
+ self._vpc_id = None
80
+ self._subnet_id = None
81
+ self._offset = None
82
+ self._limit = None
83
+ self._tags = None
84
+ self.discriminator = None
85
+
86
+ if x_language is not None:
87
+ self.x_language = x_language
88
+ if id is not None:
89
+ self.id = id
90
+ if name is not None:
91
+ self.name = name
92
+ if type is not None:
93
+ self.type = type
94
+ if datastore_type is not None:
95
+ self.datastore_type = datastore_type
96
+ if vpc_id is not None:
97
+ self.vpc_id = vpc_id
98
+ if subnet_id is not None:
99
+ self.subnet_id = subnet_id
100
+ if offset is not None:
101
+ self.offset = offset
102
+ if limit is not None:
103
+ self.limit = limit
104
+ if tags is not None:
105
+ self.tags = tags
106
+
107
+ @property
108
+ def x_language(self):
109
+ """Gets the x_language of this ListInstancesDetailsRequest.
110
+
111
+ 语言
112
+
113
+ :return: The x_language of this ListInstancesDetailsRequest.
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 ListInstancesDetailsRequest.
121
+
122
+ 语言
123
+
124
+ :param x_language: The x_language of this ListInstancesDetailsRequest.
125
+ :type x_language: str
126
+ """
127
+ self._x_language = x_language
128
+
129
+ @property
130
+ def id(self):
131
+ """Gets the id of this ListInstancesDetailsRequest.
132
+
133
+ 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
134
+
135
+ :return: The id of this ListInstancesDetailsRequest.
136
+ :rtype: str
137
+ """
138
+ return self._id
139
+
140
+ @id.setter
141
+ def id(self, id):
142
+ """Sets the id of this ListInstancesDetailsRequest.
143
+
144
+ 实例ID。 “\\*”为系统保留字符,如果id是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照id精确匹配查询。不能只传入“\\*”。
145
+
146
+ :param id: The id of this ListInstancesDetailsRequest.
147
+ :type id: str
148
+ """
149
+ self._id = id
150
+
151
+ @property
152
+ def name(self):
153
+ """Gets the name of this ListInstancesDetailsRequest.
154
+
155
+ 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
156
+
157
+ :return: The name of this ListInstancesDetailsRequest.
158
+ :rtype: str
159
+ """
160
+ return self._name
161
+
162
+ @name.setter
163
+ def name(self, name):
164
+ """Sets the name of this ListInstancesDetailsRequest.
165
+
166
+ 实例名称。 “\\*”为系统保留字符,如果name是以“\\*”起始,表示按照\\*后面的值模糊匹配,否则,按照name精确匹配查询。不能只传入“\\*”。
167
+
168
+ :param name: The name of this ListInstancesDetailsRequest.
169
+ :type name: str
170
+ """
171
+ self._name = name
172
+
173
+ @property
174
+ def type(self):
175
+ """Gets the type of this ListInstancesDetailsRequest.
176
+
177
+ 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
178
+
179
+ :return: The type of this ListInstancesDetailsRequest.
180
+ :rtype: str
181
+ """
182
+ return self._type
183
+
184
+ @type.setter
185
+ def type(self, type):
186
+ """Sets the type of this ListInstancesDetailsRequest.
187
+
188
+ 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
189
+
190
+ :param type: The type of this ListInstancesDetailsRequest.
191
+ :type type: str
192
+ """
193
+ self._type = type
194
+
195
+ @property
196
+ def datastore_type(self):
197
+ """Gets the datastore_type of this ListInstancesDetailsRequest.
198
+
199
+ 数据库类型,区分大小写。 - GaussDB
200
+
201
+ :return: The datastore_type of this ListInstancesDetailsRequest.
202
+ :rtype: str
203
+ """
204
+ return self._datastore_type
205
+
206
+ @datastore_type.setter
207
+ def datastore_type(self, datastore_type):
208
+ """Sets the datastore_type of this ListInstancesDetailsRequest.
209
+
210
+ 数据库类型,区分大小写。 - GaussDB
211
+
212
+ :param datastore_type: The datastore_type of this ListInstancesDetailsRequest.
213
+ :type datastore_type: str
214
+ """
215
+ self._datastore_type = datastore_type
216
+
217
+ @property
218
+ def vpc_id(self):
219
+ """Gets the vpc_id of this ListInstancesDetailsRequest.
220
+
221
+ 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
222
+
223
+ :return: The vpc_id of this ListInstancesDetailsRequest.
224
+ :rtype: str
225
+ """
226
+ return self._vpc_id
227
+
228
+ @vpc_id.setter
229
+ def vpc_id(self, vpc_id):
230
+ """Sets the vpc_id of this ListInstancesDetailsRequest.
231
+
232
+ 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
233
+
234
+ :param vpc_id: The vpc_id of this ListInstancesDetailsRequest.
235
+ :type vpc_id: str
236
+ """
237
+ self._vpc_id = vpc_id
238
+
239
+ @property
240
+ def subnet_id(self):
241
+ """Gets the subnet_id of this ListInstancesDetailsRequest.
242
+
243
+ 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
244
+
245
+ :return: The subnet_id of this ListInstancesDetailsRequest.
246
+ :rtype: str
247
+ """
248
+ return self._subnet_id
249
+
250
+ @subnet_id.setter
251
+ def subnet_id(self, subnet_id):
252
+ """Sets the subnet_id of this ListInstancesDetailsRequest.
253
+
254
+ 子网的网络ID信息。 - 方法1:登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询子网列表](https://support.huaweicloud.com/api-vpc/vpc_subnet01_0003.html)。
255
+
256
+ :param subnet_id: The subnet_id of this ListInstancesDetailsRequest.
257
+ :type subnet_id: str
258
+ """
259
+ self._subnet_id = subnet_id
260
+
261
+ @property
262
+ def offset(self):
263
+ """Gets the offset of this ListInstancesDetailsRequest.
264
+
265
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
266
+
267
+ :return: The offset of this ListInstancesDetailsRequest.
268
+ :rtype: int
269
+ """
270
+ return self._offset
271
+
272
+ @offset.setter
273
+ def offset(self, offset):
274
+ """Sets the offset of this ListInstancesDetailsRequest.
275
+
276
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
277
+
278
+ :param offset: The offset of this ListInstancesDetailsRequest.
279
+ :type offset: int
280
+ """
281
+ self._offset = offset
282
+
283
+ @property
284
+ def limit(self):
285
+ """Gets the limit of this ListInstancesDetailsRequest.
286
+
287
+ 查询记录数。默认为100,不能为负数,最小值为1,最大值为100
288
+
289
+ :return: The limit of this ListInstancesDetailsRequest.
290
+ :rtype: int
291
+ """
292
+ return self._limit
293
+
294
+ @limit.setter
295
+ def limit(self, limit):
296
+ """Sets the limit of this ListInstancesDetailsRequest.
297
+
298
+ 查询记录数。默认为100,不能为负数,最小值为1,最大值为100
299
+
300
+ :param limit: The limit of this ListInstancesDetailsRequest.
301
+ :type limit: int
302
+ """
303
+ self._limit = limit
304
+
305
+ @property
306
+ def tags(self):
307
+ """Gets the tags of this ListInstancesDetailsRequest.
308
+
309
+ 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
310
+
311
+ :return: The tags of this ListInstancesDetailsRequest.
312
+ :rtype: list[str]
313
+ """
314
+ return self._tags
315
+
316
+ @tags.setter
317
+ def tags(self, tags):
318
+ """Sets the tags of this ListInstancesDetailsRequest.
319
+
320
+ 根据实例标签键值对进行查询。 {key}表示标签键,不可以为空或重复。最大长度127个unicode字符。key不能为空或者空字符串,不能为空格,使用之前先trim前后半角空格。不能包含+/?#&=,%特殊字符。 {value}表示标签值,可以为空。最大长度255个unicode字符,使用之前先trim 前后半角空格。不能包含+/?#&=,%特殊字符。 如果value为空,则表示any_value(查询任意value)。 如果同时使用多个标签键值对进行查询,中间使用逗号分隔开,最多包含10组。
321
+
322
+ :param tags: The tags of this ListInstancesDetailsRequest.
323
+ :type tags: list[str]
324
+ """
325
+ self._tags = tags
326
+
327
+ def to_dict(self):
328
+ """Returns the model properties as a dict"""
329
+ result = {}
330
+
331
+ for attr, _ in six.iteritems(self.openapi_types):
332
+ value = getattr(self, attr)
333
+ if isinstance(value, list):
334
+ result[attr] = list(map(
335
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
336
+ value
337
+ ))
338
+ elif hasattr(value, "to_dict"):
339
+ result[attr] = value.to_dict()
340
+ elif isinstance(value, dict):
341
+ result[attr] = dict(map(
342
+ lambda item: (item[0], item[1].to_dict())
343
+ if hasattr(item[1], "to_dict") else item,
344
+ value.items()
345
+ ))
346
+ else:
347
+ if attr in self.sensitive_list:
348
+ result[attr] = "****"
349
+ else:
350
+ result[attr] = value
351
+
352
+ return result
353
+
354
+ def to_str(self):
355
+ """Returns the string representation of the model"""
356
+ import simplejson as json
357
+ if six.PY2:
358
+ import sys
359
+ reload(sys)
360
+ sys.setdefaultencoding("utf-8")
361
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
362
+
363
+ def __repr__(self):
364
+ """For `print`"""
365
+ return self.to_str()
366
+
367
+ def __eq__(self, other):
368
+ """Returns true if both objects are equal"""
369
+ if not isinstance(other, ListInstancesDetailsRequest):
370
+ return False
371
+
372
+ return self.__dict__ == other.__dict__
373
+
374
+ def __ne__(self, other):
375
+ """Returns true if both objects are not equal"""
376
+ 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 ListInstancesDetailsResponse(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
+ 'instances': 'list[ListInstanceResult]',
22
+ 'total_count': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'instances': 'instances',
27
+ 'total_count': 'total_count'
28
+ }
29
+
30
+ def __init__(self, instances=None, total_count=None):
31
+ """ListInstancesDetailsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param instances: 实例信息。
36
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceResult`]
37
+ :param total_count: 总记录数。
38
+ :type total_count: int
39
+ """
40
+
41
+ super(ListInstancesDetailsResponse, self).__init__()
42
+
43
+ self._instances = None
44
+ self._total_count = None
45
+ self.discriminator = None
46
+
47
+ if instances is not None:
48
+ self.instances = instances
49
+ if total_count is not None:
50
+ self.total_count = total_count
51
+
52
+ @property
53
+ def instances(self):
54
+ """Gets the instances of this ListInstancesDetailsResponse.
55
+
56
+ 实例信息。
57
+
58
+ :return: The instances of this ListInstancesDetailsResponse.
59
+ :rtype: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceResult`]
60
+ """
61
+ return self._instances
62
+
63
+ @instances.setter
64
+ def instances(self, instances):
65
+ """Sets the instances of this ListInstancesDetailsResponse.
66
+
67
+ 实例信息。
68
+
69
+ :param instances: The instances of this ListInstancesDetailsResponse.
70
+ :type instances: list[:class:`huaweicloudsdkgaussdbforopengauss.v3.ListInstanceResult`]
71
+ """
72
+ self._instances = instances
73
+
74
+ @property
75
+ def total_count(self):
76
+ """Gets the total_count of this ListInstancesDetailsResponse.
77
+
78
+ 总记录数。
79
+
80
+ :return: The total_count of this ListInstancesDetailsResponse.
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 ListInstancesDetailsResponse.
88
+
89
+ 总记录数。
90
+
91
+ :param total_count: The total_count of this ListInstancesDetailsResponse.
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, ListInstancesDetailsResponse):
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,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListParamGroupTemplatesRequest:
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
+ 'offset': 'int',
22
+ 'limit': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'x_language': 'X-Language',
27
+ 'offset': 'offset',
28
+ 'limit': 'limit'
29
+ }
30
+
31
+ def __init__(self, x_language=None, offset=None, limit=None):
32
+ """ListParamGroupTemplatesRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param x_language: 语言
37
+ :type x_language: str
38
+ :param offset: 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
39
+ :type offset: int
40
+ :param limit: 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
41
+ :type limit: int
42
+ """
43
+
44
+
45
+
46
+ self._x_language = None
47
+ self._offset = None
48
+ self._limit = None
49
+ self.discriminator = None
50
+
51
+ if x_language is not None:
52
+ self.x_language = x_language
53
+ if offset is not None:
54
+ self.offset = offset
55
+ if limit is not None:
56
+ self.limit = limit
57
+
58
+ @property
59
+ def x_language(self):
60
+ """Gets the x_language of this ListParamGroupTemplatesRequest.
61
+
62
+ 语言
63
+
64
+ :return: The x_language of this ListParamGroupTemplatesRequest.
65
+ :rtype: str
66
+ """
67
+ return self._x_language
68
+
69
+ @x_language.setter
70
+ def x_language(self, x_language):
71
+ """Sets the x_language of this ListParamGroupTemplatesRequest.
72
+
73
+ 语言
74
+
75
+ :param x_language: The x_language of this ListParamGroupTemplatesRequest.
76
+ :type x_language: str
77
+ """
78
+ self._x_language = x_language
79
+
80
+ @property
81
+ def offset(self):
82
+ """Gets the offset of this ListParamGroupTemplatesRequest.
83
+
84
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
85
+
86
+ :return: The offset of this ListParamGroupTemplatesRequest.
87
+ :rtype: int
88
+ """
89
+ return self._offset
90
+
91
+ @offset.setter
92
+ def offset(self, offset):
93
+ """Sets the offset of this ListParamGroupTemplatesRequest.
94
+
95
+ 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
96
+
97
+ :param offset: The offset of this ListParamGroupTemplatesRequest.
98
+ :type offset: int
99
+ """
100
+ self._offset = offset
101
+
102
+ @property
103
+ def limit(self):
104
+ """Gets the limit of this ListParamGroupTemplatesRequest.
105
+
106
+ 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
107
+
108
+ :return: The limit of this ListParamGroupTemplatesRequest.
109
+ :rtype: int
110
+ """
111
+ return self._limit
112
+
113
+ @limit.setter
114
+ def limit(self, limit):
115
+ """Sets the limit of this ListParamGroupTemplatesRequest.
116
+
117
+ 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
118
+
119
+ :param limit: The limit of this ListParamGroupTemplatesRequest.
120
+ :type limit: int
121
+ """
122
+ self._limit = limit
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, ListParamGroupTemplatesRequest):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other