tencentcloud-sdk-python-ags 3.1.181__tar.gz → 3.1.188__tar.gz
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_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/setup.py +1 -1
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/v20250920/ags_client.py +72 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/v20250920/ags_client_async.py +57 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/v20250920/errorcodes.py +24 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/v20250920/models.py +697 -12
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud_sdk_python_ags.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ags-3.1.188/tencentcloud_sdk_python_ags.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ags-3.1.181/tencentcloud_sdk_python_ags.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/README.rst +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/__init__.py +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud/ags/v20250920/__init__.py +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud_sdk_python_ags.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud_sdk_python_ags.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ags-3.1.181 → tencentcloud_sdk_python_ags-3.1.188}/tencentcloud_sdk_python_ags.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ags
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.188
|
|
4
4
|
Summary: Tencent Cloud Ags SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.188
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ags',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.188,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ags SDK for Python',
|
|
@@ -259,6 +259,30 @@ class AgsClient(AbstractClient):
|
|
|
259
259
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
260
260
|
|
|
261
261
|
|
|
262
|
+
def CreateSandboxSnapshot(self, request):
|
|
263
|
+
r"""创建沙箱快照
|
|
264
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。接入方需关注后续版本及变更说明,并根据需要调整调用代码。
|
|
265
|
+
|
|
266
|
+
:param request: Request instance for CreateSandboxSnapshot.
|
|
267
|
+
:type request: :class:`tencentcloud.ags.v20250920.models.CreateSandboxSnapshotRequest`
|
|
268
|
+
:rtype: :class:`tencentcloud.ags.v20250920.models.CreateSandboxSnapshotResponse`
|
|
269
|
+
|
|
270
|
+
"""
|
|
271
|
+
try:
|
|
272
|
+
params = request._serialize()
|
|
273
|
+
headers = request.headers
|
|
274
|
+
body = self.call("CreateSandboxSnapshot", params, headers=headers)
|
|
275
|
+
response = json.loads(body)
|
|
276
|
+
model = models.CreateSandboxSnapshotResponse()
|
|
277
|
+
model._deserialize(response["Response"])
|
|
278
|
+
return model
|
|
279
|
+
except Exception as e:
|
|
280
|
+
if isinstance(e, TencentCloudSDKException):
|
|
281
|
+
raise
|
|
282
|
+
else:
|
|
283
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
284
|
+
|
|
285
|
+
|
|
262
286
|
def CreateSandboxTool(self, request):
|
|
263
287
|
r"""创建沙箱工具
|
|
264
288
|
|
|
@@ -423,6 +447,30 @@ class AgsClient(AbstractClient):
|
|
|
423
447
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
424
448
|
|
|
425
449
|
|
|
450
|
+
def DeleteSandboxSnapshot(self, request):
|
|
451
|
+
r"""删除沙箱快照
|
|
452
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。接入方需关注后续版本及变更说明,并根据需要调整调用代码。
|
|
453
|
+
|
|
454
|
+
:param request: Request instance for DeleteSandboxSnapshot.
|
|
455
|
+
:type request: :class:`tencentcloud.ags.v20250920.models.DeleteSandboxSnapshotRequest`
|
|
456
|
+
:rtype: :class:`tencentcloud.ags.v20250920.models.DeleteSandboxSnapshotResponse`
|
|
457
|
+
|
|
458
|
+
"""
|
|
459
|
+
try:
|
|
460
|
+
params = request._serialize()
|
|
461
|
+
headers = request.headers
|
|
462
|
+
body = self.call("DeleteSandboxSnapshot", params, headers=headers)
|
|
463
|
+
response = json.loads(body)
|
|
464
|
+
model = models.DeleteSandboxSnapshotResponse()
|
|
465
|
+
model._deserialize(response["Response"])
|
|
466
|
+
return model
|
|
467
|
+
except Exception as e:
|
|
468
|
+
if isinstance(e, TencentCloudSDKException):
|
|
469
|
+
raise
|
|
470
|
+
else:
|
|
471
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
472
|
+
|
|
473
|
+
|
|
426
474
|
def DeleteSandboxTool(self, request):
|
|
427
475
|
r"""删除沙箱工具
|
|
428
476
|
|
|
@@ -794,6 +842,30 @@ class AgsClient(AbstractClient):
|
|
|
794
842
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
795
843
|
|
|
796
844
|
|
|
845
|
+
def DescribeSandboxSnapshotList(self, request):
|
|
846
|
+
r"""查询沙箱快照
|
|
847
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。请关注后续版本及变更说明,并根据需要调整调用代码。
|
|
848
|
+
|
|
849
|
+
:param request: Request instance for DescribeSandboxSnapshotList.
|
|
850
|
+
:type request: :class:`tencentcloud.ags.v20250920.models.DescribeSandboxSnapshotListRequest`
|
|
851
|
+
:rtype: :class:`tencentcloud.ags.v20250920.models.DescribeSandboxSnapshotListResponse`
|
|
852
|
+
|
|
853
|
+
"""
|
|
854
|
+
try:
|
|
855
|
+
params = request._serialize()
|
|
856
|
+
headers = request.headers
|
|
857
|
+
body = self.call("DescribeSandboxSnapshotList", params, headers=headers)
|
|
858
|
+
response = json.loads(body)
|
|
859
|
+
model = models.DescribeSandboxSnapshotListResponse()
|
|
860
|
+
model._deserialize(response["Response"])
|
|
861
|
+
return model
|
|
862
|
+
except Exception as e:
|
|
863
|
+
if isinstance(e, TencentCloudSDKException):
|
|
864
|
+
raise
|
|
865
|
+
else:
|
|
866
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
867
|
+
|
|
868
|
+
|
|
797
869
|
def DescribeSandboxToolList(self, request):
|
|
798
870
|
r"""查询沙箱工具列表
|
|
799
871
|
|
|
@@ -208,6 +208,25 @@ class AgsClient(AbstractClient):
|
|
|
208
208
|
|
|
209
209
|
return await self.call_and_deserialize(**kwargs)
|
|
210
210
|
|
|
211
|
+
async def CreateSandboxSnapshot(
|
|
212
|
+
self,
|
|
213
|
+
request: models.CreateSandboxSnapshotRequest,
|
|
214
|
+
opts: Dict = None,
|
|
215
|
+
) -> models.CreateSandboxSnapshotResponse:
|
|
216
|
+
"""
|
|
217
|
+
创建沙箱快照
|
|
218
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。接入方需关注后续版本及变更说明,并根据需要调整调用代码。
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
kwargs = {}
|
|
222
|
+
kwargs["action"] = "CreateSandboxSnapshot"
|
|
223
|
+
kwargs["params"] = request._serialize()
|
|
224
|
+
kwargs["resp_cls"] = models.CreateSandboxSnapshotResponse
|
|
225
|
+
kwargs["headers"] = request.headers
|
|
226
|
+
kwargs["opts"] = opts or {}
|
|
227
|
+
|
|
228
|
+
return await self.call_and_deserialize(**kwargs)
|
|
229
|
+
|
|
211
230
|
async def CreateSandboxTool(
|
|
212
231
|
self,
|
|
213
232
|
request: models.CreateSandboxToolRequest,
|
|
@@ -337,6 +356,25 @@ class AgsClient(AbstractClient):
|
|
|
337
356
|
|
|
338
357
|
return await self.call_and_deserialize(**kwargs)
|
|
339
358
|
|
|
359
|
+
async def DeleteSandboxSnapshot(
|
|
360
|
+
self,
|
|
361
|
+
request: models.DeleteSandboxSnapshotRequest,
|
|
362
|
+
opts: Dict = None,
|
|
363
|
+
) -> models.DeleteSandboxSnapshotResponse:
|
|
364
|
+
"""
|
|
365
|
+
删除沙箱快照
|
|
366
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。接入方需关注后续版本及变更说明,并根据需要调整调用代码。
|
|
367
|
+
"""
|
|
368
|
+
|
|
369
|
+
kwargs = {}
|
|
370
|
+
kwargs["action"] = "DeleteSandboxSnapshot"
|
|
371
|
+
kwargs["params"] = request._serialize()
|
|
372
|
+
kwargs["resp_cls"] = models.DeleteSandboxSnapshotResponse
|
|
373
|
+
kwargs["headers"] = request.headers
|
|
374
|
+
kwargs["opts"] = opts or {}
|
|
375
|
+
|
|
376
|
+
return await self.call_and_deserialize(**kwargs)
|
|
377
|
+
|
|
340
378
|
async def DeleteSandboxTool(
|
|
341
379
|
self,
|
|
342
380
|
request: models.DeleteSandboxToolRequest,
|
|
@@ -628,6 +666,25 @@ class AgsClient(AbstractClient):
|
|
|
628
666
|
|
|
629
667
|
return await self.call_and_deserialize(**kwargs)
|
|
630
668
|
|
|
669
|
+
async def DescribeSandboxSnapshotList(
|
|
670
|
+
self,
|
|
671
|
+
request: models.DescribeSandboxSnapshotListRequest,
|
|
672
|
+
opts: Dict = None,
|
|
673
|
+
) -> models.DescribeSandboxSnapshotListResponse:
|
|
674
|
+
"""
|
|
675
|
+
查询沙箱快照
|
|
676
|
+
该接口属于 Runtime Snapshot API ,当前为预览版本(Beta)。接口后续可能发生不兼容变更或被弃用,不保证向后兼容。请关注后续版本及变更说明,并根据需要调整调用代码。
|
|
677
|
+
"""
|
|
678
|
+
|
|
679
|
+
kwargs = {}
|
|
680
|
+
kwargs["action"] = "DescribeSandboxSnapshotList"
|
|
681
|
+
kwargs["params"] = request._serialize()
|
|
682
|
+
kwargs["resp_cls"] = models.DescribeSandboxSnapshotListResponse
|
|
683
|
+
kwargs["headers"] = request.headers
|
|
684
|
+
kwargs["opts"] = opts or {}
|
|
685
|
+
|
|
686
|
+
return await self.call_and_deserialize(**kwargs)
|
|
687
|
+
|
|
631
688
|
async def DescribeSandboxToolList(
|
|
632
689
|
self,
|
|
633
690
|
request: models.DescribeSandboxToolListRequest,
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
# CAM签名/鉴权错误。
|
|
18
18
|
AUTHFAILURE = 'AuthFailure'
|
|
19
19
|
|
|
20
|
+
# 镜像仓库认证失败
|
|
21
|
+
AUTHFAILURE_REGISTRY = 'AuthFailure.Registry'
|
|
22
|
+
|
|
20
23
|
# 请求未CAM授权
|
|
21
24
|
AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOperation'
|
|
22
25
|
|
|
@@ -29,6 +32,9 @@ FAILEDOPERATION_DEPENDENCYUNAVAILABLE = 'FailedOperation.DependencyUnavailable'
|
|
|
29
32
|
# 重复请求(幂等性检查)
|
|
30
33
|
FAILEDOPERATION_DUPLICATEREQUEST = 'FailedOperation.DuplicateRequest'
|
|
31
34
|
|
|
35
|
+
# 预热任务执行失败
|
|
36
|
+
FAILEDOPERATION_PRECACHEFAILED = 'FailedOperation.PrecacheFailed'
|
|
37
|
+
|
|
32
38
|
# 请求正在处理中(幂等性检查)
|
|
33
39
|
FAILEDOPERATION_REQUESTINPROGRESS = 'FailedOperation.RequestInProgress'
|
|
34
40
|
|
|
@@ -146,6 +152,12 @@ INVALIDPARAMETERVALUE_APPROVALMODE = 'InvalidParameterValue.ApprovalMode'
|
|
|
146
152
|
# InvalidParameterValue.DescriptorType
|
|
147
153
|
INVALIDPARAMETERVALUE_DESCRIPTORTYPE = 'InvalidParameterValue.DescriptorType'
|
|
148
154
|
|
|
155
|
+
# 镜像地址无效
|
|
156
|
+
INVALIDPARAMETERVALUE_IMAGE = 'InvalidParameterValue.Image'
|
|
157
|
+
|
|
158
|
+
# 镜像仓库类型无效
|
|
159
|
+
INVALIDPARAMETERVALUE_IMAGEREGISTRY = 'InvalidParameterValue.ImageRegistry'
|
|
160
|
+
|
|
149
161
|
# InstanceIds 参数格式错误或 ID 列表超过最大数量限制
|
|
150
162
|
INVALIDPARAMETERVALUE_INSTANCEIDS = 'InvalidParameterValue.InstanceIds'
|
|
151
163
|
|
|
@@ -164,6 +176,9 @@ INVALIDPARAMETERVALUE_ROLEARN = 'InvalidParameterValue.RoleArn'
|
|
|
164
176
|
# 沙箱工具名称不可用,可能是已经存在
|
|
165
177
|
INVALIDPARAMETERVALUE_SANDBOXTOOL = 'InvalidParameterValue.SandboxTool'
|
|
166
178
|
|
|
179
|
+
# 参数 Scopes 取值无效,或当前地域不支持指定的镜像预热范围。
|
|
180
|
+
INVALIDPARAMETERVALUE_SCOPE = 'InvalidParameterValue.Scope'
|
|
181
|
+
|
|
167
182
|
# 安全组ID格式错误
|
|
168
183
|
INVALIDPARAMETERVALUE_SECURITYGROUPID = 'InvalidParameterValue.SecurityGroupId'
|
|
169
184
|
|
|
@@ -227,6 +242,9 @@ MISSINGPARAMETER_SKILLSOURCESKILLMD = 'MissingParameter.SkillSourceSkillMd'
|
|
|
227
242
|
# VPC网络模式缺少必需参数
|
|
228
243
|
MISSINGPARAMETER_VPCPARAMETERS = 'MissingParameter.VPCParameters'
|
|
229
244
|
|
|
245
|
+
# 请求的次数超过了频率限制。
|
|
246
|
+
REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
|
|
247
|
+
|
|
230
248
|
# 资源被占用。
|
|
231
249
|
RESOURCEINUSE = 'ResourceInUse'
|
|
232
250
|
|
|
@@ -248,6 +266,9 @@ RESOURCENOTFOUND = 'ResourceNotFound'
|
|
|
248
266
|
# ResourceNotFound.Deployment
|
|
249
267
|
RESOURCENOTFOUND_DEPLOYMENT = 'ResourceNotFound.Deployment'
|
|
250
268
|
|
|
269
|
+
# 镜像不存在
|
|
270
|
+
RESOURCENOTFOUND_IMAGE = 'ResourceNotFound.Image'
|
|
271
|
+
|
|
251
272
|
# ResourceNotFound.RegistryRecord
|
|
252
273
|
RESOURCENOTFOUND_REGISTRYRECORD = 'ResourceNotFound.RegistryRecord'
|
|
253
274
|
|
|
@@ -281,6 +302,9 @@ RESOURCEUNAVAILABLE = 'ResourceUnavailable'
|
|
|
281
302
|
# ResourceUnavailable.Deployment
|
|
282
303
|
RESOURCEUNAVAILABLE_DEPLOYMENT = 'ResourceUnavailable.Deployment'
|
|
283
304
|
|
|
305
|
+
# 镜像预热仍在处理中
|
|
306
|
+
RESOURCEUNAVAILABLE_IMAGEPREHEATING = 'ResourceUnavailable.ImagePreheating'
|
|
307
|
+
|
|
284
308
|
# 沙箱工具不可用
|
|
285
309
|
RESOURCEUNAVAILABLE_SANDBOXTOOL = 'ResourceUnavailable.SandboxTool'
|
|
286
310
|
|
|
@@ -2995,7 +2995,7 @@ class CreatePreCacheImageTaskRequest(AbstractModel):
|
|
|
2995
2995
|
|
|
2996
2996
|
def __init__(self):
|
|
2997
2997
|
r"""
|
|
2998
|
-
:param _Image: <p
|
|
2998
|
+
:param _Image: <p>镜像地址。仅支持 repository:tag、repository@sha256:<64 位摘要> 或 repository:tag@sha256:<64 位摘要>。</p>
|
|
2999
2999
|
:type Image: str
|
|
3000
3000
|
:param _ImageRegistryType: <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>、<code>custom</code></p><p>枚举值:</p><ul><li>enterprise: tcr 企业容器镜像服务</li><li>personal: ccr 个人容器镜像服务</li></ul>
|
|
3001
3001
|
:type ImageRegistryType: str
|
|
@@ -3005,7 +3005,7 @@ class CreatePreCacheImageTaskRequest(AbstractModel):
|
|
|
3005
3005
|
|
|
3006
3006
|
@property
|
|
3007
3007
|
def Image(self):
|
|
3008
|
-
r"""<p
|
|
3008
|
+
r"""<p>镜像地址。仅支持 repository:tag、repository@sha256:<64 位摘要> 或 repository:tag@sha256:<64 位摘要>。</p>
|
|
3009
3009
|
:rtype: str
|
|
3010
3010
|
"""
|
|
3011
3011
|
return self._Image
|
|
@@ -3052,12 +3052,15 @@ class CreatePreCacheImageTaskResponse(AbstractModel):
|
|
|
3052
3052
|
:type ImageDigest: str
|
|
3053
3053
|
:param _ImageRegistryType: <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>。</p>
|
|
3054
3054
|
:type ImageRegistryType: str
|
|
3055
|
+
:param _PreCacheImageId: <p>镜像预热ID</p>
|
|
3056
|
+
:type PreCacheImageId: str
|
|
3055
3057
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3056
3058
|
:type RequestId: str
|
|
3057
3059
|
"""
|
|
3058
3060
|
self._Image = None
|
|
3059
3061
|
self._ImageDigest = None
|
|
3060
3062
|
self._ImageRegistryType = None
|
|
3063
|
+
self._PreCacheImageId = None
|
|
3061
3064
|
self._RequestId = None
|
|
3062
3065
|
|
|
3063
3066
|
@property
|
|
@@ -3093,6 +3096,17 @@ class CreatePreCacheImageTaskResponse(AbstractModel):
|
|
|
3093
3096
|
def ImageRegistryType(self, ImageRegistryType):
|
|
3094
3097
|
self._ImageRegistryType = ImageRegistryType
|
|
3095
3098
|
|
|
3099
|
+
@property
|
|
3100
|
+
def PreCacheImageId(self):
|
|
3101
|
+
r"""<p>镜像预热ID</p>
|
|
3102
|
+
:rtype: str
|
|
3103
|
+
"""
|
|
3104
|
+
return self._PreCacheImageId
|
|
3105
|
+
|
|
3106
|
+
@PreCacheImageId.setter
|
|
3107
|
+
def PreCacheImageId(self, PreCacheImageId):
|
|
3108
|
+
self._PreCacheImageId = PreCacheImageId
|
|
3109
|
+
|
|
3096
3110
|
@property
|
|
3097
3111
|
def RequestId(self):
|
|
3098
3112
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -3109,6 +3123,7 @@ class CreatePreCacheImageTaskResponse(AbstractModel):
|
|
|
3109
3123
|
self._Image = params.get("Image")
|
|
3110
3124
|
self._ImageDigest = params.get("ImageDigest")
|
|
3111
3125
|
self._ImageRegistryType = params.get("ImageRegistryType")
|
|
3126
|
+
self._PreCacheImageId = params.get("PreCacheImageId")
|
|
3112
3127
|
self._RequestId = params.get("RequestId")
|
|
3113
3128
|
|
|
3114
3129
|
|
|
@@ -3550,6 +3565,152 @@ class CreateRegistryResponse(AbstractModel):
|
|
|
3550
3565
|
self._RequestId = params.get("RequestId")
|
|
3551
3566
|
|
|
3552
3567
|
|
|
3568
|
+
class CreateSandboxSnapshotRequest(AbstractModel):
|
|
3569
|
+
r"""CreateSandboxSnapshot请求参数结构体
|
|
3570
|
+
|
|
3571
|
+
"""
|
|
3572
|
+
|
|
3573
|
+
def __init__(self):
|
|
3574
|
+
r"""
|
|
3575
|
+
:param _InstanceId: <p>待制作快照的沙箱实例 ID</p>
|
|
3576
|
+
:type InstanceId: str
|
|
3577
|
+
:param _SnapshotName: <p>快照名称</p>
|
|
3578
|
+
:type SnapshotName: str
|
|
3579
|
+
:param _Memory: <p>制作快照时是否包含内存状态</p>
|
|
3580
|
+
:type Memory: bool
|
|
3581
|
+
:param _Tags: <p>云资源标签</p>
|
|
3582
|
+
:type Tags: list of Tag
|
|
3583
|
+
:param _ClientToken: <p>幂等 token</p>
|
|
3584
|
+
:type ClientToken: str
|
|
3585
|
+
"""
|
|
3586
|
+
self._InstanceId = None
|
|
3587
|
+
self._SnapshotName = None
|
|
3588
|
+
self._Memory = None
|
|
3589
|
+
self._Tags = None
|
|
3590
|
+
self._ClientToken = None
|
|
3591
|
+
|
|
3592
|
+
@property
|
|
3593
|
+
def InstanceId(self):
|
|
3594
|
+
r"""<p>待制作快照的沙箱实例 ID</p>
|
|
3595
|
+
:rtype: str
|
|
3596
|
+
"""
|
|
3597
|
+
return self._InstanceId
|
|
3598
|
+
|
|
3599
|
+
@InstanceId.setter
|
|
3600
|
+
def InstanceId(self, InstanceId):
|
|
3601
|
+
self._InstanceId = InstanceId
|
|
3602
|
+
|
|
3603
|
+
@property
|
|
3604
|
+
def SnapshotName(self):
|
|
3605
|
+
r"""<p>快照名称</p>
|
|
3606
|
+
:rtype: str
|
|
3607
|
+
"""
|
|
3608
|
+
return self._SnapshotName
|
|
3609
|
+
|
|
3610
|
+
@SnapshotName.setter
|
|
3611
|
+
def SnapshotName(self, SnapshotName):
|
|
3612
|
+
self._SnapshotName = SnapshotName
|
|
3613
|
+
|
|
3614
|
+
@property
|
|
3615
|
+
def Memory(self):
|
|
3616
|
+
r"""<p>制作快照时是否包含内存状态</p>
|
|
3617
|
+
:rtype: bool
|
|
3618
|
+
"""
|
|
3619
|
+
return self._Memory
|
|
3620
|
+
|
|
3621
|
+
@Memory.setter
|
|
3622
|
+
def Memory(self, Memory):
|
|
3623
|
+
self._Memory = Memory
|
|
3624
|
+
|
|
3625
|
+
@property
|
|
3626
|
+
def Tags(self):
|
|
3627
|
+
r"""<p>云资源标签</p>
|
|
3628
|
+
:rtype: list of Tag
|
|
3629
|
+
"""
|
|
3630
|
+
return self._Tags
|
|
3631
|
+
|
|
3632
|
+
@Tags.setter
|
|
3633
|
+
def Tags(self, Tags):
|
|
3634
|
+
self._Tags = Tags
|
|
3635
|
+
|
|
3636
|
+
@property
|
|
3637
|
+
def ClientToken(self):
|
|
3638
|
+
r"""<p>幂等 token</p>
|
|
3639
|
+
:rtype: str
|
|
3640
|
+
"""
|
|
3641
|
+
return self._ClientToken
|
|
3642
|
+
|
|
3643
|
+
@ClientToken.setter
|
|
3644
|
+
def ClientToken(self, ClientToken):
|
|
3645
|
+
self._ClientToken = ClientToken
|
|
3646
|
+
|
|
3647
|
+
|
|
3648
|
+
def _deserialize(self, params):
|
|
3649
|
+
self._InstanceId = params.get("InstanceId")
|
|
3650
|
+
self._SnapshotName = params.get("SnapshotName")
|
|
3651
|
+
self._Memory = params.get("Memory")
|
|
3652
|
+
if params.get("Tags") is not None:
|
|
3653
|
+
self._Tags = []
|
|
3654
|
+
for item in params.get("Tags"):
|
|
3655
|
+
obj = Tag()
|
|
3656
|
+
obj._deserialize(item)
|
|
3657
|
+
self._Tags.append(obj)
|
|
3658
|
+
self._ClientToken = params.get("ClientToken")
|
|
3659
|
+
memeber_set = set(params.keys())
|
|
3660
|
+
for name, value in vars(self).items():
|
|
3661
|
+
property_name = name[1:]
|
|
3662
|
+
if property_name in memeber_set:
|
|
3663
|
+
memeber_set.remove(property_name)
|
|
3664
|
+
if len(memeber_set) > 0:
|
|
3665
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3666
|
+
|
|
3667
|
+
|
|
3668
|
+
|
|
3669
|
+
class CreateSandboxSnapshotResponse(AbstractModel):
|
|
3670
|
+
r"""CreateSandboxSnapshot返回参数结构体
|
|
3671
|
+
|
|
3672
|
+
"""
|
|
3673
|
+
|
|
3674
|
+
def __init__(self):
|
|
3675
|
+
r"""
|
|
3676
|
+
:param _Snapshot: <p>沙箱快照</p>
|
|
3677
|
+
:type Snapshot: :class:`tencentcloud.ags.v20250920.models.SandboxSnapshot`
|
|
3678
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3679
|
+
:type RequestId: str
|
|
3680
|
+
"""
|
|
3681
|
+
self._Snapshot = None
|
|
3682
|
+
self._RequestId = None
|
|
3683
|
+
|
|
3684
|
+
@property
|
|
3685
|
+
def Snapshot(self):
|
|
3686
|
+
r"""<p>沙箱快照</p>
|
|
3687
|
+
:rtype: :class:`tencentcloud.ags.v20250920.models.SandboxSnapshot`
|
|
3688
|
+
"""
|
|
3689
|
+
return self._Snapshot
|
|
3690
|
+
|
|
3691
|
+
@Snapshot.setter
|
|
3692
|
+
def Snapshot(self, Snapshot):
|
|
3693
|
+
self._Snapshot = Snapshot
|
|
3694
|
+
|
|
3695
|
+
@property
|
|
3696
|
+
def RequestId(self):
|
|
3697
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3698
|
+
:rtype: str
|
|
3699
|
+
"""
|
|
3700
|
+
return self._RequestId
|
|
3701
|
+
|
|
3702
|
+
@RequestId.setter
|
|
3703
|
+
def RequestId(self, RequestId):
|
|
3704
|
+
self._RequestId = RequestId
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
def _deserialize(self, params):
|
|
3708
|
+
if params.get("Snapshot") is not None:
|
|
3709
|
+
self._Snapshot = SandboxSnapshot()
|
|
3710
|
+
self._Snapshot._deserialize(params.get("Snapshot"))
|
|
3711
|
+
self._RequestId = params.get("RequestId")
|
|
3712
|
+
|
|
3713
|
+
|
|
3553
3714
|
class CreateSandboxToolRequest(AbstractModel):
|
|
3554
3715
|
r"""CreateSandboxTool请求参数结构体
|
|
3555
3716
|
|
|
@@ -4851,6 +5012,70 @@ class DeleteRegistryResponse(AbstractModel):
|
|
|
4851
5012
|
self._RequestId = params.get("RequestId")
|
|
4852
5013
|
|
|
4853
5014
|
|
|
5015
|
+
class DeleteSandboxSnapshotRequest(AbstractModel):
|
|
5016
|
+
r"""DeleteSandboxSnapshot请求参数结构体
|
|
5017
|
+
|
|
5018
|
+
"""
|
|
5019
|
+
|
|
5020
|
+
def __init__(self):
|
|
5021
|
+
r"""
|
|
5022
|
+
:param _SnapshotId: <p>待删除的沙箱快照 ID</p>
|
|
5023
|
+
:type SnapshotId: str
|
|
5024
|
+
"""
|
|
5025
|
+
self._SnapshotId = None
|
|
5026
|
+
|
|
5027
|
+
@property
|
|
5028
|
+
def SnapshotId(self):
|
|
5029
|
+
r"""<p>待删除的沙箱快照 ID</p>
|
|
5030
|
+
:rtype: str
|
|
5031
|
+
"""
|
|
5032
|
+
return self._SnapshotId
|
|
5033
|
+
|
|
5034
|
+
@SnapshotId.setter
|
|
5035
|
+
def SnapshotId(self, SnapshotId):
|
|
5036
|
+
self._SnapshotId = SnapshotId
|
|
5037
|
+
|
|
5038
|
+
|
|
5039
|
+
def _deserialize(self, params):
|
|
5040
|
+
self._SnapshotId = params.get("SnapshotId")
|
|
5041
|
+
memeber_set = set(params.keys())
|
|
5042
|
+
for name, value in vars(self).items():
|
|
5043
|
+
property_name = name[1:]
|
|
5044
|
+
if property_name in memeber_set:
|
|
5045
|
+
memeber_set.remove(property_name)
|
|
5046
|
+
if len(memeber_set) > 0:
|
|
5047
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5048
|
+
|
|
5049
|
+
|
|
5050
|
+
|
|
5051
|
+
class DeleteSandboxSnapshotResponse(AbstractModel):
|
|
5052
|
+
r"""DeleteSandboxSnapshot返回参数结构体
|
|
5053
|
+
|
|
5054
|
+
"""
|
|
5055
|
+
|
|
5056
|
+
def __init__(self):
|
|
5057
|
+
r"""
|
|
5058
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5059
|
+
:type RequestId: str
|
|
5060
|
+
"""
|
|
5061
|
+
self._RequestId = None
|
|
5062
|
+
|
|
5063
|
+
@property
|
|
5064
|
+
def RequestId(self):
|
|
5065
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5066
|
+
:rtype: str
|
|
5067
|
+
"""
|
|
5068
|
+
return self._RequestId
|
|
5069
|
+
|
|
5070
|
+
@RequestId.setter
|
|
5071
|
+
def RequestId(self, RequestId):
|
|
5072
|
+
self._RequestId = RequestId
|
|
5073
|
+
|
|
5074
|
+
|
|
5075
|
+
def _deserialize(self, params):
|
|
5076
|
+
self._RequestId = params.get("RequestId")
|
|
5077
|
+
|
|
5078
|
+
|
|
4854
5079
|
class DeleteSandboxToolRequest(AbstractModel):
|
|
4855
5080
|
r"""DeleteSandboxTool请求参数结构体
|
|
4856
5081
|
|
|
@@ -5790,14 +6015,17 @@ class DescribePreCacheImageTaskRequest(AbstractModel):
|
|
|
5790
6015
|
r"""
|
|
5791
6016
|
:param _Image: <p>镜像地址</p>
|
|
5792
6017
|
:type Image: str
|
|
5793
|
-
:param _ImageDigest: <p>镜像 Digest</p>
|
|
5794
|
-
:type ImageDigest: str
|
|
5795
6018
|
:param _ImageRegistryType: <p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>、<code>custom</code> 。</p><p>枚举值:</p><ul><li>enterprise: tcr 企业容器镜像服务</li><li>personal: ccr 个人容器镜像服务</li></ul>
|
|
5796
6019
|
:type ImageRegistryType: str
|
|
6020
|
+
:param _ImageDigest: <p>镜像 Digest</p>
|
|
6021
|
+
:type ImageDigest: str
|
|
6022
|
+
:param _PreCacheImageId: <p>镜像预热ID,只能ID或三元组(Image、ImageDigest、ImageRegistrytype)二选一查询</p>
|
|
6023
|
+
:type PreCacheImageId: str
|
|
5797
6024
|
"""
|
|
5798
6025
|
self._Image = None
|
|
5799
|
-
self._ImageDigest = None
|
|
5800
6026
|
self._ImageRegistryType = None
|
|
6027
|
+
self._ImageDigest = None
|
|
6028
|
+
self._PreCacheImageId = None
|
|
5801
6029
|
|
|
5802
6030
|
@property
|
|
5803
6031
|
def Image(self):
|
|
@@ -5810,6 +6038,17 @@ class DescribePreCacheImageTaskRequest(AbstractModel):
|
|
|
5810
6038
|
def Image(self, Image):
|
|
5811
6039
|
self._Image = Image
|
|
5812
6040
|
|
|
6041
|
+
@property
|
|
6042
|
+
def ImageRegistryType(self):
|
|
6043
|
+
r"""<p>镜像仓库类型:<code>enterprise</code>、<code>personal</code>、<code>custom</code> 。</p><p>枚举值:</p><ul><li>enterprise: tcr 企业容器镜像服务</li><li>personal: ccr 个人容器镜像服务</li></ul>
|
|
6044
|
+
:rtype: str
|
|
6045
|
+
"""
|
|
6046
|
+
return self._ImageRegistryType
|
|
6047
|
+
|
|
6048
|
+
@ImageRegistryType.setter
|
|
6049
|
+
def ImageRegistryType(self, ImageRegistryType):
|
|
6050
|
+
self._ImageRegistryType = ImageRegistryType
|
|
6051
|
+
|
|
5813
6052
|
@property
|
|
5814
6053
|
def ImageDigest(self):
|
|
5815
6054
|
r"""<p>镜像 Digest</p>
|
|
@@ -5822,21 +6061,22 @@ class DescribePreCacheImageTaskRequest(AbstractModel):
|
|
|
5822
6061
|
self._ImageDigest = ImageDigest
|
|
5823
6062
|
|
|
5824
6063
|
@property
|
|
5825
|
-
def
|
|
5826
|
-
r"""<p
|
|
6064
|
+
def PreCacheImageId(self):
|
|
6065
|
+
r"""<p>镜像预热ID,只能ID或三元组(Image、ImageDigest、ImageRegistrytype)二选一查询</p>
|
|
5827
6066
|
:rtype: str
|
|
5828
6067
|
"""
|
|
5829
|
-
return self.
|
|
6068
|
+
return self._PreCacheImageId
|
|
5830
6069
|
|
|
5831
|
-
@
|
|
5832
|
-
def
|
|
5833
|
-
self.
|
|
6070
|
+
@PreCacheImageId.setter
|
|
6071
|
+
def PreCacheImageId(self, PreCacheImageId):
|
|
6072
|
+
self._PreCacheImageId = PreCacheImageId
|
|
5834
6073
|
|
|
5835
6074
|
|
|
5836
6075
|
def _deserialize(self, params):
|
|
5837
6076
|
self._Image = params.get("Image")
|
|
5838
|
-
self._ImageDigest = params.get("ImageDigest")
|
|
5839
6077
|
self._ImageRegistryType = params.get("ImageRegistryType")
|
|
6078
|
+
self._ImageDigest = params.get("ImageDigest")
|
|
6079
|
+
self._PreCacheImageId = params.get("PreCacheImageId")
|
|
5840
6080
|
memeber_set = set(params.keys())
|
|
5841
6081
|
for name, value in vars(self).items():
|
|
5842
6082
|
property_name = name[1:]
|
|
@@ -5864,6 +6104,16 @@ class DescribePreCacheImageTaskResponse(AbstractModel):
|
|
|
5864
6104
|
:type Status: str
|
|
5865
6105
|
:param _Message: <p>镜像预热状态描述</p>
|
|
5866
6106
|
:type Message: str
|
|
6107
|
+
:param _CreateTime: <p>镜像预热创建时间</p>
|
|
6108
|
+
:type CreateTime: str
|
|
6109
|
+
:param _PreCacheImageId: <p>镜像预热ID</p>
|
|
6110
|
+
:type PreCacheImageId: str
|
|
6111
|
+
:param _SourceType: <p>镜像预热资源的来源类型,取值为 EXPLICIT、AUTO</p><p>枚举值:</p><ul><li>EXPLICIT: 手动创建</li><li>AUTO: 自动创建</li><li>TCR_AUTO: TCR自动预热</li></ul>
|
|
6112
|
+
:type SourceType: str
|
|
6113
|
+
:param _CachedImageSizeBytes: <p>镜像预热存储大小</p><p>单位:Byte</p>
|
|
6114
|
+
:type CachedImageSizeBytes: int
|
|
6115
|
+
:param _LastUsedTime: <p>该预热镜像最近一次被沙箱实例使用时间</p>
|
|
6116
|
+
:type LastUsedTime: str
|
|
5867
6117
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5868
6118
|
:type RequestId: str
|
|
5869
6119
|
"""
|
|
@@ -5872,6 +6122,11 @@ class DescribePreCacheImageTaskResponse(AbstractModel):
|
|
|
5872
6122
|
self._ImageRegistryType = None
|
|
5873
6123
|
self._Status = None
|
|
5874
6124
|
self._Message = None
|
|
6125
|
+
self._CreateTime = None
|
|
6126
|
+
self._PreCacheImageId = None
|
|
6127
|
+
self._SourceType = None
|
|
6128
|
+
self._CachedImageSizeBytes = None
|
|
6129
|
+
self._LastUsedTime = None
|
|
5875
6130
|
self._RequestId = None
|
|
5876
6131
|
|
|
5877
6132
|
@property
|
|
@@ -5929,6 +6184,61 @@ class DescribePreCacheImageTaskResponse(AbstractModel):
|
|
|
5929
6184
|
def Message(self, Message):
|
|
5930
6185
|
self._Message = Message
|
|
5931
6186
|
|
|
6187
|
+
@property
|
|
6188
|
+
def CreateTime(self):
|
|
6189
|
+
r"""<p>镜像预热创建时间</p>
|
|
6190
|
+
:rtype: str
|
|
6191
|
+
"""
|
|
6192
|
+
return self._CreateTime
|
|
6193
|
+
|
|
6194
|
+
@CreateTime.setter
|
|
6195
|
+
def CreateTime(self, CreateTime):
|
|
6196
|
+
self._CreateTime = CreateTime
|
|
6197
|
+
|
|
6198
|
+
@property
|
|
6199
|
+
def PreCacheImageId(self):
|
|
6200
|
+
r"""<p>镜像预热ID</p>
|
|
6201
|
+
:rtype: str
|
|
6202
|
+
"""
|
|
6203
|
+
return self._PreCacheImageId
|
|
6204
|
+
|
|
6205
|
+
@PreCacheImageId.setter
|
|
6206
|
+
def PreCacheImageId(self, PreCacheImageId):
|
|
6207
|
+
self._PreCacheImageId = PreCacheImageId
|
|
6208
|
+
|
|
6209
|
+
@property
|
|
6210
|
+
def SourceType(self):
|
|
6211
|
+
r"""<p>镜像预热资源的来源类型,取值为 EXPLICIT、AUTO</p><p>枚举值:</p><ul><li>EXPLICIT: 手动创建</li><li>AUTO: 自动创建</li><li>TCR_AUTO: TCR自动预热</li></ul>
|
|
6212
|
+
:rtype: str
|
|
6213
|
+
"""
|
|
6214
|
+
return self._SourceType
|
|
6215
|
+
|
|
6216
|
+
@SourceType.setter
|
|
6217
|
+
def SourceType(self, SourceType):
|
|
6218
|
+
self._SourceType = SourceType
|
|
6219
|
+
|
|
6220
|
+
@property
|
|
6221
|
+
def CachedImageSizeBytes(self):
|
|
6222
|
+
r"""<p>镜像预热存储大小</p><p>单位:Byte</p>
|
|
6223
|
+
:rtype: int
|
|
6224
|
+
"""
|
|
6225
|
+
return self._CachedImageSizeBytes
|
|
6226
|
+
|
|
6227
|
+
@CachedImageSizeBytes.setter
|
|
6228
|
+
def CachedImageSizeBytes(self, CachedImageSizeBytes):
|
|
6229
|
+
self._CachedImageSizeBytes = CachedImageSizeBytes
|
|
6230
|
+
|
|
6231
|
+
@property
|
|
6232
|
+
def LastUsedTime(self):
|
|
6233
|
+
r"""<p>该预热镜像最近一次被沙箱实例使用时间</p>
|
|
6234
|
+
:rtype: str
|
|
6235
|
+
"""
|
|
6236
|
+
return self._LastUsedTime
|
|
6237
|
+
|
|
6238
|
+
@LastUsedTime.setter
|
|
6239
|
+
def LastUsedTime(self, LastUsedTime):
|
|
6240
|
+
self._LastUsedTime = LastUsedTime
|
|
6241
|
+
|
|
5932
6242
|
@property
|
|
5933
6243
|
def RequestId(self):
|
|
5934
6244
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5947,6 +6257,11 @@ class DescribePreCacheImageTaskResponse(AbstractModel):
|
|
|
5947
6257
|
self._ImageRegistryType = params.get("ImageRegistryType")
|
|
5948
6258
|
self._Status = params.get("Status")
|
|
5949
6259
|
self._Message = params.get("Message")
|
|
6260
|
+
self._CreateTime = params.get("CreateTime")
|
|
6261
|
+
self._PreCacheImageId = params.get("PreCacheImageId")
|
|
6262
|
+
self._SourceType = params.get("SourceType")
|
|
6263
|
+
self._CachedImageSizeBytes = params.get("CachedImageSizeBytes")
|
|
6264
|
+
self._LastUsedTime = params.get("LastUsedTime")
|
|
5950
6265
|
self._RequestId = params.get("RequestId")
|
|
5951
6266
|
|
|
5952
6267
|
|
|
@@ -7266,6 +7581,200 @@ class DescribeSandboxInstanceListResponse(AbstractModel):
|
|
|
7266
7581
|
self._RequestId = params.get("RequestId")
|
|
7267
7582
|
|
|
7268
7583
|
|
|
7584
|
+
class DescribeSandboxSnapshotListRequest(AbstractModel):
|
|
7585
|
+
r"""DescribeSandboxSnapshotList请求参数结构体
|
|
7586
|
+
|
|
7587
|
+
"""
|
|
7588
|
+
|
|
7589
|
+
def __init__(self):
|
|
7590
|
+
r"""
|
|
7591
|
+
:param _SnapshotIds: <p>待查询的沙箱快照 ID 列表</p>
|
|
7592
|
+
:type SnapshotIds: list of str
|
|
7593
|
+
:param _Filters: <p>过滤条件</p>
|
|
7594
|
+
:type Filters: list of Filter
|
|
7595
|
+
:param _Offset: <p>偏移量,与 NextToken 参数互斥</p>
|
|
7596
|
+
:type Offset: int
|
|
7597
|
+
:param _Limit: <p>返回数量上限</p>
|
|
7598
|
+
:type Limit: int
|
|
7599
|
+
:param _NextToken: <p>分页偏移 token,与 Offset 参数互斥</p>
|
|
7600
|
+
:type NextToken: str
|
|
7601
|
+
:param _MaxResults: <p>每次调用返回的最大结果数。如果查询返回的时候有NextToken返回,您可以使用NextToken值获取更多页结果, 当NextToke返回空或者返回的结果数量小于MaxResults时,表示没有更多数据了。允许的最大页面大小为 100。</p>
|
|
7602
|
+
:type MaxResults: int
|
|
7603
|
+
"""
|
|
7604
|
+
self._SnapshotIds = None
|
|
7605
|
+
self._Filters = None
|
|
7606
|
+
self._Offset = None
|
|
7607
|
+
self._Limit = None
|
|
7608
|
+
self._NextToken = None
|
|
7609
|
+
self._MaxResults = None
|
|
7610
|
+
|
|
7611
|
+
@property
|
|
7612
|
+
def SnapshotIds(self):
|
|
7613
|
+
r"""<p>待查询的沙箱快照 ID 列表</p>
|
|
7614
|
+
:rtype: list of str
|
|
7615
|
+
"""
|
|
7616
|
+
return self._SnapshotIds
|
|
7617
|
+
|
|
7618
|
+
@SnapshotIds.setter
|
|
7619
|
+
def SnapshotIds(self, SnapshotIds):
|
|
7620
|
+
self._SnapshotIds = SnapshotIds
|
|
7621
|
+
|
|
7622
|
+
@property
|
|
7623
|
+
def Filters(self):
|
|
7624
|
+
r"""<p>过滤条件</p>
|
|
7625
|
+
:rtype: list of Filter
|
|
7626
|
+
"""
|
|
7627
|
+
return self._Filters
|
|
7628
|
+
|
|
7629
|
+
@Filters.setter
|
|
7630
|
+
def Filters(self, Filters):
|
|
7631
|
+
self._Filters = Filters
|
|
7632
|
+
|
|
7633
|
+
@property
|
|
7634
|
+
def Offset(self):
|
|
7635
|
+
r"""<p>偏移量,与 NextToken 参数互斥</p>
|
|
7636
|
+
:rtype: int
|
|
7637
|
+
"""
|
|
7638
|
+
return self._Offset
|
|
7639
|
+
|
|
7640
|
+
@Offset.setter
|
|
7641
|
+
def Offset(self, Offset):
|
|
7642
|
+
self._Offset = Offset
|
|
7643
|
+
|
|
7644
|
+
@property
|
|
7645
|
+
def Limit(self):
|
|
7646
|
+
r"""<p>返回数量上限</p>
|
|
7647
|
+
:rtype: int
|
|
7648
|
+
"""
|
|
7649
|
+
return self._Limit
|
|
7650
|
+
|
|
7651
|
+
@Limit.setter
|
|
7652
|
+
def Limit(self, Limit):
|
|
7653
|
+
self._Limit = Limit
|
|
7654
|
+
|
|
7655
|
+
@property
|
|
7656
|
+
def NextToken(self):
|
|
7657
|
+
r"""<p>分页偏移 token,与 Offset 参数互斥</p>
|
|
7658
|
+
:rtype: str
|
|
7659
|
+
"""
|
|
7660
|
+
return self._NextToken
|
|
7661
|
+
|
|
7662
|
+
@NextToken.setter
|
|
7663
|
+
def NextToken(self, NextToken):
|
|
7664
|
+
self._NextToken = NextToken
|
|
7665
|
+
|
|
7666
|
+
@property
|
|
7667
|
+
def MaxResults(self):
|
|
7668
|
+
r"""<p>每次调用返回的最大结果数。如果查询返回的时候有NextToken返回,您可以使用NextToken值获取更多页结果, 当NextToke返回空或者返回的结果数量小于MaxResults时,表示没有更多数据了。允许的最大页面大小为 100。</p>
|
|
7669
|
+
:rtype: int
|
|
7670
|
+
"""
|
|
7671
|
+
return self._MaxResults
|
|
7672
|
+
|
|
7673
|
+
@MaxResults.setter
|
|
7674
|
+
def MaxResults(self, MaxResults):
|
|
7675
|
+
self._MaxResults = MaxResults
|
|
7676
|
+
|
|
7677
|
+
|
|
7678
|
+
def _deserialize(self, params):
|
|
7679
|
+
self._SnapshotIds = params.get("SnapshotIds")
|
|
7680
|
+
if params.get("Filters") is not None:
|
|
7681
|
+
self._Filters = []
|
|
7682
|
+
for item in params.get("Filters"):
|
|
7683
|
+
obj = Filter()
|
|
7684
|
+
obj._deserialize(item)
|
|
7685
|
+
self._Filters.append(obj)
|
|
7686
|
+
self._Offset = params.get("Offset")
|
|
7687
|
+
self._Limit = params.get("Limit")
|
|
7688
|
+
self._NextToken = params.get("NextToken")
|
|
7689
|
+
self._MaxResults = params.get("MaxResults")
|
|
7690
|
+
memeber_set = set(params.keys())
|
|
7691
|
+
for name, value in vars(self).items():
|
|
7692
|
+
property_name = name[1:]
|
|
7693
|
+
if property_name in memeber_set:
|
|
7694
|
+
memeber_set.remove(property_name)
|
|
7695
|
+
if len(memeber_set) > 0:
|
|
7696
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7697
|
+
|
|
7698
|
+
|
|
7699
|
+
|
|
7700
|
+
class DescribeSandboxSnapshotListResponse(AbstractModel):
|
|
7701
|
+
r"""DescribeSandboxSnapshotList返回参数结构体
|
|
7702
|
+
|
|
7703
|
+
"""
|
|
7704
|
+
|
|
7705
|
+
def __init__(self):
|
|
7706
|
+
r"""
|
|
7707
|
+
:param _SnapshotSet: <p>查询到的沙箱快照列表</p>
|
|
7708
|
+
:type SnapshotSet: list of SandboxSnapshot
|
|
7709
|
+
:param _TotalCount: <p>查询到的沙箱快照数量</p>
|
|
7710
|
+
:type TotalCount: int
|
|
7711
|
+
:param _NextToken: <p>分页偏移 token,可用于下一次查询</p>
|
|
7712
|
+
:type NextToken: str
|
|
7713
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7714
|
+
:type RequestId: str
|
|
7715
|
+
"""
|
|
7716
|
+
self._SnapshotSet = None
|
|
7717
|
+
self._TotalCount = None
|
|
7718
|
+
self._NextToken = None
|
|
7719
|
+
self._RequestId = None
|
|
7720
|
+
|
|
7721
|
+
@property
|
|
7722
|
+
def SnapshotSet(self):
|
|
7723
|
+
r"""<p>查询到的沙箱快照列表</p>
|
|
7724
|
+
:rtype: list of SandboxSnapshot
|
|
7725
|
+
"""
|
|
7726
|
+
return self._SnapshotSet
|
|
7727
|
+
|
|
7728
|
+
@SnapshotSet.setter
|
|
7729
|
+
def SnapshotSet(self, SnapshotSet):
|
|
7730
|
+
self._SnapshotSet = SnapshotSet
|
|
7731
|
+
|
|
7732
|
+
@property
|
|
7733
|
+
def TotalCount(self):
|
|
7734
|
+
r"""<p>查询到的沙箱快照数量</p>
|
|
7735
|
+
:rtype: int
|
|
7736
|
+
"""
|
|
7737
|
+
return self._TotalCount
|
|
7738
|
+
|
|
7739
|
+
@TotalCount.setter
|
|
7740
|
+
def TotalCount(self, TotalCount):
|
|
7741
|
+
self._TotalCount = TotalCount
|
|
7742
|
+
|
|
7743
|
+
@property
|
|
7744
|
+
def NextToken(self):
|
|
7745
|
+
r"""<p>分页偏移 token,可用于下一次查询</p>
|
|
7746
|
+
:rtype: str
|
|
7747
|
+
"""
|
|
7748
|
+
return self._NextToken
|
|
7749
|
+
|
|
7750
|
+
@NextToken.setter
|
|
7751
|
+
def NextToken(self, NextToken):
|
|
7752
|
+
self._NextToken = NextToken
|
|
7753
|
+
|
|
7754
|
+
@property
|
|
7755
|
+
def RequestId(self):
|
|
7756
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7757
|
+
:rtype: str
|
|
7758
|
+
"""
|
|
7759
|
+
return self._RequestId
|
|
7760
|
+
|
|
7761
|
+
@RequestId.setter
|
|
7762
|
+
def RequestId(self, RequestId):
|
|
7763
|
+
self._RequestId = RequestId
|
|
7764
|
+
|
|
7765
|
+
|
|
7766
|
+
def _deserialize(self, params):
|
|
7767
|
+
if params.get("SnapshotSet") is not None:
|
|
7768
|
+
self._SnapshotSet = []
|
|
7769
|
+
for item in params.get("SnapshotSet"):
|
|
7770
|
+
obj = SandboxSnapshot()
|
|
7771
|
+
obj._deserialize(item)
|
|
7772
|
+
self._SnapshotSet.append(obj)
|
|
7773
|
+
self._TotalCount = params.get("TotalCount")
|
|
7774
|
+
self._NextToken = params.get("NextToken")
|
|
7775
|
+
self._RequestId = params.get("RequestId")
|
|
7776
|
+
|
|
7777
|
+
|
|
7269
7778
|
class DescribeSandboxToolListRequest(AbstractModel):
|
|
7270
7779
|
r"""DescribeSandboxToolList请求参数结构体
|
|
7271
7780
|
|
|
@@ -10946,6 +11455,167 @@ class SandboxInstance(AbstractModel):
|
|
|
10946
11455
|
|
|
10947
11456
|
|
|
10948
11457
|
|
|
11458
|
+
class SandboxSnapshot(AbstractModel):
|
|
11459
|
+
r"""沙箱快照
|
|
11460
|
+
|
|
11461
|
+
"""
|
|
11462
|
+
|
|
11463
|
+
def __init__(self):
|
|
11464
|
+
r"""
|
|
11465
|
+
:param _SnapshotId: <p>沙箱快照 ID</p>
|
|
11466
|
+
:type SnapshotId: str
|
|
11467
|
+
:param _SnapshotName: <p>沙箱快照名称</p>
|
|
11468
|
+
:type SnapshotName: str
|
|
11469
|
+
:param _SourceInstanceId: <p>源沙箱实例 ID,沙箱快照由其派生</p>
|
|
11470
|
+
:type SourceInstanceId: str
|
|
11471
|
+
:param _MemoryIncluded: <p>制作快照时是否包含内存状态</p>
|
|
11472
|
+
:type MemoryIncluded: bool
|
|
11473
|
+
:param _Status: <p>沙箱快照状态</p><p>枚举值:</p><ul><li>ACTIVE: 可用</li><li>DELETING: 删除中</li><li>DELETED: 已删除</li></ul>
|
|
11474
|
+
:type Status: str
|
|
11475
|
+
:param _StatusReason: <p>用于说明沙箱快照处于该状态的原因</p>
|
|
11476
|
+
:type StatusReason: str
|
|
11477
|
+
:param _Tags: <p>云资源标签</p>
|
|
11478
|
+
:type Tags: list of Tag
|
|
11479
|
+
:param _CreateTime: <p>创建时间</p><p>参数格式:ISO8601</p>
|
|
11480
|
+
:type CreateTime: str
|
|
11481
|
+
:param _UpdateTime: <p>更新时间</p><p>参数格式:ISO8601</p>
|
|
11482
|
+
:type UpdateTime: str
|
|
11483
|
+
"""
|
|
11484
|
+
self._SnapshotId = None
|
|
11485
|
+
self._SnapshotName = None
|
|
11486
|
+
self._SourceInstanceId = None
|
|
11487
|
+
self._MemoryIncluded = None
|
|
11488
|
+
self._Status = None
|
|
11489
|
+
self._StatusReason = None
|
|
11490
|
+
self._Tags = None
|
|
11491
|
+
self._CreateTime = None
|
|
11492
|
+
self._UpdateTime = None
|
|
11493
|
+
|
|
11494
|
+
@property
|
|
11495
|
+
def SnapshotId(self):
|
|
11496
|
+
r"""<p>沙箱快照 ID</p>
|
|
11497
|
+
:rtype: str
|
|
11498
|
+
"""
|
|
11499
|
+
return self._SnapshotId
|
|
11500
|
+
|
|
11501
|
+
@SnapshotId.setter
|
|
11502
|
+
def SnapshotId(self, SnapshotId):
|
|
11503
|
+
self._SnapshotId = SnapshotId
|
|
11504
|
+
|
|
11505
|
+
@property
|
|
11506
|
+
def SnapshotName(self):
|
|
11507
|
+
r"""<p>沙箱快照名称</p>
|
|
11508
|
+
:rtype: str
|
|
11509
|
+
"""
|
|
11510
|
+
return self._SnapshotName
|
|
11511
|
+
|
|
11512
|
+
@SnapshotName.setter
|
|
11513
|
+
def SnapshotName(self, SnapshotName):
|
|
11514
|
+
self._SnapshotName = SnapshotName
|
|
11515
|
+
|
|
11516
|
+
@property
|
|
11517
|
+
def SourceInstanceId(self):
|
|
11518
|
+
r"""<p>源沙箱实例 ID,沙箱快照由其派生</p>
|
|
11519
|
+
:rtype: str
|
|
11520
|
+
"""
|
|
11521
|
+
return self._SourceInstanceId
|
|
11522
|
+
|
|
11523
|
+
@SourceInstanceId.setter
|
|
11524
|
+
def SourceInstanceId(self, SourceInstanceId):
|
|
11525
|
+
self._SourceInstanceId = SourceInstanceId
|
|
11526
|
+
|
|
11527
|
+
@property
|
|
11528
|
+
def MemoryIncluded(self):
|
|
11529
|
+
r"""<p>制作快照时是否包含内存状态</p>
|
|
11530
|
+
:rtype: bool
|
|
11531
|
+
"""
|
|
11532
|
+
return self._MemoryIncluded
|
|
11533
|
+
|
|
11534
|
+
@MemoryIncluded.setter
|
|
11535
|
+
def MemoryIncluded(self, MemoryIncluded):
|
|
11536
|
+
self._MemoryIncluded = MemoryIncluded
|
|
11537
|
+
|
|
11538
|
+
@property
|
|
11539
|
+
def Status(self):
|
|
11540
|
+
r"""<p>沙箱快照状态</p><p>枚举值:</p><ul><li>ACTIVE: 可用</li><li>DELETING: 删除中</li><li>DELETED: 已删除</li></ul>
|
|
11541
|
+
:rtype: str
|
|
11542
|
+
"""
|
|
11543
|
+
return self._Status
|
|
11544
|
+
|
|
11545
|
+
@Status.setter
|
|
11546
|
+
def Status(self, Status):
|
|
11547
|
+
self._Status = Status
|
|
11548
|
+
|
|
11549
|
+
@property
|
|
11550
|
+
def StatusReason(self):
|
|
11551
|
+
r"""<p>用于说明沙箱快照处于该状态的原因</p>
|
|
11552
|
+
:rtype: str
|
|
11553
|
+
"""
|
|
11554
|
+
return self._StatusReason
|
|
11555
|
+
|
|
11556
|
+
@StatusReason.setter
|
|
11557
|
+
def StatusReason(self, StatusReason):
|
|
11558
|
+
self._StatusReason = StatusReason
|
|
11559
|
+
|
|
11560
|
+
@property
|
|
11561
|
+
def Tags(self):
|
|
11562
|
+
r"""<p>云资源标签</p>
|
|
11563
|
+
:rtype: list of Tag
|
|
11564
|
+
"""
|
|
11565
|
+
return self._Tags
|
|
11566
|
+
|
|
11567
|
+
@Tags.setter
|
|
11568
|
+
def Tags(self, Tags):
|
|
11569
|
+
self._Tags = Tags
|
|
11570
|
+
|
|
11571
|
+
@property
|
|
11572
|
+
def CreateTime(self):
|
|
11573
|
+
r"""<p>创建时间</p><p>参数格式:ISO8601</p>
|
|
11574
|
+
:rtype: str
|
|
11575
|
+
"""
|
|
11576
|
+
return self._CreateTime
|
|
11577
|
+
|
|
11578
|
+
@CreateTime.setter
|
|
11579
|
+
def CreateTime(self, CreateTime):
|
|
11580
|
+
self._CreateTime = CreateTime
|
|
11581
|
+
|
|
11582
|
+
@property
|
|
11583
|
+
def UpdateTime(self):
|
|
11584
|
+
r"""<p>更新时间</p><p>参数格式:ISO8601</p>
|
|
11585
|
+
:rtype: str
|
|
11586
|
+
"""
|
|
11587
|
+
return self._UpdateTime
|
|
11588
|
+
|
|
11589
|
+
@UpdateTime.setter
|
|
11590
|
+
def UpdateTime(self, UpdateTime):
|
|
11591
|
+
self._UpdateTime = UpdateTime
|
|
11592
|
+
|
|
11593
|
+
|
|
11594
|
+
def _deserialize(self, params):
|
|
11595
|
+
self._SnapshotId = params.get("SnapshotId")
|
|
11596
|
+
self._SnapshotName = params.get("SnapshotName")
|
|
11597
|
+
self._SourceInstanceId = params.get("SourceInstanceId")
|
|
11598
|
+
self._MemoryIncluded = params.get("MemoryIncluded")
|
|
11599
|
+
self._Status = params.get("Status")
|
|
11600
|
+
self._StatusReason = params.get("StatusReason")
|
|
11601
|
+
if params.get("Tags") is not None:
|
|
11602
|
+
self._Tags = []
|
|
11603
|
+
for item in params.get("Tags"):
|
|
11604
|
+
obj = Tag()
|
|
11605
|
+
obj._deserialize(item)
|
|
11606
|
+
self._Tags.append(obj)
|
|
11607
|
+
self._CreateTime = params.get("CreateTime")
|
|
11608
|
+
self._UpdateTime = params.get("UpdateTime")
|
|
11609
|
+
memeber_set = set(params.keys())
|
|
11610
|
+
for name, value in vars(self).items():
|
|
11611
|
+
property_name = name[1:]
|
|
11612
|
+
if property_name in memeber_set:
|
|
11613
|
+
memeber_set.remove(property_name)
|
|
11614
|
+
if len(memeber_set) > 0:
|
|
11615
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11616
|
+
|
|
11617
|
+
|
|
11618
|
+
|
|
10949
11619
|
class SandboxTool(AbstractModel):
|
|
10950
11620
|
r"""沙箱工具结构体
|
|
10951
11621
|
|
|
@@ -11661,6 +12331,8 @@ class StartSandboxInstanceRequest(AbstractModel):
|
|
|
11661
12331
|
:type ToolId: str
|
|
11662
12332
|
:param _ToolName: <p>沙箱工具名称,与 ToolId 至少有一个要填</p>
|
|
11663
12333
|
:type ToolName: str
|
|
12334
|
+
:param _SourceInstanceId: <p>待克隆的源沙箱 ID</p>
|
|
12335
|
+
:type SourceInstanceId: str
|
|
11664
12336
|
:param _Timeout: <p>超时时间,超过这个时间就自动回收实例。支持格式:5m、300s、1h 等,默认 5m。最小 30s,最大 24h</p>
|
|
11665
12337
|
:type Timeout: str
|
|
11666
12338
|
:param _ClientToken: <p>幂等性 Token,长度不超过 64 字符</p>
|
|
@@ -11676,6 +12348,7 @@ class StartSandboxInstanceRequest(AbstractModel):
|
|
|
11676
12348
|
"""
|
|
11677
12349
|
self._ToolId = None
|
|
11678
12350
|
self._ToolName = None
|
|
12351
|
+
self._SourceInstanceId = None
|
|
11679
12352
|
self._Timeout = None
|
|
11680
12353
|
self._ClientToken = None
|
|
11681
12354
|
self._MountOptions = None
|
|
@@ -11705,6 +12378,17 @@ class StartSandboxInstanceRequest(AbstractModel):
|
|
|
11705
12378
|
def ToolName(self, ToolName):
|
|
11706
12379
|
self._ToolName = ToolName
|
|
11707
12380
|
|
|
12381
|
+
@property
|
|
12382
|
+
def SourceInstanceId(self):
|
|
12383
|
+
r"""<p>待克隆的源沙箱 ID</p>
|
|
12384
|
+
:rtype: str
|
|
12385
|
+
"""
|
|
12386
|
+
return self._SourceInstanceId
|
|
12387
|
+
|
|
12388
|
+
@SourceInstanceId.setter
|
|
12389
|
+
def SourceInstanceId(self, SourceInstanceId):
|
|
12390
|
+
self._SourceInstanceId = SourceInstanceId
|
|
12391
|
+
|
|
11708
12392
|
@property
|
|
11709
12393
|
def Timeout(self):
|
|
11710
12394
|
r"""<p>超时时间,超过这个时间就自动回收实例。支持格式:5m、300s、1h 等,默认 5m。最小 30s,最大 24h</p>
|
|
@@ -11775,6 +12459,7 @@ class StartSandboxInstanceRequest(AbstractModel):
|
|
|
11775
12459
|
def _deserialize(self, params):
|
|
11776
12460
|
self._ToolId = params.get("ToolId")
|
|
11777
12461
|
self._ToolName = params.get("ToolName")
|
|
12462
|
+
self._SourceInstanceId = params.get("SourceInstanceId")
|
|
11778
12463
|
self._Timeout = params.get("Timeout")
|
|
11779
12464
|
self._ClientToken = params.get("ClientToken")
|
|
11780
12465
|
if params.get("MountOptions") is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ags
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.188
|
|
4
4
|
Summary: Tencent Cloud Ags SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.188
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.188
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.181
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|