tencentcloud-sdk-python 3.0.1323__py2.py3-none-any.whl → 3.0.1325__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/aiart/v20221229/models.py +2 -2
- tencentcloud/antiddos/v20200309/models.py +27 -10
- tencentcloud/apm/v20210622/apm_client.py +23 -0
- tencentcloud/apm/v20210622/models.py +255 -2
- tencentcloud/cbs/v20170312/cbs_client.py +101 -0
- tencentcloud/cbs/v20170312/errorcodes.py +3 -0
- tencentcloud/cbs/v20170312/models.py +735 -5
- tencentcloud/cdwdoris/v20211228/models.py +17 -2
- tencentcloud/cls/v20201016/models.py +15 -0
- tencentcloud/dc/v20180410/models.py +15 -0
- tencentcloud/dlc/v20210125/models.py +0 -24
- tencentcloud/dts/v20211206/models.py +2 -2
- tencentcloud/emr/v20190103/models.py +96 -0
- tencentcloud/gme/v20180711/models.py +0 -18
- tencentcloud/mna/v20210119/models.py +0 -58
- tencentcloud/ocr/v20181119/models.py +158 -0
- tencentcloud/ocr/v20181119/ocr_client.py +3 -1
- tencentcloud/scf/v20180416/models.py +2 -2
- tencentcloud/ses/v20201002/models.py +15 -0
- tencentcloud/svp/v20240125/models.py +0 -6
- tencentcloud/teo/v20220901/models.py +64 -0
- tencentcloud/trp/v20210515/models.py +0 -360
- tencentcloud/vpc/v20170312/models.py +234 -0
- tencentcloud/vpc/v20170312/vpc_client.py +46 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/RECORD +30 -35
- tencentcloud/aa/__init__.py +0 -0
- tencentcloud/aa/v20200224/__init__.py +0 -0
- tencentcloud/aa/v20200224/aa_client.py +0 -49
- tencentcloud/aa/v20200224/errorcodes.py +0 -78
- tencentcloud/aa/v20200224/models.py +0 -736
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1323.dist-info → tencentcloud_sdk_python-3.0.1325.dist-info}/top_level.txt +0 -0
@@ -107,6 +107,57 @@ class AdvancedRetentionPolicy(AbstractModel):
|
|
107
107
|
|
108
108
|
|
109
109
|
|
110
|
+
class ApplyDisk(AbstractModel):
|
111
|
+
"""本参数用于快照组回滚接口的入参,表示回滚的云盘、快照列表。
|
112
|
+
|
113
|
+
"""
|
114
|
+
|
115
|
+
def __init__(self):
|
116
|
+
r"""
|
117
|
+
:param _SnapshotId: 快照组关联的快照ID。
|
118
|
+
:type SnapshotId: str
|
119
|
+
:param _DiskId: 快照组关联快照对应的原云硬盘ID。
|
120
|
+
:type DiskId: str
|
121
|
+
"""
|
122
|
+
self._SnapshotId = None
|
123
|
+
self._DiskId = None
|
124
|
+
|
125
|
+
@property
|
126
|
+
def SnapshotId(self):
|
127
|
+
"""快照组关联的快照ID。
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._SnapshotId
|
131
|
+
|
132
|
+
@SnapshotId.setter
|
133
|
+
def SnapshotId(self, SnapshotId):
|
134
|
+
self._SnapshotId = SnapshotId
|
135
|
+
|
136
|
+
@property
|
137
|
+
def DiskId(self):
|
138
|
+
"""快照组关联快照对应的原云硬盘ID。
|
139
|
+
:rtype: str
|
140
|
+
"""
|
141
|
+
return self._DiskId
|
142
|
+
|
143
|
+
@DiskId.setter
|
144
|
+
def DiskId(self, DiskId):
|
145
|
+
self._DiskId = DiskId
|
146
|
+
|
147
|
+
|
148
|
+
def _deserialize(self, params):
|
149
|
+
self._SnapshotId = params.get("SnapshotId")
|
150
|
+
self._DiskId = params.get("DiskId")
|
151
|
+
memeber_set = set(params.keys())
|
152
|
+
for name, value in vars(self).items():
|
153
|
+
property_name = name[1:]
|
154
|
+
if property_name in memeber_set:
|
155
|
+
memeber_set.remove(property_name)
|
156
|
+
if len(memeber_set) > 0:
|
157
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
158
|
+
|
159
|
+
|
160
|
+
|
110
161
|
class ApplyDiskBackupRequest(AbstractModel):
|
111
162
|
"""ApplyDiskBackup请求参数结构体
|
112
163
|
|
@@ -216,6 +267,120 @@ class ApplyDiskBackupResponse(AbstractModel):
|
|
216
267
|
self._RequestId = params.get("RequestId")
|
217
268
|
|
218
269
|
|
270
|
+
class ApplySnapshotGroupRequest(AbstractModel):
|
271
|
+
"""ApplySnapshotGroup请求参数结构体
|
272
|
+
|
273
|
+
"""
|
274
|
+
|
275
|
+
def __init__(self):
|
276
|
+
r"""
|
277
|
+
:param _SnapshotGroupId: 回滚的快照组ID。
|
278
|
+
:type SnapshotGroupId: str
|
279
|
+
:param _ApplyDisks: 回滚的快照组关联的快照ID,及快照对应的原云硬盘ID列表。
|
280
|
+
:type ApplyDisks: list of ApplyDisk
|
281
|
+
:param _AutoStopInstance: 回滚前是否执行自动关机。
|
282
|
+
:type AutoStopInstance: bool
|
283
|
+
:param _AutoStartInstance: 回滚完成后是否自动开机。
|
284
|
+
:type AutoStartInstance: bool
|
285
|
+
"""
|
286
|
+
self._SnapshotGroupId = None
|
287
|
+
self._ApplyDisks = None
|
288
|
+
self._AutoStopInstance = None
|
289
|
+
self._AutoStartInstance = None
|
290
|
+
|
291
|
+
@property
|
292
|
+
def SnapshotGroupId(self):
|
293
|
+
"""回滚的快照组ID。
|
294
|
+
:rtype: str
|
295
|
+
"""
|
296
|
+
return self._SnapshotGroupId
|
297
|
+
|
298
|
+
@SnapshotGroupId.setter
|
299
|
+
def SnapshotGroupId(self, SnapshotGroupId):
|
300
|
+
self._SnapshotGroupId = SnapshotGroupId
|
301
|
+
|
302
|
+
@property
|
303
|
+
def ApplyDisks(self):
|
304
|
+
"""回滚的快照组关联的快照ID,及快照对应的原云硬盘ID列表。
|
305
|
+
:rtype: list of ApplyDisk
|
306
|
+
"""
|
307
|
+
return self._ApplyDisks
|
308
|
+
|
309
|
+
@ApplyDisks.setter
|
310
|
+
def ApplyDisks(self, ApplyDisks):
|
311
|
+
self._ApplyDisks = ApplyDisks
|
312
|
+
|
313
|
+
@property
|
314
|
+
def AutoStopInstance(self):
|
315
|
+
"""回滚前是否执行自动关机。
|
316
|
+
:rtype: bool
|
317
|
+
"""
|
318
|
+
return self._AutoStopInstance
|
319
|
+
|
320
|
+
@AutoStopInstance.setter
|
321
|
+
def AutoStopInstance(self, AutoStopInstance):
|
322
|
+
self._AutoStopInstance = AutoStopInstance
|
323
|
+
|
324
|
+
@property
|
325
|
+
def AutoStartInstance(self):
|
326
|
+
"""回滚完成后是否自动开机。
|
327
|
+
:rtype: bool
|
328
|
+
"""
|
329
|
+
return self._AutoStartInstance
|
330
|
+
|
331
|
+
@AutoStartInstance.setter
|
332
|
+
def AutoStartInstance(self, AutoStartInstance):
|
333
|
+
self._AutoStartInstance = AutoStartInstance
|
334
|
+
|
335
|
+
|
336
|
+
def _deserialize(self, params):
|
337
|
+
self._SnapshotGroupId = params.get("SnapshotGroupId")
|
338
|
+
if params.get("ApplyDisks") is not None:
|
339
|
+
self._ApplyDisks = []
|
340
|
+
for item in params.get("ApplyDisks"):
|
341
|
+
obj = ApplyDisk()
|
342
|
+
obj._deserialize(item)
|
343
|
+
self._ApplyDisks.append(obj)
|
344
|
+
self._AutoStopInstance = params.get("AutoStopInstance")
|
345
|
+
self._AutoStartInstance = params.get("AutoStartInstance")
|
346
|
+
memeber_set = set(params.keys())
|
347
|
+
for name, value in vars(self).items():
|
348
|
+
property_name = name[1:]
|
349
|
+
if property_name in memeber_set:
|
350
|
+
memeber_set.remove(property_name)
|
351
|
+
if len(memeber_set) > 0:
|
352
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
class ApplySnapshotGroupResponse(AbstractModel):
|
357
|
+
"""ApplySnapshotGroup返回参数结构体
|
358
|
+
|
359
|
+
"""
|
360
|
+
|
361
|
+
def __init__(self):
|
362
|
+
r"""
|
363
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
364
|
+
:type RequestId: str
|
365
|
+
"""
|
366
|
+
self._RequestId = None
|
367
|
+
|
368
|
+
@property
|
369
|
+
def RequestId(self):
|
370
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
371
|
+
:rtype: str
|
372
|
+
"""
|
373
|
+
return self._RequestId
|
374
|
+
|
375
|
+
@RequestId.setter
|
376
|
+
def RequestId(self, RequestId):
|
377
|
+
self._RequestId = RequestId
|
378
|
+
|
379
|
+
|
380
|
+
def _deserialize(self, params):
|
381
|
+
self._RequestId = params.get("RequestId")
|
382
|
+
|
383
|
+
|
219
384
|
class ApplySnapshotRequest(AbstractModel):
|
220
385
|
"""ApplySnapshot请求参数结构体
|
221
386
|
|
@@ -1948,6 +2113,120 @@ class CreateDisksResponse(AbstractModel):
|
|
1948
2113
|
self._RequestId = params.get("RequestId")
|
1949
2114
|
|
1950
2115
|
|
2116
|
+
class CreateSnapshotGroupRequest(AbstractModel):
|
2117
|
+
"""CreateSnapshotGroup请求参数结构体
|
2118
|
+
|
2119
|
+
"""
|
2120
|
+
|
2121
|
+
def __init__(self):
|
2122
|
+
r"""
|
2123
|
+
:param _DiskIds: 需要创建快照组的云硬盘ID列表,必须选择挂载在同一实例上的盘列表。
|
2124
|
+
:type DiskIds: list of str
|
2125
|
+
:param _SnapshotGroupName: 快照组名称,快照组关联的快照也会继承快照组的名称。例如:快照组名称为testSnapshotGroup,快照组关联两个快照,则两个快照的名称分别为testSnapshotGroup_0,testSnapshotGroup_1。
|
2126
|
+
:type SnapshotGroupName: str
|
2127
|
+
:param _Tags: 快照组需要绑定的标签列表。
|
2128
|
+
:type Tags: list of Tag
|
2129
|
+
"""
|
2130
|
+
self._DiskIds = None
|
2131
|
+
self._SnapshotGroupName = None
|
2132
|
+
self._Tags = None
|
2133
|
+
|
2134
|
+
@property
|
2135
|
+
def DiskIds(self):
|
2136
|
+
"""需要创建快照组的云硬盘ID列表,必须选择挂载在同一实例上的盘列表。
|
2137
|
+
:rtype: list of str
|
2138
|
+
"""
|
2139
|
+
return self._DiskIds
|
2140
|
+
|
2141
|
+
@DiskIds.setter
|
2142
|
+
def DiskIds(self, DiskIds):
|
2143
|
+
self._DiskIds = DiskIds
|
2144
|
+
|
2145
|
+
@property
|
2146
|
+
def SnapshotGroupName(self):
|
2147
|
+
"""快照组名称,快照组关联的快照也会继承快照组的名称。例如:快照组名称为testSnapshotGroup,快照组关联两个快照,则两个快照的名称分别为testSnapshotGroup_0,testSnapshotGroup_1。
|
2148
|
+
:rtype: str
|
2149
|
+
"""
|
2150
|
+
return self._SnapshotGroupName
|
2151
|
+
|
2152
|
+
@SnapshotGroupName.setter
|
2153
|
+
def SnapshotGroupName(self, SnapshotGroupName):
|
2154
|
+
self._SnapshotGroupName = SnapshotGroupName
|
2155
|
+
|
2156
|
+
@property
|
2157
|
+
def Tags(self):
|
2158
|
+
"""快照组需要绑定的标签列表。
|
2159
|
+
:rtype: list of Tag
|
2160
|
+
"""
|
2161
|
+
return self._Tags
|
2162
|
+
|
2163
|
+
@Tags.setter
|
2164
|
+
def Tags(self, Tags):
|
2165
|
+
self._Tags = Tags
|
2166
|
+
|
2167
|
+
|
2168
|
+
def _deserialize(self, params):
|
2169
|
+
self._DiskIds = params.get("DiskIds")
|
2170
|
+
self._SnapshotGroupName = params.get("SnapshotGroupName")
|
2171
|
+
if params.get("Tags") is not None:
|
2172
|
+
self._Tags = []
|
2173
|
+
for item in params.get("Tags"):
|
2174
|
+
obj = Tag()
|
2175
|
+
obj._deserialize(item)
|
2176
|
+
self._Tags.append(obj)
|
2177
|
+
memeber_set = set(params.keys())
|
2178
|
+
for name, value in vars(self).items():
|
2179
|
+
property_name = name[1:]
|
2180
|
+
if property_name in memeber_set:
|
2181
|
+
memeber_set.remove(property_name)
|
2182
|
+
if len(memeber_set) > 0:
|
2183
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2184
|
+
|
2185
|
+
|
2186
|
+
|
2187
|
+
class CreateSnapshotGroupResponse(AbstractModel):
|
2188
|
+
"""CreateSnapshotGroup返回参数结构体
|
2189
|
+
|
2190
|
+
"""
|
2191
|
+
|
2192
|
+
def __init__(self):
|
2193
|
+
r"""
|
2194
|
+
:param _SnapshotGroupId: 创建成功的快照组ID。
|
2195
|
+
:type SnapshotGroupId: str
|
2196
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2197
|
+
:type RequestId: str
|
2198
|
+
"""
|
2199
|
+
self._SnapshotGroupId = None
|
2200
|
+
self._RequestId = None
|
2201
|
+
|
2202
|
+
@property
|
2203
|
+
def SnapshotGroupId(self):
|
2204
|
+
"""创建成功的快照组ID。
|
2205
|
+
:rtype: str
|
2206
|
+
"""
|
2207
|
+
return self._SnapshotGroupId
|
2208
|
+
|
2209
|
+
@SnapshotGroupId.setter
|
2210
|
+
def SnapshotGroupId(self, SnapshotGroupId):
|
2211
|
+
self._SnapshotGroupId = SnapshotGroupId
|
2212
|
+
|
2213
|
+
@property
|
2214
|
+
def RequestId(self):
|
2215
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2216
|
+
:rtype: str
|
2217
|
+
"""
|
2218
|
+
return self._RequestId
|
2219
|
+
|
2220
|
+
@RequestId.setter
|
2221
|
+
def RequestId(self, RequestId):
|
2222
|
+
self._RequestId = RequestId
|
2223
|
+
|
2224
|
+
|
2225
|
+
def _deserialize(self, params):
|
2226
|
+
self._SnapshotGroupId = params.get("SnapshotGroupId")
|
2227
|
+
self._RequestId = params.get("RequestId")
|
2228
|
+
|
2229
|
+
|
1951
2230
|
class CreateSnapshotRequest(AbstractModel):
|
1952
2231
|
"""CreateSnapshot请求参数结构体
|
1953
2232
|
|
@@ -2183,7 +2462,101 @@ class DeleteDiskBackupsRequest(AbstractModel):
|
|
2183
2462
|
|
2184
2463
|
|
2185
2464
|
def _deserialize(self, params):
|
2186
|
-
self._DiskBackupIds = params.get("DiskBackupIds")
|
2465
|
+
self._DiskBackupIds = params.get("DiskBackupIds")
|
2466
|
+
memeber_set = set(params.keys())
|
2467
|
+
for name, value in vars(self).items():
|
2468
|
+
property_name = name[1:]
|
2469
|
+
if property_name in memeber_set:
|
2470
|
+
memeber_set.remove(property_name)
|
2471
|
+
if len(memeber_set) > 0:
|
2472
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
2473
|
+
|
2474
|
+
|
2475
|
+
|
2476
|
+
class DeleteDiskBackupsResponse(AbstractModel):
|
2477
|
+
"""DeleteDiskBackups返回参数结构体
|
2478
|
+
|
2479
|
+
"""
|
2480
|
+
|
2481
|
+
def __init__(self):
|
2482
|
+
r"""
|
2483
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2484
|
+
:type RequestId: str
|
2485
|
+
"""
|
2486
|
+
self._RequestId = None
|
2487
|
+
|
2488
|
+
@property
|
2489
|
+
def RequestId(self):
|
2490
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2491
|
+
:rtype: str
|
2492
|
+
"""
|
2493
|
+
return self._RequestId
|
2494
|
+
|
2495
|
+
@RequestId.setter
|
2496
|
+
def RequestId(self, RequestId):
|
2497
|
+
self._RequestId = RequestId
|
2498
|
+
|
2499
|
+
|
2500
|
+
def _deserialize(self, params):
|
2501
|
+
self._RequestId = params.get("RequestId")
|
2502
|
+
|
2503
|
+
|
2504
|
+
class DeleteSnapshotGroupRequest(AbstractModel):
|
2505
|
+
"""DeleteSnapshotGroup请求参数结构体
|
2506
|
+
|
2507
|
+
"""
|
2508
|
+
|
2509
|
+
def __init__(self):
|
2510
|
+
r"""
|
2511
|
+
:param _SnapshotGroupId: 快照组ID。
|
2512
|
+
:type SnapshotGroupId: str
|
2513
|
+
:param _SnapshotGroupIds: 快照组ID 列表。此参数与快照组 ID 至少传 1 个,同时传会与快照组 ID 合并。
|
2514
|
+
:type SnapshotGroupIds: list of str
|
2515
|
+
:param _DeleteBindImages: 是否同时删除快照组关联的镜像;取值为false,表示不删除快照组绑定的镜像,此时,如果快照组有绑定的镜像,删除会失败;取值为true,表示同时删除快照组绑定的镜像;默认值为false。
|
2516
|
+
:type DeleteBindImages: bool
|
2517
|
+
"""
|
2518
|
+
self._SnapshotGroupId = None
|
2519
|
+
self._SnapshotGroupIds = None
|
2520
|
+
self._DeleteBindImages = None
|
2521
|
+
|
2522
|
+
@property
|
2523
|
+
def SnapshotGroupId(self):
|
2524
|
+
"""快照组ID。
|
2525
|
+
:rtype: str
|
2526
|
+
"""
|
2527
|
+
return self._SnapshotGroupId
|
2528
|
+
|
2529
|
+
@SnapshotGroupId.setter
|
2530
|
+
def SnapshotGroupId(self, SnapshotGroupId):
|
2531
|
+
self._SnapshotGroupId = SnapshotGroupId
|
2532
|
+
|
2533
|
+
@property
|
2534
|
+
def SnapshotGroupIds(self):
|
2535
|
+
"""快照组ID 列表。此参数与快照组 ID 至少传 1 个,同时传会与快照组 ID 合并。
|
2536
|
+
:rtype: list of str
|
2537
|
+
"""
|
2538
|
+
return self._SnapshotGroupIds
|
2539
|
+
|
2540
|
+
@SnapshotGroupIds.setter
|
2541
|
+
def SnapshotGroupIds(self, SnapshotGroupIds):
|
2542
|
+
self._SnapshotGroupIds = SnapshotGroupIds
|
2543
|
+
|
2544
|
+
@property
|
2545
|
+
def DeleteBindImages(self):
|
2546
|
+
"""是否同时删除快照组关联的镜像;取值为false,表示不删除快照组绑定的镜像,此时,如果快照组有绑定的镜像,删除会失败;取值为true,表示同时删除快照组绑定的镜像;默认值为false。
|
2547
|
+
:rtype: bool
|
2548
|
+
"""
|
2549
|
+
return self._DeleteBindImages
|
2550
|
+
|
2551
|
+
@DeleteBindImages.setter
|
2552
|
+
def DeleteBindImages(self, DeleteBindImages):
|
2553
|
+
self._DeleteBindImages = DeleteBindImages
|
2554
|
+
|
2555
|
+
|
2556
|
+
def _deserialize(self, params):
|
2557
|
+
self._SnapshotGroupId = params.get("SnapshotGroupId")
|
2558
|
+
self._SnapshotGroupIds = params.get("SnapshotGroupIds")
|
2559
|
+
self._DeleteBindImages = params.get("DeleteBindImages")
|
2187
2560
|
memeber_set = set(params.keys())
|
2188
2561
|
for name, value in vars(self).items():
|
2189
2562
|
property_name = name[1:]
|
@@ -2194,8 +2567,8 @@ class DeleteDiskBackupsRequest(AbstractModel):
|
|
2194
2567
|
|
2195
2568
|
|
2196
2569
|
|
2197
|
-
class
|
2198
|
-
"""
|
2570
|
+
class DeleteSnapshotGroupResponse(AbstractModel):
|
2571
|
+
"""DeleteSnapshotGroup返回参数结构体
|
2199
2572
|
|
2200
2573
|
"""
|
2201
2574
|
|
@@ -3409,6 +3782,140 @@ class DescribeInstancesDiskNumResponse(AbstractModel):
|
|
3409
3782
|
self._RequestId = params.get("RequestId")
|
3410
3783
|
|
3411
3784
|
|
3785
|
+
class DescribeSnapshotGroupsRequest(AbstractModel):
|
3786
|
+
"""DescribeSnapshotGroups请求参数结构体
|
3787
|
+
|
3788
|
+
"""
|
3789
|
+
|
3790
|
+
def __init__(self):
|
3791
|
+
r"""
|
3792
|
+
:param _Filters: 过滤条件。<br><li>snapshot-group-id - Array of String - 是否必填:否 -(过滤条件)按快照组ID过滤 <br><li>snapshot-group-state - Array of String - 是否必填:否 -(过滤条件)按快照组状态过滤。(NORMAL: 正常 | CREATING:创建中 | ROLLBACKING:回滚中) <br><li>snapshot-group-name - Array of String - 是否必填:否 -(过滤条件)按快照组名称过滤 <br><li>snapshot-id - Array of String - 是否必填:否 -(过滤条件)按快照组内的快照ID过滤
|
3793
|
+
:type Filters: list of Filter
|
3794
|
+
:param _Offset: 偏移量,默认为0。
|
3795
|
+
:type Offset: int
|
3796
|
+
:param _Limit: 返回数量,默认为20,最大值为100。
|
3797
|
+
:type Limit: int
|
3798
|
+
"""
|
3799
|
+
self._Filters = None
|
3800
|
+
self._Offset = None
|
3801
|
+
self._Limit = None
|
3802
|
+
|
3803
|
+
@property
|
3804
|
+
def Filters(self):
|
3805
|
+
"""过滤条件。<br><li>snapshot-group-id - Array of String - 是否必填:否 -(过滤条件)按快照组ID过滤 <br><li>snapshot-group-state - Array of String - 是否必填:否 -(过滤条件)按快照组状态过滤。(NORMAL: 正常 | CREATING:创建中 | ROLLBACKING:回滚中) <br><li>snapshot-group-name - Array of String - 是否必填:否 -(过滤条件)按快照组名称过滤 <br><li>snapshot-id - Array of String - 是否必填:否 -(过滤条件)按快照组内的快照ID过滤
|
3806
|
+
:rtype: list of Filter
|
3807
|
+
"""
|
3808
|
+
return self._Filters
|
3809
|
+
|
3810
|
+
@Filters.setter
|
3811
|
+
def Filters(self, Filters):
|
3812
|
+
self._Filters = Filters
|
3813
|
+
|
3814
|
+
@property
|
3815
|
+
def Offset(self):
|
3816
|
+
"""偏移量,默认为0。
|
3817
|
+
:rtype: int
|
3818
|
+
"""
|
3819
|
+
return self._Offset
|
3820
|
+
|
3821
|
+
@Offset.setter
|
3822
|
+
def Offset(self, Offset):
|
3823
|
+
self._Offset = Offset
|
3824
|
+
|
3825
|
+
@property
|
3826
|
+
def Limit(self):
|
3827
|
+
"""返回数量,默认为20,最大值为100。
|
3828
|
+
:rtype: int
|
3829
|
+
"""
|
3830
|
+
return self._Limit
|
3831
|
+
|
3832
|
+
@Limit.setter
|
3833
|
+
def Limit(self, Limit):
|
3834
|
+
self._Limit = Limit
|
3835
|
+
|
3836
|
+
|
3837
|
+
def _deserialize(self, params):
|
3838
|
+
if params.get("Filters") is not None:
|
3839
|
+
self._Filters = []
|
3840
|
+
for item in params.get("Filters"):
|
3841
|
+
obj = Filter()
|
3842
|
+
obj._deserialize(item)
|
3843
|
+
self._Filters.append(obj)
|
3844
|
+
self._Offset = params.get("Offset")
|
3845
|
+
self._Limit = params.get("Limit")
|
3846
|
+
memeber_set = set(params.keys())
|
3847
|
+
for name, value in vars(self).items():
|
3848
|
+
property_name = name[1:]
|
3849
|
+
if property_name in memeber_set:
|
3850
|
+
memeber_set.remove(property_name)
|
3851
|
+
if len(memeber_set) > 0:
|
3852
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
3853
|
+
|
3854
|
+
|
3855
|
+
|
3856
|
+
class DescribeSnapshotGroupsResponse(AbstractModel):
|
3857
|
+
"""DescribeSnapshotGroups返回参数结构体
|
3858
|
+
|
3859
|
+
"""
|
3860
|
+
|
3861
|
+
def __init__(self):
|
3862
|
+
r"""
|
3863
|
+
:param _TotalCount: 符合条件的总数量。
|
3864
|
+
:type TotalCount: int
|
3865
|
+
:param _SnapshotGroupSet: 快照组列表详情。
|
3866
|
+
:type SnapshotGroupSet: list of SnapshotGroup
|
3867
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3868
|
+
:type RequestId: str
|
3869
|
+
"""
|
3870
|
+
self._TotalCount = None
|
3871
|
+
self._SnapshotGroupSet = None
|
3872
|
+
self._RequestId = None
|
3873
|
+
|
3874
|
+
@property
|
3875
|
+
def TotalCount(self):
|
3876
|
+
"""符合条件的总数量。
|
3877
|
+
:rtype: int
|
3878
|
+
"""
|
3879
|
+
return self._TotalCount
|
3880
|
+
|
3881
|
+
@TotalCount.setter
|
3882
|
+
def TotalCount(self, TotalCount):
|
3883
|
+
self._TotalCount = TotalCount
|
3884
|
+
|
3885
|
+
@property
|
3886
|
+
def SnapshotGroupSet(self):
|
3887
|
+
"""快照组列表详情。
|
3888
|
+
:rtype: list of SnapshotGroup
|
3889
|
+
"""
|
3890
|
+
return self._SnapshotGroupSet
|
3891
|
+
|
3892
|
+
@SnapshotGroupSet.setter
|
3893
|
+
def SnapshotGroupSet(self, SnapshotGroupSet):
|
3894
|
+
self._SnapshotGroupSet = SnapshotGroupSet
|
3895
|
+
|
3896
|
+
@property
|
3897
|
+
def RequestId(self):
|
3898
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3899
|
+
:rtype: str
|
3900
|
+
"""
|
3901
|
+
return self._RequestId
|
3902
|
+
|
3903
|
+
@RequestId.setter
|
3904
|
+
def RequestId(self, RequestId):
|
3905
|
+
self._RequestId = RequestId
|
3906
|
+
|
3907
|
+
|
3908
|
+
def _deserialize(self, params):
|
3909
|
+
self._TotalCount = params.get("TotalCount")
|
3910
|
+
if params.get("SnapshotGroupSet") is not None:
|
3911
|
+
self._SnapshotGroupSet = []
|
3912
|
+
for item in params.get("SnapshotGroupSet"):
|
3913
|
+
obj = SnapshotGroup()
|
3914
|
+
obj._deserialize(item)
|
3915
|
+
self._SnapshotGroupSet.append(obj)
|
3916
|
+
self._RequestId = params.get("RequestId")
|
3917
|
+
|
3918
|
+
|
3412
3919
|
class DescribeSnapshotOverviewRequest(AbstractModel):
|
3413
3920
|
"""DescribeSnapshotOverview请求参数结构体
|
3414
3921
|
|
@@ -7603,7 +8110,7 @@ class ResizeDiskRequest(AbstractModel):
|
|
7603
8110
|
r"""
|
7604
8111
|
:param _DiskSize: 云硬盘扩容后的大小,单位为GB,必须大于当前云硬盘大小。云盘大小取值范围参见云硬盘[产品分类](/document/product/362/2353)的说明。
|
7605
8112
|
:type DiskSize: int
|
7606
|
-
:param _DiskId: 云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)
|
8113
|
+
:param _DiskId: 云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)接口查询。该字段仅供单块云硬盘扩容时传入。
|
7607
8114
|
:type DiskId: str
|
7608
8115
|
"""
|
7609
8116
|
self._DiskSize = None
|
@@ -7622,7 +8129,7 @@ class ResizeDiskRequest(AbstractModel):
|
|
7622
8129
|
|
7623
8130
|
@property
|
7624
8131
|
def DiskId(self):
|
7625
|
-
"""云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)
|
8132
|
+
"""云硬盘ID, 通过[DescribeDisks](/document/product/362/16315)接口查询。该字段仅供单块云硬盘扩容时传入。
|
7626
8133
|
:rtype: str
|
7627
8134
|
"""
|
7628
8135
|
return self._DiskId
|
@@ -8188,6 +8695,229 @@ class SnapshotCopyResult(AbstractModel):
|
|
8188
8695
|
|
8189
8696
|
|
8190
8697
|
|
8698
|
+
class SnapshotGroup(AbstractModel):
|
8699
|
+
"""描述快照组详情
|
8700
|
+
|
8701
|
+
"""
|
8702
|
+
|
8703
|
+
def __init__(self):
|
8704
|
+
r"""
|
8705
|
+
:param _SnapshotGroupId: 快照组ID。
|
8706
|
+
:type SnapshotGroupId: str
|
8707
|
+
:param _SnapshotGroupType: 快照组类型。NORMAL: 普通快照组,非一致性快照。
|
8708
|
+
:type SnapshotGroupType: str
|
8709
|
+
:param _ContainRootSnapshot: 快照组是否包含系统盘快照。
|
8710
|
+
:type ContainRootSnapshot: bool
|
8711
|
+
:param _SnapshotIdSet: 快照组包含的快照ID列表。
|
8712
|
+
:type SnapshotIdSet: list of str
|
8713
|
+
:param _SnapshotGroupState: 快照组状态。<br><li>NORMAL: 正常<br><li>CREATING:创建中<br><li>ROLLBACKING:回滚中
|
8714
|
+
:type SnapshotGroupState: str
|
8715
|
+
:param _Percent: 快照组创建进度。
|
8716
|
+
:type Percent: int
|
8717
|
+
:param _CreateTime: 快照组创建时间。
|
8718
|
+
:type CreateTime: str
|
8719
|
+
:param _ModifyTime: 快照组最新修改时间
|
8720
|
+
:type ModifyTime: str
|
8721
|
+
:param _Images: 快照组关联的镜像列表。
|
8722
|
+
:type Images: list of Image
|
8723
|
+
:param _SnapshotGroupName: 快照组名称。
|
8724
|
+
:type SnapshotGroupName: str
|
8725
|
+
:param _ImageCount: 快照组关联的镜像数量。
|
8726
|
+
:type ImageCount: int
|
8727
|
+
:param _IsPermanent: 快照组是否永久保留
|
8728
|
+
:type IsPermanent: bool
|
8729
|
+
:param _DeadlineTime: 快照组到期时间。
|
8730
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
8731
|
+
:type DeadlineTime: str
|
8732
|
+
"""
|
8733
|
+
self._SnapshotGroupId = None
|
8734
|
+
self._SnapshotGroupType = None
|
8735
|
+
self._ContainRootSnapshot = None
|
8736
|
+
self._SnapshotIdSet = None
|
8737
|
+
self._SnapshotGroupState = None
|
8738
|
+
self._Percent = None
|
8739
|
+
self._CreateTime = None
|
8740
|
+
self._ModifyTime = None
|
8741
|
+
self._Images = None
|
8742
|
+
self._SnapshotGroupName = None
|
8743
|
+
self._ImageCount = None
|
8744
|
+
self._IsPermanent = None
|
8745
|
+
self._DeadlineTime = None
|
8746
|
+
|
8747
|
+
@property
|
8748
|
+
def SnapshotGroupId(self):
|
8749
|
+
"""快照组ID。
|
8750
|
+
:rtype: str
|
8751
|
+
"""
|
8752
|
+
return self._SnapshotGroupId
|
8753
|
+
|
8754
|
+
@SnapshotGroupId.setter
|
8755
|
+
def SnapshotGroupId(self, SnapshotGroupId):
|
8756
|
+
self._SnapshotGroupId = SnapshotGroupId
|
8757
|
+
|
8758
|
+
@property
|
8759
|
+
def SnapshotGroupType(self):
|
8760
|
+
"""快照组类型。NORMAL: 普通快照组,非一致性快照。
|
8761
|
+
:rtype: str
|
8762
|
+
"""
|
8763
|
+
return self._SnapshotGroupType
|
8764
|
+
|
8765
|
+
@SnapshotGroupType.setter
|
8766
|
+
def SnapshotGroupType(self, SnapshotGroupType):
|
8767
|
+
self._SnapshotGroupType = SnapshotGroupType
|
8768
|
+
|
8769
|
+
@property
|
8770
|
+
def ContainRootSnapshot(self):
|
8771
|
+
"""快照组是否包含系统盘快照。
|
8772
|
+
:rtype: bool
|
8773
|
+
"""
|
8774
|
+
return self._ContainRootSnapshot
|
8775
|
+
|
8776
|
+
@ContainRootSnapshot.setter
|
8777
|
+
def ContainRootSnapshot(self, ContainRootSnapshot):
|
8778
|
+
self._ContainRootSnapshot = ContainRootSnapshot
|
8779
|
+
|
8780
|
+
@property
|
8781
|
+
def SnapshotIdSet(self):
|
8782
|
+
"""快照组包含的快照ID列表。
|
8783
|
+
:rtype: list of str
|
8784
|
+
"""
|
8785
|
+
return self._SnapshotIdSet
|
8786
|
+
|
8787
|
+
@SnapshotIdSet.setter
|
8788
|
+
def SnapshotIdSet(self, SnapshotIdSet):
|
8789
|
+
self._SnapshotIdSet = SnapshotIdSet
|
8790
|
+
|
8791
|
+
@property
|
8792
|
+
def SnapshotGroupState(self):
|
8793
|
+
"""快照组状态。<br><li>NORMAL: 正常<br><li>CREATING:创建中<br><li>ROLLBACKING:回滚中
|
8794
|
+
:rtype: str
|
8795
|
+
"""
|
8796
|
+
return self._SnapshotGroupState
|
8797
|
+
|
8798
|
+
@SnapshotGroupState.setter
|
8799
|
+
def SnapshotGroupState(self, SnapshotGroupState):
|
8800
|
+
self._SnapshotGroupState = SnapshotGroupState
|
8801
|
+
|
8802
|
+
@property
|
8803
|
+
def Percent(self):
|
8804
|
+
"""快照组创建进度。
|
8805
|
+
:rtype: int
|
8806
|
+
"""
|
8807
|
+
return self._Percent
|
8808
|
+
|
8809
|
+
@Percent.setter
|
8810
|
+
def Percent(self, Percent):
|
8811
|
+
self._Percent = Percent
|
8812
|
+
|
8813
|
+
@property
|
8814
|
+
def CreateTime(self):
|
8815
|
+
"""快照组创建时间。
|
8816
|
+
:rtype: str
|
8817
|
+
"""
|
8818
|
+
return self._CreateTime
|
8819
|
+
|
8820
|
+
@CreateTime.setter
|
8821
|
+
def CreateTime(self, CreateTime):
|
8822
|
+
self._CreateTime = CreateTime
|
8823
|
+
|
8824
|
+
@property
|
8825
|
+
def ModifyTime(self):
|
8826
|
+
"""快照组最新修改时间
|
8827
|
+
:rtype: str
|
8828
|
+
"""
|
8829
|
+
return self._ModifyTime
|
8830
|
+
|
8831
|
+
@ModifyTime.setter
|
8832
|
+
def ModifyTime(self, ModifyTime):
|
8833
|
+
self._ModifyTime = ModifyTime
|
8834
|
+
|
8835
|
+
@property
|
8836
|
+
def Images(self):
|
8837
|
+
"""快照组关联的镜像列表。
|
8838
|
+
:rtype: list of Image
|
8839
|
+
"""
|
8840
|
+
return self._Images
|
8841
|
+
|
8842
|
+
@Images.setter
|
8843
|
+
def Images(self, Images):
|
8844
|
+
self._Images = Images
|
8845
|
+
|
8846
|
+
@property
|
8847
|
+
def SnapshotGroupName(self):
|
8848
|
+
"""快照组名称。
|
8849
|
+
:rtype: str
|
8850
|
+
"""
|
8851
|
+
return self._SnapshotGroupName
|
8852
|
+
|
8853
|
+
@SnapshotGroupName.setter
|
8854
|
+
def SnapshotGroupName(self, SnapshotGroupName):
|
8855
|
+
self._SnapshotGroupName = SnapshotGroupName
|
8856
|
+
|
8857
|
+
@property
|
8858
|
+
def ImageCount(self):
|
8859
|
+
"""快照组关联的镜像数量。
|
8860
|
+
:rtype: int
|
8861
|
+
"""
|
8862
|
+
return self._ImageCount
|
8863
|
+
|
8864
|
+
@ImageCount.setter
|
8865
|
+
def ImageCount(self, ImageCount):
|
8866
|
+
self._ImageCount = ImageCount
|
8867
|
+
|
8868
|
+
@property
|
8869
|
+
def IsPermanent(self):
|
8870
|
+
"""快照组是否永久保留
|
8871
|
+
:rtype: bool
|
8872
|
+
"""
|
8873
|
+
return self._IsPermanent
|
8874
|
+
|
8875
|
+
@IsPermanent.setter
|
8876
|
+
def IsPermanent(self, IsPermanent):
|
8877
|
+
self._IsPermanent = IsPermanent
|
8878
|
+
|
8879
|
+
@property
|
8880
|
+
def DeadlineTime(self):
|
8881
|
+
"""快照组到期时间。
|
8882
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
8883
|
+
:rtype: str
|
8884
|
+
"""
|
8885
|
+
return self._DeadlineTime
|
8886
|
+
|
8887
|
+
@DeadlineTime.setter
|
8888
|
+
def DeadlineTime(self, DeadlineTime):
|
8889
|
+
self._DeadlineTime = DeadlineTime
|
8890
|
+
|
8891
|
+
|
8892
|
+
def _deserialize(self, params):
|
8893
|
+
self._SnapshotGroupId = params.get("SnapshotGroupId")
|
8894
|
+
self._SnapshotGroupType = params.get("SnapshotGroupType")
|
8895
|
+
self._ContainRootSnapshot = params.get("ContainRootSnapshot")
|
8896
|
+
self._SnapshotIdSet = params.get("SnapshotIdSet")
|
8897
|
+
self._SnapshotGroupState = params.get("SnapshotGroupState")
|
8898
|
+
self._Percent = params.get("Percent")
|
8899
|
+
self._CreateTime = params.get("CreateTime")
|
8900
|
+
self._ModifyTime = params.get("ModifyTime")
|
8901
|
+
if params.get("Images") is not None:
|
8902
|
+
self._Images = []
|
8903
|
+
for item in params.get("Images"):
|
8904
|
+
obj = Image()
|
8905
|
+
obj._deserialize(item)
|
8906
|
+
self._Images.append(obj)
|
8907
|
+
self._SnapshotGroupName = params.get("SnapshotGroupName")
|
8908
|
+
self._ImageCount = params.get("ImageCount")
|
8909
|
+
self._IsPermanent = params.get("IsPermanent")
|
8910
|
+
self._DeadlineTime = params.get("DeadlineTime")
|
8911
|
+
memeber_set = set(params.keys())
|
8912
|
+
for name, value in vars(self).items():
|
8913
|
+
property_name = name[1:]
|
8914
|
+
if property_name in memeber_set:
|
8915
|
+
memeber_set.remove(property_name)
|
8916
|
+
if len(memeber_set) > 0:
|
8917
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
8918
|
+
|
8919
|
+
|
8920
|
+
|
8191
8921
|
class Tag(AbstractModel):
|
8192
8922
|
"""标签。
|
8193
8923
|
|