tencentcloud-sdk-ags 3.0.1164
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.
- checksums.yaml +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-ags.rb +11 -0
- data/lib/v20250920/client.rb +325 -0
- data/lib/v20250920/models.rb +790 -0
- metadata +66 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 15a7df96c022fa7c6d324bf09ef8452284fead3e
|
|
4
|
+
data.tar.gz: 440e4936444c700b700e807903acc949909571e0
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d9695a040c49f0e917fdd52f3de8810919ecaec85130096a71cfe3a28c2805623a2cbddf5a2d8d95038ef161f1e03d6019d606ebb376f3eb6ce97ea8e6f08085
|
|
7
|
+
data.tar.gz: 2a8cac4c5053d5bdccf73c57f3df44d49480d08c1f801733fe3e8dae5cfaa2e7b335bae19320080e9ad9148999f966a4cffa1358602607d31980f80de53f86c8
|
data/lib/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.0.1164
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
require 'json'
|
|
18
|
+
|
|
19
|
+
module TencentCloud
|
|
20
|
+
module Ags
|
|
21
|
+
module V20250920
|
|
22
|
+
class Client < TencentCloud::Common::AbstractClient
|
|
23
|
+
|
|
24
|
+
def initialize(credential, region, profile = nil)
|
|
25
|
+
api_version = '2025-09-20'
|
|
26
|
+
api_endpoint = 'ags.tencentcloudapi.com'
|
|
27
|
+
sdk_version = 'AGS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
|
|
28
|
+
super(credential, region, api_version, api_endpoint, sdk_version, profile)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
# 获取访问沙箱工具时所需要使用的访问Token,创建沙箱实例后需调用此接口获取沙箱实例访问Token。
|
|
33
|
+
# 此Token可用于调用代码沙箱实例执行代码,或浏览器沙箱实例进行浏览器操作等。
|
|
34
|
+
|
|
35
|
+
# @param request: Request instance for AcquireSandboxInstanceToken.
|
|
36
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::AcquireSandboxInstanceTokenRequest`
|
|
37
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::AcquireSandboxInstanceTokenResponse`
|
|
38
|
+
def AcquireSandboxInstanceToken(request)
|
|
39
|
+
body = send_request('AcquireSandboxInstanceToken', request.serialize)
|
|
40
|
+
response = JSON.parse(body)
|
|
41
|
+
if response['Response'].key?('Error') == false
|
|
42
|
+
model = AcquireSandboxInstanceTokenResponse.new
|
|
43
|
+
model.deserialize(response['Response'])
|
|
44
|
+
model
|
|
45
|
+
else
|
|
46
|
+
code = response['Response']['Error']['Code']
|
|
47
|
+
message = response['Response']['Error']['Message']
|
|
48
|
+
reqid = response['Response']['RequestId']
|
|
49
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
50
|
+
end
|
|
51
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
52
|
+
raise e
|
|
53
|
+
rescue StandardError => e
|
|
54
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# 创建新的API密钥,用于调用Agent Sandbox接口。相较于腾讯云Secret ID Secret Key支持调用所有接口使用,仅有部分接口支持使用API密钥调用。
|
|
58
|
+
|
|
59
|
+
# @param request: Request instance for CreateAPIKey.
|
|
60
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::CreateAPIKeyRequest`
|
|
61
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::CreateAPIKeyResponse`
|
|
62
|
+
def CreateAPIKey(request)
|
|
63
|
+
body = send_request('CreateAPIKey', request.serialize)
|
|
64
|
+
response = JSON.parse(body)
|
|
65
|
+
if response['Response'].key?('Error') == false
|
|
66
|
+
model = CreateAPIKeyResponse.new
|
|
67
|
+
model.deserialize(response['Response'])
|
|
68
|
+
model
|
|
69
|
+
else
|
|
70
|
+
code = response['Response']['Error']['Code']
|
|
71
|
+
message = response['Response']['Error']['Message']
|
|
72
|
+
reqid = response['Response']['RequestId']
|
|
73
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
74
|
+
end
|
|
75
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
76
|
+
raise e
|
|
77
|
+
rescue StandardError => e
|
|
78
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# 创建沙箱工具
|
|
82
|
+
|
|
83
|
+
# @param request: Request instance for CreateSandboxTool.
|
|
84
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::CreateSandboxToolRequest`
|
|
85
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::CreateSandboxToolResponse`
|
|
86
|
+
def CreateSandboxTool(request)
|
|
87
|
+
body = send_request('CreateSandboxTool', request.serialize)
|
|
88
|
+
response = JSON.parse(body)
|
|
89
|
+
if response['Response'].key?('Error') == false
|
|
90
|
+
model = CreateSandboxToolResponse.new
|
|
91
|
+
model.deserialize(response['Response'])
|
|
92
|
+
model
|
|
93
|
+
else
|
|
94
|
+
code = response['Response']['Error']['Code']
|
|
95
|
+
message = response['Response']['Error']['Message']
|
|
96
|
+
reqid = response['Response']['RequestId']
|
|
97
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
98
|
+
end
|
|
99
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
100
|
+
raise e
|
|
101
|
+
rescue StandardError => e
|
|
102
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# 删除API密钥。注意区别于腾讯云Secret ID Secret Key,本接口删除的是Agent Sandbox专用API key。
|
|
106
|
+
|
|
107
|
+
# @param request: Request instance for DeleteAPIKey.
|
|
108
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::DeleteAPIKeyRequest`
|
|
109
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::DeleteAPIKeyResponse`
|
|
110
|
+
def DeleteAPIKey(request)
|
|
111
|
+
body = send_request('DeleteAPIKey', request.serialize)
|
|
112
|
+
response = JSON.parse(body)
|
|
113
|
+
if response['Response'].key?('Error') == false
|
|
114
|
+
model = DeleteAPIKeyResponse.new
|
|
115
|
+
model.deserialize(response['Response'])
|
|
116
|
+
model
|
|
117
|
+
else
|
|
118
|
+
code = response['Response']['Error']['Code']
|
|
119
|
+
message = response['Response']['Error']['Message']
|
|
120
|
+
reqid = response['Response']['RequestId']
|
|
121
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
122
|
+
end
|
|
123
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
124
|
+
raise e
|
|
125
|
+
rescue StandardError => e
|
|
126
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# 删除沙箱工具
|
|
130
|
+
|
|
131
|
+
# @param request: Request instance for DeleteSandboxTool.
|
|
132
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::DeleteSandboxToolRequest`
|
|
133
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::DeleteSandboxToolResponse`
|
|
134
|
+
def DeleteSandboxTool(request)
|
|
135
|
+
body = send_request('DeleteSandboxTool', request.serialize)
|
|
136
|
+
response = JSON.parse(body)
|
|
137
|
+
if response['Response'].key?('Error') == false
|
|
138
|
+
model = DeleteSandboxToolResponse.new
|
|
139
|
+
model.deserialize(response['Response'])
|
|
140
|
+
model
|
|
141
|
+
else
|
|
142
|
+
code = response['Response']['Error']['Code']
|
|
143
|
+
message = response['Response']['Error']['Message']
|
|
144
|
+
reqid = response['Response']['RequestId']
|
|
145
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
146
|
+
end
|
|
147
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
148
|
+
raise e
|
|
149
|
+
rescue StandardError => e
|
|
150
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# 获取API密钥列表,包含API密钥简略信息,包含名称、创建时间等。
|
|
154
|
+
|
|
155
|
+
# @param request: Request instance for DescribeAPIKeyList.
|
|
156
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::DescribeAPIKeyListRequest`
|
|
157
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::DescribeAPIKeyListResponse`
|
|
158
|
+
def DescribeAPIKeyList(request)
|
|
159
|
+
body = send_request('DescribeAPIKeyList', request.serialize)
|
|
160
|
+
response = JSON.parse(body)
|
|
161
|
+
if response['Response'].key?('Error') == false
|
|
162
|
+
model = DescribeAPIKeyListResponse.new
|
|
163
|
+
model.deserialize(response['Response'])
|
|
164
|
+
model
|
|
165
|
+
else
|
|
166
|
+
code = response['Response']['Error']['Code']
|
|
167
|
+
message = response['Response']['Error']['Message']
|
|
168
|
+
reqid = response['Response']['RequestId']
|
|
169
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
170
|
+
end
|
|
171
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
172
|
+
raise e
|
|
173
|
+
rescue StandardError => e
|
|
174
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# 查询沙箱实例列表
|
|
178
|
+
|
|
179
|
+
# @param request: Request instance for DescribeSandboxInstanceList.
|
|
180
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::DescribeSandboxInstanceListRequest`
|
|
181
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::DescribeSandboxInstanceListResponse`
|
|
182
|
+
def DescribeSandboxInstanceList(request)
|
|
183
|
+
body = send_request('DescribeSandboxInstanceList', request.serialize)
|
|
184
|
+
response = JSON.parse(body)
|
|
185
|
+
if response['Response'].key?('Error') == false
|
|
186
|
+
model = DescribeSandboxInstanceListResponse.new
|
|
187
|
+
model.deserialize(response['Response'])
|
|
188
|
+
model
|
|
189
|
+
else
|
|
190
|
+
code = response['Response']['Error']['Code']
|
|
191
|
+
message = response['Response']['Error']['Message']
|
|
192
|
+
reqid = response['Response']['RequestId']
|
|
193
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
194
|
+
end
|
|
195
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
196
|
+
raise e
|
|
197
|
+
rescue StandardError => e
|
|
198
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# 查询沙箱工具列表
|
|
202
|
+
|
|
203
|
+
# @param request: Request instance for DescribeSandboxToolList.
|
|
204
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::DescribeSandboxToolListRequest`
|
|
205
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::DescribeSandboxToolListResponse`
|
|
206
|
+
def DescribeSandboxToolList(request)
|
|
207
|
+
body = send_request('DescribeSandboxToolList', request.serialize)
|
|
208
|
+
response = JSON.parse(body)
|
|
209
|
+
if response['Response'].key?('Error') == false
|
|
210
|
+
model = DescribeSandboxToolListResponse.new
|
|
211
|
+
model.deserialize(response['Response'])
|
|
212
|
+
model
|
|
213
|
+
else
|
|
214
|
+
code = response['Response']['Error']['Code']
|
|
215
|
+
message = response['Response']['Error']['Message']
|
|
216
|
+
reqid = response['Response']['RequestId']
|
|
217
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
218
|
+
end
|
|
219
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
220
|
+
raise e
|
|
221
|
+
rescue StandardError => e
|
|
222
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# 启动沙箱实例
|
|
226
|
+
|
|
227
|
+
# @param request: Request instance for StartSandboxInstance.
|
|
228
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::StartSandboxInstanceRequest`
|
|
229
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::StartSandboxInstanceResponse`
|
|
230
|
+
def StartSandboxInstance(request)
|
|
231
|
+
body = send_request('StartSandboxInstance', request.serialize)
|
|
232
|
+
response = JSON.parse(body)
|
|
233
|
+
if response['Response'].key?('Error') == false
|
|
234
|
+
model = StartSandboxInstanceResponse.new
|
|
235
|
+
model.deserialize(response['Response'])
|
|
236
|
+
model
|
|
237
|
+
else
|
|
238
|
+
code = response['Response']['Error']['Code']
|
|
239
|
+
message = response['Response']['Error']['Message']
|
|
240
|
+
reqid = response['Response']['RequestId']
|
|
241
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
242
|
+
end
|
|
243
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
244
|
+
raise e
|
|
245
|
+
rescue StandardError => e
|
|
246
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# 停止沙箱实例
|
|
250
|
+
|
|
251
|
+
# @param request: Request instance for StopSandboxInstance.
|
|
252
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::StopSandboxInstanceRequest`
|
|
253
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::StopSandboxInstanceResponse`
|
|
254
|
+
def StopSandboxInstance(request)
|
|
255
|
+
body = send_request('StopSandboxInstance', request.serialize)
|
|
256
|
+
response = JSON.parse(body)
|
|
257
|
+
if response['Response'].key?('Error') == false
|
|
258
|
+
model = StopSandboxInstanceResponse.new
|
|
259
|
+
model.deserialize(response['Response'])
|
|
260
|
+
model
|
|
261
|
+
else
|
|
262
|
+
code = response['Response']['Error']['Code']
|
|
263
|
+
message = response['Response']['Error']['Message']
|
|
264
|
+
reqid = response['Response']['RequestId']
|
|
265
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
266
|
+
end
|
|
267
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
268
|
+
raise e
|
|
269
|
+
rescue StandardError => e
|
|
270
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# 更新沙箱实例
|
|
274
|
+
|
|
275
|
+
# @param request: Request instance for UpdateSandboxInstance.
|
|
276
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::UpdateSandboxInstanceRequest`
|
|
277
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::UpdateSandboxInstanceResponse`
|
|
278
|
+
def UpdateSandboxInstance(request)
|
|
279
|
+
body = send_request('UpdateSandboxInstance', request.serialize)
|
|
280
|
+
response = JSON.parse(body)
|
|
281
|
+
if response['Response'].key?('Error') == false
|
|
282
|
+
model = UpdateSandboxInstanceResponse.new
|
|
283
|
+
model.deserialize(response['Response'])
|
|
284
|
+
model
|
|
285
|
+
else
|
|
286
|
+
code = response['Response']['Error']['Code']
|
|
287
|
+
message = response['Response']['Error']['Message']
|
|
288
|
+
reqid = response['Response']['RequestId']
|
|
289
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
290
|
+
end
|
|
291
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
292
|
+
raise e
|
|
293
|
+
rescue StandardError => e
|
|
294
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# 更新沙箱工具
|
|
298
|
+
|
|
299
|
+
# @param request: Request instance for UpdateSandboxTool.
|
|
300
|
+
# @type request: :class:`Tencentcloud::ags::V20250920::UpdateSandboxToolRequest`
|
|
301
|
+
# @rtype: :class:`Tencentcloud::ags::V20250920::UpdateSandboxToolResponse`
|
|
302
|
+
def UpdateSandboxTool(request)
|
|
303
|
+
body = send_request('UpdateSandboxTool', request.serialize)
|
|
304
|
+
response = JSON.parse(body)
|
|
305
|
+
if response['Response'].key?('Error') == false
|
|
306
|
+
model = UpdateSandboxToolResponse.new
|
|
307
|
+
model.deserialize(response['Response'])
|
|
308
|
+
model
|
|
309
|
+
else
|
|
310
|
+
code = response['Response']['Error']['Code']
|
|
311
|
+
message = response['Response']['Error']['Message']
|
|
312
|
+
reqid = response['Response']['RequestId']
|
|
313
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
314
|
+
end
|
|
315
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
316
|
+
raise e
|
|
317
|
+
rescue StandardError => e
|
|
318
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright (c) 2017-2025 Tencent. All Rights Reserved.
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
module TencentCloud
|
|
18
|
+
module Ags
|
|
19
|
+
module V20250920
|
|
20
|
+
# API密钥简略信息
|
|
21
|
+
class APIKeyInfo < TencentCloud::Common::AbstractModel
|
|
22
|
+
# @param Name: API密钥名称
|
|
23
|
+
# @type Name: String
|
|
24
|
+
# @param KeyId: API密钥ID
|
|
25
|
+
# @type KeyId: String
|
|
26
|
+
# @param Status: 密钥状态。可以为API_KEY_STATUS_ACTIVE,或API_KEY_STATUS_INACTIVE
|
|
27
|
+
# @type Status: String
|
|
28
|
+
# @param MaskedKey: 隐藏部分字符的API密钥,方便用户辨认
|
|
29
|
+
# @type MaskedKey: String
|
|
30
|
+
# @param CreatedAt: API密钥创建时间
|
|
31
|
+
# @type CreatedAt: String
|
|
32
|
+
|
|
33
|
+
attr_accessor :Name, :KeyId, :Status, :MaskedKey, :CreatedAt
|
|
34
|
+
|
|
35
|
+
def initialize(name=nil, keyid=nil, status=nil, maskedkey=nil, createdat=nil)
|
|
36
|
+
@Name = name
|
|
37
|
+
@KeyId = keyid
|
|
38
|
+
@Status = status
|
|
39
|
+
@MaskedKey = maskedkey
|
|
40
|
+
@CreatedAt = createdat
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def deserialize(params)
|
|
44
|
+
@Name = params['Name']
|
|
45
|
+
@KeyId = params['KeyId']
|
|
46
|
+
@Status = params['Status']
|
|
47
|
+
@MaskedKey = params['MaskedKey']
|
|
48
|
+
@CreatedAt = params['CreatedAt']
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# AcquireSandboxInstanceToken请求参数结构体
|
|
53
|
+
class AcquireSandboxInstanceTokenRequest < TencentCloud::Common::AbstractModel
|
|
54
|
+
# @param InstanceId: 沙箱实例ID,生成的访问Token将仅可用于访问此沙箱实例
|
|
55
|
+
# @type InstanceId: String
|
|
56
|
+
|
|
57
|
+
attr_accessor :InstanceId
|
|
58
|
+
|
|
59
|
+
def initialize(instanceid=nil)
|
|
60
|
+
@InstanceId = instanceid
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def deserialize(params)
|
|
64
|
+
@InstanceId = params['InstanceId']
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# AcquireSandboxInstanceToken返回参数结构体
|
|
69
|
+
class AcquireSandboxInstanceTokenResponse < TencentCloud::Common::AbstractModel
|
|
70
|
+
# @param Token: 访问Token
|
|
71
|
+
# @type Token: String
|
|
72
|
+
# @param ExpiresAt: 过期时间
|
|
73
|
+
# @type ExpiresAt: String
|
|
74
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
75
|
+
# @type RequestId: String
|
|
76
|
+
|
|
77
|
+
attr_accessor :Token, :ExpiresAt, :RequestId
|
|
78
|
+
|
|
79
|
+
def initialize(token=nil, expiresat=nil, requestid=nil)
|
|
80
|
+
@Token = token
|
|
81
|
+
@ExpiresAt = expiresat
|
|
82
|
+
@RequestId = requestid
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def deserialize(params)
|
|
86
|
+
@Token = params['Token']
|
|
87
|
+
@ExpiresAt = params['ExpiresAt']
|
|
88
|
+
@RequestId = params['RequestId']
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# CreateAPIKey请求参数结构体
|
|
93
|
+
class CreateAPIKeyRequest < TencentCloud::Common::AbstractModel
|
|
94
|
+
# @param Name: API密钥名称,方便用户记忆
|
|
95
|
+
# @type Name: String
|
|
96
|
+
|
|
97
|
+
attr_accessor :Name
|
|
98
|
+
|
|
99
|
+
def initialize(name=nil)
|
|
100
|
+
@Name = name
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def deserialize(params)
|
|
104
|
+
@Name = params['Name']
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# CreateAPIKey返回参数结构体
|
|
109
|
+
class CreateAPIKeyResponse < TencentCloud::Common::AbstractModel
|
|
110
|
+
# @param Name: 用户传入的API密钥名称,方便用户记忆
|
|
111
|
+
# @type Name: String
|
|
112
|
+
# @param APIKey: 生成的API密钥,仅返回此一次,后续无法获取
|
|
113
|
+
# @type APIKey: String
|
|
114
|
+
# @param KeyId: API密钥ID
|
|
115
|
+
# @type KeyId: String
|
|
116
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
117
|
+
# @type RequestId: String
|
|
118
|
+
|
|
119
|
+
attr_accessor :Name, :APIKey, :KeyId, :RequestId
|
|
120
|
+
|
|
121
|
+
def initialize(name=nil, apikey=nil, keyid=nil, requestid=nil)
|
|
122
|
+
@Name = name
|
|
123
|
+
@APIKey = apikey
|
|
124
|
+
@KeyId = keyid
|
|
125
|
+
@RequestId = requestid
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
def deserialize(params)
|
|
129
|
+
@Name = params['Name']
|
|
130
|
+
@APIKey = params['APIKey']
|
|
131
|
+
@KeyId = params['KeyId']
|
|
132
|
+
@RequestId = params['RequestId']
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# CreateSandboxTool请求参数结构体
|
|
137
|
+
class CreateSandboxToolRequest < TencentCloud::Common::AbstractModel
|
|
138
|
+
# @param ToolName: 沙箱工具名称,长度 1-50 字符,支持英文、数字、下划线和连接线。同一 AppId 下沙箱工具名称必须唯一
|
|
139
|
+
# @type ToolName: String
|
|
140
|
+
# @param ToolType: 沙箱工具类型,目前支持:browser、code-interpreter
|
|
141
|
+
# @type ToolType: String
|
|
142
|
+
# @param NetworkConfiguration: 网络配置
|
|
143
|
+
# @type NetworkConfiguration: :class:`Tencentcloud::Ags.v20250920.models.NetworkConfiguration`
|
|
144
|
+
# @param Description: 沙箱工具描述,最大长度 200 字符
|
|
145
|
+
# @type Description: String
|
|
146
|
+
# @param DefaultTimeout: 默认超时时间,支持格式:5m、300s、1h 等,不指定则使用系统默认值(5 分钟)。最大 24 小时
|
|
147
|
+
# @type DefaultTimeout: String
|
|
148
|
+
# @param Tags: 标签规格,为沙箱工具绑定标签,支持多种资源类型的标签绑定
|
|
149
|
+
# @type Tags: Array
|
|
150
|
+
# @param ClientToken: 幂等性 Token,长度不超过 64 字符
|
|
151
|
+
# @type ClientToken: String
|
|
152
|
+
|
|
153
|
+
attr_accessor :ToolName, :ToolType, :NetworkConfiguration, :Description, :DefaultTimeout, :Tags, :ClientToken
|
|
154
|
+
|
|
155
|
+
def initialize(toolname=nil, tooltype=nil, networkconfiguration=nil, description=nil, defaulttimeout=nil, tags=nil, clienttoken=nil)
|
|
156
|
+
@ToolName = toolname
|
|
157
|
+
@ToolType = tooltype
|
|
158
|
+
@NetworkConfiguration = networkconfiguration
|
|
159
|
+
@Description = description
|
|
160
|
+
@DefaultTimeout = defaulttimeout
|
|
161
|
+
@Tags = tags
|
|
162
|
+
@ClientToken = clienttoken
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
def deserialize(params)
|
|
166
|
+
@ToolName = params['ToolName']
|
|
167
|
+
@ToolType = params['ToolType']
|
|
168
|
+
unless params['NetworkConfiguration'].nil?
|
|
169
|
+
@NetworkConfiguration = NetworkConfiguration.new
|
|
170
|
+
@NetworkConfiguration.deserialize(params['NetworkConfiguration'])
|
|
171
|
+
end
|
|
172
|
+
@Description = params['Description']
|
|
173
|
+
@DefaultTimeout = params['DefaultTimeout']
|
|
174
|
+
unless params['Tags'].nil?
|
|
175
|
+
@Tags = []
|
|
176
|
+
params['Tags'].each do |i|
|
|
177
|
+
tag_tmp = Tag.new
|
|
178
|
+
tag_tmp.deserialize(i)
|
|
179
|
+
@Tags << tag_tmp
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
@ClientToken = params['ClientToken']
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# CreateSandboxTool返回参数结构体
|
|
187
|
+
class CreateSandboxToolResponse < TencentCloud::Common::AbstractModel
|
|
188
|
+
# @param ToolId: 创建的沙箱工具 ID
|
|
189
|
+
# @type ToolId: String
|
|
190
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
191
|
+
# @type RequestId: String
|
|
192
|
+
|
|
193
|
+
attr_accessor :ToolId, :RequestId
|
|
194
|
+
|
|
195
|
+
def initialize(toolid=nil, requestid=nil)
|
|
196
|
+
@ToolId = toolid
|
|
197
|
+
@RequestId = requestid
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def deserialize(params)
|
|
201
|
+
@ToolId = params['ToolId']
|
|
202
|
+
@RequestId = params['RequestId']
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# DeleteAPIKey请求参数结构体
|
|
207
|
+
class DeleteAPIKeyRequest < TencentCloud::Common::AbstractModel
|
|
208
|
+
# @param KeyId: 需要删除的API密钥ID
|
|
209
|
+
# @type KeyId: String
|
|
210
|
+
|
|
211
|
+
attr_accessor :KeyId
|
|
212
|
+
|
|
213
|
+
def initialize(keyid=nil)
|
|
214
|
+
@KeyId = keyid
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
def deserialize(params)
|
|
218
|
+
@KeyId = params['KeyId']
|
|
219
|
+
end
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# DeleteAPIKey返回参数结构体
|
|
223
|
+
class DeleteAPIKeyResponse < TencentCloud::Common::AbstractModel
|
|
224
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
225
|
+
# @type RequestId: String
|
|
226
|
+
|
|
227
|
+
attr_accessor :RequestId
|
|
228
|
+
|
|
229
|
+
def initialize(requestid=nil)
|
|
230
|
+
@RequestId = requestid
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
def deserialize(params)
|
|
234
|
+
@RequestId = params['RequestId']
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# DeleteSandboxTool请求参数结构体
|
|
239
|
+
class DeleteSandboxToolRequest < TencentCloud::Common::AbstractModel
|
|
240
|
+
# @param ToolId: 沙箱工具ID
|
|
241
|
+
# @type ToolId: String
|
|
242
|
+
|
|
243
|
+
attr_accessor :ToolId
|
|
244
|
+
|
|
245
|
+
def initialize(toolid=nil)
|
|
246
|
+
@ToolId = toolid
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
def deserialize(params)
|
|
250
|
+
@ToolId = params['ToolId']
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# DeleteSandboxTool返回参数结构体
|
|
255
|
+
class DeleteSandboxToolResponse < TencentCloud::Common::AbstractModel
|
|
256
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
257
|
+
# @type RequestId: String
|
|
258
|
+
|
|
259
|
+
attr_accessor :RequestId
|
|
260
|
+
|
|
261
|
+
def initialize(requestid=nil)
|
|
262
|
+
@RequestId = requestid
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
def deserialize(params)
|
|
266
|
+
@RequestId = params['RequestId']
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# DescribeAPIKeyList请求参数结构体
|
|
271
|
+
class DescribeAPIKeyListRequest < TencentCloud::Common::AbstractModel
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
def initialize()
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
def deserialize(params)
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
|
|
281
|
+
# DescribeAPIKeyList返回参数结构体
|
|
282
|
+
class DescribeAPIKeyListResponse < TencentCloud::Common::AbstractModel
|
|
283
|
+
# @param APIKeySet: API密钥简略信息列表。
|
|
284
|
+
# @type APIKeySet: Array
|
|
285
|
+
# @param TotalCount: 列表中API密钥数量
|
|
286
|
+
# @type TotalCount: Integer
|
|
287
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
288
|
+
# @type RequestId: String
|
|
289
|
+
|
|
290
|
+
attr_accessor :APIKeySet, :TotalCount, :RequestId
|
|
291
|
+
|
|
292
|
+
def initialize(apikeyset=nil, totalcount=nil, requestid=nil)
|
|
293
|
+
@APIKeySet = apikeyset
|
|
294
|
+
@TotalCount = totalcount
|
|
295
|
+
@RequestId = requestid
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
def deserialize(params)
|
|
299
|
+
unless params['APIKeySet'].nil?
|
|
300
|
+
@APIKeySet = []
|
|
301
|
+
params['APIKeySet'].each do |i|
|
|
302
|
+
apikeyinfo_tmp = APIKeyInfo.new
|
|
303
|
+
apikeyinfo_tmp.deserialize(i)
|
|
304
|
+
@APIKeySet << apikeyinfo_tmp
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
@TotalCount = params['TotalCount']
|
|
308
|
+
@RequestId = params['RequestId']
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# DescribeSandboxInstanceList请求参数结构体
|
|
313
|
+
class DescribeSandboxInstanceListRequest < TencentCloud::Common::AbstractModel
|
|
314
|
+
# @param InstanceIds: 沙箱实例ID列表,指定要查询的实例。如果为空则查询所有实例。最大支持100个ID
|
|
315
|
+
# @type InstanceIds: Array
|
|
316
|
+
# @param ToolId: 沙箱工具ID,指定时查询该沙箱模板下的实例,为空则查询所有沙箱模板的实例
|
|
317
|
+
# @type ToolId: String
|
|
318
|
+
# @param Offset: 偏移量,默认为0
|
|
319
|
+
# @type Offset: Integer
|
|
320
|
+
# @param Limit: 返回数量,默认为20,最大值为100
|
|
321
|
+
# @type Limit: Integer
|
|
322
|
+
# @param Filters: 过滤条件
|
|
323
|
+
# @type Filters: Array
|
|
324
|
+
|
|
325
|
+
attr_accessor :InstanceIds, :ToolId, :Offset, :Limit, :Filters
|
|
326
|
+
|
|
327
|
+
def initialize(instanceids=nil, toolid=nil, offset=nil, limit=nil, filters=nil)
|
|
328
|
+
@InstanceIds = instanceids
|
|
329
|
+
@ToolId = toolid
|
|
330
|
+
@Offset = offset
|
|
331
|
+
@Limit = limit
|
|
332
|
+
@Filters = filters
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
def deserialize(params)
|
|
336
|
+
@InstanceIds = params['InstanceIds']
|
|
337
|
+
@ToolId = params['ToolId']
|
|
338
|
+
@Offset = params['Offset']
|
|
339
|
+
@Limit = params['Limit']
|
|
340
|
+
unless params['Filters'].nil?
|
|
341
|
+
@Filters = []
|
|
342
|
+
params['Filters'].each do |i|
|
|
343
|
+
filter_tmp = Filter.new
|
|
344
|
+
filter_tmp.deserialize(i)
|
|
345
|
+
@Filters << filter_tmp
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# DescribeSandboxInstanceList返回参数结构体
|
|
352
|
+
class DescribeSandboxInstanceListResponse < TencentCloud::Common::AbstractModel
|
|
353
|
+
# @param InstanceSet: 沙箱实例列表
|
|
354
|
+
# @type InstanceSet: Array
|
|
355
|
+
# @param TotalCount: 符合条件的实例总数
|
|
356
|
+
# @type TotalCount: Integer
|
|
357
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
358
|
+
# @type RequestId: String
|
|
359
|
+
|
|
360
|
+
attr_accessor :InstanceSet, :TotalCount, :RequestId
|
|
361
|
+
|
|
362
|
+
def initialize(instanceset=nil, totalcount=nil, requestid=nil)
|
|
363
|
+
@InstanceSet = instanceset
|
|
364
|
+
@TotalCount = totalcount
|
|
365
|
+
@RequestId = requestid
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
def deserialize(params)
|
|
369
|
+
unless params['InstanceSet'].nil?
|
|
370
|
+
@InstanceSet = []
|
|
371
|
+
params['InstanceSet'].each do |i|
|
|
372
|
+
sandboxinstance_tmp = SandboxInstance.new
|
|
373
|
+
sandboxinstance_tmp.deserialize(i)
|
|
374
|
+
@InstanceSet << sandboxinstance_tmp
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
@TotalCount = params['TotalCount']
|
|
378
|
+
@RequestId = params['RequestId']
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# DescribeSandboxToolList请求参数结构体
|
|
383
|
+
class DescribeSandboxToolListRequest < TencentCloud::Common::AbstractModel
|
|
384
|
+
# @param ToolIds: 沙箱工具ID列表,指定要查询的工具。如果为空则查询所有工具。最大支持100个ID
|
|
385
|
+
# @type ToolIds: Array
|
|
386
|
+
# @param Offset: 偏移量,默认为0
|
|
387
|
+
# @type Offset: Integer
|
|
388
|
+
# @param Limit: 返回数量,默认为20,最大值为100
|
|
389
|
+
# @type Limit: Integer
|
|
390
|
+
# @param Filters: 过滤条件
|
|
391
|
+
# @type Filters: Array
|
|
392
|
+
|
|
393
|
+
attr_accessor :ToolIds, :Offset, :Limit, :Filters
|
|
394
|
+
|
|
395
|
+
def initialize(toolids=nil, offset=nil, limit=nil, filters=nil)
|
|
396
|
+
@ToolIds = toolids
|
|
397
|
+
@Offset = offset
|
|
398
|
+
@Limit = limit
|
|
399
|
+
@Filters = filters
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
def deserialize(params)
|
|
403
|
+
@ToolIds = params['ToolIds']
|
|
404
|
+
@Offset = params['Offset']
|
|
405
|
+
@Limit = params['Limit']
|
|
406
|
+
unless params['Filters'].nil?
|
|
407
|
+
@Filters = []
|
|
408
|
+
params['Filters'].each do |i|
|
|
409
|
+
filter_tmp = Filter.new
|
|
410
|
+
filter_tmp.deserialize(i)
|
|
411
|
+
@Filters << filter_tmp
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# DescribeSandboxToolList返回参数结构体
|
|
418
|
+
class DescribeSandboxToolListResponse < TencentCloud::Common::AbstractModel
|
|
419
|
+
# @param SandboxToolSet: 沙箱工具列表
|
|
420
|
+
# @type SandboxToolSet: Array
|
|
421
|
+
# @param TotalCount: 符合条件的沙箱工具总数
|
|
422
|
+
# @type TotalCount: Integer
|
|
423
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
424
|
+
# @type RequestId: String
|
|
425
|
+
|
|
426
|
+
attr_accessor :SandboxToolSet, :TotalCount, :RequestId
|
|
427
|
+
|
|
428
|
+
def initialize(sandboxtoolset=nil, totalcount=nil, requestid=nil)
|
|
429
|
+
@SandboxToolSet = sandboxtoolset
|
|
430
|
+
@TotalCount = totalcount
|
|
431
|
+
@RequestId = requestid
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
def deserialize(params)
|
|
435
|
+
unless params['SandboxToolSet'].nil?
|
|
436
|
+
@SandboxToolSet = []
|
|
437
|
+
params['SandboxToolSet'].each do |i|
|
|
438
|
+
sandboxtool_tmp = SandboxTool.new
|
|
439
|
+
sandboxtool_tmp.deserialize(i)
|
|
440
|
+
@SandboxToolSet << sandboxtool_tmp
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
@TotalCount = params['TotalCount']
|
|
444
|
+
@RequestId = params['RequestId']
|
|
445
|
+
end
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
# 过滤列表规则
|
|
449
|
+
class Filter < TencentCloud::Common::AbstractModel
|
|
450
|
+
# @param Name: 属性名称, 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。
|
|
451
|
+
# @type Name: String
|
|
452
|
+
# @param Values: 属性值, 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。
|
|
453
|
+
# @type Values: Array
|
|
454
|
+
|
|
455
|
+
attr_accessor :Name, :Values
|
|
456
|
+
|
|
457
|
+
def initialize(name=nil, values=nil)
|
|
458
|
+
@Name = name
|
|
459
|
+
@Values = values
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
def deserialize(params)
|
|
463
|
+
@Name = params['Name']
|
|
464
|
+
@Values = params['Values']
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# 沙箱网络配置
|
|
469
|
+
class NetworkConfiguration < TencentCloud::Common::AbstractModel
|
|
470
|
+
# @param NetworkMode: 网络模式(当前支持 PUBLIC)
|
|
471
|
+
# @type NetworkMode: String
|
|
472
|
+
|
|
473
|
+
attr_accessor :NetworkMode
|
|
474
|
+
|
|
475
|
+
def initialize(networkmode=nil)
|
|
476
|
+
@NetworkMode = networkmode
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
def deserialize(params)
|
|
480
|
+
@NetworkMode = params['NetworkMode']
|
|
481
|
+
end
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
# 沙箱实例结构体
|
|
485
|
+
class SandboxInstance < TencentCloud::Common::AbstractModel
|
|
486
|
+
# @param InstanceId: 沙箱实例唯一标识符
|
|
487
|
+
# @type InstanceId: String
|
|
488
|
+
# @param ToolId: 所属沙箱工具 ID
|
|
489
|
+
# @type ToolId: String
|
|
490
|
+
# @param ToolName: 所属沙箱工具名称
|
|
491
|
+
# @type ToolName: String
|
|
492
|
+
# @param Status: 实例状态:STARTING(启动中)、RUNNING(运行中)、STOPPING(停止中)、STOPPED(已停止)、STOP_FAILED(停止失败)、FAILED(失败状态)
|
|
493
|
+
# @type Status: String
|
|
494
|
+
# @param TimeoutSeconds: 超时时间(秒),null 表示无超时设置
|
|
495
|
+
# @type TimeoutSeconds: Integer
|
|
496
|
+
# @param ExpiresAt: 过期时间(ISO 8601 格式),null 表示无过期时间
|
|
497
|
+
# @type ExpiresAt: String
|
|
498
|
+
# @param StopReason: 停止原因:manual(手动)、timeout(超时)、error(错误)、system(系统),仅在状态为 STOPPED、STOP_FAILED 或 FAILED 时有值。当 provider 停止失败时,状态为 STOP_FAILED,原因为 error
|
|
499
|
+
# @type StopReason: String
|
|
500
|
+
# @param CreateTime: 创建时间(ISO 8601 格式)
|
|
501
|
+
# @type CreateTime: String
|
|
502
|
+
# @param UpdateTime: 更新时间(ISO 8601 格式)
|
|
503
|
+
# @type UpdateTime: String
|
|
504
|
+
|
|
505
|
+
attr_accessor :InstanceId, :ToolId, :ToolName, :Status, :TimeoutSeconds, :ExpiresAt, :StopReason, :CreateTime, :UpdateTime
|
|
506
|
+
|
|
507
|
+
def initialize(instanceid=nil, toolid=nil, toolname=nil, status=nil, timeoutseconds=nil, expiresat=nil, stopreason=nil, createtime=nil, updatetime=nil)
|
|
508
|
+
@InstanceId = instanceid
|
|
509
|
+
@ToolId = toolid
|
|
510
|
+
@ToolName = toolname
|
|
511
|
+
@Status = status
|
|
512
|
+
@TimeoutSeconds = timeoutseconds
|
|
513
|
+
@ExpiresAt = expiresat
|
|
514
|
+
@StopReason = stopreason
|
|
515
|
+
@CreateTime = createtime
|
|
516
|
+
@UpdateTime = updatetime
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
def deserialize(params)
|
|
520
|
+
@InstanceId = params['InstanceId']
|
|
521
|
+
@ToolId = params['ToolId']
|
|
522
|
+
@ToolName = params['ToolName']
|
|
523
|
+
@Status = params['Status']
|
|
524
|
+
@TimeoutSeconds = params['TimeoutSeconds']
|
|
525
|
+
@ExpiresAt = params['ExpiresAt']
|
|
526
|
+
@StopReason = params['StopReason']
|
|
527
|
+
@CreateTime = params['CreateTime']
|
|
528
|
+
@UpdateTime = params['UpdateTime']
|
|
529
|
+
end
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
# 沙箱工具结构体
|
|
533
|
+
class SandboxTool < TencentCloud::Common::AbstractModel
|
|
534
|
+
# @param ToolId: 沙箱工具唯一标识符
|
|
535
|
+
# @type ToolId: String
|
|
536
|
+
# @param ToolName: 沙箱工具名称,长度 1-50 字符,支持中英文、数字、下划线。同一 AppId 下沙箱工具名称必须唯一
|
|
537
|
+
# @type ToolName: String
|
|
538
|
+
# @param ToolType: 沙箱工具类型,取值:browser(浏览器工具)、code-interpreter(代码解释器工具)、computer(计算机控制工具)、mobile(移动设备工具)
|
|
539
|
+
# @type ToolType: String
|
|
540
|
+
# @param Status: 沙箱工具状态,取值:CREATING(创建中)、ACTIVE(可用)、DELETING(删除中)、FAILED(失败)
|
|
541
|
+
# @type Status: String
|
|
542
|
+
# @param Description: 沙箱工具描述信息,最大长度 200 字符
|
|
543
|
+
# @type Description: String
|
|
544
|
+
# @param DefaultTimeoutSeconds: 默认超时时间,支持格式:5m、300s、1h 等,不指定则使用系统默认值(5 分钟)。最大 24 小时
|
|
545
|
+
# @type DefaultTimeoutSeconds: Integer
|
|
546
|
+
# @param NetworkConfiguration: 网络配置
|
|
547
|
+
# @type NetworkConfiguration: :class:`Tencentcloud::Ags.v20250920.models.NetworkConfiguration`
|
|
548
|
+
# @param Tags: 标签规格,包含资源标签绑定关系。用于为沙箱工具绑定标签,支持多种资源类型的标签绑定
|
|
549
|
+
# @type Tags: Array
|
|
550
|
+
# @param CreateTime: 沙箱工具创建时间,格式:ISO8601
|
|
551
|
+
# @type CreateTime: String
|
|
552
|
+
# @param UpdateTime: 沙箱工具更新时间,格式:ISO8601
|
|
553
|
+
# @type UpdateTime: String
|
|
554
|
+
|
|
555
|
+
attr_accessor :ToolId, :ToolName, :ToolType, :Status, :Description, :DefaultTimeoutSeconds, :NetworkConfiguration, :Tags, :CreateTime, :UpdateTime
|
|
556
|
+
|
|
557
|
+
def initialize(toolid=nil, toolname=nil, tooltype=nil, status=nil, description=nil, defaulttimeoutseconds=nil, networkconfiguration=nil, tags=nil, createtime=nil, updatetime=nil)
|
|
558
|
+
@ToolId = toolid
|
|
559
|
+
@ToolName = toolname
|
|
560
|
+
@ToolType = tooltype
|
|
561
|
+
@Status = status
|
|
562
|
+
@Description = description
|
|
563
|
+
@DefaultTimeoutSeconds = defaulttimeoutseconds
|
|
564
|
+
@NetworkConfiguration = networkconfiguration
|
|
565
|
+
@Tags = tags
|
|
566
|
+
@CreateTime = createtime
|
|
567
|
+
@UpdateTime = updatetime
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
def deserialize(params)
|
|
571
|
+
@ToolId = params['ToolId']
|
|
572
|
+
@ToolName = params['ToolName']
|
|
573
|
+
@ToolType = params['ToolType']
|
|
574
|
+
@Status = params['Status']
|
|
575
|
+
@Description = params['Description']
|
|
576
|
+
@DefaultTimeoutSeconds = params['DefaultTimeoutSeconds']
|
|
577
|
+
unless params['NetworkConfiguration'].nil?
|
|
578
|
+
@NetworkConfiguration = NetworkConfiguration.new
|
|
579
|
+
@NetworkConfiguration.deserialize(params['NetworkConfiguration'])
|
|
580
|
+
end
|
|
581
|
+
unless params['Tags'].nil?
|
|
582
|
+
@Tags = []
|
|
583
|
+
params['Tags'].each do |i|
|
|
584
|
+
tag_tmp = Tag.new
|
|
585
|
+
tag_tmp.deserialize(i)
|
|
586
|
+
@Tags << tag_tmp
|
|
587
|
+
end
|
|
588
|
+
end
|
|
589
|
+
@CreateTime = params['CreateTime']
|
|
590
|
+
@UpdateTime = params['UpdateTime']
|
|
591
|
+
end
|
|
592
|
+
end
|
|
593
|
+
|
|
594
|
+
# StartSandboxInstance请求参数结构体
|
|
595
|
+
class StartSandboxInstanceRequest < TencentCloud::Common::AbstractModel
|
|
596
|
+
# @param ToolId: 沙箱工具 ID,与 ToolName 至少有一个要填
|
|
597
|
+
# @type ToolId: String
|
|
598
|
+
# @param ToolName: 沙箱工具名称,与 ToolId 至少有一个要填
|
|
599
|
+
# @type ToolName: String
|
|
600
|
+
# @param Timeout: 超时时间,超过这个时间就自动回收实例。支持格式:5m、300s、1h 等,默认 5m。最小 30s,最大 24h
|
|
601
|
+
# @type Timeout: String
|
|
602
|
+
# @param ClientToken: 幂等性 Token,长度不超过 64 字符
|
|
603
|
+
# @type ClientToken: String
|
|
604
|
+
|
|
605
|
+
attr_accessor :ToolId, :ToolName, :Timeout, :ClientToken
|
|
606
|
+
|
|
607
|
+
def initialize(toolid=nil, toolname=nil, timeout=nil, clienttoken=nil)
|
|
608
|
+
@ToolId = toolid
|
|
609
|
+
@ToolName = toolname
|
|
610
|
+
@Timeout = timeout
|
|
611
|
+
@ClientToken = clienttoken
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
def deserialize(params)
|
|
615
|
+
@ToolId = params['ToolId']
|
|
616
|
+
@ToolName = params['ToolName']
|
|
617
|
+
@Timeout = params['Timeout']
|
|
618
|
+
@ClientToken = params['ClientToken']
|
|
619
|
+
end
|
|
620
|
+
end
|
|
621
|
+
|
|
622
|
+
# StartSandboxInstance返回参数结构体
|
|
623
|
+
class StartSandboxInstanceResponse < TencentCloud::Common::AbstractModel
|
|
624
|
+
# @param Instance: 创建的沙箱实例完整信息
|
|
625
|
+
# @type Instance: :class:`Tencentcloud::Ags.v20250920.models.SandboxInstance`
|
|
626
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
627
|
+
# @type RequestId: String
|
|
628
|
+
|
|
629
|
+
attr_accessor :Instance, :RequestId
|
|
630
|
+
|
|
631
|
+
def initialize(instance=nil, requestid=nil)
|
|
632
|
+
@Instance = instance
|
|
633
|
+
@RequestId = requestid
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
def deserialize(params)
|
|
637
|
+
unless params['Instance'].nil?
|
|
638
|
+
@Instance = SandboxInstance.new
|
|
639
|
+
@Instance.deserialize(params['Instance'])
|
|
640
|
+
end
|
|
641
|
+
@RequestId = params['RequestId']
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
# StopSandboxInstance请求参数结构体
|
|
646
|
+
class StopSandboxInstanceRequest < TencentCloud::Common::AbstractModel
|
|
647
|
+
# @param InstanceId: 沙箱实例ID
|
|
648
|
+
# @type InstanceId: String
|
|
649
|
+
|
|
650
|
+
attr_accessor :InstanceId
|
|
651
|
+
|
|
652
|
+
def initialize(instanceid=nil)
|
|
653
|
+
@InstanceId = instanceid
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
def deserialize(params)
|
|
657
|
+
@InstanceId = params['InstanceId']
|
|
658
|
+
end
|
|
659
|
+
end
|
|
660
|
+
|
|
661
|
+
# StopSandboxInstance返回参数结构体
|
|
662
|
+
class StopSandboxInstanceResponse < TencentCloud::Common::AbstractModel
|
|
663
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
664
|
+
# @type RequestId: String
|
|
665
|
+
|
|
666
|
+
attr_accessor :RequestId
|
|
667
|
+
|
|
668
|
+
def initialize(requestid=nil)
|
|
669
|
+
@RequestId = requestid
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
def deserialize(params)
|
|
673
|
+
@RequestId = params['RequestId']
|
|
674
|
+
end
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
# 标签
|
|
678
|
+
class Tag < TencentCloud::Common::AbstractModel
|
|
679
|
+
# @param Key: 标签键
|
|
680
|
+
# @type Key: String
|
|
681
|
+
# @param Value: 标签值
|
|
682
|
+
# @type Value: String
|
|
683
|
+
|
|
684
|
+
attr_accessor :Key, :Value
|
|
685
|
+
|
|
686
|
+
def initialize(key=nil, value=nil)
|
|
687
|
+
@Key = key
|
|
688
|
+
@Value = value
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
def deserialize(params)
|
|
692
|
+
@Key = params['Key']
|
|
693
|
+
@Value = params['Value']
|
|
694
|
+
end
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
# UpdateSandboxInstance请求参数结构体
|
|
698
|
+
class UpdateSandboxInstanceRequest < TencentCloud::Common::AbstractModel
|
|
699
|
+
# @param InstanceId: 沙箱实例ID
|
|
700
|
+
# @type InstanceId: String
|
|
701
|
+
# @param Timeout: 新的超时时间(从设置时开始重新计算超时),支持格式:5m、300s、1h等。最小30s,最大24h。如果不指定则保持原有超时设置
|
|
702
|
+
# @type Timeout: String
|
|
703
|
+
|
|
704
|
+
attr_accessor :InstanceId, :Timeout
|
|
705
|
+
|
|
706
|
+
def initialize(instanceid=nil, timeout=nil)
|
|
707
|
+
@InstanceId = instanceid
|
|
708
|
+
@Timeout = timeout
|
|
709
|
+
end
|
|
710
|
+
|
|
711
|
+
def deserialize(params)
|
|
712
|
+
@InstanceId = params['InstanceId']
|
|
713
|
+
@Timeout = params['Timeout']
|
|
714
|
+
end
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
# UpdateSandboxInstance返回参数结构体
|
|
718
|
+
class UpdateSandboxInstanceResponse < TencentCloud::Common::AbstractModel
|
|
719
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
720
|
+
# @type RequestId: String
|
|
721
|
+
|
|
722
|
+
attr_accessor :RequestId
|
|
723
|
+
|
|
724
|
+
def initialize(requestid=nil)
|
|
725
|
+
@RequestId = requestid
|
|
726
|
+
end
|
|
727
|
+
|
|
728
|
+
def deserialize(params)
|
|
729
|
+
@RequestId = params['RequestId']
|
|
730
|
+
end
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# UpdateSandboxTool请求参数结构体
|
|
734
|
+
class UpdateSandboxToolRequest < TencentCloud::Common::AbstractModel
|
|
735
|
+
# @param ToolId: 沙箱工具ID
|
|
736
|
+
# @type ToolId: String
|
|
737
|
+
# @param Description: 沙箱工具描述,最大长度200字符
|
|
738
|
+
# @type Description: String
|
|
739
|
+
# @param NetworkConfiguration: 网络配置
|
|
740
|
+
# @type NetworkConfiguration: :class:`Tencentcloud::Ags.v20250920.models.NetworkConfiguration`
|
|
741
|
+
# @param Tags: 标签
|
|
742
|
+
# @type Tags: Array
|
|
743
|
+
|
|
744
|
+
attr_accessor :ToolId, :Description, :NetworkConfiguration, :Tags
|
|
745
|
+
|
|
746
|
+
def initialize(toolid=nil, description=nil, networkconfiguration=nil, tags=nil)
|
|
747
|
+
@ToolId = toolid
|
|
748
|
+
@Description = description
|
|
749
|
+
@NetworkConfiguration = networkconfiguration
|
|
750
|
+
@Tags = tags
|
|
751
|
+
end
|
|
752
|
+
|
|
753
|
+
def deserialize(params)
|
|
754
|
+
@ToolId = params['ToolId']
|
|
755
|
+
@Description = params['Description']
|
|
756
|
+
unless params['NetworkConfiguration'].nil?
|
|
757
|
+
@NetworkConfiguration = NetworkConfiguration.new
|
|
758
|
+
@NetworkConfiguration.deserialize(params['NetworkConfiguration'])
|
|
759
|
+
end
|
|
760
|
+
unless params['Tags'].nil?
|
|
761
|
+
@Tags = []
|
|
762
|
+
params['Tags'].each do |i|
|
|
763
|
+
tag_tmp = Tag.new
|
|
764
|
+
tag_tmp.deserialize(i)
|
|
765
|
+
@Tags << tag_tmp
|
|
766
|
+
end
|
|
767
|
+
end
|
|
768
|
+
end
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# UpdateSandboxTool返回参数结构体
|
|
772
|
+
class UpdateSandboxToolResponse < TencentCloud::Common::AbstractModel
|
|
773
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
774
|
+
# @type RequestId: String
|
|
775
|
+
|
|
776
|
+
attr_accessor :RequestId
|
|
777
|
+
|
|
778
|
+
def initialize(requestid=nil)
|
|
779
|
+
@RequestId = requestid
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
def deserialize(params)
|
|
783
|
+
@RequestId = params['RequestId']
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
end
|
|
788
|
+
end
|
|
789
|
+
end
|
|
790
|
+
|
metadata
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: tencentcloud-sdk-ags
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 3.0.1164
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Tencent Cloud
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2025-11-09 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: tencentcloud-sdk-common
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - ~>
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ~>
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
27
|
+
description: Tencent Cloud Ruby SDK is the official software development kit, which
|
|
28
|
+
allows Ruby developers to write software that makes use of Tencent Cloud service
|
|
29
|
+
AGS.
|
|
30
|
+
email:
|
|
31
|
+
- tencentcloudapi@tencent.com
|
|
32
|
+
executables: []
|
|
33
|
+
extensions: []
|
|
34
|
+
extra_rdoc_files: []
|
|
35
|
+
files:
|
|
36
|
+
- lib/v20250920/client.rb
|
|
37
|
+
- lib/v20250920/models.rb
|
|
38
|
+
- lib/tencentcloud-sdk-ags.rb
|
|
39
|
+
- lib/VERSION
|
|
40
|
+
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
|
+
licenses:
|
|
42
|
+
- Apache-2.0
|
|
43
|
+
metadata:
|
|
44
|
+
source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-ags
|
|
45
|
+
changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
|
|
46
|
+
post_install_message:
|
|
47
|
+
rdoc_options: []
|
|
48
|
+
require_paths:
|
|
49
|
+
- lib
|
|
50
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - '>='
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0'
|
|
55
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - '>='
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
requirements: []
|
|
61
|
+
rubyforge_project:
|
|
62
|
+
rubygems_version: 2.0.14
|
|
63
|
+
signing_key:
|
|
64
|
+
specification_version: 4
|
|
65
|
+
summary: Tencent Cloud SDK for Ruby - AGS
|
|
66
|
+
test_files: []
|