tencentcloud-sdk-python 3.0.1426__py2.py3-none-any.whl → 3.0.1428__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apm/v20210622/models.py +60 -0
- tencentcloud/autoscaling/v20180419/models.py +108 -0
- tencentcloud/billing/v20180709/models.py +2 -2
- tencentcloud/ccc/v20200210/models.py +166 -0
- tencentcloud/cdb/v20170320/cdb_client.py +23 -0
- tencentcloud/cdb/v20170320/models.py +104 -10
- tencentcloud/cdwch/v20200915/errorcodes.py +3 -0
- tencentcloud/cdwch/v20200915/models.py +42 -64
- tencentcloud/clb/v20180317/models.py +2 -2
- tencentcloud/ctsdb/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/__init__.py +0 -0
- tencentcloud/ctsdb/v20230202/ctsdb_client.py +79 -0
- tencentcloud/ctsdb/v20230202/errorcodes.py +24 -0
- tencentcloud/ctsdb/v20230202/models.py +1256 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +12 -0
- tencentcloud/cynosdb/v20190107/models.py +186 -0
- tencentcloud/essbasic/v20210526/models.py +107 -4
- tencentcloud/gs/v20191118/models.py +15 -0
- tencentcloud/hunyuan/v20230901/models.py +120 -0
- tencentcloud/igtm/v20231024/models.py +2 -40
- tencentcloud/lke/v20231130/models.py +8 -2
- tencentcloud/monitor/v20180724/models.py +2 -2
- tencentcloud/mps/v20190612/models.py +19 -0
- tencentcloud/ocr/v20181119/models.py +17 -0
- tencentcloud/securitylake/v20240117/models.py +0 -2
- tencentcloud/ssl/v20191205/models.py +75 -0
- tencentcloud/tcaplusdb/v20190823/tcaplusdb_client.py +3 -1
- tencentcloud/teo/v20220901/errorcodes.py +6 -0
- tencentcloud/teo/v20220901/models.py +391 -55
- tencentcloud/teo/v20220901/teo_client.py +46 -0
- tencentcloud/tts/v20190823/models.py +4 -6
- tencentcloud/tts/v20190823/tts_client.py +1 -0
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +8 -8
- {tencentcloud_sdk_python-3.0.1426.dist-info → tencentcloud_sdk_python-3.0.1428.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1426.dist-info → tencentcloud_sdk_python-3.0.1428.dist-info}/RECORD +41 -36
- {tencentcloud_sdk_python-3.0.1426.dist-info → tencentcloud_sdk_python-3.0.1428.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1426.dist-info → tencentcloud_sdk_python-3.0.1428.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1426.dist-info → tencentcloud_sdk_python-3.0.1428.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1256 @@
|
|
|
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
|
+
"""实例相关信息
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _AppID: 用户APPID
|
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30
|
+
:type AppID: int
|
|
31
|
+
:param _ClusterID: 实例id
|
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
33
|
+
:type ClusterID: str
|
|
34
|
+
:param _AccountID: 账号id
|
|
35
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36
|
+
:type AccountID: str
|
|
37
|
+
:param _Name: 自定义实例名
|
|
38
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
39
|
+
:type Name: str
|
|
40
|
+
:param _Region: 地域
|
|
41
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
42
|
+
:type Region: str
|
|
43
|
+
:param _Zones: 可用区
|
|
44
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
45
|
+
:type Zones: str
|
|
46
|
+
:param _Networks: 网络信息
|
|
47
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
48
|
+
:type Networks: list of Network
|
|
49
|
+
:param _Spec: 实例规格
|
|
50
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
51
|
+
:type Spec: :class:`tencentcloud.ctsdb.v20230202.models.Spec`
|
|
52
|
+
:param _Status: 实例状态:0:运行中,1:创建中 ,16:变配中,17:隔离中,18:待销毁,19:恢复中,20:关机 , 21:销毁中 ,22:已销毁
|
|
53
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
54
|
+
:type Status: int
|
|
55
|
+
:param _Period: 实例有效期
|
|
56
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
57
|
+
:type Period: :class:`tencentcloud.ctsdb.v20230202.models.Period`
|
|
58
|
+
:param _CreatedAt: 创建时间
|
|
59
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
60
|
+
:type CreatedAt: str
|
|
61
|
+
:param _UpdatedAt: 最后修改时间
|
|
62
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
63
|
+
:type UpdatedAt: str
|
|
64
|
+
:param _Tenant: 产品内部特性
|
|
65
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
66
|
+
:type Tenant: :class:`tencentcloud.ctsdb.v20230202.models.Tenant`
|
|
67
|
+
:param _Tags: 标签
|
|
68
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
69
|
+
:type Tags: list of Tag
|
|
70
|
+
:param _Security: 安全组信息
|
|
71
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
72
|
+
:type Security: list of str
|
|
73
|
+
"""
|
|
74
|
+
self._AppID = None
|
|
75
|
+
self._ClusterID = None
|
|
76
|
+
self._AccountID = None
|
|
77
|
+
self._Name = None
|
|
78
|
+
self._Region = None
|
|
79
|
+
self._Zones = None
|
|
80
|
+
self._Networks = None
|
|
81
|
+
self._Spec = None
|
|
82
|
+
self._Status = None
|
|
83
|
+
self._Period = None
|
|
84
|
+
self._CreatedAt = None
|
|
85
|
+
self._UpdatedAt = None
|
|
86
|
+
self._Tenant = None
|
|
87
|
+
self._Tags = None
|
|
88
|
+
self._Security = None
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
def AppID(self):
|
|
92
|
+
"""用户APPID
|
|
93
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
94
|
+
:rtype: int
|
|
95
|
+
"""
|
|
96
|
+
return self._AppID
|
|
97
|
+
|
|
98
|
+
@AppID.setter
|
|
99
|
+
def AppID(self, AppID):
|
|
100
|
+
self._AppID = AppID
|
|
101
|
+
|
|
102
|
+
@property
|
|
103
|
+
def ClusterID(self):
|
|
104
|
+
"""实例id
|
|
105
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
106
|
+
:rtype: str
|
|
107
|
+
"""
|
|
108
|
+
return self._ClusterID
|
|
109
|
+
|
|
110
|
+
@ClusterID.setter
|
|
111
|
+
def ClusterID(self, ClusterID):
|
|
112
|
+
self._ClusterID = ClusterID
|
|
113
|
+
|
|
114
|
+
@property
|
|
115
|
+
def AccountID(self):
|
|
116
|
+
"""账号id
|
|
117
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._AccountID
|
|
121
|
+
|
|
122
|
+
@AccountID.setter
|
|
123
|
+
def AccountID(self, AccountID):
|
|
124
|
+
self._AccountID = AccountID
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def Name(self):
|
|
128
|
+
"""自定义实例名
|
|
129
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
130
|
+
:rtype: str
|
|
131
|
+
"""
|
|
132
|
+
return self._Name
|
|
133
|
+
|
|
134
|
+
@Name.setter
|
|
135
|
+
def Name(self, Name):
|
|
136
|
+
self._Name = Name
|
|
137
|
+
|
|
138
|
+
@property
|
|
139
|
+
def Region(self):
|
|
140
|
+
"""地域
|
|
141
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._Region
|
|
145
|
+
|
|
146
|
+
@Region.setter
|
|
147
|
+
def Region(self, Region):
|
|
148
|
+
self._Region = Region
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def Zones(self):
|
|
152
|
+
"""可用区
|
|
153
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
154
|
+
:rtype: str
|
|
155
|
+
"""
|
|
156
|
+
return self._Zones
|
|
157
|
+
|
|
158
|
+
@Zones.setter
|
|
159
|
+
def Zones(self, Zones):
|
|
160
|
+
self._Zones = Zones
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def Networks(self):
|
|
164
|
+
warnings.warn("parameter `Networks` is deprecated", DeprecationWarning)
|
|
165
|
+
|
|
166
|
+
"""网络信息
|
|
167
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
168
|
+
:rtype: list of Network
|
|
169
|
+
"""
|
|
170
|
+
return self._Networks
|
|
171
|
+
|
|
172
|
+
@Networks.setter
|
|
173
|
+
def Networks(self, Networks):
|
|
174
|
+
warnings.warn("parameter `Networks` is deprecated", DeprecationWarning)
|
|
175
|
+
|
|
176
|
+
self._Networks = Networks
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
def Spec(self):
|
|
180
|
+
warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
|
|
181
|
+
|
|
182
|
+
"""实例规格
|
|
183
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
184
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Spec`
|
|
185
|
+
"""
|
|
186
|
+
return self._Spec
|
|
187
|
+
|
|
188
|
+
@Spec.setter
|
|
189
|
+
def Spec(self, Spec):
|
|
190
|
+
warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
|
|
191
|
+
|
|
192
|
+
self._Spec = Spec
|
|
193
|
+
|
|
194
|
+
@property
|
|
195
|
+
def Status(self):
|
|
196
|
+
"""实例状态:0:运行中,1:创建中 ,16:变配中,17:隔离中,18:待销毁,19:恢复中,20:关机 , 21:销毁中 ,22:已销毁
|
|
197
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
198
|
+
:rtype: int
|
|
199
|
+
"""
|
|
200
|
+
return self._Status
|
|
201
|
+
|
|
202
|
+
@Status.setter
|
|
203
|
+
def Status(self, Status):
|
|
204
|
+
self._Status = Status
|
|
205
|
+
|
|
206
|
+
@property
|
|
207
|
+
def Period(self):
|
|
208
|
+
"""实例有效期
|
|
209
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
210
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Period`
|
|
211
|
+
"""
|
|
212
|
+
return self._Period
|
|
213
|
+
|
|
214
|
+
@Period.setter
|
|
215
|
+
def Period(self, Period):
|
|
216
|
+
self._Period = Period
|
|
217
|
+
|
|
218
|
+
@property
|
|
219
|
+
def CreatedAt(self):
|
|
220
|
+
"""创建时间
|
|
221
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
224
|
+
return self._CreatedAt
|
|
225
|
+
|
|
226
|
+
@CreatedAt.setter
|
|
227
|
+
def CreatedAt(self, CreatedAt):
|
|
228
|
+
self._CreatedAt = CreatedAt
|
|
229
|
+
|
|
230
|
+
@property
|
|
231
|
+
def UpdatedAt(self):
|
|
232
|
+
"""最后修改时间
|
|
233
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
234
|
+
:rtype: str
|
|
235
|
+
"""
|
|
236
|
+
return self._UpdatedAt
|
|
237
|
+
|
|
238
|
+
@UpdatedAt.setter
|
|
239
|
+
def UpdatedAt(self, UpdatedAt):
|
|
240
|
+
self._UpdatedAt = UpdatedAt
|
|
241
|
+
|
|
242
|
+
@property
|
|
243
|
+
def Tenant(self):
|
|
244
|
+
"""产品内部特性
|
|
245
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
246
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Tenant`
|
|
247
|
+
"""
|
|
248
|
+
return self._Tenant
|
|
249
|
+
|
|
250
|
+
@Tenant.setter
|
|
251
|
+
def Tenant(self, Tenant):
|
|
252
|
+
self._Tenant = Tenant
|
|
253
|
+
|
|
254
|
+
@property
|
|
255
|
+
def Tags(self):
|
|
256
|
+
"""标签
|
|
257
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
258
|
+
:rtype: list of Tag
|
|
259
|
+
"""
|
|
260
|
+
return self._Tags
|
|
261
|
+
|
|
262
|
+
@Tags.setter
|
|
263
|
+
def Tags(self, Tags):
|
|
264
|
+
self._Tags = Tags
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
def Security(self):
|
|
268
|
+
"""安全组信息
|
|
269
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
270
|
+
:rtype: list of str
|
|
271
|
+
"""
|
|
272
|
+
return self._Security
|
|
273
|
+
|
|
274
|
+
@Security.setter
|
|
275
|
+
def Security(self, Security):
|
|
276
|
+
self._Security = Security
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
def _deserialize(self, params):
|
|
280
|
+
self._AppID = params.get("AppID")
|
|
281
|
+
self._ClusterID = params.get("ClusterID")
|
|
282
|
+
self._AccountID = params.get("AccountID")
|
|
283
|
+
self._Name = params.get("Name")
|
|
284
|
+
self._Region = params.get("Region")
|
|
285
|
+
self._Zones = params.get("Zones")
|
|
286
|
+
if params.get("Networks") is not None:
|
|
287
|
+
self._Networks = []
|
|
288
|
+
for item in params.get("Networks"):
|
|
289
|
+
obj = Network()
|
|
290
|
+
obj._deserialize(item)
|
|
291
|
+
self._Networks.append(obj)
|
|
292
|
+
if params.get("Spec") is not None:
|
|
293
|
+
self._Spec = Spec()
|
|
294
|
+
self._Spec._deserialize(params.get("Spec"))
|
|
295
|
+
self._Status = params.get("Status")
|
|
296
|
+
if params.get("Period") is not None:
|
|
297
|
+
self._Period = Period()
|
|
298
|
+
self._Period._deserialize(params.get("Period"))
|
|
299
|
+
self._CreatedAt = params.get("CreatedAt")
|
|
300
|
+
self._UpdatedAt = params.get("UpdatedAt")
|
|
301
|
+
if params.get("Tenant") is not None:
|
|
302
|
+
self._Tenant = Tenant()
|
|
303
|
+
self._Tenant._deserialize(params.get("Tenant"))
|
|
304
|
+
if params.get("Tags") is not None:
|
|
305
|
+
self._Tags = []
|
|
306
|
+
for item in params.get("Tags"):
|
|
307
|
+
obj = Tag()
|
|
308
|
+
obj._deserialize(item)
|
|
309
|
+
self._Tags.append(obj)
|
|
310
|
+
self._Security = params.get("Security")
|
|
311
|
+
memeber_set = set(params.keys())
|
|
312
|
+
for name, value in vars(self).items():
|
|
313
|
+
property_name = name[1:]
|
|
314
|
+
if property_name in memeber_set:
|
|
315
|
+
memeber_set.remove(property_name)
|
|
316
|
+
if len(memeber_set) > 0:
|
|
317
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class Database(AbstractModel):
|
|
322
|
+
"""数据库相关信息
|
|
323
|
+
|
|
324
|
+
"""
|
|
325
|
+
|
|
326
|
+
def __init__(self):
|
|
327
|
+
r"""
|
|
328
|
+
:param _ClusterID: 实例ID
|
|
329
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
330
|
+
:type ClusterID: str
|
|
331
|
+
:param _Name: 数据库名
|
|
332
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
333
|
+
:type Name: str
|
|
334
|
+
:param _CoolDownInDays: 降冷时间(天)
|
|
335
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
336
|
+
:type CoolDownInDays: int
|
|
337
|
+
:param _RetentionInDays: 数据保留时间(天)
|
|
338
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
339
|
+
:type RetentionInDays: int
|
|
340
|
+
:param _Remark: 备注
|
|
341
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
342
|
+
:type Remark: str
|
|
343
|
+
:param _Status: 状态:0: 资源初始化中, 1: 资源创建中, 2: 正常状态, 3: 资源删除中, 4: 资源已删除, 5: 资源禁用中, 6: 资源已禁用, 7: 资源异常,需要人工操作
|
|
344
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
345
|
+
:type Status: int
|
|
346
|
+
:param _CreatedAt: 创建时间
|
|
347
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
348
|
+
:type CreatedAt: str
|
|
349
|
+
:param _UpdatedAt: 最后修改时间
|
|
350
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
351
|
+
:type UpdatedAt: str
|
|
352
|
+
"""
|
|
353
|
+
self._ClusterID = None
|
|
354
|
+
self._Name = None
|
|
355
|
+
self._CoolDownInDays = None
|
|
356
|
+
self._RetentionInDays = None
|
|
357
|
+
self._Remark = None
|
|
358
|
+
self._Status = None
|
|
359
|
+
self._CreatedAt = None
|
|
360
|
+
self._UpdatedAt = None
|
|
361
|
+
|
|
362
|
+
@property
|
|
363
|
+
def ClusterID(self):
|
|
364
|
+
"""实例ID
|
|
365
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
366
|
+
:rtype: str
|
|
367
|
+
"""
|
|
368
|
+
return self._ClusterID
|
|
369
|
+
|
|
370
|
+
@ClusterID.setter
|
|
371
|
+
def ClusterID(self, ClusterID):
|
|
372
|
+
self._ClusterID = ClusterID
|
|
373
|
+
|
|
374
|
+
@property
|
|
375
|
+
def Name(self):
|
|
376
|
+
"""数据库名
|
|
377
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
378
|
+
:rtype: str
|
|
379
|
+
"""
|
|
380
|
+
return self._Name
|
|
381
|
+
|
|
382
|
+
@Name.setter
|
|
383
|
+
def Name(self, Name):
|
|
384
|
+
self._Name = Name
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
def CoolDownInDays(self):
|
|
388
|
+
"""降冷时间(天)
|
|
389
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
390
|
+
:rtype: int
|
|
391
|
+
"""
|
|
392
|
+
return self._CoolDownInDays
|
|
393
|
+
|
|
394
|
+
@CoolDownInDays.setter
|
|
395
|
+
def CoolDownInDays(self, CoolDownInDays):
|
|
396
|
+
self._CoolDownInDays = CoolDownInDays
|
|
397
|
+
|
|
398
|
+
@property
|
|
399
|
+
def RetentionInDays(self):
|
|
400
|
+
"""数据保留时间(天)
|
|
401
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
402
|
+
:rtype: int
|
|
403
|
+
"""
|
|
404
|
+
return self._RetentionInDays
|
|
405
|
+
|
|
406
|
+
@RetentionInDays.setter
|
|
407
|
+
def RetentionInDays(self, RetentionInDays):
|
|
408
|
+
self._RetentionInDays = RetentionInDays
|
|
409
|
+
|
|
410
|
+
@property
|
|
411
|
+
def Remark(self):
|
|
412
|
+
"""备注
|
|
413
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
414
|
+
:rtype: str
|
|
415
|
+
"""
|
|
416
|
+
return self._Remark
|
|
417
|
+
|
|
418
|
+
@Remark.setter
|
|
419
|
+
def Remark(self, Remark):
|
|
420
|
+
self._Remark = Remark
|
|
421
|
+
|
|
422
|
+
@property
|
|
423
|
+
def Status(self):
|
|
424
|
+
"""状态:0: 资源初始化中, 1: 资源创建中, 2: 正常状态, 3: 资源删除中, 4: 资源已删除, 5: 资源禁用中, 6: 资源已禁用, 7: 资源异常,需要人工操作
|
|
425
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
426
|
+
:rtype: int
|
|
427
|
+
"""
|
|
428
|
+
return self._Status
|
|
429
|
+
|
|
430
|
+
@Status.setter
|
|
431
|
+
def Status(self, Status):
|
|
432
|
+
self._Status = Status
|
|
433
|
+
|
|
434
|
+
@property
|
|
435
|
+
def CreatedAt(self):
|
|
436
|
+
"""创建时间
|
|
437
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
438
|
+
:rtype: str
|
|
439
|
+
"""
|
|
440
|
+
return self._CreatedAt
|
|
441
|
+
|
|
442
|
+
@CreatedAt.setter
|
|
443
|
+
def CreatedAt(self, CreatedAt):
|
|
444
|
+
self._CreatedAt = CreatedAt
|
|
445
|
+
|
|
446
|
+
@property
|
|
447
|
+
def UpdatedAt(self):
|
|
448
|
+
"""最后修改时间
|
|
449
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
450
|
+
:rtype: str
|
|
451
|
+
"""
|
|
452
|
+
return self._UpdatedAt
|
|
453
|
+
|
|
454
|
+
@UpdatedAt.setter
|
|
455
|
+
def UpdatedAt(self, UpdatedAt):
|
|
456
|
+
self._UpdatedAt = UpdatedAt
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
def _deserialize(self, params):
|
|
460
|
+
self._ClusterID = params.get("ClusterID")
|
|
461
|
+
self._Name = params.get("Name")
|
|
462
|
+
self._CoolDownInDays = params.get("CoolDownInDays")
|
|
463
|
+
self._RetentionInDays = params.get("RetentionInDays")
|
|
464
|
+
self._Remark = params.get("Remark")
|
|
465
|
+
self._Status = params.get("Status")
|
|
466
|
+
self._CreatedAt = params.get("CreatedAt")
|
|
467
|
+
self._UpdatedAt = params.get("UpdatedAt")
|
|
468
|
+
memeber_set = set(params.keys())
|
|
469
|
+
for name, value in vars(self).items():
|
|
470
|
+
property_name = name[1:]
|
|
471
|
+
if property_name in memeber_set:
|
|
472
|
+
memeber_set.remove(property_name)
|
|
473
|
+
if len(memeber_set) > 0:
|
|
474
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
class DescribeClustersRequest(AbstractModel):
|
|
479
|
+
"""DescribeClusters请求参数结构体
|
|
480
|
+
|
|
481
|
+
"""
|
|
482
|
+
|
|
483
|
+
def __init__(self):
|
|
484
|
+
r"""
|
|
485
|
+
:param _PageNumber: 当前页数
|
|
486
|
+
:type PageNumber: int
|
|
487
|
+
:param _PageSize: 单页大小
|
|
488
|
+
:type PageSize: int
|
|
489
|
+
:param _Filters: 查询参数:支持通过实例ID(cluster_id)和实例名称(name)进行过滤查询
|
|
490
|
+
:type Filters: list of Filter
|
|
491
|
+
:param _Orders: 排序参数:支持通过创建时间字段(created_at)进行排序,Type可指定为DESC(降序)或ASC(升序)
|
|
492
|
+
:type Orders: list of Order
|
|
493
|
+
"""
|
|
494
|
+
self._PageNumber = None
|
|
495
|
+
self._PageSize = None
|
|
496
|
+
self._Filters = None
|
|
497
|
+
self._Orders = None
|
|
498
|
+
|
|
499
|
+
@property
|
|
500
|
+
def PageNumber(self):
|
|
501
|
+
"""当前页数
|
|
502
|
+
:rtype: int
|
|
503
|
+
"""
|
|
504
|
+
return self._PageNumber
|
|
505
|
+
|
|
506
|
+
@PageNumber.setter
|
|
507
|
+
def PageNumber(self, PageNumber):
|
|
508
|
+
self._PageNumber = PageNumber
|
|
509
|
+
|
|
510
|
+
@property
|
|
511
|
+
def PageSize(self):
|
|
512
|
+
"""单页大小
|
|
513
|
+
:rtype: int
|
|
514
|
+
"""
|
|
515
|
+
return self._PageSize
|
|
516
|
+
|
|
517
|
+
@PageSize.setter
|
|
518
|
+
def PageSize(self, PageSize):
|
|
519
|
+
self._PageSize = PageSize
|
|
520
|
+
|
|
521
|
+
@property
|
|
522
|
+
def Filters(self):
|
|
523
|
+
"""查询参数:支持通过实例ID(cluster_id)和实例名称(name)进行过滤查询
|
|
524
|
+
:rtype: list of Filter
|
|
525
|
+
"""
|
|
526
|
+
return self._Filters
|
|
527
|
+
|
|
528
|
+
@Filters.setter
|
|
529
|
+
def Filters(self, Filters):
|
|
530
|
+
self._Filters = Filters
|
|
531
|
+
|
|
532
|
+
@property
|
|
533
|
+
def Orders(self):
|
|
534
|
+
"""排序参数:支持通过创建时间字段(created_at)进行排序,Type可指定为DESC(降序)或ASC(升序)
|
|
535
|
+
:rtype: list of Order
|
|
536
|
+
"""
|
|
537
|
+
return self._Orders
|
|
538
|
+
|
|
539
|
+
@Orders.setter
|
|
540
|
+
def Orders(self, Orders):
|
|
541
|
+
self._Orders = Orders
|
|
542
|
+
|
|
543
|
+
|
|
544
|
+
def _deserialize(self, params):
|
|
545
|
+
self._PageNumber = params.get("PageNumber")
|
|
546
|
+
self._PageSize = params.get("PageSize")
|
|
547
|
+
if params.get("Filters") is not None:
|
|
548
|
+
self._Filters = []
|
|
549
|
+
for item in params.get("Filters"):
|
|
550
|
+
obj = Filter()
|
|
551
|
+
obj._deserialize(item)
|
|
552
|
+
self._Filters.append(obj)
|
|
553
|
+
if params.get("Orders") is not None:
|
|
554
|
+
self._Orders = []
|
|
555
|
+
for item in params.get("Orders"):
|
|
556
|
+
obj = Order()
|
|
557
|
+
obj._deserialize(item)
|
|
558
|
+
self._Orders.append(obj)
|
|
559
|
+
memeber_set = set(params.keys())
|
|
560
|
+
for name, value in vars(self).items():
|
|
561
|
+
property_name = name[1:]
|
|
562
|
+
if property_name in memeber_set:
|
|
563
|
+
memeber_set.remove(property_name)
|
|
564
|
+
if len(memeber_set) > 0:
|
|
565
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
class DescribeClustersResponse(AbstractModel):
|
|
570
|
+
"""DescribeClusters返回参数结构体
|
|
571
|
+
|
|
572
|
+
"""
|
|
573
|
+
|
|
574
|
+
def __init__(self):
|
|
575
|
+
r"""
|
|
576
|
+
:param _TotalCount: 当前条件下的总记录数
|
|
577
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
578
|
+
:type TotalCount: int
|
|
579
|
+
:param _Clusters: 符合条件的实例列表
|
|
580
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
581
|
+
:type Clusters: list of Cluster
|
|
582
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
583
|
+
:type RequestId: str
|
|
584
|
+
"""
|
|
585
|
+
self._TotalCount = None
|
|
586
|
+
self._Clusters = None
|
|
587
|
+
self._RequestId = None
|
|
588
|
+
|
|
589
|
+
@property
|
|
590
|
+
def TotalCount(self):
|
|
591
|
+
"""当前条件下的总记录数
|
|
592
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
593
|
+
:rtype: int
|
|
594
|
+
"""
|
|
595
|
+
return self._TotalCount
|
|
596
|
+
|
|
597
|
+
@TotalCount.setter
|
|
598
|
+
def TotalCount(self, TotalCount):
|
|
599
|
+
self._TotalCount = TotalCount
|
|
600
|
+
|
|
601
|
+
@property
|
|
602
|
+
def Clusters(self):
|
|
603
|
+
"""符合条件的实例列表
|
|
604
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
605
|
+
:rtype: list of Cluster
|
|
606
|
+
"""
|
|
607
|
+
return self._Clusters
|
|
608
|
+
|
|
609
|
+
@Clusters.setter
|
|
610
|
+
def Clusters(self, Clusters):
|
|
611
|
+
self._Clusters = Clusters
|
|
612
|
+
|
|
613
|
+
@property
|
|
614
|
+
def RequestId(self):
|
|
615
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
616
|
+
:rtype: str
|
|
617
|
+
"""
|
|
618
|
+
return self._RequestId
|
|
619
|
+
|
|
620
|
+
@RequestId.setter
|
|
621
|
+
def RequestId(self, RequestId):
|
|
622
|
+
self._RequestId = RequestId
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
def _deserialize(self, params):
|
|
626
|
+
self._TotalCount = params.get("TotalCount")
|
|
627
|
+
if params.get("Clusters") is not None:
|
|
628
|
+
self._Clusters = []
|
|
629
|
+
for item in params.get("Clusters"):
|
|
630
|
+
obj = Cluster()
|
|
631
|
+
obj._deserialize(item)
|
|
632
|
+
self._Clusters.append(obj)
|
|
633
|
+
self._RequestId = params.get("RequestId")
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
class DescribeDatabasesRequest(AbstractModel):
|
|
637
|
+
"""DescribeDatabases请求参数结构体
|
|
638
|
+
|
|
639
|
+
"""
|
|
640
|
+
|
|
641
|
+
def __init__(self):
|
|
642
|
+
r"""
|
|
643
|
+
:param _Database: 数据库参数
|
|
644
|
+
:type Database: :class:`tencentcloud.ctsdb.v20230202.models.Database`
|
|
645
|
+
:param _PageSize: 分页大小
|
|
646
|
+
:type PageSize: int
|
|
647
|
+
:param _PageNumber: 分页页面
|
|
648
|
+
:type PageNumber: int
|
|
649
|
+
"""
|
|
650
|
+
self._Database = None
|
|
651
|
+
self._PageSize = None
|
|
652
|
+
self._PageNumber = None
|
|
653
|
+
|
|
654
|
+
@property
|
|
655
|
+
def Database(self):
|
|
656
|
+
"""数据库参数
|
|
657
|
+
:rtype: :class:`tencentcloud.ctsdb.v20230202.models.Database`
|
|
658
|
+
"""
|
|
659
|
+
return self._Database
|
|
660
|
+
|
|
661
|
+
@Database.setter
|
|
662
|
+
def Database(self, Database):
|
|
663
|
+
self._Database = Database
|
|
664
|
+
|
|
665
|
+
@property
|
|
666
|
+
def PageSize(self):
|
|
667
|
+
"""分页大小
|
|
668
|
+
:rtype: int
|
|
669
|
+
"""
|
|
670
|
+
return self._PageSize
|
|
671
|
+
|
|
672
|
+
@PageSize.setter
|
|
673
|
+
def PageSize(self, PageSize):
|
|
674
|
+
self._PageSize = PageSize
|
|
675
|
+
|
|
676
|
+
@property
|
|
677
|
+
def PageNumber(self):
|
|
678
|
+
"""分页页面
|
|
679
|
+
:rtype: int
|
|
680
|
+
"""
|
|
681
|
+
return self._PageNumber
|
|
682
|
+
|
|
683
|
+
@PageNumber.setter
|
|
684
|
+
def PageNumber(self, PageNumber):
|
|
685
|
+
self._PageNumber = PageNumber
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
def _deserialize(self, params):
|
|
689
|
+
if params.get("Database") is not None:
|
|
690
|
+
self._Database = Database()
|
|
691
|
+
self._Database._deserialize(params.get("Database"))
|
|
692
|
+
self._PageSize = params.get("PageSize")
|
|
693
|
+
self._PageNumber = params.get("PageNumber")
|
|
694
|
+
memeber_set = set(params.keys())
|
|
695
|
+
for name, value in vars(self).items():
|
|
696
|
+
property_name = name[1:]
|
|
697
|
+
if property_name in memeber_set:
|
|
698
|
+
memeber_set.remove(property_name)
|
|
699
|
+
if len(memeber_set) > 0:
|
|
700
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
class DescribeDatabasesResponse(AbstractModel):
|
|
705
|
+
"""DescribeDatabases返回参数结构体
|
|
706
|
+
|
|
707
|
+
"""
|
|
708
|
+
|
|
709
|
+
def __init__(self):
|
|
710
|
+
r"""
|
|
711
|
+
:param _Databases: 数据库列表
|
|
712
|
+
:type Databases: list of Database
|
|
713
|
+
:param _TotalCount: 数量
|
|
714
|
+
:type TotalCount: int
|
|
715
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
716
|
+
:type RequestId: str
|
|
717
|
+
"""
|
|
718
|
+
self._Databases = None
|
|
719
|
+
self._TotalCount = None
|
|
720
|
+
self._RequestId = None
|
|
721
|
+
|
|
722
|
+
@property
|
|
723
|
+
def Databases(self):
|
|
724
|
+
"""数据库列表
|
|
725
|
+
:rtype: list of Database
|
|
726
|
+
"""
|
|
727
|
+
return self._Databases
|
|
728
|
+
|
|
729
|
+
@Databases.setter
|
|
730
|
+
def Databases(self, Databases):
|
|
731
|
+
self._Databases = Databases
|
|
732
|
+
|
|
733
|
+
@property
|
|
734
|
+
def TotalCount(self):
|
|
735
|
+
"""数量
|
|
736
|
+
:rtype: int
|
|
737
|
+
"""
|
|
738
|
+
return self._TotalCount
|
|
739
|
+
|
|
740
|
+
@TotalCount.setter
|
|
741
|
+
def TotalCount(self, TotalCount):
|
|
742
|
+
self._TotalCount = TotalCount
|
|
743
|
+
|
|
744
|
+
@property
|
|
745
|
+
def RequestId(self):
|
|
746
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
747
|
+
:rtype: str
|
|
748
|
+
"""
|
|
749
|
+
return self._RequestId
|
|
750
|
+
|
|
751
|
+
@RequestId.setter
|
|
752
|
+
def RequestId(self, RequestId):
|
|
753
|
+
self._RequestId = RequestId
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
def _deserialize(self, params):
|
|
757
|
+
if params.get("Databases") is not None:
|
|
758
|
+
self._Databases = []
|
|
759
|
+
for item in params.get("Databases"):
|
|
760
|
+
obj = Database()
|
|
761
|
+
obj._deserialize(item)
|
|
762
|
+
self._Databases.append(obj)
|
|
763
|
+
self._TotalCount = params.get("TotalCount")
|
|
764
|
+
self._RequestId = params.get("RequestId")
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
class Filter(AbstractModel):
|
|
768
|
+
"""查询过滤器
|
|
769
|
+
|
|
770
|
+
"""
|
|
771
|
+
|
|
772
|
+
def __init__(self):
|
|
773
|
+
r"""
|
|
774
|
+
:param _Name: 过滤参数
|
|
775
|
+
:type Name: str
|
|
776
|
+
:param _Op: 过滤表达式
|
|
777
|
+
:type Op: str
|
|
778
|
+
:param _Values: 参与过滤的值
|
|
779
|
+
:type Values: list of str
|
|
780
|
+
"""
|
|
781
|
+
self._Name = None
|
|
782
|
+
self._Op = None
|
|
783
|
+
self._Values = None
|
|
784
|
+
|
|
785
|
+
@property
|
|
786
|
+
def Name(self):
|
|
787
|
+
"""过滤参数
|
|
788
|
+
:rtype: str
|
|
789
|
+
"""
|
|
790
|
+
return self._Name
|
|
791
|
+
|
|
792
|
+
@Name.setter
|
|
793
|
+
def Name(self, Name):
|
|
794
|
+
self._Name = Name
|
|
795
|
+
|
|
796
|
+
@property
|
|
797
|
+
def Op(self):
|
|
798
|
+
"""过滤表达式
|
|
799
|
+
:rtype: str
|
|
800
|
+
"""
|
|
801
|
+
return self._Op
|
|
802
|
+
|
|
803
|
+
@Op.setter
|
|
804
|
+
def Op(self, Op):
|
|
805
|
+
self._Op = Op
|
|
806
|
+
|
|
807
|
+
@property
|
|
808
|
+
def Values(self):
|
|
809
|
+
"""参与过滤的值
|
|
810
|
+
:rtype: list of str
|
|
811
|
+
"""
|
|
812
|
+
return self._Values
|
|
813
|
+
|
|
814
|
+
@Values.setter
|
|
815
|
+
def Values(self, Values):
|
|
816
|
+
self._Values = Values
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
def _deserialize(self, params):
|
|
820
|
+
self._Name = params.get("Name")
|
|
821
|
+
self._Op = params.get("Op")
|
|
822
|
+
self._Values = params.get("Values")
|
|
823
|
+
memeber_set = set(params.keys())
|
|
824
|
+
for name, value in vars(self).items():
|
|
825
|
+
property_name = name[1:]
|
|
826
|
+
if property_name in memeber_set:
|
|
827
|
+
memeber_set.remove(property_name)
|
|
828
|
+
if len(memeber_set) > 0:
|
|
829
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
class Network(AbstractModel):
|
|
834
|
+
"""实例网络信息(influxdb)
|
|
835
|
+
|
|
836
|
+
"""
|
|
837
|
+
|
|
838
|
+
def __init__(self):
|
|
839
|
+
r"""
|
|
840
|
+
:param _VpcId: vpc id
|
|
841
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
842
|
+
:type VpcId: str
|
|
843
|
+
:param _SubnetId: vpc subnet id
|
|
844
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
845
|
+
:type SubnetId: str
|
|
846
|
+
:param _VIP: vpc ip地址
|
|
847
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
848
|
+
:type VIP: str
|
|
849
|
+
:param _Port: vpc port地址
|
|
850
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
851
|
+
:type Port: int
|
|
852
|
+
"""
|
|
853
|
+
self._VpcId = None
|
|
854
|
+
self._SubnetId = None
|
|
855
|
+
self._VIP = None
|
|
856
|
+
self._Port = None
|
|
857
|
+
|
|
858
|
+
@property
|
|
859
|
+
def VpcId(self):
|
|
860
|
+
"""vpc id
|
|
861
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
862
|
+
:rtype: str
|
|
863
|
+
"""
|
|
864
|
+
return self._VpcId
|
|
865
|
+
|
|
866
|
+
@VpcId.setter
|
|
867
|
+
def VpcId(self, VpcId):
|
|
868
|
+
self._VpcId = VpcId
|
|
869
|
+
|
|
870
|
+
@property
|
|
871
|
+
def SubnetId(self):
|
|
872
|
+
"""vpc subnet id
|
|
873
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
874
|
+
:rtype: str
|
|
875
|
+
"""
|
|
876
|
+
return self._SubnetId
|
|
877
|
+
|
|
878
|
+
@SubnetId.setter
|
|
879
|
+
def SubnetId(self, SubnetId):
|
|
880
|
+
self._SubnetId = SubnetId
|
|
881
|
+
|
|
882
|
+
@property
|
|
883
|
+
def VIP(self):
|
|
884
|
+
"""vpc ip地址
|
|
885
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
886
|
+
:rtype: str
|
|
887
|
+
"""
|
|
888
|
+
return self._VIP
|
|
889
|
+
|
|
890
|
+
@VIP.setter
|
|
891
|
+
def VIP(self, VIP):
|
|
892
|
+
self._VIP = VIP
|
|
893
|
+
|
|
894
|
+
@property
|
|
895
|
+
def Port(self):
|
|
896
|
+
"""vpc port地址
|
|
897
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
898
|
+
:rtype: int
|
|
899
|
+
"""
|
|
900
|
+
return self._Port
|
|
901
|
+
|
|
902
|
+
@Port.setter
|
|
903
|
+
def Port(self, Port):
|
|
904
|
+
self._Port = Port
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
def _deserialize(self, params):
|
|
908
|
+
self._VpcId = params.get("VpcId")
|
|
909
|
+
self._SubnetId = params.get("SubnetId")
|
|
910
|
+
self._VIP = params.get("VIP")
|
|
911
|
+
self._Port = params.get("Port")
|
|
912
|
+
memeber_set = set(params.keys())
|
|
913
|
+
for name, value in vars(self).items():
|
|
914
|
+
property_name = name[1:]
|
|
915
|
+
if property_name in memeber_set:
|
|
916
|
+
memeber_set.remove(property_name)
|
|
917
|
+
if len(memeber_set) > 0:
|
|
918
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
class Order(AbstractModel):
|
|
923
|
+
"""排序参数,用于排序查询结果
|
|
924
|
+
|
|
925
|
+
"""
|
|
926
|
+
|
|
927
|
+
def __init__(self):
|
|
928
|
+
r"""
|
|
929
|
+
:param _Name: 排序字段
|
|
930
|
+
:type Name: str
|
|
931
|
+
:param _Type: 排序方式
|
|
932
|
+
:type Type: str
|
|
933
|
+
"""
|
|
934
|
+
self._Name = None
|
|
935
|
+
self._Type = None
|
|
936
|
+
|
|
937
|
+
@property
|
|
938
|
+
def Name(self):
|
|
939
|
+
"""排序字段
|
|
940
|
+
:rtype: str
|
|
941
|
+
"""
|
|
942
|
+
return self._Name
|
|
943
|
+
|
|
944
|
+
@Name.setter
|
|
945
|
+
def Name(self, Name):
|
|
946
|
+
self._Name = Name
|
|
947
|
+
|
|
948
|
+
@property
|
|
949
|
+
def Type(self):
|
|
950
|
+
"""排序方式
|
|
951
|
+
:rtype: str
|
|
952
|
+
"""
|
|
953
|
+
return self._Type
|
|
954
|
+
|
|
955
|
+
@Type.setter
|
|
956
|
+
def Type(self, Type):
|
|
957
|
+
self._Type = Type
|
|
958
|
+
|
|
959
|
+
|
|
960
|
+
def _deserialize(self, params):
|
|
961
|
+
self._Name = params.get("Name")
|
|
962
|
+
self._Type = params.get("Type")
|
|
963
|
+
memeber_set = set(params.keys())
|
|
964
|
+
for name, value in vars(self).items():
|
|
965
|
+
property_name = name[1:]
|
|
966
|
+
if property_name in memeber_set:
|
|
967
|
+
memeber_set.remove(property_name)
|
|
968
|
+
if len(memeber_set) > 0:
|
|
969
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
class Period(AbstractModel):
|
|
974
|
+
"""有效期
|
|
975
|
+
|
|
976
|
+
"""
|
|
977
|
+
|
|
978
|
+
def __init__(self):
|
|
979
|
+
r"""
|
|
980
|
+
:param _StartTime: 开始时间
|
|
981
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
982
|
+
:type StartTime: str
|
|
983
|
+
:param _EndTime: 结束时间
|
|
984
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
985
|
+
:type EndTime: str
|
|
986
|
+
"""
|
|
987
|
+
self._StartTime = None
|
|
988
|
+
self._EndTime = None
|
|
989
|
+
|
|
990
|
+
@property
|
|
991
|
+
def StartTime(self):
|
|
992
|
+
"""开始时间
|
|
993
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
994
|
+
:rtype: str
|
|
995
|
+
"""
|
|
996
|
+
return self._StartTime
|
|
997
|
+
|
|
998
|
+
@StartTime.setter
|
|
999
|
+
def StartTime(self, StartTime):
|
|
1000
|
+
self._StartTime = StartTime
|
|
1001
|
+
|
|
1002
|
+
@property
|
|
1003
|
+
def EndTime(self):
|
|
1004
|
+
"""结束时间
|
|
1005
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1006
|
+
:rtype: str
|
|
1007
|
+
"""
|
|
1008
|
+
return self._EndTime
|
|
1009
|
+
|
|
1010
|
+
@EndTime.setter
|
|
1011
|
+
def EndTime(self, EndTime):
|
|
1012
|
+
self._EndTime = EndTime
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
def _deserialize(self, params):
|
|
1016
|
+
self._StartTime = params.get("StartTime")
|
|
1017
|
+
self._EndTime = params.get("EndTime")
|
|
1018
|
+
memeber_set = set(params.keys())
|
|
1019
|
+
for name, value in vars(self).items():
|
|
1020
|
+
property_name = name[1:]
|
|
1021
|
+
if property_name in memeber_set:
|
|
1022
|
+
memeber_set.remove(property_name)
|
|
1023
|
+
if len(memeber_set) > 0:
|
|
1024
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
class Spec(AbstractModel):
|
|
1029
|
+
"""实例规格信息(influxdb)
|
|
1030
|
+
|
|
1031
|
+
"""
|
|
1032
|
+
|
|
1033
|
+
def __init__(self):
|
|
1034
|
+
r"""
|
|
1035
|
+
:param _PayMode: 1:包年包月、2:按小时计费
|
|
1036
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1037
|
+
:type PayMode: int
|
|
1038
|
+
:param _RequestUnit: 请求单元,为0则表示走资源配置
|
|
1039
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1040
|
+
:type RequestUnit: int
|
|
1041
|
+
:param _CpuLimit: CPU 核数最大限制
|
|
1042
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1043
|
+
:type CpuLimit: float
|
|
1044
|
+
:param _MemoryLimit: 内存 最大限制(Gi)
|
|
1045
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1046
|
+
:type MemoryLimit: float
|
|
1047
|
+
:param _DiskLimit: 磁盘 最大限制(Gi)
|
|
1048
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1049
|
+
:type DiskLimit: int
|
|
1050
|
+
:param _Shards: 业务分片数
|
|
1051
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1052
|
+
:type Shards: int
|
|
1053
|
+
:param _Replicas: 业务节点数
|
|
1054
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1055
|
+
:type Replicas: int
|
|
1056
|
+
"""
|
|
1057
|
+
self._PayMode = None
|
|
1058
|
+
self._RequestUnit = None
|
|
1059
|
+
self._CpuLimit = None
|
|
1060
|
+
self._MemoryLimit = None
|
|
1061
|
+
self._DiskLimit = None
|
|
1062
|
+
self._Shards = None
|
|
1063
|
+
self._Replicas = None
|
|
1064
|
+
|
|
1065
|
+
@property
|
|
1066
|
+
def PayMode(self):
|
|
1067
|
+
"""1:包年包月、2:按小时计费
|
|
1068
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1069
|
+
:rtype: int
|
|
1070
|
+
"""
|
|
1071
|
+
return self._PayMode
|
|
1072
|
+
|
|
1073
|
+
@PayMode.setter
|
|
1074
|
+
def PayMode(self, PayMode):
|
|
1075
|
+
self._PayMode = PayMode
|
|
1076
|
+
|
|
1077
|
+
@property
|
|
1078
|
+
def RequestUnit(self):
|
|
1079
|
+
"""请求单元,为0则表示走资源配置
|
|
1080
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1081
|
+
:rtype: int
|
|
1082
|
+
"""
|
|
1083
|
+
return self._RequestUnit
|
|
1084
|
+
|
|
1085
|
+
@RequestUnit.setter
|
|
1086
|
+
def RequestUnit(self, RequestUnit):
|
|
1087
|
+
self._RequestUnit = RequestUnit
|
|
1088
|
+
|
|
1089
|
+
@property
|
|
1090
|
+
def CpuLimit(self):
|
|
1091
|
+
"""CPU 核数最大限制
|
|
1092
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1093
|
+
:rtype: float
|
|
1094
|
+
"""
|
|
1095
|
+
return self._CpuLimit
|
|
1096
|
+
|
|
1097
|
+
@CpuLimit.setter
|
|
1098
|
+
def CpuLimit(self, CpuLimit):
|
|
1099
|
+
self._CpuLimit = CpuLimit
|
|
1100
|
+
|
|
1101
|
+
@property
|
|
1102
|
+
def MemoryLimit(self):
|
|
1103
|
+
"""内存 最大限制(Gi)
|
|
1104
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1105
|
+
:rtype: float
|
|
1106
|
+
"""
|
|
1107
|
+
return self._MemoryLimit
|
|
1108
|
+
|
|
1109
|
+
@MemoryLimit.setter
|
|
1110
|
+
def MemoryLimit(self, MemoryLimit):
|
|
1111
|
+
self._MemoryLimit = MemoryLimit
|
|
1112
|
+
|
|
1113
|
+
@property
|
|
1114
|
+
def DiskLimit(self):
|
|
1115
|
+
"""磁盘 最大限制(Gi)
|
|
1116
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1117
|
+
:rtype: int
|
|
1118
|
+
"""
|
|
1119
|
+
return self._DiskLimit
|
|
1120
|
+
|
|
1121
|
+
@DiskLimit.setter
|
|
1122
|
+
def DiskLimit(self, DiskLimit):
|
|
1123
|
+
self._DiskLimit = DiskLimit
|
|
1124
|
+
|
|
1125
|
+
@property
|
|
1126
|
+
def Shards(self):
|
|
1127
|
+
"""业务分片数
|
|
1128
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1129
|
+
:rtype: int
|
|
1130
|
+
"""
|
|
1131
|
+
return self._Shards
|
|
1132
|
+
|
|
1133
|
+
@Shards.setter
|
|
1134
|
+
def Shards(self, Shards):
|
|
1135
|
+
self._Shards = Shards
|
|
1136
|
+
|
|
1137
|
+
@property
|
|
1138
|
+
def Replicas(self):
|
|
1139
|
+
"""业务节点数
|
|
1140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1141
|
+
:rtype: int
|
|
1142
|
+
"""
|
|
1143
|
+
return self._Replicas
|
|
1144
|
+
|
|
1145
|
+
@Replicas.setter
|
|
1146
|
+
def Replicas(self, Replicas):
|
|
1147
|
+
self._Replicas = Replicas
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
def _deserialize(self, params):
|
|
1151
|
+
self._PayMode = params.get("PayMode")
|
|
1152
|
+
self._RequestUnit = params.get("RequestUnit")
|
|
1153
|
+
self._CpuLimit = params.get("CpuLimit")
|
|
1154
|
+
self._MemoryLimit = params.get("MemoryLimit")
|
|
1155
|
+
self._DiskLimit = params.get("DiskLimit")
|
|
1156
|
+
self._Shards = params.get("Shards")
|
|
1157
|
+
self._Replicas = params.get("Replicas")
|
|
1158
|
+
memeber_set = set(params.keys())
|
|
1159
|
+
for name, value in vars(self).items():
|
|
1160
|
+
property_name = name[1:]
|
|
1161
|
+
if property_name in memeber_set:
|
|
1162
|
+
memeber_set.remove(property_name)
|
|
1163
|
+
if len(memeber_set) > 0:
|
|
1164
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1165
|
+
|
|
1166
|
+
|
|
1167
|
+
|
|
1168
|
+
class Tag(AbstractModel):
|
|
1169
|
+
"""标签
|
|
1170
|
+
|
|
1171
|
+
"""
|
|
1172
|
+
|
|
1173
|
+
def __init__(self):
|
|
1174
|
+
r"""
|
|
1175
|
+
:param _Key: 键
|
|
1176
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1177
|
+
:type Key: str
|
|
1178
|
+
:param _Value: 值
|
|
1179
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1180
|
+
:type Value: str
|
|
1181
|
+
"""
|
|
1182
|
+
self._Key = None
|
|
1183
|
+
self._Value = None
|
|
1184
|
+
|
|
1185
|
+
@property
|
|
1186
|
+
def Key(self):
|
|
1187
|
+
"""键
|
|
1188
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1189
|
+
:rtype: str
|
|
1190
|
+
"""
|
|
1191
|
+
return self._Key
|
|
1192
|
+
|
|
1193
|
+
@Key.setter
|
|
1194
|
+
def Key(self, Key):
|
|
1195
|
+
self._Key = Key
|
|
1196
|
+
|
|
1197
|
+
@property
|
|
1198
|
+
def Value(self):
|
|
1199
|
+
"""值
|
|
1200
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1201
|
+
:rtype: str
|
|
1202
|
+
"""
|
|
1203
|
+
return self._Value
|
|
1204
|
+
|
|
1205
|
+
@Value.setter
|
|
1206
|
+
def Value(self, Value):
|
|
1207
|
+
self._Value = Value
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
def _deserialize(self, params):
|
|
1211
|
+
self._Key = params.get("Key")
|
|
1212
|
+
self._Value = params.get("Value")
|
|
1213
|
+
memeber_set = set(params.keys())
|
|
1214
|
+
for name, value in vars(self).items():
|
|
1215
|
+
property_name = name[1:]
|
|
1216
|
+
if property_name in memeber_set:
|
|
1217
|
+
memeber_set.remove(property_name)
|
|
1218
|
+
if len(memeber_set) > 0:
|
|
1219
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
class Tenant(AbstractModel):
|
|
1224
|
+
"""产品内部特性
|
|
1225
|
+
|
|
1226
|
+
"""
|
|
1227
|
+
|
|
1228
|
+
def __init__(self):
|
|
1229
|
+
r"""
|
|
1230
|
+
:param _IsPasswordEncrypted: 密码是否已加密
|
|
1231
|
+
:type IsPasswordEncrypted: bool
|
|
1232
|
+
"""
|
|
1233
|
+
self._IsPasswordEncrypted = None
|
|
1234
|
+
|
|
1235
|
+
@property
|
|
1236
|
+
def IsPasswordEncrypted(self):
|
|
1237
|
+
"""密码是否已加密
|
|
1238
|
+
:rtype: bool
|
|
1239
|
+
"""
|
|
1240
|
+
return self._IsPasswordEncrypted
|
|
1241
|
+
|
|
1242
|
+
@IsPasswordEncrypted.setter
|
|
1243
|
+
def IsPasswordEncrypted(self, IsPasswordEncrypted):
|
|
1244
|
+
self._IsPasswordEncrypted = IsPasswordEncrypted
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
def _deserialize(self, params):
|
|
1248
|
+
self._IsPasswordEncrypted = params.get("IsPasswordEncrypted")
|
|
1249
|
+
memeber_set = set(params.keys())
|
|
1250
|
+
for name, value in vars(self).items():
|
|
1251
|
+
property_name = name[1:]
|
|
1252
|
+
if property_name in memeber_set:
|
|
1253
|
+
memeber_set.remove(property_name)
|
|
1254
|
+
if len(memeber_set) > 0:
|
|
1255
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1256
|
+
|