alibabacloud-agentrun20250910 3.1.0__tar.gz → 4.0.0__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.
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/ChangeLog.md +31 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/PKG-INFO +1 -1
- alibabacloud_agentrun20250910-4.0.0/alibabacloud_agentrun20250910/__init__.py +1 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910/client.py +106 -8
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910/models.py +108 -8
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910.egg-info/PKG-INFO +1 -1
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/setup.py +1 -1
- alibabacloud_agentrun20250910-3.1.0/alibabacloud_agentrun20250910/__init__.py +0 -1
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/LICENSE +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/MANIFEST.in +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/README-CN.md +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/README.md +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910.egg-info/SOURCES.txt +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910.egg-info/dependency_links.txt +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910.egg-info/requires.txt +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/alibabacloud_agentrun20250910.egg-info/top_level.txt +0 -0
- {alibabacloud_agentrun20250910-3.1.0 → alibabacloud_agentrun20250910-4.0.0}/setup.cfg +0 -0
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
2025-11-20 Version: 3.1.0
|
|
2
|
+
- Support API ActivateTemplateMCP.
|
|
3
|
+
- Support API CreateCredential.
|
|
4
|
+
- Support API CreateModelProxy.
|
|
5
|
+
- Support API CreateModelService.
|
|
6
|
+
- Support API CreateSandbox.
|
|
7
|
+
- Support API CreateTemplate.
|
|
8
|
+
- Support API DeleteCredential.
|
|
9
|
+
- Support API DeleteModelProxy.
|
|
10
|
+
- Support API DeleteModelService.
|
|
11
|
+
- Support API DeleteTemplate.
|
|
12
|
+
- Support API GetAccessToken.
|
|
13
|
+
- Support API GetCredential.
|
|
14
|
+
- Support API GetModelProxy.
|
|
15
|
+
- Support API GetModelService.
|
|
16
|
+
- Support API GetSandbox.
|
|
17
|
+
- Support API GetTemplate.
|
|
18
|
+
- Support API ListCredentials.
|
|
19
|
+
- Support API ListModelProviders.
|
|
20
|
+
- Support API ListModelProxies.
|
|
21
|
+
- Support API ListModelServices.
|
|
22
|
+
- Support API ListSandboxes.
|
|
23
|
+
- Support API ListTemplates.
|
|
24
|
+
- Support API StopSandbox.
|
|
25
|
+
- Support API StopTemplateMCP.
|
|
26
|
+
- Support API UpdateCredential.
|
|
27
|
+
- Support API UpdateModelProxy.
|
|
28
|
+
- Support API UpdateModelService.
|
|
29
|
+
- Support API UpdateTemplate.
|
|
30
|
+
|
|
31
|
+
|
|
1
32
|
2025-11-19 Version: 3.0.0
|
|
2
33
|
- Update API CreateMemory: delete request parameters body.permanent.
|
|
3
34
|
- Update API GetMemory: delete response parameters Body.data.permanent.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '4.0.0'
|
|
@@ -2059,6 +2059,96 @@ class Client(OpenApiClient):
|
|
|
2059
2059
|
headers = {}
|
|
2060
2060
|
return await self.delete_model_service_with_options_async(model_service_name, headers, runtime)
|
|
2061
2061
|
|
|
2062
|
+
def delete_sandbox_with_options(
|
|
2063
|
+
self,
|
|
2064
|
+
sandbox_id: str,
|
|
2065
|
+
headers: Dict[str, str],
|
|
2066
|
+
runtime: util_models.RuntimeOptions,
|
|
2067
|
+
) -> agent_run_20250910_models.DeleteSandboxResponse:
|
|
2068
|
+
"""
|
|
2069
|
+
@summary 删除Sandbox
|
|
2070
|
+
|
|
2071
|
+
@param headers: map
|
|
2072
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2073
|
+
@return: DeleteSandboxResponse
|
|
2074
|
+
"""
|
|
2075
|
+
req = open_api_models.OpenApiRequest(
|
|
2076
|
+
headers=headers
|
|
2077
|
+
)
|
|
2078
|
+
params = open_api_models.Params(
|
|
2079
|
+
action='DeleteSandbox',
|
|
2080
|
+
version='2025-09-10',
|
|
2081
|
+
protocol='HTTPS',
|
|
2082
|
+
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}',
|
|
2083
|
+
method='DELETE',
|
|
2084
|
+
auth_type='AK',
|
|
2085
|
+
style='ROA',
|
|
2086
|
+
req_body_type='json',
|
|
2087
|
+
body_type='json'
|
|
2088
|
+
)
|
|
2089
|
+
return TeaCore.from_map(
|
|
2090
|
+
agent_run_20250910_models.DeleteSandboxResponse(),
|
|
2091
|
+
self.call_api(params, req, runtime)
|
|
2092
|
+
)
|
|
2093
|
+
|
|
2094
|
+
async def delete_sandbox_with_options_async(
|
|
2095
|
+
self,
|
|
2096
|
+
sandbox_id: str,
|
|
2097
|
+
headers: Dict[str, str],
|
|
2098
|
+
runtime: util_models.RuntimeOptions,
|
|
2099
|
+
) -> agent_run_20250910_models.DeleteSandboxResponse:
|
|
2100
|
+
"""
|
|
2101
|
+
@summary 删除Sandbox
|
|
2102
|
+
|
|
2103
|
+
@param headers: map
|
|
2104
|
+
@param runtime: runtime options for this request RuntimeOptions
|
|
2105
|
+
@return: DeleteSandboxResponse
|
|
2106
|
+
"""
|
|
2107
|
+
req = open_api_models.OpenApiRequest(
|
|
2108
|
+
headers=headers
|
|
2109
|
+
)
|
|
2110
|
+
params = open_api_models.Params(
|
|
2111
|
+
action='DeleteSandbox',
|
|
2112
|
+
version='2025-09-10',
|
|
2113
|
+
protocol='HTTPS',
|
|
2114
|
+
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}',
|
|
2115
|
+
method='DELETE',
|
|
2116
|
+
auth_type='AK',
|
|
2117
|
+
style='ROA',
|
|
2118
|
+
req_body_type='json',
|
|
2119
|
+
body_type='json'
|
|
2120
|
+
)
|
|
2121
|
+
return TeaCore.from_map(
|
|
2122
|
+
agent_run_20250910_models.DeleteSandboxResponse(),
|
|
2123
|
+
await self.call_api_async(params, req, runtime)
|
|
2124
|
+
)
|
|
2125
|
+
|
|
2126
|
+
def delete_sandbox(
|
|
2127
|
+
self,
|
|
2128
|
+
sandbox_id: str,
|
|
2129
|
+
) -> agent_run_20250910_models.DeleteSandboxResponse:
|
|
2130
|
+
"""
|
|
2131
|
+
@summary 删除Sandbox
|
|
2132
|
+
|
|
2133
|
+
@return: DeleteSandboxResponse
|
|
2134
|
+
"""
|
|
2135
|
+
runtime = util_models.RuntimeOptions()
|
|
2136
|
+
headers = {}
|
|
2137
|
+
return self.delete_sandbox_with_options(sandbox_id, headers, runtime)
|
|
2138
|
+
|
|
2139
|
+
async def delete_sandbox_async(
|
|
2140
|
+
self,
|
|
2141
|
+
sandbox_id: str,
|
|
2142
|
+
) -> agent_run_20250910_models.DeleteSandboxResponse:
|
|
2143
|
+
"""
|
|
2144
|
+
@summary 删除Sandbox
|
|
2145
|
+
|
|
2146
|
+
@return: DeleteSandboxResponse
|
|
2147
|
+
"""
|
|
2148
|
+
runtime = util_models.RuntimeOptions()
|
|
2149
|
+
headers = {}
|
|
2150
|
+
return await self.delete_sandbox_with_options_async(sandbox_id, headers, runtime)
|
|
2151
|
+
|
|
2062
2152
|
def delete_template_with_options(
|
|
2063
2153
|
self,
|
|
2064
2154
|
template_name: str,
|
|
@@ -5085,6 +5175,10 @@ class Client(OpenApiClient):
|
|
|
5085
5175
|
query['pageNumber'] = request.page_number
|
|
5086
5176
|
if not UtilClient.is_unset(request.page_size):
|
|
5087
5177
|
query['pageSize'] = request.page_size
|
|
5178
|
+
if not UtilClient.is_unset(request.status):
|
|
5179
|
+
query['status'] = request.status
|
|
5180
|
+
if not UtilClient.is_unset(request.template_name):
|
|
5181
|
+
query['templateName'] = request.template_name
|
|
5088
5182
|
if not UtilClient.is_unset(request.template_type):
|
|
5089
5183
|
query['templateType'] = request.template_type
|
|
5090
5184
|
req = open_api_models.OpenApiRequest(
|
|
@@ -5129,6 +5223,10 @@ class Client(OpenApiClient):
|
|
|
5129
5223
|
query['pageNumber'] = request.page_number
|
|
5130
5224
|
if not UtilClient.is_unset(request.page_size):
|
|
5131
5225
|
query['pageSize'] = request.page_size
|
|
5226
|
+
if not UtilClient.is_unset(request.status):
|
|
5227
|
+
query['status'] = request.status
|
|
5228
|
+
if not UtilClient.is_unset(request.template_name):
|
|
5229
|
+
query['templateName'] = request.template_name
|
|
5132
5230
|
if not UtilClient.is_unset(request.template_type):
|
|
5133
5231
|
query['templateType'] = request.template_type
|
|
5134
5232
|
req = open_api_models.OpenApiRequest(
|
|
@@ -5424,7 +5522,7 @@ class Client(OpenApiClient):
|
|
|
5424
5522
|
runtime: util_models.RuntimeOptions,
|
|
5425
5523
|
) -> agent_run_20250910_models.StopSandboxResponse:
|
|
5426
5524
|
"""
|
|
5427
|
-
@summary
|
|
5525
|
+
@summary 删除沙箱
|
|
5428
5526
|
|
|
5429
5527
|
@description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。
|
|
5430
5528
|
|
|
@@ -5439,8 +5537,8 @@ class Client(OpenApiClient):
|
|
|
5439
5537
|
action='StopSandbox',
|
|
5440
5538
|
version='2025-09-10',
|
|
5441
5539
|
protocol='HTTPS',
|
|
5442
|
-
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}',
|
|
5443
|
-
method='
|
|
5540
|
+
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}/stop',
|
|
5541
|
+
method='POST',
|
|
5444
5542
|
auth_type='AK',
|
|
5445
5543
|
style='ROA',
|
|
5446
5544
|
req_body_type='json',
|
|
@@ -5458,7 +5556,7 @@ class Client(OpenApiClient):
|
|
|
5458
5556
|
runtime: util_models.RuntimeOptions,
|
|
5459
5557
|
) -> agent_run_20250910_models.StopSandboxResponse:
|
|
5460
5558
|
"""
|
|
5461
|
-
@summary
|
|
5559
|
+
@summary 删除沙箱
|
|
5462
5560
|
|
|
5463
5561
|
@description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。
|
|
5464
5562
|
|
|
@@ -5473,8 +5571,8 @@ class Client(OpenApiClient):
|
|
|
5473
5571
|
action='StopSandbox',
|
|
5474
5572
|
version='2025-09-10',
|
|
5475
5573
|
protocol='HTTPS',
|
|
5476
|
-
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}',
|
|
5477
|
-
method='
|
|
5574
|
+
pathname=f'/2025-09-10/sandboxes/{OpenApiUtilClient.get_encode_param(sandbox_id)}/stop',
|
|
5575
|
+
method='POST',
|
|
5478
5576
|
auth_type='AK',
|
|
5479
5577
|
style='ROA',
|
|
5480
5578
|
req_body_type='json',
|
|
@@ -5490,7 +5588,7 @@ class Client(OpenApiClient):
|
|
|
5490
5588
|
sandbox_id: str,
|
|
5491
5589
|
) -> agent_run_20250910_models.StopSandboxResponse:
|
|
5492
5590
|
"""
|
|
5493
|
-
@summary
|
|
5591
|
+
@summary 删除沙箱
|
|
5494
5592
|
|
|
5495
5593
|
@description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。
|
|
5496
5594
|
|
|
@@ -5505,7 +5603,7 @@ class Client(OpenApiClient):
|
|
|
5505
5603
|
sandbox_id: str,
|
|
5506
5604
|
) -> agent_run_20250910_models.StopSandboxResponse:
|
|
5507
5605
|
"""
|
|
5508
|
-
@summary
|
|
5606
|
+
@summary 删除沙箱
|
|
5509
5607
|
|
|
5510
5608
|
@description 停止指定的沙箱实例。停止后,沙箱将进入TERMINATED状态。
|
|
5511
5609
|
|
|
@@ -4132,9 +4132,11 @@ class CreateModelServiceInput(TeaModel):
|
|
|
4132
4132
|
class CreateSandboxInput(TeaModel):
|
|
4133
4133
|
def __init__(
|
|
4134
4134
|
self,
|
|
4135
|
+
sandbox_id: str = None,
|
|
4135
4136
|
sandbox_idle_timeout_seconds: int = None,
|
|
4136
4137
|
template_name: str = None,
|
|
4137
4138
|
):
|
|
4139
|
+
self.sandbox_id = sandbox_id
|
|
4138
4140
|
# 沙箱空闲超时时间(秒)
|
|
4139
4141
|
self.sandbox_idle_timeout_seconds = sandbox_idle_timeout_seconds
|
|
4140
4142
|
# 模板名称(系统内部通过 templateName 查询 template_id)
|
|
@@ -4151,6 +4153,8 @@ class CreateSandboxInput(TeaModel):
|
|
|
4151
4153
|
return _map
|
|
4152
4154
|
|
|
4153
4155
|
result = dict()
|
|
4156
|
+
if self.sandbox_id is not None:
|
|
4157
|
+
result['sandboxId'] = self.sandbox_id
|
|
4154
4158
|
if self.sandbox_idle_timeout_seconds is not None:
|
|
4155
4159
|
result['sandboxIdleTimeoutSeconds'] = self.sandbox_idle_timeout_seconds
|
|
4156
4160
|
if self.template_name is not None:
|
|
@@ -4159,6 +4163,8 @@ class CreateSandboxInput(TeaModel):
|
|
|
4159
4163
|
|
|
4160
4164
|
def from_map(self, m: dict = None):
|
|
4161
4165
|
m = m or dict()
|
|
4166
|
+
if m.get('sandboxId') is not None:
|
|
4167
|
+
self.sandbox_id = m.get('sandboxId')
|
|
4162
4168
|
if m.get('sandboxIdleTimeoutSeconds') is not None:
|
|
4163
4169
|
self.sandbox_idle_timeout_seconds = m.get('sandboxIdleTimeoutSeconds')
|
|
4164
4170
|
if m.get('templateName') is not None:
|
|
@@ -5309,19 +5315,18 @@ class DeleteModelServiceResult(TeaModel):
|
|
|
5309
5315
|
class Sandbox(TeaModel):
|
|
5310
5316
|
def __init__(
|
|
5311
5317
|
self,
|
|
5312
|
-
sandbox_idle_ttlin_seconds: int = None,
|
|
5313
5318
|
created_at: str = None,
|
|
5314
5319
|
ended_at: str = None,
|
|
5315
5320
|
last_updated_at: str = None,
|
|
5316
5321
|
metadata: Dict[str, Any] = None,
|
|
5317
5322
|
sandbox_arn: str = None,
|
|
5318
5323
|
sandbox_id: str = None,
|
|
5324
|
+
sandbox_idle_ttlin_seconds: int = None,
|
|
5319
5325
|
sandbox_idle_timeout_seconds: int = None,
|
|
5320
5326
|
status: str = None,
|
|
5321
5327
|
template_id: str = None,
|
|
5322
5328
|
template_name: str = None,
|
|
5323
5329
|
):
|
|
5324
|
-
self.sandbox_idle_ttlin_seconds = sandbox_idle_ttlin_seconds
|
|
5325
5330
|
# 沙箱创建时间
|
|
5326
5331
|
#
|
|
5327
5332
|
# This parameter is required.
|
|
@@ -5333,6 +5338,7 @@ class Sandbox(TeaModel):
|
|
|
5333
5338
|
self.sandbox_arn = sandbox_arn
|
|
5334
5339
|
# This parameter is required.
|
|
5335
5340
|
self.sandbox_id = sandbox_id
|
|
5341
|
+
self.sandbox_idle_ttlin_seconds = sandbox_idle_ttlin_seconds
|
|
5336
5342
|
# 沙箱空闲超时时间(秒)
|
|
5337
5343
|
self.sandbox_idle_timeout_seconds = sandbox_idle_timeout_seconds
|
|
5338
5344
|
# This parameter is required.
|
|
@@ -5350,8 +5356,6 @@ class Sandbox(TeaModel):
|
|
|
5350
5356
|
return _map
|
|
5351
5357
|
|
|
5352
5358
|
result = dict()
|
|
5353
|
-
if self.sandbox_idle_ttlin_seconds is not None:
|
|
5354
|
-
result['SandboxIdleTTLInSeconds'] = self.sandbox_idle_ttlin_seconds
|
|
5355
5359
|
if self.created_at is not None:
|
|
5356
5360
|
result['createdAt'] = self.created_at
|
|
5357
5361
|
if self.ended_at is not None:
|
|
@@ -5364,6 +5368,8 @@ class Sandbox(TeaModel):
|
|
|
5364
5368
|
result['sandboxArn'] = self.sandbox_arn
|
|
5365
5369
|
if self.sandbox_id is not None:
|
|
5366
5370
|
result['sandboxId'] = self.sandbox_id
|
|
5371
|
+
if self.sandbox_idle_ttlin_seconds is not None:
|
|
5372
|
+
result['sandboxIdleTTLInSeconds'] = self.sandbox_idle_ttlin_seconds
|
|
5367
5373
|
if self.sandbox_idle_timeout_seconds is not None:
|
|
5368
5374
|
result['sandboxIdleTimeoutSeconds'] = self.sandbox_idle_timeout_seconds
|
|
5369
5375
|
if self.status is not None:
|
|
@@ -5376,8 +5382,6 @@ class Sandbox(TeaModel):
|
|
|
5376
5382
|
|
|
5377
5383
|
def from_map(self, m: dict = None):
|
|
5378
5384
|
m = m or dict()
|
|
5379
|
-
if m.get('SandboxIdleTTLInSeconds') is not None:
|
|
5380
|
-
self.sandbox_idle_ttlin_seconds = m.get('SandboxIdleTTLInSeconds')
|
|
5381
5385
|
if m.get('createdAt') is not None:
|
|
5382
5386
|
self.created_at = m.get('createdAt')
|
|
5383
5387
|
if m.get('endedAt') is not None:
|
|
@@ -5390,6 +5394,8 @@ class Sandbox(TeaModel):
|
|
|
5390
5394
|
self.sandbox_arn = m.get('sandboxArn')
|
|
5391
5395
|
if m.get('sandboxId') is not None:
|
|
5392
5396
|
self.sandbox_id = m.get('sandboxId')
|
|
5397
|
+
if m.get('sandboxIdleTTLInSeconds') is not None:
|
|
5398
|
+
self.sandbox_idle_ttlin_seconds = m.get('sandboxIdleTTLInSeconds')
|
|
5393
5399
|
if m.get('sandboxIdleTimeoutSeconds') is not None:
|
|
5394
5400
|
self.sandbox_idle_timeout_seconds = m.get('sandboxIdleTimeoutSeconds')
|
|
5395
5401
|
if m.get('status') is not None:
|
|
@@ -8879,6 +8885,47 @@ class StopCodeInterpreterSessionResult(TeaModel):
|
|
|
8879
8885
|
return self
|
|
8880
8886
|
|
|
8881
8887
|
|
|
8888
|
+
class StopSandboxResult(TeaModel):
|
|
8889
|
+
def __init__(
|
|
8890
|
+
self,
|
|
8891
|
+
code: str = None,
|
|
8892
|
+
data: Sandbox = None,
|
|
8893
|
+
request_id: str = None,
|
|
8894
|
+
):
|
|
8895
|
+
self.code = code
|
|
8896
|
+
self.data = data
|
|
8897
|
+
self.request_id = request_id
|
|
8898
|
+
|
|
8899
|
+
def validate(self):
|
|
8900
|
+
if self.data:
|
|
8901
|
+
self.data.validate()
|
|
8902
|
+
|
|
8903
|
+
def to_map(self):
|
|
8904
|
+
_map = super().to_map()
|
|
8905
|
+
if _map is not None:
|
|
8906
|
+
return _map
|
|
8907
|
+
|
|
8908
|
+
result = dict()
|
|
8909
|
+
if self.code is not None:
|
|
8910
|
+
result['code'] = self.code
|
|
8911
|
+
if self.data is not None:
|
|
8912
|
+
result['data'] = self.data.to_map()
|
|
8913
|
+
if self.request_id is not None:
|
|
8914
|
+
result['requestId'] = self.request_id
|
|
8915
|
+
return result
|
|
8916
|
+
|
|
8917
|
+
def from_map(self, m: dict = None):
|
|
8918
|
+
m = m or dict()
|
|
8919
|
+
if m.get('code') is not None:
|
|
8920
|
+
self.code = m.get('code')
|
|
8921
|
+
if m.get('data') is not None:
|
|
8922
|
+
temp_model = Sandbox()
|
|
8923
|
+
self.data = temp_model.from_map(m['data'])
|
|
8924
|
+
if m.get('requestId') is not None:
|
|
8925
|
+
self.request_id = m.get('requestId')
|
|
8926
|
+
return self
|
|
8927
|
+
|
|
8928
|
+
|
|
8882
8929
|
class Target(TeaModel):
|
|
8883
8930
|
def __init__(
|
|
8884
8931
|
self,
|
|
@@ -11352,6 +11399,47 @@ class DeleteModelServiceResponse(TeaModel):
|
|
|
11352
11399
|
return self
|
|
11353
11400
|
|
|
11354
11401
|
|
|
11402
|
+
class DeleteSandboxResponse(TeaModel):
|
|
11403
|
+
def __init__(
|
|
11404
|
+
self,
|
|
11405
|
+
headers: Dict[str, str] = None,
|
|
11406
|
+
status_code: int = None,
|
|
11407
|
+
body: DeleteSandboxResult = None,
|
|
11408
|
+
):
|
|
11409
|
+
self.headers = headers
|
|
11410
|
+
self.status_code = status_code
|
|
11411
|
+
self.body = body
|
|
11412
|
+
|
|
11413
|
+
def validate(self):
|
|
11414
|
+
if self.body:
|
|
11415
|
+
self.body.validate()
|
|
11416
|
+
|
|
11417
|
+
def to_map(self):
|
|
11418
|
+
_map = super().to_map()
|
|
11419
|
+
if _map is not None:
|
|
11420
|
+
return _map
|
|
11421
|
+
|
|
11422
|
+
result = dict()
|
|
11423
|
+
if self.headers is not None:
|
|
11424
|
+
result['headers'] = self.headers
|
|
11425
|
+
if self.status_code is not None:
|
|
11426
|
+
result['statusCode'] = self.status_code
|
|
11427
|
+
if self.body is not None:
|
|
11428
|
+
result['body'] = self.body.to_map()
|
|
11429
|
+
return result
|
|
11430
|
+
|
|
11431
|
+
def from_map(self, m: dict = None):
|
|
11432
|
+
m = m or dict()
|
|
11433
|
+
if m.get('headers') is not None:
|
|
11434
|
+
self.headers = m.get('headers')
|
|
11435
|
+
if m.get('statusCode') is not None:
|
|
11436
|
+
self.status_code = m.get('statusCode')
|
|
11437
|
+
if m.get('body') is not None:
|
|
11438
|
+
temp_model = DeleteSandboxResult()
|
|
11439
|
+
self.body = temp_model.from_map(m['body'])
|
|
11440
|
+
return self
|
|
11441
|
+
|
|
11442
|
+
|
|
11355
11443
|
class DeleteTemplateResponse(TeaModel):
|
|
11356
11444
|
def __init__(
|
|
11357
11445
|
self,
|
|
@@ -13941,12 +14029,16 @@ class ListTemplatesRequest(TeaModel):
|
|
|
13941
14029
|
self,
|
|
13942
14030
|
page_number: int = None,
|
|
13943
14031
|
page_size: int = None,
|
|
14032
|
+
status: str = None,
|
|
14033
|
+
template_name: str = None,
|
|
13944
14034
|
template_type: str = None,
|
|
13945
14035
|
):
|
|
13946
14036
|
# 当前页码,从1开始计数
|
|
13947
14037
|
self.page_number = page_number
|
|
13948
14038
|
# 每页返回的记录数量
|
|
13949
14039
|
self.page_size = page_size
|
|
14040
|
+
self.status = status
|
|
14041
|
+
self.template_name = template_name
|
|
13950
14042
|
# 按模板类型过滤
|
|
13951
14043
|
self.template_type = template_type
|
|
13952
14044
|
|
|
@@ -13963,6 +14055,10 @@ class ListTemplatesRequest(TeaModel):
|
|
|
13963
14055
|
result['pageNumber'] = self.page_number
|
|
13964
14056
|
if self.page_size is not None:
|
|
13965
14057
|
result['pageSize'] = self.page_size
|
|
14058
|
+
if self.status is not None:
|
|
14059
|
+
result['status'] = self.status
|
|
14060
|
+
if self.template_name is not None:
|
|
14061
|
+
result['templateName'] = self.template_name
|
|
13966
14062
|
if self.template_type is not None:
|
|
13967
14063
|
result['templateType'] = self.template_type
|
|
13968
14064
|
return result
|
|
@@ -13973,6 +14069,10 @@ class ListTemplatesRequest(TeaModel):
|
|
|
13973
14069
|
self.page_number = m.get('pageNumber')
|
|
13974
14070
|
if m.get('pageSize') is not None:
|
|
13975
14071
|
self.page_size = m.get('pageSize')
|
|
14072
|
+
if m.get('status') is not None:
|
|
14073
|
+
self.status = m.get('status')
|
|
14074
|
+
if m.get('templateName') is not None:
|
|
14075
|
+
self.template_name = m.get('templateName')
|
|
13976
14076
|
if m.get('templateType') is not None:
|
|
13977
14077
|
self.template_type = m.get('templateType')
|
|
13978
14078
|
return self
|
|
@@ -14310,7 +14410,7 @@ class StopSandboxResponse(TeaModel):
|
|
|
14310
14410
|
self,
|
|
14311
14411
|
headers: Dict[str, str] = None,
|
|
14312
14412
|
status_code: int = None,
|
|
14313
|
-
body:
|
|
14413
|
+
body: StopSandboxResult = None,
|
|
14314
14414
|
):
|
|
14315
14415
|
self.headers = headers
|
|
14316
14416
|
self.status_code = status_code
|
|
@@ -14341,7 +14441,7 @@ class StopSandboxResponse(TeaModel):
|
|
|
14341
14441
|
if m.get('statusCode') is not None:
|
|
14342
14442
|
self.status_code = m.get('statusCode')
|
|
14343
14443
|
if m.get('body') is not None:
|
|
14344
|
-
temp_model =
|
|
14444
|
+
temp_model = StopSandboxResult()
|
|
14345
14445
|
self.body = temp_model.from_map(m['body'])
|
|
14346
14446
|
return self
|
|
14347
14447
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = '3.1.0'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|