tencentcloud-sdk-python-intl-en 3.0.1246__py2.py3-none-any.whl → 3.0.1248__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ctsdb/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/ctsdb_client.py +78 -0
- tencentcloud/ctsdb/v20230202/errorcodes.py +24 -0
- tencentcloud/ctsdb/v20230202/models.py +1246 -0
- tencentcloud/iai/v20200303/iai_client.py +1 -2
- tencentcloud/mdp/v20200527/models.py +64 -0
- tencentcloud/ocr/v20181119/models.py +50 -30
- {tencentcloud_sdk_python_intl_en-3.0.1246.dist-info → tencentcloud_sdk_python_intl_en-3.0.1248.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1246.dist-info → tencentcloud_sdk_python_intl_en-3.0.1248.dist-info}/RECORD +13 -8
- {tencentcloud_sdk_python_intl_en-3.0.1246.dist-info → tencentcloud_sdk_python_intl_en-3.0.1248.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1246.dist-info → tencentcloud_sdk_python_intl_en-3.0.1248.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1246 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import warnings
|
17
|
+
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
19
|
+
|
20
|
+
|
21
|
+
class Cluster(AbstractModel):
|
22
|
+
"""Instance-related information.
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _AppID: User APP ID.
|
29
|
+
|
30
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
31
|
+
:type AppID: int
|
32
|
+
:param _ClusterID: Instance ID.
|
33
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
34
|
+
:type ClusterID: str
|
35
|
+
:param _AccountID: Account ID.Note: This field may return null, indicating that no valid values can be obtained.
|
36
|
+
:type AccountID: str
|
37
|
+
:param _Name: Customizes the instance name.
|
38
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
39
|
+
:type Name: str
|
40
|
+
:param _Region: Region.Note: This field may return null, indicating that no valid values can be obtained.
|
41
|
+
:type Region: str
|
42
|
+
:param _Zones: Availability zone.Note: This field may return null, indicating that no valid values can be obtained.
|
43
|
+
:type Zones: str
|
44
|
+
:param _Networks: Network information.
|
45
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
46
|
+
:type Networks: list of Network
|
47
|
+
:param _Spec: Instance specification.
|
48
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
49
|
+
:type Spec: :class:`tencentcloud.ctsdb.v20230202.models.Spec`
|
50
|
+
:param _Status: Instance status. 0: running; 1: creating; 16: adjusting configuration; 17: isolating; 18: to be terminated; 19: recovering; 20: shutting down; 21: terminating; 22: terminated.
|
51
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
52
|
+
:type Status: int
|
53
|
+
:param _Period: Instance validity period.
|
54
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
55
|
+
:type Period: :class:`tencentcloud.ctsdb.v20230202.models.Period`
|
56
|
+
:param _CreatedAt: Creation time.Note: This field may return null, indicating that no valid values can be obtained.
|
57
|
+
:type CreatedAt: str
|
58
|
+
:param _UpdatedAt: Last modification time.
|
59
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
60
|
+
:type UpdatedAt: str
|
61
|
+
:param _Tenant: Internal features of the product.
|
62
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
63
|
+
:type Tenant: :class:`tencentcloud.ctsdb.v20230202.models.Tenant`
|
64
|
+
:param _Tags: Tag.
|
65
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
66
|
+
:type Tags: list of Tag
|
67
|
+
:param _Security: Security group information.Note: This field may return null, indicating that no valid values can be obtained.
|
68
|
+
:type Security: list of str
|
69
|
+
"""
|
70
|
+
self._AppID = None
|
71
|
+
self._ClusterID = None
|
72
|
+
self._AccountID = None
|
73
|
+
self._Name = None
|
74
|
+
self._Region = None
|
75
|
+
self._Zones = None
|
76
|
+
self._Networks = None
|
77
|
+
self._Spec = None
|
78
|
+
self._Status = None
|
79
|
+
self._Period = None
|
80
|
+
self._CreatedAt = None
|
81
|
+
self._UpdatedAt = None
|
82
|
+
self._Tenant = None
|
83
|
+
self._Tags = None
|
84
|
+
self._Security = None
|
85
|
+
|
86
|
+
@property
|
87
|
+
def AppID(self):
|
88
|
+
"""User APP ID.
|
89
|
+
|
90
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
91
|
+
:rtype: int
|
92
|
+
"""
|
93
|
+
return self._AppID
|
94
|
+
|
95
|
+
@AppID.setter
|
96
|
+
def AppID(self, AppID):
|
97
|
+
self._AppID = AppID
|
98
|
+
|
99
|
+
@property
|
100
|
+
def ClusterID(self):
|
101
|
+
"""Instance ID.
|
102
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
103
|
+
:rtype: str
|
104
|
+
"""
|
105
|
+
return self._ClusterID
|
106
|
+
|
107
|
+
@ClusterID.setter
|
108
|
+
def ClusterID(self, ClusterID):
|
109
|
+
self._ClusterID = ClusterID
|
110
|
+
|
111
|
+
@property
|
112
|
+
def AccountID(self):
|
113
|
+
"""Account ID.Note: This field may return null, indicating that no valid values can be obtained.
|
114
|
+
:rtype: str
|
115
|
+
"""
|
116
|
+
return self._AccountID
|
117
|
+
|
118
|
+
@AccountID.setter
|
119
|
+
def AccountID(self, AccountID):
|
120
|
+
self._AccountID = AccountID
|
121
|
+
|
122
|
+
@property
|
123
|
+
def Name(self):
|
124
|
+
"""Customizes the instance name.
|
125
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
126
|
+
:rtype: str
|
127
|
+
"""
|
128
|
+
return self._Name
|
129
|
+
|
130
|
+
@Name.setter
|
131
|
+
def Name(self, Name):
|
132
|
+
self._Name = Name
|
133
|
+
|
134
|
+
@property
|
135
|
+
def Region(self):
|
136
|
+
"""Region.Note: This field may return null, indicating that no valid values can be obtained.
|
137
|
+
:rtype: str
|
138
|
+
"""
|
139
|
+
return self._Region
|
140
|
+
|
141
|
+
@Region.setter
|
142
|
+
def Region(self, Region):
|
143
|
+
self._Region = Region
|
144
|
+
|
145
|
+
@property
|
146
|
+
def Zones(self):
|
147
|
+
"""Availability zone.Note: This field may return null, indicating that no valid values can be obtained.
|
148
|
+
:rtype: str
|
149
|
+
"""
|
150
|
+
return self._Zones
|
151
|
+
|
152
|
+
@Zones.setter
|
153
|
+
def Zones(self, Zones):
|
154
|
+
self._Zones = Zones
|
155
|
+
|
156
|
+
@property
|
157
|
+
def Networks(self):
|
158
|
+
warnings.warn("parameter `Networks` is deprecated", DeprecationWarning)
|
159
|
+
|
160
|
+
"""Network information.
|
161
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
162
|
+
:rtype: list of Network
|
163
|
+
"""
|
164
|
+
return self._Networks
|
165
|
+
|
166
|
+
@Networks.setter
|
167
|
+
def Networks(self, Networks):
|
168
|
+
warnings.warn("parameter `Networks` is deprecated", DeprecationWarning)
|
169
|
+
|
170
|
+
self._Networks = Networks
|
171
|
+
|
172
|
+
@property
|
173
|
+
def Spec(self):
|
174
|
+
warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
|
175
|
+
|
176
|
+
"""Instance specification.
|
177
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
178
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Spec`
|
179
|
+
"""
|
180
|
+
return self._Spec
|
181
|
+
|
182
|
+
@Spec.setter
|
183
|
+
def Spec(self, Spec):
|
184
|
+
warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
|
185
|
+
|
186
|
+
self._Spec = Spec
|
187
|
+
|
188
|
+
@property
|
189
|
+
def Status(self):
|
190
|
+
"""Instance status. 0: running; 1: creating; 16: adjusting configuration; 17: isolating; 18: to be terminated; 19: recovering; 20: shutting down; 21: terminating; 22: terminated.
|
191
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
192
|
+
:rtype: int
|
193
|
+
"""
|
194
|
+
return self._Status
|
195
|
+
|
196
|
+
@Status.setter
|
197
|
+
def Status(self, Status):
|
198
|
+
self._Status = Status
|
199
|
+
|
200
|
+
@property
|
201
|
+
def Period(self):
|
202
|
+
"""Instance validity period.
|
203
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
204
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Period`
|
205
|
+
"""
|
206
|
+
return self._Period
|
207
|
+
|
208
|
+
@Period.setter
|
209
|
+
def Period(self, Period):
|
210
|
+
self._Period = Period
|
211
|
+
|
212
|
+
@property
|
213
|
+
def CreatedAt(self):
|
214
|
+
"""Creation time.Note: This field may return null, indicating that no valid values can be obtained.
|
215
|
+
:rtype: str
|
216
|
+
"""
|
217
|
+
return self._CreatedAt
|
218
|
+
|
219
|
+
@CreatedAt.setter
|
220
|
+
def CreatedAt(self, CreatedAt):
|
221
|
+
self._CreatedAt = CreatedAt
|
222
|
+
|
223
|
+
@property
|
224
|
+
def UpdatedAt(self):
|
225
|
+
"""Last modification time.
|
226
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
227
|
+
:rtype: str
|
228
|
+
"""
|
229
|
+
return self._UpdatedAt
|
230
|
+
|
231
|
+
@UpdatedAt.setter
|
232
|
+
def UpdatedAt(self, UpdatedAt):
|
233
|
+
self._UpdatedAt = UpdatedAt
|
234
|
+
|
235
|
+
@property
|
236
|
+
def Tenant(self):
|
237
|
+
"""Internal features of the product.
|
238
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
239
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Tenant`
|
240
|
+
"""
|
241
|
+
return self._Tenant
|
242
|
+
|
243
|
+
@Tenant.setter
|
244
|
+
def Tenant(self, Tenant):
|
245
|
+
self._Tenant = Tenant
|
246
|
+
|
247
|
+
@property
|
248
|
+
def Tags(self):
|
249
|
+
"""Tag.
|
250
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
251
|
+
:rtype: list of Tag
|
252
|
+
"""
|
253
|
+
return self._Tags
|
254
|
+
|
255
|
+
@Tags.setter
|
256
|
+
def Tags(self, Tags):
|
257
|
+
self._Tags = Tags
|
258
|
+
|
259
|
+
@property
|
260
|
+
def Security(self):
|
261
|
+
"""Security group information.Note: This field may return null, indicating that no valid values can be obtained.
|
262
|
+
:rtype: list of str
|
263
|
+
"""
|
264
|
+
return self._Security
|
265
|
+
|
266
|
+
@Security.setter
|
267
|
+
def Security(self, Security):
|
268
|
+
self._Security = Security
|
269
|
+
|
270
|
+
|
271
|
+
def _deserialize(self, params):
|
272
|
+
self._AppID = params.get("AppID")
|
273
|
+
self._ClusterID = params.get("ClusterID")
|
274
|
+
self._AccountID = params.get("AccountID")
|
275
|
+
self._Name = params.get("Name")
|
276
|
+
self._Region = params.get("Region")
|
277
|
+
self._Zones = params.get("Zones")
|
278
|
+
if params.get("Networks") is not None:
|
279
|
+
self._Networks = []
|
280
|
+
for item in params.get("Networks"):
|
281
|
+
obj = Network()
|
282
|
+
obj._deserialize(item)
|
283
|
+
self._Networks.append(obj)
|
284
|
+
if params.get("Spec") is not None:
|
285
|
+
self._Spec = Spec()
|
286
|
+
self._Spec._deserialize(params.get("Spec"))
|
287
|
+
self._Status = params.get("Status")
|
288
|
+
if params.get("Period") is not None:
|
289
|
+
self._Period = Period()
|
290
|
+
self._Period._deserialize(params.get("Period"))
|
291
|
+
self._CreatedAt = params.get("CreatedAt")
|
292
|
+
self._UpdatedAt = params.get("UpdatedAt")
|
293
|
+
if params.get("Tenant") is not None:
|
294
|
+
self._Tenant = Tenant()
|
295
|
+
self._Tenant._deserialize(params.get("Tenant"))
|
296
|
+
if params.get("Tags") is not None:
|
297
|
+
self._Tags = []
|
298
|
+
for item in params.get("Tags"):
|
299
|
+
obj = Tag()
|
300
|
+
obj._deserialize(item)
|
301
|
+
self._Tags.append(obj)
|
302
|
+
self._Security = params.get("Security")
|
303
|
+
memeber_set = set(params.keys())
|
304
|
+
for name, value in vars(self).items():
|
305
|
+
property_name = name[1:]
|
306
|
+
if property_name in memeber_set:
|
307
|
+
memeber_set.remove(property_name)
|
308
|
+
if len(memeber_set) > 0:
|
309
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
class Database(AbstractModel):
|
314
|
+
"""Database-related information.
|
315
|
+
|
316
|
+
"""
|
317
|
+
|
318
|
+
def __init__(self):
|
319
|
+
r"""
|
320
|
+
:param _ClusterID: Instance ID.
|
321
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
322
|
+
:type ClusterID: str
|
323
|
+
:param _Name: Database name.Note: This field may return null, indicating that no valid values can be obtained.
|
324
|
+
:type Name: str
|
325
|
+
:param _CoolDownInDays: Cold storage time (days).
|
326
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
327
|
+
:type CoolDownInDays: int
|
328
|
+
:param _RetentionInDays: Data retention time (days).
|
329
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
330
|
+
:type RetentionInDays: int
|
331
|
+
:param _Remark: Remarks.Note: This field may return null, indicating that no valid values can be obtained.
|
332
|
+
:type Remark: str
|
333
|
+
:param _Status: Status. 0: initializing resources; 1: creating resources; 2: normal status; 3: deleting resources; 4: deleted resources; 5: disabling resources; 6: disabled resources; 7: abnormal resources, and manual operation is required.
|
334
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
335
|
+
:type Status: int
|
336
|
+
:param _CreatedAt: Creation time.Note: This field may return null, indicating that no valid values can be obtained.
|
337
|
+
:type CreatedAt: str
|
338
|
+
:param _UpdatedAt: Last modification time.
|
339
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
340
|
+
:type UpdatedAt: str
|
341
|
+
"""
|
342
|
+
self._ClusterID = None
|
343
|
+
self._Name = None
|
344
|
+
self._CoolDownInDays = None
|
345
|
+
self._RetentionInDays = None
|
346
|
+
self._Remark = None
|
347
|
+
self._Status = None
|
348
|
+
self._CreatedAt = None
|
349
|
+
self._UpdatedAt = None
|
350
|
+
|
351
|
+
@property
|
352
|
+
def ClusterID(self):
|
353
|
+
"""Instance ID.
|
354
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
355
|
+
:rtype: str
|
356
|
+
"""
|
357
|
+
return self._ClusterID
|
358
|
+
|
359
|
+
@ClusterID.setter
|
360
|
+
def ClusterID(self, ClusterID):
|
361
|
+
self._ClusterID = ClusterID
|
362
|
+
|
363
|
+
@property
|
364
|
+
def Name(self):
|
365
|
+
"""Database name.Note: This field may return null, indicating that no valid values can be obtained.
|
366
|
+
:rtype: str
|
367
|
+
"""
|
368
|
+
return self._Name
|
369
|
+
|
370
|
+
@Name.setter
|
371
|
+
def Name(self, Name):
|
372
|
+
self._Name = Name
|
373
|
+
|
374
|
+
@property
|
375
|
+
def CoolDownInDays(self):
|
376
|
+
"""Cold storage time (days).
|
377
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
378
|
+
:rtype: int
|
379
|
+
"""
|
380
|
+
return self._CoolDownInDays
|
381
|
+
|
382
|
+
@CoolDownInDays.setter
|
383
|
+
def CoolDownInDays(self, CoolDownInDays):
|
384
|
+
self._CoolDownInDays = CoolDownInDays
|
385
|
+
|
386
|
+
@property
|
387
|
+
def RetentionInDays(self):
|
388
|
+
"""Data retention time (days).
|
389
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
390
|
+
:rtype: int
|
391
|
+
"""
|
392
|
+
return self._RetentionInDays
|
393
|
+
|
394
|
+
@RetentionInDays.setter
|
395
|
+
def RetentionInDays(self, RetentionInDays):
|
396
|
+
self._RetentionInDays = RetentionInDays
|
397
|
+
|
398
|
+
@property
|
399
|
+
def Remark(self):
|
400
|
+
"""Remarks.Note: This field may return null, indicating that no valid values can be obtained.
|
401
|
+
:rtype: str
|
402
|
+
"""
|
403
|
+
return self._Remark
|
404
|
+
|
405
|
+
@Remark.setter
|
406
|
+
def Remark(self, Remark):
|
407
|
+
self._Remark = Remark
|
408
|
+
|
409
|
+
@property
|
410
|
+
def Status(self):
|
411
|
+
"""Status. 0: initializing resources; 1: creating resources; 2: normal status; 3: deleting resources; 4: deleted resources; 5: disabling resources; 6: disabled resources; 7: abnormal resources, and manual operation is required.
|
412
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
413
|
+
:rtype: int
|
414
|
+
"""
|
415
|
+
return self._Status
|
416
|
+
|
417
|
+
@Status.setter
|
418
|
+
def Status(self, Status):
|
419
|
+
self._Status = Status
|
420
|
+
|
421
|
+
@property
|
422
|
+
def CreatedAt(self):
|
423
|
+
"""Creation time.Note: This field may return null, indicating that no valid values can be obtained.
|
424
|
+
:rtype: str
|
425
|
+
"""
|
426
|
+
return self._CreatedAt
|
427
|
+
|
428
|
+
@CreatedAt.setter
|
429
|
+
def CreatedAt(self, CreatedAt):
|
430
|
+
self._CreatedAt = CreatedAt
|
431
|
+
|
432
|
+
@property
|
433
|
+
def UpdatedAt(self):
|
434
|
+
"""Last modification time.
|
435
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
436
|
+
:rtype: str
|
437
|
+
"""
|
438
|
+
return self._UpdatedAt
|
439
|
+
|
440
|
+
@UpdatedAt.setter
|
441
|
+
def UpdatedAt(self, UpdatedAt):
|
442
|
+
self._UpdatedAt = UpdatedAt
|
443
|
+
|
444
|
+
|
445
|
+
def _deserialize(self, params):
|
446
|
+
self._ClusterID = params.get("ClusterID")
|
447
|
+
self._Name = params.get("Name")
|
448
|
+
self._CoolDownInDays = params.get("CoolDownInDays")
|
449
|
+
self._RetentionInDays = params.get("RetentionInDays")
|
450
|
+
self._Remark = params.get("Remark")
|
451
|
+
self._Status = params.get("Status")
|
452
|
+
self._CreatedAt = params.get("CreatedAt")
|
453
|
+
self._UpdatedAt = params.get("UpdatedAt")
|
454
|
+
memeber_set = set(params.keys())
|
455
|
+
for name, value in vars(self).items():
|
456
|
+
property_name = name[1:]
|
457
|
+
if property_name in memeber_set:
|
458
|
+
memeber_set.remove(property_name)
|
459
|
+
if len(memeber_set) > 0:
|
460
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
class DescribeClustersRequest(AbstractModel):
|
465
|
+
"""DescribeClusters request structure.
|
466
|
+
|
467
|
+
"""
|
468
|
+
|
469
|
+
def __init__(self):
|
470
|
+
r"""
|
471
|
+
:param _PageNumber: Current page number.
|
472
|
+
:type PageNumber: int
|
473
|
+
:param _PageSize: Page size.
|
474
|
+
:type PageSize: int
|
475
|
+
:param _Filters: Query parameter: Filtering and querying by instance ID (cluster_id) and instance name (name) are supported.
|
476
|
+
:type Filters: list of Filter
|
477
|
+
:param _Orders: Sorting parameter: Sorting by the creation time field (created_at) is supported. The value of Type can be set to DESC (descending order) or ASC (ascending order).
|
478
|
+
:type Orders: list of Order
|
479
|
+
"""
|
480
|
+
self._PageNumber = None
|
481
|
+
self._PageSize = None
|
482
|
+
self._Filters = None
|
483
|
+
self._Orders = None
|
484
|
+
|
485
|
+
@property
|
486
|
+
def PageNumber(self):
|
487
|
+
"""Current page number.
|
488
|
+
:rtype: int
|
489
|
+
"""
|
490
|
+
return self._PageNumber
|
491
|
+
|
492
|
+
@PageNumber.setter
|
493
|
+
def PageNumber(self, PageNumber):
|
494
|
+
self._PageNumber = PageNumber
|
495
|
+
|
496
|
+
@property
|
497
|
+
def PageSize(self):
|
498
|
+
"""Page size.
|
499
|
+
:rtype: int
|
500
|
+
"""
|
501
|
+
return self._PageSize
|
502
|
+
|
503
|
+
@PageSize.setter
|
504
|
+
def PageSize(self, PageSize):
|
505
|
+
self._PageSize = PageSize
|
506
|
+
|
507
|
+
@property
|
508
|
+
def Filters(self):
|
509
|
+
"""Query parameter: Filtering and querying by instance ID (cluster_id) and instance name (name) are supported.
|
510
|
+
:rtype: list of Filter
|
511
|
+
"""
|
512
|
+
return self._Filters
|
513
|
+
|
514
|
+
@Filters.setter
|
515
|
+
def Filters(self, Filters):
|
516
|
+
self._Filters = Filters
|
517
|
+
|
518
|
+
@property
|
519
|
+
def Orders(self):
|
520
|
+
"""Sorting parameter: Sorting by the creation time field (created_at) is supported. The value of Type can be set to DESC (descending order) or ASC (ascending order).
|
521
|
+
:rtype: list of Order
|
522
|
+
"""
|
523
|
+
return self._Orders
|
524
|
+
|
525
|
+
@Orders.setter
|
526
|
+
def Orders(self, Orders):
|
527
|
+
self._Orders = Orders
|
528
|
+
|
529
|
+
|
530
|
+
def _deserialize(self, params):
|
531
|
+
self._PageNumber = params.get("PageNumber")
|
532
|
+
self._PageSize = params.get("PageSize")
|
533
|
+
if params.get("Filters") is not None:
|
534
|
+
self._Filters = []
|
535
|
+
for item in params.get("Filters"):
|
536
|
+
obj = Filter()
|
537
|
+
obj._deserialize(item)
|
538
|
+
self._Filters.append(obj)
|
539
|
+
if params.get("Orders") is not None:
|
540
|
+
self._Orders = []
|
541
|
+
for item in params.get("Orders"):
|
542
|
+
obj = Order()
|
543
|
+
obj._deserialize(item)
|
544
|
+
self._Orders.append(obj)
|
545
|
+
memeber_set = set(params.keys())
|
546
|
+
for name, value in vars(self).items():
|
547
|
+
property_name = name[1:]
|
548
|
+
if property_name in memeber_set:
|
549
|
+
memeber_set.remove(property_name)
|
550
|
+
if len(memeber_set) > 0:
|
551
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
class DescribeClustersResponse(AbstractModel):
|
556
|
+
"""DescribeClusters response structure.
|
557
|
+
|
558
|
+
"""
|
559
|
+
|
560
|
+
def __init__(self):
|
561
|
+
r"""
|
562
|
+
:param _TotalCount: Total number of records under current conditions.
|
563
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
564
|
+
:type TotalCount: int
|
565
|
+
:param _Clusters: List of instances meeting the conditions.
|
566
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
567
|
+
:type Clusters: list of Cluster
|
568
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
569
|
+
:type RequestId: str
|
570
|
+
"""
|
571
|
+
self._TotalCount = None
|
572
|
+
self._Clusters = None
|
573
|
+
self._RequestId = None
|
574
|
+
|
575
|
+
@property
|
576
|
+
def TotalCount(self):
|
577
|
+
"""Total number of records under current conditions.
|
578
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
579
|
+
:rtype: int
|
580
|
+
"""
|
581
|
+
return self._TotalCount
|
582
|
+
|
583
|
+
@TotalCount.setter
|
584
|
+
def TotalCount(self, TotalCount):
|
585
|
+
self._TotalCount = TotalCount
|
586
|
+
|
587
|
+
@property
|
588
|
+
def Clusters(self):
|
589
|
+
"""List of instances meeting the conditions.
|
590
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
591
|
+
:rtype: list of Cluster
|
592
|
+
"""
|
593
|
+
return self._Clusters
|
594
|
+
|
595
|
+
@Clusters.setter
|
596
|
+
def Clusters(self, Clusters):
|
597
|
+
self._Clusters = Clusters
|
598
|
+
|
599
|
+
@property
|
600
|
+
def RequestId(self):
|
601
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
602
|
+
:rtype: str
|
603
|
+
"""
|
604
|
+
return self._RequestId
|
605
|
+
|
606
|
+
@RequestId.setter
|
607
|
+
def RequestId(self, RequestId):
|
608
|
+
self._RequestId = RequestId
|
609
|
+
|
610
|
+
|
611
|
+
def _deserialize(self, params):
|
612
|
+
self._TotalCount = params.get("TotalCount")
|
613
|
+
if params.get("Clusters") is not None:
|
614
|
+
self._Clusters = []
|
615
|
+
for item in params.get("Clusters"):
|
616
|
+
obj = Cluster()
|
617
|
+
obj._deserialize(item)
|
618
|
+
self._Clusters.append(obj)
|
619
|
+
self._RequestId = params.get("RequestId")
|
620
|
+
|
621
|
+
|
622
|
+
class DescribeDatabasesRequest(AbstractModel):
|
623
|
+
"""DescribeDatabases request structure.
|
624
|
+
|
625
|
+
"""
|
626
|
+
|
627
|
+
def __init__(self):
|
628
|
+
r"""
|
629
|
+
:param _Database: Database parameter.
|
630
|
+
:type Database: :class:`tencentcloud.ctsdb.v20230202.models.Database`
|
631
|
+
:param _PageSize: Pagination size.
|
632
|
+
:type PageSize: int
|
633
|
+
:param _PageNumber: Pagination page.
|
634
|
+
:type PageNumber: int
|
635
|
+
"""
|
636
|
+
self._Database = None
|
637
|
+
self._PageSize = None
|
638
|
+
self._PageNumber = None
|
639
|
+
|
640
|
+
@property
|
641
|
+
def Database(self):
|
642
|
+
"""Database parameter.
|
643
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Database`
|
644
|
+
"""
|
645
|
+
return self._Database
|
646
|
+
|
647
|
+
@Database.setter
|
648
|
+
def Database(self, Database):
|
649
|
+
self._Database = Database
|
650
|
+
|
651
|
+
@property
|
652
|
+
def PageSize(self):
|
653
|
+
"""Pagination size.
|
654
|
+
:rtype: int
|
655
|
+
"""
|
656
|
+
return self._PageSize
|
657
|
+
|
658
|
+
@PageSize.setter
|
659
|
+
def PageSize(self, PageSize):
|
660
|
+
self._PageSize = PageSize
|
661
|
+
|
662
|
+
@property
|
663
|
+
def PageNumber(self):
|
664
|
+
"""Pagination page.
|
665
|
+
:rtype: int
|
666
|
+
"""
|
667
|
+
return self._PageNumber
|
668
|
+
|
669
|
+
@PageNumber.setter
|
670
|
+
def PageNumber(self, PageNumber):
|
671
|
+
self._PageNumber = PageNumber
|
672
|
+
|
673
|
+
|
674
|
+
def _deserialize(self, params):
|
675
|
+
if params.get("Database") is not None:
|
676
|
+
self._Database = Database()
|
677
|
+
self._Database._deserialize(params.get("Database"))
|
678
|
+
self._PageSize = params.get("PageSize")
|
679
|
+
self._PageNumber = params.get("PageNumber")
|
680
|
+
memeber_set = set(params.keys())
|
681
|
+
for name, value in vars(self).items():
|
682
|
+
property_name = name[1:]
|
683
|
+
if property_name in memeber_set:
|
684
|
+
memeber_set.remove(property_name)
|
685
|
+
if len(memeber_set) > 0:
|
686
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
class DescribeDatabasesResponse(AbstractModel):
|
691
|
+
"""DescribeDatabases response structure.
|
692
|
+
|
693
|
+
"""
|
694
|
+
|
695
|
+
def __init__(self):
|
696
|
+
r"""
|
697
|
+
:param _Databases: Database list.
|
698
|
+
:type Databases: list of Database
|
699
|
+
:param _TotalCount: Quantity.
|
700
|
+
:type TotalCount: int
|
701
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
702
|
+
:type RequestId: str
|
703
|
+
"""
|
704
|
+
self._Databases = None
|
705
|
+
self._TotalCount = None
|
706
|
+
self._RequestId = None
|
707
|
+
|
708
|
+
@property
|
709
|
+
def Databases(self):
|
710
|
+
"""Database list.
|
711
|
+
:rtype: list of Database
|
712
|
+
"""
|
713
|
+
return self._Databases
|
714
|
+
|
715
|
+
@Databases.setter
|
716
|
+
def Databases(self, Databases):
|
717
|
+
self._Databases = Databases
|
718
|
+
|
719
|
+
@property
|
720
|
+
def TotalCount(self):
|
721
|
+
"""Quantity.
|
722
|
+
:rtype: int
|
723
|
+
"""
|
724
|
+
return self._TotalCount
|
725
|
+
|
726
|
+
@TotalCount.setter
|
727
|
+
def TotalCount(self, TotalCount):
|
728
|
+
self._TotalCount = TotalCount
|
729
|
+
|
730
|
+
@property
|
731
|
+
def RequestId(self):
|
732
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
733
|
+
:rtype: str
|
734
|
+
"""
|
735
|
+
return self._RequestId
|
736
|
+
|
737
|
+
@RequestId.setter
|
738
|
+
def RequestId(self, RequestId):
|
739
|
+
self._RequestId = RequestId
|
740
|
+
|
741
|
+
|
742
|
+
def _deserialize(self, params):
|
743
|
+
if params.get("Databases") is not None:
|
744
|
+
self._Databases = []
|
745
|
+
for item in params.get("Databases"):
|
746
|
+
obj = Database()
|
747
|
+
obj._deserialize(item)
|
748
|
+
self._Databases.append(obj)
|
749
|
+
self._TotalCount = params.get("TotalCount")
|
750
|
+
self._RequestId = params.get("RequestId")
|
751
|
+
|
752
|
+
|
753
|
+
class Filter(AbstractModel):
|
754
|
+
"""Query filter.
|
755
|
+
|
756
|
+
"""
|
757
|
+
|
758
|
+
def __init__(self):
|
759
|
+
r"""
|
760
|
+
:param _Name: Filter parameter.
|
761
|
+
:type Name: str
|
762
|
+
:param _Op: Filter expression.
|
763
|
+
:type Op: str
|
764
|
+
:param _Values: Value involved in filtering.
|
765
|
+
:type Values: list of str
|
766
|
+
"""
|
767
|
+
self._Name = None
|
768
|
+
self._Op = None
|
769
|
+
self._Values = None
|
770
|
+
|
771
|
+
@property
|
772
|
+
def Name(self):
|
773
|
+
"""Filter parameter.
|
774
|
+
:rtype: str
|
775
|
+
"""
|
776
|
+
return self._Name
|
777
|
+
|
778
|
+
@Name.setter
|
779
|
+
def Name(self, Name):
|
780
|
+
self._Name = Name
|
781
|
+
|
782
|
+
@property
|
783
|
+
def Op(self):
|
784
|
+
"""Filter expression.
|
785
|
+
:rtype: str
|
786
|
+
"""
|
787
|
+
return self._Op
|
788
|
+
|
789
|
+
@Op.setter
|
790
|
+
def Op(self, Op):
|
791
|
+
self._Op = Op
|
792
|
+
|
793
|
+
@property
|
794
|
+
def Values(self):
|
795
|
+
"""Value involved in filtering.
|
796
|
+
:rtype: list of str
|
797
|
+
"""
|
798
|
+
return self._Values
|
799
|
+
|
800
|
+
@Values.setter
|
801
|
+
def Values(self, Values):
|
802
|
+
self._Values = Values
|
803
|
+
|
804
|
+
|
805
|
+
def _deserialize(self, params):
|
806
|
+
self._Name = params.get("Name")
|
807
|
+
self._Op = params.get("Op")
|
808
|
+
self._Values = params.get("Values")
|
809
|
+
memeber_set = set(params.keys())
|
810
|
+
for name, value in vars(self).items():
|
811
|
+
property_name = name[1:]
|
812
|
+
if property_name in memeber_set:
|
813
|
+
memeber_set.remove(property_name)
|
814
|
+
if len(memeber_set) > 0:
|
815
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
class Network(AbstractModel):
|
820
|
+
"""Instance network information (influxdb).
|
821
|
+
|
822
|
+
"""
|
823
|
+
|
824
|
+
def __init__(self):
|
825
|
+
r"""
|
826
|
+
:param _VpcId: vpc id
|
827
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
828
|
+
:type VpcId: str
|
829
|
+
:param _SubnetId: vpc subnet id
|
830
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
831
|
+
:type SubnetId: str
|
832
|
+
:param _VIP: VPC IP address.
|
833
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
834
|
+
:type VIP: str
|
835
|
+
:param _Port: VPC port address.
|
836
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
837
|
+
:type Port: int
|
838
|
+
"""
|
839
|
+
self._VpcId = None
|
840
|
+
self._SubnetId = None
|
841
|
+
self._VIP = None
|
842
|
+
self._Port = None
|
843
|
+
|
844
|
+
@property
|
845
|
+
def VpcId(self):
|
846
|
+
"""vpc id
|
847
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
848
|
+
:rtype: str
|
849
|
+
"""
|
850
|
+
return self._VpcId
|
851
|
+
|
852
|
+
@VpcId.setter
|
853
|
+
def VpcId(self, VpcId):
|
854
|
+
self._VpcId = VpcId
|
855
|
+
|
856
|
+
@property
|
857
|
+
def SubnetId(self):
|
858
|
+
"""vpc subnet id
|
859
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
860
|
+
:rtype: str
|
861
|
+
"""
|
862
|
+
return self._SubnetId
|
863
|
+
|
864
|
+
@SubnetId.setter
|
865
|
+
def SubnetId(self, SubnetId):
|
866
|
+
self._SubnetId = SubnetId
|
867
|
+
|
868
|
+
@property
|
869
|
+
def VIP(self):
|
870
|
+
"""VPC IP address.
|
871
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
872
|
+
:rtype: str
|
873
|
+
"""
|
874
|
+
return self._VIP
|
875
|
+
|
876
|
+
@VIP.setter
|
877
|
+
def VIP(self, VIP):
|
878
|
+
self._VIP = VIP
|
879
|
+
|
880
|
+
@property
|
881
|
+
def Port(self):
|
882
|
+
"""VPC port address.
|
883
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
884
|
+
:rtype: int
|
885
|
+
"""
|
886
|
+
return self._Port
|
887
|
+
|
888
|
+
@Port.setter
|
889
|
+
def Port(self, Port):
|
890
|
+
self._Port = Port
|
891
|
+
|
892
|
+
|
893
|
+
def _deserialize(self, params):
|
894
|
+
self._VpcId = params.get("VpcId")
|
895
|
+
self._SubnetId = params.get("SubnetId")
|
896
|
+
self._VIP = params.get("VIP")
|
897
|
+
self._Port = params.get("Port")
|
898
|
+
memeber_set = set(params.keys())
|
899
|
+
for name, value in vars(self).items():
|
900
|
+
property_name = name[1:]
|
901
|
+
if property_name in memeber_set:
|
902
|
+
memeber_set.remove(property_name)
|
903
|
+
if len(memeber_set) > 0:
|
904
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
class Order(AbstractModel):
|
909
|
+
"""Sorting parameter, which is used for sorting the query results.
|
910
|
+
|
911
|
+
"""
|
912
|
+
|
913
|
+
def __init__(self):
|
914
|
+
r"""
|
915
|
+
:param _Name: Sorting field.
|
916
|
+
:type Name: str
|
917
|
+
:param _Type: Sorting method.
|
918
|
+
:type Type: str
|
919
|
+
"""
|
920
|
+
self._Name = None
|
921
|
+
self._Type = None
|
922
|
+
|
923
|
+
@property
|
924
|
+
def Name(self):
|
925
|
+
"""Sorting field.
|
926
|
+
:rtype: str
|
927
|
+
"""
|
928
|
+
return self._Name
|
929
|
+
|
930
|
+
@Name.setter
|
931
|
+
def Name(self, Name):
|
932
|
+
self._Name = Name
|
933
|
+
|
934
|
+
@property
|
935
|
+
def Type(self):
|
936
|
+
"""Sorting method.
|
937
|
+
:rtype: str
|
938
|
+
"""
|
939
|
+
return self._Type
|
940
|
+
|
941
|
+
@Type.setter
|
942
|
+
def Type(self, Type):
|
943
|
+
self._Type = Type
|
944
|
+
|
945
|
+
|
946
|
+
def _deserialize(self, params):
|
947
|
+
self._Name = params.get("Name")
|
948
|
+
self._Type = params.get("Type")
|
949
|
+
memeber_set = set(params.keys())
|
950
|
+
for name, value in vars(self).items():
|
951
|
+
property_name = name[1:]
|
952
|
+
if property_name in memeber_set:
|
953
|
+
memeber_set.remove(property_name)
|
954
|
+
if len(memeber_set) > 0:
|
955
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
class Period(AbstractModel):
|
960
|
+
"""Validity period.
|
961
|
+
|
962
|
+
"""
|
963
|
+
|
964
|
+
def __init__(self):
|
965
|
+
r"""
|
966
|
+
:param _StartTime: Start time.
|
967
|
+
|
968
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
969
|
+
:type StartTime: str
|
970
|
+
:param _EndTime: End time.
|
971
|
+
|
972
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
973
|
+
:type EndTime: str
|
974
|
+
"""
|
975
|
+
self._StartTime = None
|
976
|
+
self._EndTime = None
|
977
|
+
|
978
|
+
@property
|
979
|
+
def StartTime(self):
|
980
|
+
"""Start time.
|
981
|
+
|
982
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
983
|
+
:rtype: str
|
984
|
+
"""
|
985
|
+
return self._StartTime
|
986
|
+
|
987
|
+
@StartTime.setter
|
988
|
+
def StartTime(self, StartTime):
|
989
|
+
self._StartTime = StartTime
|
990
|
+
|
991
|
+
@property
|
992
|
+
def EndTime(self):
|
993
|
+
"""End time.
|
994
|
+
|
995
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
996
|
+
:rtype: str
|
997
|
+
"""
|
998
|
+
return self._EndTime
|
999
|
+
|
1000
|
+
@EndTime.setter
|
1001
|
+
def EndTime(self, EndTime):
|
1002
|
+
self._EndTime = EndTime
|
1003
|
+
|
1004
|
+
|
1005
|
+
def _deserialize(self, params):
|
1006
|
+
self._StartTime = params.get("StartTime")
|
1007
|
+
self._EndTime = params.get("EndTime")
|
1008
|
+
memeber_set = set(params.keys())
|
1009
|
+
for name, value in vars(self).items():
|
1010
|
+
property_name = name[1:]
|
1011
|
+
if property_name in memeber_set:
|
1012
|
+
memeber_set.remove(property_name)
|
1013
|
+
if len(memeber_set) > 0:
|
1014
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1015
|
+
|
1016
|
+
|
1017
|
+
|
1018
|
+
class Spec(AbstractModel):
|
1019
|
+
"""Instance specification information (influxdb).
|
1020
|
+
|
1021
|
+
"""
|
1022
|
+
|
1023
|
+
def __init__(self):
|
1024
|
+
r"""
|
1025
|
+
:param _PayMode: 1: yearly/monthly subscription; 2: bill by hour.
|
1026
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1027
|
+
:type PayMode: int
|
1028
|
+
:param _RequestUnit: Request unit. 0 indicates following the resource configuration.
|
1029
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1030
|
+
:type RequestUnit: int
|
1031
|
+
:param _CpuLimit: Maximum number of CPU cores.
|
1032
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1033
|
+
:type CpuLimit: float
|
1034
|
+
:param _MemoryLimit: Maximum memory size (Gi).
|
1035
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1036
|
+
:type MemoryLimit: float
|
1037
|
+
:param _DiskLimit: Maximum number of disks (Gi).
|
1038
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1039
|
+
:type DiskLimit: int
|
1040
|
+
:param _Shards: Number of business shards.
|
1041
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1042
|
+
:type Shards: int
|
1043
|
+
:param _Replicas: Number of business nodes.
|
1044
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1045
|
+
:type Replicas: int
|
1046
|
+
"""
|
1047
|
+
self._PayMode = None
|
1048
|
+
self._RequestUnit = None
|
1049
|
+
self._CpuLimit = None
|
1050
|
+
self._MemoryLimit = None
|
1051
|
+
self._DiskLimit = None
|
1052
|
+
self._Shards = None
|
1053
|
+
self._Replicas = None
|
1054
|
+
|
1055
|
+
@property
|
1056
|
+
def PayMode(self):
|
1057
|
+
"""1: yearly/monthly subscription; 2: bill by hour.
|
1058
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1059
|
+
:rtype: int
|
1060
|
+
"""
|
1061
|
+
return self._PayMode
|
1062
|
+
|
1063
|
+
@PayMode.setter
|
1064
|
+
def PayMode(self, PayMode):
|
1065
|
+
self._PayMode = PayMode
|
1066
|
+
|
1067
|
+
@property
|
1068
|
+
def RequestUnit(self):
|
1069
|
+
"""Request unit. 0 indicates following the resource configuration.
|
1070
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1071
|
+
:rtype: int
|
1072
|
+
"""
|
1073
|
+
return self._RequestUnit
|
1074
|
+
|
1075
|
+
@RequestUnit.setter
|
1076
|
+
def RequestUnit(self, RequestUnit):
|
1077
|
+
self._RequestUnit = RequestUnit
|
1078
|
+
|
1079
|
+
@property
|
1080
|
+
def CpuLimit(self):
|
1081
|
+
"""Maximum number of CPU cores.
|
1082
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1083
|
+
:rtype: float
|
1084
|
+
"""
|
1085
|
+
return self._CpuLimit
|
1086
|
+
|
1087
|
+
@CpuLimit.setter
|
1088
|
+
def CpuLimit(self, CpuLimit):
|
1089
|
+
self._CpuLimit = CpuLimit
|
1090
|
+
|
1091
|
+
@property
|
1092
|
+
def MemoryLimit(self):
|
1093
|
+
"""Maximum memory size (Gi).
|
1094
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1095
|
+
:rtype: float
|
1096
|
+
"""
|
1097
|
+
return self._MemoryLimit
|
1098
|
+
|
1099
|
+
@MemoryLimit.setter
|
1100
|
+
def MemoryLimit(self, MemoryLimit):
|
1101
|
+
self._MemoryLimit = MemoryLimit
|
1102
|
+
|
1103
|
+
@property
|
1104
|
+
def DiskLimit(self):
|
1105
|
+
"""Maximum number of disks (Gi).
|
1106
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1107
|
+
:rtype: int
|
1108
|
+
"""
|
1109
|
+
return self._DiskLimit
|
1110
|
+
|
1111
|
+
@DiskLimit.setter
|
1112
|
+
def DiskLimit(self, DiskLimit):
|
1113
|
+
self._DiskLimit = DiskLimit
|
1114
|
+
|
1115
|
+
@property
|
1116
|
+
def Shards(self):
|
1117
|
+
"""Number of business shards.
|
1118
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1119
|
+
:rtype: int
|
1120
|
+
"""
|
1121
|
+
return self._Shards
|
1122
|
+
|
1123
|
+
@Shards.setter
|
1124
|
+
def Shards(self, Shards):
|
1125
|
+
self._Shards = Shards
|
1126
|
+
|
1127
|
+
@property
|
1128
|
+
def Replicas(self):
|
1129
|
+
"""Number of business nodes.
|
1130
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1131
|
+
:rtype: int
|
1132
|
+
"""
|
1133
|
+
return self._Replicas
|
1134
|
+
|
1135
|
+
@Replicas.setter
|
1136
|
+
def Replicas(self, Replicas):
|
1137
|
+
self._Replicas = Replicas
|
1138
|
+
|
1139
|
+
|
1140
|
+
def _deserialize(self, params):
|
1141
|
+
self._PayMode = params.get("PayMode")
|
1142
|
+
self._RequestUnit = params.get("RequestUnit")
|
1143
|
+
self._CpuLimit = params.get("CpuLimit")
|
1144
|
+
self._MemoryLimit = params.get("MemoryLimit")
|
1145
|
+
self._DiskLimit = params.get("DiskLimit")
|
1146
|
+
self._Shards = params.get("Shards")
|
1147
|
+
self._Replicas = params.get("Replicas")
|
1148
|
+
memeber_set = set(params.keys())
|
1149
|
+
for name, value in vars(self).items():
|
1150
|
+
property_name = name[1:]
|
1151
|
+
if property_name in memeber_set:
|
1152
|
+
memeber_set.remove(property_name)
|
1153
|
+
if len(memeber_set) > 0:
|
1154
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1155
|
+
|
1156
|
+
|
1157
|
+
|
1158
|
+
class Tag(AbstractModel):
|
1159
|
+
"""Tag.
|
1160
|
+
|
1161
|
+
"""
|
1162
|
+
|
1163
|
+
def __init__(self):
|
1164
|
+
r"""
|
1165
|
+
:param _Key: Key.
|
1166
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1167
|
+
:type Key: str
|
1168
|
+
:param _Value: Value.
|
1169
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1170
|
+
:type Value: str
|
1171
|
+
"""
|
1172
|
+
self._Key = None
|
1173
|
+
self._Value = None
|
1174
|
+
|
1175
|
+
@property
|
1176
|
+
def Key(self):
|
1177
|
+
"""Key.
|
1178
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1179
|
+
:rtype: str
|
1180
|
+
"""
|
1181
|
+
return self._Key
|
1182
|
+
|
1183
|
+
@Key.setter
|
1184
|
+
def Key(self, Key):
|
1185
|
+
self._Key = Key
|
1186
|
+
|
1187
|
+
@property
|
1188
|
+
def Value(self):
|
1189
|
+
"""Value.
|
1190
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
1191
|
+
:rtype: str
|
1192
|
+
"""
|
1193
|
+
return self._Value
|
1194
|
+
|
1195
|
+
@Value.setter
|
1196
|
+
def Value(self, Value):
|
1197
|
+
self._Value = Value
|
1198
|
+
|
1199
|
+
|
1200
|
+
def _deserialize(self, params):
|
1201
|
+
self._Key = params.get("Key")
|
1202
|
+
self._Value = params.get("Value")
|
1203
|
+
memeber_set = set(params.keys())
|
1204
|
+
for name, value in vars(self).items():
|
1205
|
+
property_name = name[1:]
|
1206
|
+
if property_name in memeber_set:
|
1207
|
+
memeber_set.remove(property_name)
|
1208
|
+
if len(memeber_set) > 0:
|
1209
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1210
|
+
|
1211
|
+
|
1212
|
+
|
1213
|
+
class Tenant(AbstractModel):
|
1214
|
+
"""Internal features of the product.
|
1215
|
+
|
1216
|
+
"""
|
1217
|
+
|
1218
|
+
def __init__(self):
|
1219
|
+
r"""
|
1220
|
+
:param _IsPasswordEncrypted: Whether the password is encrypted.
|
1221
|
+
:type IsPasswordEncrypted: bool
|
1222
|
+
"""
|
1223
|
+
self._IsPasswordEncrypted = None
|
1224
|
+
|
1225
|
+
@property
|
1226
|
+
def IsPasswordEncrypted(self):
|
1227
|
+
"""Whether the password is encrypted.
|
1228
|
+
:rtype: bool
|
1229
|
+
"""
|
1230
|
+
return self._IsPasswordEncrypted
|
1231
|
+
|
1232
|
+
@IsPasswordEncrypted.setter
|
1233
|
+
def IsPasswordEncrypted(self, IsPasswordEncrypted):
|
1234
|
+
self._IsPasswordEncrypted = IsPasswordEncrypted
|
1235
|
+
|
1236
|
+
|
1237
|
+
def _deserialize(self, params):
|
1238
|
+
self._IsPasswordEncrypted = params.get("IsPasswordEncrypted")
|
1239
|
+
memeber_set = set(params.keys())
|
1240
|
+
for name, value in vars(self).items():
|
1241
|
+
property_name = name[1:]
|
1242
|
+
if property_name in memeber_set:
|
1243
|
+
memeber_set.remove(property_name)
|
1244
|
+
if len(memeber_set) > 0:
|
1245
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
1246
|
+
|