tencentcloud-sdk-python-ags 3.1.149__tar.gz → 3.1.164__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/v20250920/ags_client.py +138 -0
  5. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/v20250920/ags_client_async.py +108 -0
  6. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/v20250920/errorcodes.py +42 -0
  7. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/v20250920/models.py +1197 -49
  8. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud_sdk_python_ags.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_ags-3.1.164/tencentcloud_sdk_python_ags.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_ags-3.1.149/tencentcloud_sdk_python_ags.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/README.rst +0 -0
  12. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud/ags/v20250920/__init__.py +0 -0
  15. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud_sdk_python_ags.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/tencentcloud_sdk_python_ags.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ags-3.1.149 → tencentcloud_sdk_python_ags-3.1.164}/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.149
3
+ Version: 3.1.164
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.149
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
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.149,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.164,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ags SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.149'
17
+ __version__ = '3.1.164'
@@ -26,6 +26,29 @@ class AgsClient(AbstractClient):
26
26
  _service = 'ags'
27
27
 
28
28
 
29
+ def AcquireDeploymentToken(self, request):
30
+ r"""获取 Deployment 访问 Token
31
+
32
+ :param request: Request instance for AcquireDeploymentToken.
33
+ :type request: :class:`tencentcloud.ags.v20250920.models.AcquireDeploymentTokenRequest`
34
+ :rtype: :class:`tencentcloud.ags.v20250920.models.AcquireDeploymentTokenResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("AcquireDeploymentToken", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.AcquireDeploymentTokenResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
50
+
51
+
29
52
  def AcquireSandboxInstanceToken(self, request):
30
53
  r"""获取访问沙箱工具时所需要使用的访问Token,创建沙箱实例后需调用此接口获取沙箱实例访问Token。
31
54
  此Token可用于调用代码沙箱实例执行代码,或浏览器沙箱实例进行浏览器操作等。
@@ -73,6 +96,29 @@ class AgsClient(AbstractClient):
73
96
  raise TencentCloudSDKException(type(e).__name__, str(e))
74
97
 
75
98
 
99
+ def CreateDeployment(self, request):
100
+ r"""创建 Deployment
101
+
102
+ :param request: Request instance for CreateDeployment.
103
+ :type request: :class:`tencentcloud.ags.v20250920.models.CreateDeploymentRequest`
104
+ :rtype: :class:`tencentcloud.ags.v20250920.models.CreateDeploymentResponse`
105
+
106
+ """
107
+ try:
108
+ params = request._serialize()
109
+ headers = request.headers
110
+ body = self.call("CreateDeployment", params, headers=headers)
111
+ response = json.loads(body)
112
+ model = models.CreateDeploymentResponse()
113
+ model._deserialize(response["Response"])
114
+ return model
115
+ except Exception as e:
116
+ if isinstance(e, TencentCloudSDKException):
117
+ raise
118
+ else:
119
+ raise TencentCloudSDKException(type(e).__name__, str(e))
120
+
121
+
76
122
  def CreatePreCacheImageTask(self, request):
77
123
  r"""创建镜像预热任务
78
124
 
@@ -142,6 +188,29 @@ class AgsClient(AbstractClient):
142
188
  raise TencentCloudSDKException(type(e).__name__, str(e))
143
189
 
144
190
 
191
+ def DeleteDeployment(self, request):
192
+ r"""删除 Deployment
193
+
194
+ :param request: Request instance for DeleteDeployment.
195
+ :type request: :class:`tencentcloud.ags.v20250920.models.DeleteDeploymentRequest`
196
+ :rtype: :class:`tencentcloud.ags.v20250920.models.DeleteDeploymentResponse`
197
+
198
+ """
199
+ try:
200
+ params = request._serialize()
201
+ headers = request.headers
202
+ body = self.call("DeleteDeployment", params, headers=headers)
203
+ response = json.loads(body)
204
+ model = models.DeleteDeploymentResponse()
205
+ model._deserialize(response["Response"])
206
+ return model
207
+ except Exception as e:
208
+ if isinstance(e, TencentCloudSDKException):
209
+ raise
210
+ else:
211
+ raise TencentCloudSDKException(type(e).__name__, str(e))
212
+
213
+
145
214
  def DeleteSandboxTool(self, request):
146
215
  r"""删除沙箱工具
147
216
 
@@ -188,6 +257,52 @@ class AgsClient(AbstractClient):
188
257
  raise TencentCloudSDKException(type(e).__name__, str(e))
189
258
 
190
259
 
260
+ def DescribeDeployment(self, request):
261
+ r"""查询 Deployment 信息
262
+
263
+ :param request: Request instance for DescribeDeployment.
264
+ :type request: :class:`tencentcloud.ags.v20250920.models.DescribeDeploymentRequest`
265
+ :rtype: :class:`tencentcloud.ags.v20250920.models.DescribeDeploymentResponse`
266
+
267
+ """
268
+ try:
269
+ params = request._serialize()
270
+ headers = request.headers
271
+ body = self.call("DescribeDeployment", params, headers=headers)
272
+ response = json.loads(body)
273
+ model = models.DescribeDeploymentResponse()
274
+ model._deserialize(response["Response"])
275
+ return model
276
+ except Exception as e:
277
+ if isinstance(e, TencentCloudSDKException):
278
+ raise
279
+ else:
280
+ raise TencentCloudSDKException(type(e).__name__, str(e))
281
+
282
+
283
+ def DescribeDeploymentList(self, request):
284
+ r"""查询 Deployment 列表
285
+
286
+ :param request: Request instance for DescribeDeploymentList.
287
+ :type request: :class:`tencentcloud.ags.v20250920.models.DescribeDeploymentListRequest`
288
+ :rtype: :class:`tencentcloud.ags.v20250920.models.DescribeDeploymentListResponse`
289
+
290
+ """
291
+ try:
292
+ params = request._serialize()
293
+ headers = request.headers
294
+ body = self.call("DescribeDeploymentList", params, headers=headers)
295
+ response = json.loads(body)
296
+ model = models.DescribeDeploymentListResponse()
297
+ model._deserialize(response["Response"])
298
+ return model
299
+ except Exception as e:
300
+ if isinstance(e, TencentCloudSDKException):
301
+ raise
302
+ else:
303
+ raise TencentCloudSDKException(type(e).__name__, str(e))
304
+
305
+
191
306
  def DescribePreCacheImageTask(self, request):
192
307
  r"""查询镜像预热任务信息
193
308
 
@@ -257,6 +372,29 @@ class AgsClient(AbstractClient):
257
372
  raise TencentCloudSDKException(type(e).__name__, str(e))
258
373
 
259
374
 
375
+ def ModifyDeployment(self, request):
376
+ r"""修改 Deployment
377
+
378
+ :param request: Request instance for ModifyDeployment.
379
+ :type request: :class:`tencentcloud.ags.v20250920.models.ModifyDeploymentRequest`
380
+ :rtype: :class:`tencentcloud.ags.v20250920.models.ModifyDeploymentResponse`
381
+
382
+ """
383
+ try:
384
+ params = request._serialize()
385
+ headers = request.headers
386
+ body = self.call("ModifyDeployment", params, headers=headers)
387
+ response = json.loads(body)
388
+ model = models.ModifyDeploymentResponse()
389
+ model._deserialize(response["Response"])
390
+ return model
391
+ except Exception as e:
392
+ if isinstance(e, TencentCloudSDKException):
393
+ raise
394
+ else:
395
+ raise TencentCloudSDKException(type(e).__name__, str(e))
396
+
397
+
260
398
  def PauseSandboxInstance(self, request):
261
399
  r"""暂停沙箱实例
262
400
 
@@ -25,6 +25,24 @@ class AgsClient(AbstractClient):
25
25
  _endpoint = 'ags.tencentcloudapi.com'
26
26
  _service = 'ags'
27
27
 
28
+ async def AcquireDeploymentToken(
29
+ self,
30
+ request: models.AcquireDeploymentTokenRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AcquireDeploymentTokenResponse:
33
+ """
34
+ 获取 Deployment 访问 Token
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AcquireDeploymentToken"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AcquireDeploymentTokenResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
28
46
  async def AcquireSandboxInstanceToken(
29
47
  self,
30
48
  request: models.AcquireSandboxInstanceTokenRequest,
@@ -62,6 +80,24 @@ class AgsClient(AbstractClient):
62
80
 
63
81
  return await self.call_and_deserialize(**kwargs)
64
82
 
83
+ async def CreateDeployment(
84
+ self,
85
+ request: models.CreateDeploymentRequest,
86
+ opts: Dict = None,
87
+ ) -> models.CreateDeploymentResponse:
88
+ """
89
+ 创建 Deployment
90
+ """
91
+
92
+ kwargs = {}
93
+ kwargs["action"] = "CreateDeployment"
94
+ kwargs["params"] = request._serialize()
95
+ kwargs["resp_cls"] = models.CreateDeploymentResponse
96
+ kwargs["headers"] = request.headers
97
+ kwargs["opts"] = opts or {}
98
+
99
+ return await self.call_and_deserialize(**kwargs)
100
+
65
101
  async def CreatePreCacheImageTask(
66
102
  self,
67
103
  request: models.CreatePreCacheImageTaskRequest,
@@ -116,6 +152,24 @@ class AgsClient(AbstractClient):
116
152
 
117
153
  return await self.call_and_deserialize(**kwargs)
118
154
 
155
+ async def DeleteDeployment(
156
+ self,
157
+ request: models.DeleteDeploymentRequest,
158
+ opts: Dict = None,
159
+ ) -> models.DeleteDeploymentResponse:
160
+ """
161
+ 删除 Deployment
162
+ """
163
+
164
+ kwargs = {}
165
+ kwargs["action"] = "DeleteDeployment"
166
+ kwargs["params"] = request._serialize()
167
+ kwargs["resp_cls"] = models.DeleteDeploymentResponse
168
+ kwargs["headers"] = request.headers
169
+ kwargs["opts"] = opts or {}
170
+
171
+ return await self.call_and_deserialize(**kwargs)
172
+
119
173
  async def DeleteSandboxTool(
120
174
  self,
121
175
  request: models.DeleteSandboxToolRequest,
@@ -152,6 +206,42 @@ class AgsClient(AbstractClient):
152
206
 
153
207
  return await self.call_and_deserialize(**kwargs)
154
208
 
209
+ async def DescribeDeployment(
210
+ self,
211
+ request: models.DescribeDeploymentRequest,
212
+ opts: Dict = None,
213
+ ) -> models.DescribeDeploymentResponse:
214
+ """
215
+ 查询 Deployment 信息
216
+ """
217
+
218
+ kwargs = {}
219
+ kwargs["action"] = "DescribeDeployment"
220
+ kwargs["params"] = request._serialize()
221
+ kwargs["resp_cls"] = models.DescribeDeploymentResponse
222
+ kwargs["headers"] = request.headers
223
+ kwargs["opts"] = opts or {}
224
+
225
+ return await self.call_and_deserialize(**kwargs)
226
+
227
+ async def DescribeDeploymentList(
228
+ self,
229
+ request: models.DescribeDeploymentListRequest,
230
+ opts: Dict = None,
231
+ ) -> models.DescribeDeploymentListResponse:
232
+ """
233
+ 查询 Deployment 列表
234
+ """
235
+
236
+ kwargs = {}
237
+ kwargs["action"] = "DescribeDeploymentList"
238
+ kwargs["params"] = request._serialize()
239
+ kwargs["resp_cls"] = models.DescribeDeploymentListResponse
240
+ kwargs["headers"] = request.headers
241
+ kwargs["opts"] = opts or {}
242
+
243
+ return await self.call_and_deserialize(**kwargs)
244
+
155
245
  async def DescribePreCacheImageTask(
156
246
  self,
157
247
  request: models.DescribePreCacheImageTaskRequest,
@@ -206,6 +296,24 @@ class AgsClient(AbstractClient):
206
296
 
207
297
  return await self.call_and_deserialize(**kwargs)
208
298
 
299
+ async def ModifyDeployment(
300
+ self,
301
+ request: models.ModifyDeploymentRequest,
302
+ opts: Dict = None,
303
+ ) -> models.ModifyDeploymentResponse:
304
+ """
305
+ 修改 Deployment
306
+ """
307
+
308
+ kwargs = {}
309
+ kwargs["action"] = "ModifyDeployment"
310
+ kwargs["params"] = request._serialize()
311
+ kwargs["resp_cls"] = models.ModifyDeploymentResponse
312
+ kwargs["headers"] = request.headers
313
+ kwargs["opts"] = opts or {}
314
+
315
+ return await self.call_and_deserialize(**kwargs)
316
+
209
317
  async def PauseSandboxInstance(
210
318
  self,
211
319
  request: models.PauseSandboxInstanceRequest,
@@ -50,6 +50,33 @@ INTERNALERROR_VPCSERVICEUNAVAILABLE = 'InternalError.VPCServiceUnavailable'
50
50
  # 参数错误。
51
51
  INVALIDPARAMETER = 'InvalidParameter'
52
52
 
53
+ # InvalidParameter.AffinityConfiguration
54
+ INVALIDPARAMETER_AFFINITYCONFIGURATION = 'InvalidParameter.AffinityConfiguration'
55
+
56
+ # InvalidParameter.DeploymentId
57
+ INVALIDPARAMETER_DEPLOYMENTID = 'InvalidParameter.DeploymentId'
58
+
59
+ # InvalidParameter.DeploymentName
60
+ INVALIDPARAMETER_DEPLOYMENTNAME = 'InvalidParameter.DeploymentName'
61
+
62
+ # InvalidParameter.Filters
63
+ INVALIDPARAMETER_FILTERS = 'InvalidParameter.Filters'
64
+
65
+ # InvalidParameter.LifecycleConfiguration
66
+ INVALIDPARAMETER_LIFECYCLECONFIGURATION = 'InvalidParameter.LifecycleConfiguration'
67
+
68
+ # InvalidParameter.Limit
69
+ INVALIDPARAMETER_LIMIT = 'InvalidParameter.Limit'
70
+
71
+ # InvalidParameter.Offset
72
+ INVALIDPARAMETER_OFFSET = 'InvalidParameter.Offset'
73
+
74
+ # InvalidParameter.ScalingConfiguration
75
+ INVALIDPARAMETER_SCALINGCONFIGURATION = 'InvalidParameter.ScalingConfiguration'
76
+
77
+ # InvalidParameter.ToolId
78
+ INVALIDPARAMETER_TOOLID = 'InvalidParameter.ToolId'
79
+
53
80
  # 参数取值错误。
54
81
  INVALIDPARAMETERVALUE = 'InvalidParameterValue'
55
82
 
@@ -86,6 +113,9 @@ INVALIDPARAMETERVALUE_TOOLTYPE = 'InvalidParameterValue.ToolType'
86
113
  # 账号下 API 密钥数量达到上限
87
114
  LIMITEXCEEDED_APIKEYQUOTA = 'LimitExceeded.APIKeyQuota'
88
115
 
116
+ # LimitExceeded.Deployment
117
+ LIMITEXCEEDED_DEPLOYMENT = 'LimitExceeded.Deployment'
118
+
89
119
  # 沙箱实例配额超限
90
120
  LIMITEXCEEDED_SANDBOXINSTANCE = 'LimitExceeded.SandboxInstance'
91
121
 
@@ -101,12 +131,21 @@ MISSINGPARAMETER_VPCPARAMETERS = 'MissingParameter.VPCParameters'
101
131
  # 资源被占用。
102
132
  RESOURCEINUSE = 'ResourceInUse'
103
133
 
134
+ # ResourceInUse.Deployment
135
+ RESOURCEINUSE_DEPLOYMENT = 'ResourceInUse.Deployment'
136
+
137
+ # ResourceInUse.DeploymentName
138
+ RESOURCEINUSE_DEPLOYMENTNAME = 'ResourceInUse.DeploymentName'
139
+
104
140
  # 沙箱工具正在使用中
105
141
  RESOURCEINUSE_SANDBOXTOOL = 'ResourceInUse.SandboxTool'
106
142
 
107
143
  # 资源不存在。
108
144
  RESOURCENOTFOUND = 'ResourceNotFound'
109
145
 
146
+ # ResourceNotFound.Deployment
147
+ RESOURCENOTFOUND_DEPLOYMENT = 'ResourceNotFound.Deployment'
148
+
110
149
  # 沙箱实例不存在
111
150
  RESOURCENOTFOUND_SANDBOXINSTANCE = 'ResourceNotFound.SandboxInstance'
112
151
 
@@ -125,6 +164,9 @@ RESOURCENOTFOUND_SUBNET = 'ResourceNotFound.Subnet'
125
164
  # 资源不可用。
126
165
  RESOURCEUNAVAILABLE = 'ResourceUnavailable'
127
166
 
167
+ # ResourceUnavailable.Deployment
168
+ RESOURCEUNAVAILABLE_DEPLOYMENT = 'ResourceUnavailable.Deployment'
169
+
128
170
  # 沙箱工具不可用
129
171
  RESOURCEUNAVAILABLE_SANDBOXTOOL = 'ResourceUnavailable.SandboxTool'
130
172