tencentcloud-sdk-tione 1.0.327 → 1.0.328

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.
@@ -0,0 +1,3759 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 Tione
19
+ module V20211111
20
+ # CFS存储的配置
21
+ class CFSConfig < TencentCloud::Common::AbstractModel
22
+ # @param Id: cfs的实例的ID
23
+ # @type Id: String
24
+ # @param Path: 存储的路径
25
+ # @type Path: String
26
+
27
+ attr_accessor :Id, :Path
28
+
29
+ def initialize(id=nil, path=nil)
30
+ @Id = id
31
+ @Path = path
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Id = params['Id']
36
+ @Path = params['Path']
37
+ end
38
+ end
39
+
40
+ # cos的路径信息
41
+ class CosPathInfo < TencentCloud::Common::AbstractModel
42
+ # @param Bucket: 存储桶
43
+ # 注意:此字段可能返回 null,表示取不到有效值。
44
+ # @type Bucket: String
45
+ # @param Region: 所在地域
46
+ # 注意:此字段可能返回 null,表示取不到有效值。
47
+ # @type Region: String
48
+ # @param Paths: 路径列表,目前只支持单个
49
+ # 注意:此字段可能返回 null,表示取不到有效值。
50
+ # @type Paths: Array
51
+
52
+ attr_accessor :Bucket, :Region, :Paths
53
+
54
+ def initialize(bucket=nil, region=nil, paths=nil)
55
+ @Bucket = bucket
56
+ @Region = region
57
+ @Paths = paths
58
+ end
59
+
60
+ def deserialize(params)
61
+ @Bucket = params['Bucket']
62
+ @Region = params['Region']
63
+ @Paths = params['Paths']
64
+ end
65
+ end
66
+
67
+ # CreateDataset请求参数结构体
68
+ class CreateDatasetRequest < TencentCloud::Common::AbstractModel
69
+ # @param DatasetName: 数据集名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头
70
+ # @type DatasetName: String
71
+ # @param DatasetType: 数据集类型:
72
+ # TYPE_DATASET_TEXT,文本
73
+ # TYPE_DATASET_IMAGE,图片
74
+ # TYPE_DATASET_TABLE,表格
75
+ # TYPE_DATASET_OTHER,其他
76
+ # @type DatasetType: String
77
+ # @param StorageDataPath: 数据源cos路径
78
+ # @type StorageDataPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
79
+ # @param StorageLabelPath: 数据集标签cos存储路径
80
+ # @type StorageLabelPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
81
+ # @param DatasetTags: 数据集标签
82
+ # @type DatasetTags: Array
83
+ # @param AnnotationStatus: 数据集标注状态:
84
+ # STATUS_NON_ANNOTATED,未标注
85
+ # STATUS_ANNOTATED,已标注
86
+ # @type AnnotationStatus: String
87
+ # @param AnnotationType: 标注类型:
88
+ # ANNOTATION_TYPE_CLASSIFICATION,图片分类
89
+ # ANNOTATION_TYPE_DETECTION,目标检测
90
+ # ANNOTATION_TYPE_SEGMENTATION,图片分割
91
+ # ANNOTATION_TYPE_TRACKING,目标跟踪
92
+ # @type AnnotationType: String
93
+ # @param AnnotationFormat: 标注格式:
94
+ # ANNOTATION_FORMAT_TI,TI平台格式
95
+ # ANNOTATION_FORMAT_PASCAL,Pascal Voc
96
+ # ANNOTATION_FORMAT_COCO,COCO
97
+ # ANNOTATION_FORMAT_FILE,文件目录结构
98
+ # @type AnnotationFormat: String
99
+ # @param SchemaInfos: 表头信息
100
+ # @type SchemaInfos: Array
101
+ # @param IsSchemaExisted: 数据是否存在表头
102
+ # @type IsSchemaExisted: Boolean
103
+
104
+ attr_accessor :DatasetName, :DatasetType, :StorageDataPath, :StorageLabelPath, :DatasetTags, :AnnotationStatus, :AnnotationType, :AnnotationFormat, :SchemaInfos, :IsSchemaExisted
105
+
106
+ def initialize(datasetname=nil, datasettype=nil, storagedatapath=nil, storagelabelpath=nil, datasettags=nil, annotationstatus=nil, annotationtype=nil, annotationformat=nil, schemainfos=nil, isschemaexisted=nil)
107
+ @DatasetName = datasetname
108
+ @DatasetType = datasettype
109
+ @StorageDataPath = storagedatapath
110
+ @StorageLabelPath = storagelabelpath
111
+ @DatasetTags = datasettags
112
+ @AnnotationStatus = annotationstatus
113
+ @AnnotationType = annotationtype
114
+ @AnnotationFormat = annotationformat
115
+ @SchemaInfos = schemainfos
116
+ @IsSchemaExisted = isschemaexisted
117
+ end
118
+
119
+ def deserialize(params)
120
+ @DatasetName = params['DatasetName']
121
+ @DatasetType = params['DatasetType']
122
+ unless params['StorageDataPath'].nil?
123
+ @StorageDataPath = CosPathInfo.new
124
+ @StorageDataPath.deserialize(params['StorageDataPath'])
125
+ end
126
+ unless params['StorageLabelPath'].nil?
127
+ @StorageLabelPath = CosPathInfo.new
128
+ @StorageLabelPath.deserialize(params['StorageLabelPath'])
129
+ end
130
+ unless params['DatasetTags'].nil?
131
+ @DatasetTags = []
132
+ params['DatasetTags'].each do |i|
133
+ tag_tmp = Tag.new
134
+ tag_tmp.deserialize(i)
135
+ @DatasetTags << tag_tmp
136
+ end
137
+ end
138
+ @AnnotationStatus = params['AnnotationStatus']
139
+ @AnnotationType = params['AnnotationType']
140
+ @AnnotationFormat = params['AnnotationFormat']
141
+ unless params['SchemaInfos'].nil?
142
+ @SchemaInfos = []
143
+ params['SchemaInfos'].each do |i|
144
+ schemainfo_tmp = SchemaInfo.new
145
+ schemainfo_tmp.deserialize(i)
146
+ @SchemaInfos << schemainfo_tmp
147
+ end
148
+ end
149
+ @IsSchemaExisted = params['IsSchemaExisted']
150
+ end
151
+ end
152
+
153
+ # CreateDataset返回参数结构体
154
+ class CreateDatasetResponse < TencentCloud::Common::AbstractModel
155
+ # @param DatasetId: 数据集ID
156
+ # 注意:此字段可能返回 null,表示取不到有效值。
157
+ # @type DatasetId: String
158
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
159
+ # @type RequestId: String
160
+
161
+ attr_accessor :DatasetId, :RequestId
162
+
163
+ def initialize(datasetid=nil, requestid=nil)
164
+ @DatasetId = datasetid
165
+ @RequestId = requestid
166
+ end
167
+
168
+ def deserialize(params)
169
+ @DatasetId = params['DatasetId']
170
+ @RequestId = params['RequestId']
171
+ end
172
+ end
173
+
174
+ # CreateTrainingModel请求参数结构体
175
+ class CreateTrainingModelRequest < TencentCloud::Common::AbstractModel
176
+ # @param ImportMethod: 导入方式(MODEL/VERSION)
177
+ # @type ImportMethod: String
178
+ # @param TrainingModelCosPath: 模型来源cos目录,以/结尾
179
+ # @type TrainingModelCosPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
180
+ # @param ReasoningEnvironmentSource: 推理环境来源(SYSTEM/CUSTOM)
181
+ # @type ReasoningEnvironmentSource: String
182
+ # @param TrainingModelName: 模型名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头
183
+ # @type TrainingModelName: String
184
+ # @param Tags: 标签配置
185
+ # @type Tags: Array
186
+ # @param TrainingJobName: 训练任务名称
187
+ # @type TrainingJobName: String
188
+ # @param AlgorithmFramework: 算法框架 (PYTORCH/TENSORFLOW/DETECTRON2/PMML)
189
+ # @type AlgorithmFramework: String
190
+ # @param ReasoningEnvironment: 推理环境
191
+ # @type ReasoningEnvironment: String
192
+ # @param TrainingModelIndex: 训练指标,最多支持1000字符
193
+ # @type TrainingModelIndex: String
194
+ # @param TrainingModelVersion: 模型版本
195
+ # @type TrainingModelVersion: String
196
+ # @param ReasoningImageInfo: 自定义推理环境
197
+ # @type ReasoningImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
198
+ # @param ModelMoveMode: 模型移动方式(CUT/COPY)
199
+ # @type ModelMoveMode: String
200
+ # @param TrainingJobId: 训练任务ID
201
+ # @type TrainingJobId: String
202
+ # @param TrainingModelId: 模型ID(导入新模型不需要,导入新版本需要)
203
+ # @type TrainingModelId: String
204
+ # @param ModelOutputPath: 模型存储cos目录
205
+ # @type ModelOutputPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
206
+ # @param TrainingModelSource: 模型来源 (JOB/COS/AUTO_ML)
207
+ # @type TrainingModelSource: String
208
+ # @param TrainingPreference: 模型偏好
209
+ # @type TrainingPreference: String
210
+ # @param AutoMLTaskId: 自动学习任务ID
211
+ # @type AutoMLTaskId: String
212
+ # @param TrainingJobVersion: 任务版本
213
+ # @type TrainingJobVersion: String
214
+ # @param ModelVersionType: 模型版本类型;
215
+ # 枚举值:NORMAL(通用) ACCELERATE(加速)
216
+ # 注意: 默认为NORMAL
217
+ # @type ModelVersionType: String
218
+ # @param ModelFormat: 模型格式 (PYTORCH/TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/PMML)
219
+ # @type ModelFormat: String
220
+
221
+ attr_accessor :ImportMethod, :TrainingModelCosPath, :ReasoningEnvironmentSource, :TrainingModelName, :Tags, :TrainingJobName, :AlgorithmFramework, :ReasoningEnvironment, :TrainingModelIndex, :TrainingModelVersion, :ReasoningImageInfo, :ModelMoveMode, :TrainingJobId, :TrainingModelId, :ModelOutputPath, :TrainingModelSource, :TrainingPreference, :AutoMLTaskId, :TrainingJobVersion, :ModelVersionType, :ModelFormat
222
+
223
+ def initialize(importmethod=nil, trainingmodelcospath=nil, reasoningenvironmentsource=nil, trainingmodelname=nil, tags=nil, trainingjobname=nil, algorithmframework=nil, reasoningenvironment=nil, trainingmodelindex=nil, trainingmodelversion=nil, reasoningimageinfo=nil, modelmovemode=nil, trainingjobid=nil, trainingmodelid=nil, modeloutputpath=nil, trainingmodelsource=nil, trainingpreference=nil, automltaskid=nil, trainingjobversion=nil, modelversiontype=nil, modelformat=nil)
224
+ @ImportMethod = importmethod
225
+ @TrainingModelCosPath = trainingmodelcospath
226
+ @ReasoningEnvironmentSource = reasoningenvironmentsource
227
+ @TrainingModelName = trainingmodelname
228
+ @Tags = tags
229
+ @TrainingJobName = trainingjobname
230
+ @AlgorithmFramework = algorithmframework
231
+ @ReasoningEnvironment = reasoningenvironment
232
+ @TrainingModelIndex = trainingmodelindex
233
+ @TrainingModelVersion = trainingmodelversion
234
+ @ReasoningImageInfo = reasoningimageinfo
235
+ @ModelMoveMode = modelmovemode
236
+ @TrainingJobId = trainingjobid
237
+ @TrainingModelId = trainingmodelid
238
+ @ModelOutputPath = modeloutputpath
239
+ @TrainingModelSource = trainingmodelsource
240
+ @TrainingPreference = trainingpreference
241
+ @AutoMLTaskId = automltaskid
242
+ @TrainingJobVersion = trainingjobversion
243
+ @ModelVersionType = modelversiontype
244
+ @ModelFormat = modelformat
245
+ end
246
+
247
+ def deserialize(params)
248
+ @ImportMethod = params['ImportMethod']
249
+ unless params['TrainingModelCosPath'].nil?
250
+ @TrainingModelCosPath = CosPathInfo.new
251
+ @TrainingModelCosPath.deserialize(params['TrainingModelCosPath'])
252
+ end
253
+ @ReasoningEnvironmentSource = params['ReasoningEnvironmentSource']
254
+ @TrainingModelName = params['TrainingModelName']
255
+ unless params['Tags'].nil?
256
+ @Tags = []
257
+ params['Tags'].each do |i|
258
+ tag_tmp = Tag.new
259
+ tag_tmp.deserialize(i)
260
+ @Tags << tag_tmp
261
+ end
262
+ end
263
+ @TrainingJobName = params['TrainingJobName']
264
+ @AlgorithmFramework = params['AlgorithmFramework']
265
+ @ReasoningEnvironment = params['ReasoningEnvironment']
266
+ @TrainingModelIndex = params['TrainingModelIndex']
267
+ @TrainingModelVersion = params['TrainingModelVersion']
268
+ unless params['ReasoningImageInfo'].nil?
269
+ @ReasoningImageInfo = ImageInfo.new
270
+ @ReasoningImageInfo.deserialize(params['ReasoningImageInfo'])
271
+ end
272
+ @ModelMoveMode = params['ModelMoveMode']
273
+ @TrainingJobId = params['TrainingJobId']
274
+ @TrainingModelId = params['TrainingModelId']
275
+ unless params['ModelOutputPath'].nil?
276
+ @ModelOutputPath = CosPathInfo.new
277
+ @ModelOutputPath.deserialize(params['ModelOutputPath'])
278
+ end
279
+ @TrainingModelSource = params['TrainingModelSource']
280
+ @TrainingPreference = params['TrainingPreference']
281
+ @AutoMLTaskId = params['AutoMLTaskId']
282
+ @TrainingJobVersion = params['TrainingJobVersion']
283
+ @ModelVersionType = params['ModelVersionType']
284
+ @ModelFormat = params['ModelFormat']
285
+ end
286
+ end
287
+
288
+ # CreateTrainingModel返回参数结构体
289
+ class CreateTrainingModelResponse < TencentCloud::Common::AbstractModel
290
+ # @param Id: 模型ID,TrainingModel ID
291
+ # @type Id: String
292
+ # @param TrainingModelVersionId: 模型版本ID
293
+ # @type TrainingModelVersionId: String
294
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
295
+ # @type RequestId: String
296
+
297
+ attr_accessor :Id, :TrainingModelVersionId, :RequestId
298
+
299
+ def initialize(id=nil, trainingmodelversionid=nil, requestid=nil)
300
+ @Id = id
301
+ @TrainingModelVersionId = trainingmodelversionid
302
+ @RequestId = requestid
303
+ end
304
+
305
+ def deserialize(params)
306
+ @Id = params['Id']
307
+ @TrainingModelVersionId = params['TrainingModelVersionId']
308
+ @RequestId = params['RequestId']
309
+ end
310
+ end
311
+
312
+ # CreateTrainingTask请求参数结构体
313
+ class CreateTrainingTaskRequest < TencentCloud::Common::AbstractModel
314
+ # @param Name: 训练任务名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头
315
+ # @type Name: String
316
+ # @param TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD
317
+ # @type TrainingMode: String
318
+ # @param ChargeType: 计费模式,eg:PREPAID预付费,即包年包月;POSTPAID_BY_HOUR按小时后付费
319
+ # @type ChargeType: String
320
+ # @param ResourceConfigInfos: 资源配置,需填写对应算力规格ID和节点数量,算力规格ID查询接口为DescribeBillingSpecsPrice,eg:[{"Role":"WORKER", "InstanceType": "TI.S.MEDIUM.POST", "InstanceNum": 1}]
321
+ # @type ResourceConfigInfos: Array
322
+ # @param CodePackagePath: COS代码包路径
323
+ # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
324
+ # @param Output: COS训练输出路径
325
+ # @type Output: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
326
+ # @param LogEnable: 是否上报日志
327
+ # @type LogEnable: Boolean
328
+ # @param FrameworkName: 训练框架名称,通过DescribeTrainingFrameworks接口查询,eg:SPARK、TENSORFLOW、PYTORCH、LIGHT
329
+ # @type FrameworkName: String
330
+ # @param FrameworkVersion: 训练框架版本,通过DescribeTrainingFrameworks接口查询,eg:1.15-py3.6-cpu、1.9-py3.6-cuda11.1-gpu
331
+ # @type FrameworkVersion: String
332
+ # @param ResourceGroupId: 预付费专用资源组ID,通过DescribeBillingResourceGroups接口查询
333
+ # @type ResourceGroupId: String
334
+ # @param Tags: 标签配置
335
+ # @type Tags: Array
336
+ # @param ImageInfo: 自定义镜像信息
337
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
338
+ # @param StartCmdInfo: 启动命令信息,默认为sh start.sh
339
+ # @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo`
340
+ # @param DataSource: 数据来源,eg:DATASET、COS、CFS、HDFS
341
+ # @type DataSource: String
342
+ # @param DataConfigs: 数据配置
343
+ # @type DataConfigs: Array
344
+ # @param VpcId: VPC Id
345
+ # @type VpcId: String
346
+ # @param SubnetId: 子网Id
347
+ # @type SubnetId: String
348
+ # @param LogConfig: CLS日志配置
349
+ # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig`
350
+ # @param TuningParameters: 调优参数
351
+ # @type TuningParameters: String
352
+ # @param Remark: 备注,最多500个字
353
+ # @type Remark: String
354
+
355
+ attr_accessor :Name, :TrainingMode, :ChargeType, :ResourceConfigInfos, :CodePackagePath, :Output, :LogEnable, :FrameworkName, :FrameworkVersion, :ResourceGroupId, :Tags, :ImageInfo, :StartCmdInfo, :DataSource, :DataConfigs, :VpcId, :SubnetId, :LogConfig, :TuningParameters, :Remark
356
+
357
+ def initialize(name=nil, trainingmode=nil, chargetype=nil, resourceconfiginfos=nil, codepackagepath=nil, output=nil, logenable=nil, frameworkname=nil, frameworkversion=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, startcmdinfo=nil, datasource=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, logconfig=nil, tuningparameters=nil, remark=nil)
358
+ @Name = name
359
+ @TrainingMode = trainingmode
360
+ @ChargeType = chargetype
361
+ @ResourceConfigInfos = resourceconfiginfos
362
+ @CodePackagePath = codepackagepath
363
+ @Output = output
364
+ @LogEnable = logenable
365
+ @FrameworkName = frameworkname
366
+ @FrameworkVersion = frameworkversion
367
+ @ResourceGroupId = resourcegroupid
368
+ @Tags = tags
369
+ @ImageInfo = imageinfo
370
+ @StartCmdInfo = startcmdinfo
371
+ @DataSource = datasource
372
+ @DataConfigs = dataconfigs
373
+ @VpcId = vpcid
374
+ @SubnetId = subnetid
375
+ @LogConfig = logconfig
376
+ @TuningParameters = tuningparameters
377
+ @Remark = remark
378
+ end
379
+
380
+ def deserialize(params)
381
+ @Name = params['Name']
382
+ @TrainingMode = params['TrainingMode']
383
+ @ChargeType = params['ChargeType']
384
+ unless params['ResourceConfigInfos'].nil?
385
+ @ResourceConfigInfos = []
386
+ params['ResourceConfigInfos'].each do |i|
387
+ resourceconfiginfo_tmp = ResourceConfigInfo.new
388
+ resourceconfiginfo_tmp.deserialize(i)
389
+ @ResourceConfigInfos << resourceconfiginfo_tmp
390
+ end
391
+ end
392
+ unless params['CodePackagePath'].nil?
393
+ @CodePackagePath = CosPathInfo.new
394
+ @CodePackagePath.deserialize(params['CodePackagePath'])
395
+ end
396
+ unless params['Output'].nil?
397
+ @Output = CosPathInfo.new
398
+ @Output.deserialize(params['Output'])
399
+ end
400
+ @LogEnable = params['LogEnable']
401
+ @FrameworkName = params['FrameworkName']
402
+ @FrameworkVersion = params['FrameworkVersion']
403
+ @ResourceGroupId = params['ResourceGroupId']
404
+ unless params['Tags'].nil?
405
+ @Tags = []
406
+ params['Tags'].each do |i|
407
+ tag_tmp = Tag.new
408
+ tag_tmp.deserialize(i)
409
+ @Tags << tag_tmp
410
+ end
411
+ end
412
+ unless params['ImageInfo'].nil?
413
+ @ImageInfo = ImageInfo.new
414
+ @ImageInfo.deserialize(params['ImageInfo'])
415
+ end
416
+ unless params['StartCmdInfo'].nil?
417
+ @StartCmdInfo = StartCmdInfo.new
418
+ @StartCmdInfo.deserialize(params['StartCmdInfo'])
419
+ end
420
+ @DataSource = params['DataSource']
421
+ unless params['DataConfigs'].nil?
422
+ @DataConfigs = []
423
+ params['DataConfigs'].each do |i|
424
+ dataconfig_tmp = DataConfig.new
425
+ dataconfig_tmp.deserialize(i)
426
+ @DataConfigs << dataconfig_tmp
427
+ end
428
+ end
429
+ @VpcId = params['VpcId']
430
+ @SubnetId = params['SubnetId']
431
+ unless params['LogConfig'].nil?
432
+ @LogConfig = LogConfig.new
433
+ @LogConfig.deserialize(params['LogConfig'])
434
+ end
435
+ @TuningParameters = params['TuningParameters']
436
+ @Remark = params['Remark']
437
+ end
438
+ end
439
+
440
+ # CreateTrainingTask返回参数结构体
441
+ class CreateTrainingTaskResponse < TencentCloud::Common::AbstractModel
442
+ # @param Id: 训练任务ID
443
+ # @type Id: String
444
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
445
+ # @type RequestId: String
446
+
447
+ attr_accessor :Id, :RequestId
448
+
449
+ def initialize(id=nil, requestid=nil)
450
+ @Id = id
451
+ @RequestId = requestid
452
+ end
453
+
454
+ def deserialize(params)
455
+ @Id = params['Id']
456
+ @RequestId = params['RequestId']
457
+ end
458
+ end
459
+
460
+ # 自定义指标
461
+ class CustomTrainingData < TencentCloud::Common::AbstractModel
462
+ # @param MetricName: 指标名
463
+ # 注意:此字段可能返回 null,表示取不到有效值。
464
+ # @type MetricName: String
465
+ # @param Metrics: 指标
466
+ # 注意:此字段可能返回 null,表示取不到有效值。
467
+ # @type Metrics: Array
468
+
469
+ attr_accessor :MetricName, :Metrics
470
+
471
+ def initialize(metricname=nil, metrics=nil)
472
+ @MetricName = metricname
473
+ @Metrics = metrics
474
+ end
475
+
476
+ def deserialize(params)
477
+ @MetricName = params['MetricName']
478
+ unless params['Metrics'].nil?
479
+ @Metrics = []
480
+ params['Metrics'].each do |i|
481
+ customtrainingmetric_tmp = CustomTrainingMetric.new
482
+ customtrainingmetric_tmp.deserialize(i)
483
+ @Metrics << customtrainingmetric_tmp
484
+ end
485
+ end
486
+ end
487
+ end
488
+
489
+ # 自定义指标
490
+ class CustomTrainingMetric < TencentCloud::Common::AbstractModel
491
+ # @param XType: X轴数据类型: TIMESTAMP; EPOCH; STEP
492
+ # @type XType: String
493
+ # @param Points: 数据点
494
+ # 注意:此字段可能返回 null,表示取不到有效值。
495
+ # @type Points: Array
496
+
497
+ attr_accessor :XType, :Points
498
+
499
+ def initialize(xtype=nil, points=nil)
500
+ @XType = xtype
501
+ @Points = points
502
+ end
503
+
504
+ def deserialize(params)
505
+ @XType = params['XType']
506
+ unless params['Points'].nil?
507
+ @Points = []
508
+ params['Points'].each do |i|
509
+ customtrainingpoint_tmp = CustomTrainingPoint.new
510
+ customtrainingpoint_tmp.deserialize(i)
511
+ @Points << customtrainingpoint_tmp
512
+ end
513
+ end
514
+ end
515
+ end
516
+
517
+ # 自定义训练指标数据点
518
+ class CustomTrainingPoint < TencentCloud::Common::AbstractModel
519
+ # @param XValue: X值
520
+ # @type XValue: Float
521
+ # @param YValue: Y值
522
+ # @type YValue: Float
523
+
524
+ attr_accessor :XValue, :YValue
525
+
526
+ def initialize(xvalue=nil, yvalue=nil)
527
+ @XValue = xvalue
528
+ @YValue = yvalue
529
+ end
530
+
531
+ def deserialize(params)
532
+ @XValue = params['XValue']
533
+ @YValue = params['YValue']
534
+ end
535
+ end
536
+
537
+ # 数据配置
538
+ class DataConfig < TencentCloud::Common::AbstractModel
539
+ # @param MappingPath: 映射路径
540
+ # @type MappingPath: String
541
+ # @param DataSourceType: DATASET、COS、CFS、HDFS
542
+ # 注意:此字段可能返回 null,表示取不到有效值。
543
+ # @type DataSourceType: String
544
+ # @param DataSetSource: 来自数据集的数据
545
+ # 注意:此字段可能返回 null,表示取不到有效值。
546
+ # @type DataSetSource: :class:`Tencentcloud::Tione.v20211111.models.DataSetConfig`
547
+ # @param COSSource: 来自cos的数据
548
+ # 注意:此字段可能返回 null,表示取不到有效值。
549
+ # @type COSSource: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
550
+ # @param CFSSource: 来自CFS的数据
551
+ # 注意:此字段可能返回 null,表示取不到有效值。
552
+ # @type CFSSource: :class:`Tencentcloud::Tione.v20211111.models.CFSConfig`
553
+ # @param HDFSSource: 来自HDFS的数据
554
+ # 注意:此字段可能返回 null,表示取不到有效值。
555
+ # @type HDFSSource: :class:`Tencentcloud::Tione.v20211111.models.HDFSConfig`
556
+
557
+ attr_accessor :MappingPath, :DataSourceType, :DataSetSource, :COSSource, :CFSSource, :HDFSSource
558
+
559
+ def initialize(mappingpath=nil, datasourcetype=nil, datasetsource=nil, cossource=nil, cfssource=nil, hdfssource=nil)
560
+ @MappingPath = mappingpath
561
+ @DataSourceType = datasourcetype
562
+ @DataSetSource = datasetsource
563
+ @COSSource = cossource
564
+ @CFSSource = cfssource
565
+ @HDFSSource = hdfssource
566
+ end
567
+
568
+ def deserialize(params)
569
+ @MappingPath = params['MappingPath']
570
+ @DataSourceType = params['DataSourceType']
571
+ unless params['DataSetSource'].nil?
572
+ @DataSetSource = DataSetConfig.new
573
+ @DataSetSource.deserialize(params['DataSetSource'])
574
+ end
575
+ unless params['COSSource'].nil?
576
+ @COSSource = CosPathInfo.new
577
+ @COSSource.deserialize(params['COSSource'])
578
+ end
579
+ unless params['CFSSource'].nil?
580
+ @CFSSource = CFSConfig.new
581
+ @CFSSource.deserialize(params['CFSSource'])
582
+ end
583
+ unless params['HDFSSource'].nil?
584
+ @HDFSSource = HDFSConfig.new
585
+ @HDFSSource.deserialize(params['HDFSSource'])
586
+ end
587
+ end
588
+ end
589
+
590
+ # 数据点
591
+ class DataPoint < TencentCloud::Common::AbstractModel
592
+ # @param Name: 指标名字
593
+ # @type Name: String
594
+ # @param Value: 值
595
+ # @type Value: Float
596
+
597
+ attr_accessor :Name, :Value
598
+
599
+ def initialize(name=nil, value=nil)
600
+ @Name = name
601
+ @Value = value
602
+ end
603
+
604
+ def deserialize(params)
605
+ @Name = params['Name']
606
+ @Value = params['Value']
607
+ end
608
+ end
609
+
610
+ # 数据集结构体
611
+ class DataSetConfig < TencentCloud::Common::AbstractModel
612
+ # @param Id: 数据集ID
613
+ # @type Id: String
614
+
615
+ attr_accessor :Id
616
+
617
+ def initialize(id=nil)
618
+ @Id = id
619
+ end
620
+
621
+ def deserialize(params)
622
+ @Id = params['Id']
623
+ end
624
+ end
625
+
626
+ # 数据集组
627
+ class DatasetGroup < TencentCloud::Common::AbstractModel
628
+ # @param DatasetId: 数据集ID
629
+ # 注意:此字段可能返回 null,表示取不到有效值。
630
+ # @type DatasetId: String
631
+ # @param DatasetName: 数据集名称
632
+ # 注意:此字段可能返回 null,表示取不到有效值。
633
+ # @type DatasetName: String
634
+ # @param Creator: 创建者
635
+ # 注意:此字段可能返回 null,表示取不到有效值。
636
+ # @type Creator: String
637
+ # @param DatasetVersion: 数据集版本
638
+ # 注意:此字段可能返回 null,表示取不到有效值。
639
+ # @type DatasetVersion: String
640
+ # @param DatasetType: 数据集类型
641
+ # 注意:此字段可能返回 null,表示取不到有效值。
642
+ # @type DatasetType: String
643
+ # @param DatasetTags: 数据集标签
644
+ # 注意:此字段可能返回 null,表示取不到有效值。
645
+ # @type DatasetTags: Array
646
+ # @param DatasetAnnotationTaskName: 数据集标注任务名称
647
+ # 注意:此字段可能返回 null,表示取不到有效值。
648
+ # @type DatasetAnnotationTaskName: String
649
+ # @param DatasetAnnotationTaskId: 数据集标注任务ID
650
+ # 注意:此字段可能返回 null,表示取不到有效值。
651
+ # @type DatasetAnnotationTaskId: String
652
+ # @param Process: 处理进度
653
+ # 注意:此字段可能返回 null,表示取不到有效值。
654
+ # @type Process: Integer
655
+ # @param DatasetStatus: 数据集状态
656
+ # 注意:此字段可能返回 null,表示取不到有效值。
657
+ # @type DatasetStatus: String
658
+ # @param ErrorMsg: 错误详情
659
+ # 注意:此字段可能返回 null,表示取不到有效值。
660
+ # @type ErrorMsg: String
661
+ # @param CreateTime: 创建时间
662
+ # 注意:此字段可能返回 null,表示取不到有效值。
663
+ # @type CreateTime: String
664
+ # @param UpdateTime: 更新时间
665
+ # 注意:此字段可能返回 null,表示取不到有效值。
666
+ # @type UpdateTime: String
667
+ # @param ExternalTaskType: 外部关联TASKType
668
+ # 注意:此字段可能返回 null,表示取不到有效值。
669
+ # @type ExternalTaskType: String
670
+ # @param DatasetSize: 数据集大小
671
+ # 注意:此字段可能返回 null,表示取不到有效值。
672
+ # @type DatasetSize: String
673
+ # @param FileNum: 数据集数据量
674
+ # 注意:此字段可能返回 null,表示取不到有效值。
675
+ # @type FileNum: Integer
676
+ # @param StorageDataPath: 数据集源COS路径
677
+ # 注意:此字段可能返回 null,表示取不到有效值。
678
+ # @type StorageDataPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
679
+ # @param StorageLabelPath: 数据集标签存储路径
680
+ # 注意:此字段可能返回 null,表示取不到有效值。
681
+ # @type StorageLabelPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
682
+ # @param DatasetVersions: 数据集版本聚合详情
683
+ # 注意:此字段可能返回 null,表示取不到有效值。
684
+ # @type DatasetVersions: Array
685
+ # @param AnnotationStatus: 数据集标注状态
686
+ # 注意:此字段可能返回 null,表示取不到有效值。
687
+ # @type AnnotationStatus: String
688
+ # @param AnnotationType: 数据集类型
689
+ # 注意:此字段可能返回 null,表示取不到有效值。
690
+ # @type AnnotationType: String
691
+ # @param AnnotationFormat: 数据集标注格式
692
+ # 注意:此字段可能返回 null,表示取不到有效值。
693
+ # @type AnnotationFormat: String
694
+ # @param DatasetScope: 数据集范围
695
+ # 注意:此字段可能返回 null,表示取不到有效值。
696
+ # @type DatasetScope: String
697
+
698
+ attr_accessor :DatasetId, :DatasetName, :Creator, :DatasetVersion, :DatasetType, :DatasetTags, :DatasetAnnotationTaskName, :DatasetAnnotationTaskId, :Process, :DatasetStatus, :ErrorMsg, :CreateTime, :UpdateTime, :ExternalTaskType, :DatasetSize, :FileNum, :StorageDataPath, :StorageLabelPath, :DatasetVersions, :AnnotationStatus, :AnnotationType, :AnnotationFormat, :DatasetScope
699
+
700
+ def initialize(datasetid=nil, datasetname=nil, creator=nil, datasetversion=nil, datasettype=nil, datasettags=nil, datasetannotationtaskname=nil, datasetannotationtaskid=nil, process=nil, datasetstatus=nil, errormsg=nil, createtime=nil, updatetime=nil, externaltasktype=nil, datasetsize=nil, filenum=nil, storagedatapath=nil, storagelabelpath=nil, datasetversions=nil, annotationstatus=nil, annotationtype=nil, annotationformat=nil, datasetscope=nil)
701
+ @DatasetId = datasetid
702
+ @DatasetName = datasetname
703
+ @Creator = creator
704
+ @DatasetVersion = datasetversion
705
+ @DatasetType = datasettype
706
+ @DatasetTags = datasettags
707
+ @DatasetAnnotationTaskName = datasetannotationtaskname
708
+ @DatasetAnnotationTaskId = datasetannotationtaskid
709
+ @Process = process
710
+ @DatasetStatus = datasetstatus
711
+ @ErrorMsg = errormsg
712
+ @CreateTime = createtime
713
+ @UpdateTime = updatetime
714
+ @ExternalTaskType = externaltasktype
715
+ @DatasetSize = datasetsize
716
+ @FileNum = filenum
717
+ @StorageDataPath = storagedatapath
718
+ @StorageLabelPath = storagelabelpath
719
+ @DatasetVersions = datasetversions
720
+ @AnnotationStatus = annotationstatus
721
+ @AnnotationType = annotationtype
722
+ @AnnotationFormat = annotationformat
723
+ @DatasetScope = datasetscope
724
+ end
725
+
726
+ def deserialize(params)
727
+ @DatasetId = params['DatasetId']
728
+ @DatasetName = params['DatasetName']
729
+ @Creator = params['Creator']
730
+ @DatasetVersion = params['DatasetVersion']
731
+ @DatasetType = params['DatasetType']
732
+ unless params['DatasetTags'].nil?
733
+ @DatasetTags = []
734
+ params['DatasetTags'].each do |i|
735
+ tag_tmp = Tag.new
736
+ tag_tmp.deserialize(i)
737
+ @DatasetTags << tag_tmp
738
+ end
739
+ end
740
+ @DatasetAnnotationTaskName = params['DatasetAnnotationTaskName']
741
+ @DatasetAnnotationTaskId = params['DatasetAnnotationTaskId']
742
+ @Process = params['Process']
743
+ @DatasetStatus = params['DatasetStatus']
744
+ @ErrorMsg = params['ErrorMsg']
745
+ @CreateTime = params['CreateTime']
746
+ @UpdateTime = params['UpdateTime']
747
+ @ExternalTaskType = params['ExternalTaskType']
748
+ @DatasetSize = params['DatasetSize']
749
+ @FileNum = params['FileNum']
750
+ unless params['StorageDataPath'].nil?
751
+ @StorageDataPath = CosPathInfo.new
752
+ @StorageDataPath.deserialize(params['StorageDataPath'])
753
+ end
754
+ unless params['StorageLabelPath'].nil?
755
+ @StorageLabelPath = CosPathInfo.new
756
+ @StorageLabelPath.deserialize(params['StorageLabelPath'])
757
+ end
758
+ unless params['DatasetVersions'].nil?
759
+ @DatasetVersions = []
760
+ params['DatasetVersions'].each do |i|
761
+ datasetinfo_tmp = DatasetInfo.new
762
+ datasetinfo_tmp.deserialize(i)
763
+ @DatasetVersions << datasetinfo_tmp
764
+ end
765
+ end
766
+ @AnnotationStatus = params['AnnotationStatus']
767
+ @AnnotationType = params['AnnotationType']
768
+ @AnnotationFormat = params['AnnotationFormat']
769
+ @DatasetScope = params['DatasetScope']
770
+ end
771
+ end
772
+
773
+ # 数据集详情
774
+ class DatasetInfo < TencentCloud::Common::AbstractModel
775
+ # @param DatasetId: 数据集id
776
+ # 注意:此字段可能返回 null,表示取不到有效值。
777
+ # @type DatasetId: String
778
+ # @param DatasetName: 数据集名称
779
+ # 注意:此字段可能返回 null,表示取不到有效值。
780
+ # @type DatasetName: String
781
+ # @param Creator: 数据集创建者
782
+ # 注意:此字段可能返回 null,表示取不到有效值。
783
+ # @type Creator: String
784
+ # @param DatasetVersion: 数据集版本
785
+ # 注意:此字段可能返回 null,表示取不到有效值。
786
+ # @type DatasetVersion: String
787
+ # @param DatasetType: 数据集类型
788
+ # 注意:此字段可能返回 null,表示取不到有效值。
789
+ # @type DatasetType: String
790
+ # @param DatasetTags: 数据集标签
791
+ # 注意:此字段可能返回 null,表示取不到有效值。
792
+ # @type DatasetTags: Array
793
+ # @param DatasetAnnotationTaskName: 数据集对应标注任务名称
794
+ # 注意:此字段可能返回 null,表示取不到有效值。
795
+ # @type DatasetAnnotationTaskName: String
796
+ # @param DatasetAnnotationTaskId: 数据集对应标注任务ID
797
+ # 注意:此字段可能返回 null,表示取不到有效值。
798
+ # @type DatasetAnnotationTaskId: String
799
+ # @param Process: 处理进度
800
+ # 注意:此字段可能返回 null,表示取不到有效值。
801
+ # @type Process: Integer
802
+ # @param DatasetStatus: 数据集状态
803
+ # 注意:此字段可能返回 null,表示取不到有效值。
804
+ # @type DatasetStatus: String
805
+ # @param ErrorMsg: 错误详情
806
+ # 注意:此字段可能返回 null,表示取不到有效值。
807
+ # @type ErrorMsg: String
808
+ # @param CreateTime: 数据集创建时间
809
+ # 注意:此字段可能返回 null,表示取不到有效值。
810
+ # @type CreateTime: String
811
+ # @param UpdateTime: 数据集更新时间
812
+ # 注意:此字段可能返回 null,表示取不到有效值。
813
+ # @type UpdateTime: String
814
+ # @param ExternalTaskType: 外部任务类型
815
+ # 注意:此字段可能返回 null,表示取不到有效值。
816
+ # @type ExternalTaskType: String
817
+ # @param DatasetSize: 数据集存储大小
818
+ # 注意:此字段可能返回 null,表示取不到有效值。
819
+ # @type DatasetSize: String
820
+ # @param FileNum: 数据集数据数量
821
+ # 注意:此字段可能返回 null,表示取不到有效值。
822
+ # @type FileNum: Integer
823
+ # @param StorageDataPath: 数据集源cos 路径
824
+ # 注意:此字段可能返回 null,表示取不到有效值。
825
+ # @type StorageDataPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
826
+ # @param StorageLabelPath: 数据集输出cos路径
827
+ # 注意:此字段可能返回 null,表示取不到有效值。
828
+ # @type StorageLabelPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
829
+ # @param AnnotationStatus: 数据集标注状态
830
+ # 注意:此字段可能返回 null,表示取不到有效值。
831
+ # @type AnnotationStatus: String
832
+ # @param AnnotationType: 数据集类型
833
+ # 注意:此字段可能返回 null,表示取不到有效值。
834
+ # @type AnnotationType: String
835
+ # @param AnnotationFormat: 数据集标注格式
836
+ # 注意:此字段可能返回 null,表示取不到有效值。
837
+ # @type AnnotationFormat: String
838
+ # @param DatasetScope: 数据集范围
839
+ # 注意:此字段可能返回 null,表示取不到有效值。
840
+ # @type DatasetScope: String
841
+
842
+ attr_accessor :DatasetId, :DatasetName, :Creator, :DatasetVersion, :DatasetType, :DatasetTags, :DatasetAnnotationTaskName, :DatasetAnnotationTaskId, :Process, :DatasetStatus, :ErrorMsg, :CreateTime, :UpdateTime, :ExternalTaskType, :DatasetSize, :FileNum, :StorageDataPath, :StorageLabelPath, :AnnotationStatus, :AnnotationType, :AnnotationFormat, :DatasetScope
843
+
844
+ def initialize(datasetid=nil, datasetname=nil, creator=nil, datasetversion=nil, datasettype=nil, datasettags=nil, datasetannotationtaskname=nil, datasetannotationtaskid=nil, process=nil, datasetstatus=nil, errormsg=nil, createtime=nil, updatetime=nil, externaltasktype=nil, datasetsize=nil, filenum=nil, storagedatapath=nil, storagelabelpath=nil, annotationstatus=nil, annotationtype=nil, annotationformat=nil, datasetscope=nil)
845
+ @DatasetId = datasetid
846
+ @DatasetName = datasetname
847
+ @Creator = creator
848
+ @DatasetVersion = datasetversion
849
+ @DatasetType = datasettype
850
+ @DatasetTags = datasettags
851
+ @DatasetAnnotationTaskName = datasetannotationtaskname
852
+ @DatasetAnnotationTaskId = datasetannotationtaskid
853
+ @Process = process
854
+ @DatasetStatus = datasetstatus
855
+ @ErrorMsg = errormsg
856
+ @CreateTime = createtime
857
+ @UpdateTime = updatetime
858
+ @ExternalTaskType = externaltasktype
859
+ @DatasetSize = datasetsize
860
+ @FileNum = filenum
861
+ @StorageDataPath = storagedatapath
862
+ @StorageLabelPath = storagelabelpath
863
+ @AnnotationStatus = annotationstatus
864
+ @AnnotationType = annotationtype
865
+ @AnnotationFormat = annotationformat
866
+ @DatasetScope = datasetscope
867
+ end
868
+
869
+ def deserialize(params)
870
+ @DatasetId = params['DatasetId']
871
+ @DatasetName = params['DatasetName']
872
+ @Creator = params['Creator']
873
+ @DatasetVersion = params['DatasetVersion']
874
+ @DatasetType = params['DatasetType']
875
+ unless params['DatasetTags'].nil?
876
+ @DatasetTags = []
877
+ params['DatasetTags'].each do |i|
878
+ tag_tmp = Tag.new
879
+ tag_tmp.deserialize(i)
880
+ @DatasetTags << tag_tmp
881
+ end
882
+ end
883
+ @DatasetAnnotationTaskName = params['DatasetAnnotationTaskName']
884
+ @DatasetAnnotationTaskId = params['DatasetAnnotationTaskId']
885
+ @Process = params['Process']
886
+ @DatasetStatus = params['DatasetStatus']
887
+ @ErrorMsg = params['ErrorMsg']
888
+ @CreateTime = params['CreateTime']
889
+ @UpdateTime = params['UpdateTime']
890
+ @ExternalTaskType = params['ExternalTaskType']
891
+ @DatasetSize = params['DatasetSize']
892
+ @FileNum = params['FileNum']
893
+ unless params['StorageDataPath'].nil?
894
+ @StorageDataPath = CosPathInfo.new
895
+ @StorageDataPath.deserialize(params['StorageDataPath'])
896
+ end
897
+ unless params['StorageLabelPath'].nil?
898
+ @StorageLabelPath = CosPathInfo.new
899
+ @StorageLabelPath.deserialize(params['StorageLabelPath'])
900
+ end
901
+ @AnnotationStatus = params['AnnotationStatus']
902
+ @AnnotationType = params['AnnotationType']
903
+ @AnnotationFormat = params['AnnotationFormat']
904
+ @DatasetScope = params['DatasetScope']
905
+ end
906
+ end
907
+
908
+ # DeleteDataset请求参数结构体
909
+ class DeleteDatasetRequest < TencentCloud::Common::AbstractModel
910
+ # @param DatasetId: 数据集id
911
+ # @type DatasetId: String
912
+ # @param DeleteLabelEnable: 是否删除cos标签文件
913
+ # @type DeleteLabelEnable: Boolean
914
+
915
+ attr_accessor :DatasetId, :DeleteLabelEnable
916
+
917
+ def initialize(datasetid=nil, deletelabelenable=nil)
918
+ @DatasetId = datasetid
919
+ @DeleteLabelEnable = deletelabelenable
920
+ end
921
+
922
+ def deserialize(params)
923
+ @DatasetId = params['DatasetId']
924
+ @DeleteLabelEnable = params['DeleteLabelEnable']
925
+ end
926
+ end
927
+
928
+ # DeleteDataset返回参数结构体
929
+ class DeleteDatasetResponse < TencentCloud::Common::AbstractModel
930
+ # @param DatasetId: 删除的datasetId
931
+ # @type DatasetId: String
932
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
933
+ # @type RequestId: String
934
+
935
+ attr_accessor :DatasetId, :RequestId
936
+
937
+ def initialize(datasetid=nil, requestid=nil)
938
+ @DatasetId = datasetid
939
+ @RequestId = requestid
940
+ end
941
+
942
+ def deserialize(params)
943
+ @DatasetId = params['DatasetId']
944
+ @RequestId = params['RequestId']
945
+ end
946
+ end
947
+
948
+ # DeleteTrainingModel请求参数结构体
949
+ class DeleteTrainingModelRequest < TencentCloud::Common::AbstractModel
950
+ # @param TrainingModelId: 模型ID
951
+ # @type TrainingModelId: String
952
+
953
+ attr_accessor :TrainingModelId
954
+
955
+ def initialize(trainingmodelid=nil)
956
+ @TrainingModelId = trainingmodelid
957
+ end
958
+
959
+ def deserialize(params)
960
+ @TrainingModelId = params['TrainingModelId']
961
+ end
962
+ end
963
+
964
+ # DeleteTrainingModel返回参数结构体
965
+ class DeleteTrainingModelResponse < TencentCloud::Common::AbstractModel
966
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
967
+ # @type RequestId: String
968
+
969
+ attr_accessor :RequestId
970
+
971
+ def initialize(requestid=nil)
972
+ @RequestId = requestid
973
+ end
974
+
975
+ def deserialize(params)
976
+ @RequestId = params['RequestId']
977
+ end
978
+ end
979
+
980
+ # DeleteTrainingModelVersion请求参数结构体
981
+ class DeleteTrainingModelVersionRequest < TencentCloud::Common::AbstractModel
982
+ # @param TrainingModelVersionId: 模型版本ID
983
+ # @type TrainingModelVersionId: String
984
+
985
+ attr_accessor :TrainingModelVersionId
986
+
987
+ def initialize(trainingmodelversionid=nil)
988
+ @TrainingModelVersionId = trainingmodelversionid
989
+ end
990
+
991
+ def deserialize(params)
992
+ @TrainingModelVersionId = params['TrainingModelVersionId']
993
+ end
994
+ end
995
+
996
+ # DeleteTrainingModelVersion返回参数结构体
997
+ class DeleteTrainingModelVersionResponse < TencentCloud::Common::AbstractModel
998
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
999
+ # @type RequestId: String
1000
+
1001
+ attr_accessor :RequestId
1002
+
1003
+ def initialize(requestid=nil)
1004
+ @RequestId = requestid
1005
+ end
1006
+
1007
+ def deserialize(params)
1008
+ @RequestId = params['RequestId']
1009
+ end
1010
+ end
1011
+
1012
+ # DeleteTrainingTask请求参数结构体
1013
+ class DeleteTrainingTaskRequest < TencentCloud::Common::AbstractModel
1014
+ # @param Id: 训练任务ID
1015
+ # @type Id: String
1016
+
1017
+ attr_accessor :Id
1018
+
1019
+ def initialize(id=nil)
1020
+ @Id = id
1021
+ end
1022
+
1023
+ def deserialize(params)
1024
+ @Id = params['Id']
1025
+ end
1026
+ end
1027
+
1028
+ # DeleteTrainingTask返回参数结构体
1029
+ class DeleteTrainingTaskResponse < TencentCloud::Common::AbstractModel
1030
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1031
+ # @type RequestId: String
1032
+
1033
+ attr_accessor :RequestId
1034
+
1035
+ def initialize(requestid=nil)
1036
+ @RequestId = requestid
1037
+ end
1038
+
1039
+ def deserialize(params)
1040
+ @RequestId = params['RequestId']
1041
+ end
1042
+ end
1043
+
1044
+ # DescribeBillingResourceGroups请求参数结构体
1045
+ class DescribeBillingResourceGroupsRequest < TencentCloud::Common::AbstractModel
1046
+ # @param Type: 资源组类型; 枚举值 TRAIN:训练 INFERENCE:推理
1047
+ # @type Type: String
1048
+ # @param Filters: Filter.Name: 枚举值: ResourceGroupId (资源组id列表)
1049
+ # ResourceGroupName (资源组名称列表)
1050
+ # Filter.Values: 长度为1且Filter.Fuzzy=true时,支持模糊查询; 不为1时,精确查询
1051
+ # 每次请求的Filters的上限为5,Filter.Values的上限为100
1052
+ # @type Filters: Array
1053
+ # @param TagFilters: 标签过滤
1054
+ # @type TagFilters: Array
1055
+ # @param Offset: 偏移量,默认为0;分页查询起始位置,如:Limit为100,第一页Offset为0,第二页OffSet为100....即每页左边为闭区间
1056
+ # @type Offset: Integer
1057
+ # @param Limit: 返回数量,默认为20,最大值为30;
1058
+ # 注意:小于0则默认为20;大于30则默认为30
1059
+ # @type Limit: Integer
1060
+ # @param SearchWord: 支持模糊查找资源组id和资源组名
1061
+ # @type SearchWord: String
1062
+ # @param DontShowInstanceSet: 是否不展示节点列表;
1063
+ # true: 不展示,false 展示;
1064
+ # 默认为false
1065
+ # @type DontShowInstanceSet: Boolean
1066
+
1067
+ attr_accessor :Type, :Filters, :TagFilters, :Offset, :Limit, :SearchWord, :DontShowInstanceSet
1068
+
1069
+ def initialize(type=nil, filters=nil, tagfilters=nil, offset=nil, limit=nil, searchword=nil, dontshowinstanceset=nil)
1070
+ @Type = type
1071
+ @Filters = filters
1072
+ @TagFilters = tagfilters
1073
+ @Offset = offset
1074
+ @Limit = limit
1075
+ @SearchWord = searchword
1076
+ @DontShowInstanceSet = dontshowinstanceset
1077
+ end
1078
+
1079
+ def deserialize(params)
1080
+ @Type = params['Type']
1081
+ unless params['Filters'].nil?
1082
+ @Filters = []
1083
+ params['Filters'].each do |i|
1084
+ filter_tmp = Filter.new
1085
+ filter_tmp.deserialize(i)
1086
+ @Filters << filter_tmp
1087
+ end
1088
+ end
1089
+ unless params['TagFilters'].nil?
1090
+ @TagFilters = []
1091
+ params['TagFilters'].each do |i|
1092
+ tagfilter_tmp = TagFilter.new
1093
+ tagfilter_tmp.deserialize(i)
1094
+ @TagFilters << tagfilter_tmp
1095
+ end
1096
+ end
1097
+ @Offset = params['Offset']
1098
+ @Limit = params['Limit']
1099
+ @SearchWord = params['SearchWord']
1100
+ @DontShowInstanceSet = params['DontShowInstanceSet']
1101
+ end
1102
+ end
1103
+
1104
+ # DescribeBillingResourceGroups返回参数结构体
1105
+ class DescribeBillingResourceGroupsResponse < TencentCloud::Common::AbstractModel
1106
+ # @param TotalCount: 资源组总数; 注意接口是分页拉取的,total是指资源组总数,不是本次返回中ResourceGroupSet数组的大小
1107
+ # @type TotalCount: Integer
1108
+ # @param ResourceGroupSet: 资源组详情
1109
+ # 注意:此字段可能返回 null,表示取不到有效值。
1110
+ # @type ResourceGroupSet: Array
1111
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1112
+ # @type RequestId: String
1113
+
1114
+ attr_accessor :TotalCount, :ResourceGroupSet, :RequestId
1115
+
1116
+ def initialize(totalcount=nil, resourcegroupset=nil, requestid=nil)
1117
+ @TotalCount = totalcount
1118
+ @ResourceGroupSet = resourcegroupset
1119
+ @RequestId = requestid
1120
+ end
1121
+
1122
+ def deserialize(params)
1123
+ @TotalCount = params['TotalCount']
1124
+ unless params['ResourceGroupSet'].nil?
1125
+ @ResourceGroupSet = []
1126
+ params['ResourceGroupSet'].each do |i|
1127
+ resourcegroup_tmp = ResourceGroup.new
1128
+ resourcegroup_tmp.deserialize(i)
1129
+ @ResourceGroupSet << resourcegroup_tmp
1130
+ end
1131
+ end
1132
+ @RequestId = params['RequestId']
1133
+ end
1134
+ end
1135
+
1136
+ # DescribeBillingSpecsPrice请求参数结构体
1137
+ class DescribeBillingSpecsPriceRequest < TencentCloud::Common::AbstractModel
1138
+ # @param SpecsParam: 询价参数,支持批量询价
1139
+ # @type SpecsParam: Array
1140
+
1141
+ attr_accessor :SpecsParam
1142
+
1143
+ def initialize(specsparam=nil)
1144
+ @SpecsParam = specsparam
1145
+ end
1146
+
1147
+ def deserialize(params)
1148
+ unless params['SpecsParam'].nil?
1149
+ @SpecsParam = []
1150
+ params['SpecsParam'].each do |i|
1151
+ specunit_tmp = SpecUnit.new
1152
+ specunit_tmp.deserialize(i)
1153
+ @SpecsParam << specunit_tmp
1154
+ end
1155
+ end
1156
+ end
1157
+ end
1158
+
1159
+ # DescribeBillingSpecsPrice返回参数结构体
1160
+ class DescribeBillingSpecsPriceResponse < TencentCloud::Common::AbstractModel
1161
+ # @param SpecsPrice: 计费项价格,支持批量返回
1162
+ # @type SpecsPrice: Array
1163
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1164
+ # @type RequestId: String
1165
+
1166
+ attr_accessor :SpecsPrice, :RequestId
1167
+
1168
+ def initialize(specsprice=nil, requestid=nil)
1169
+ @SpecsPrice = specsprice
1170
+ @RequestId = requestid
1171
+ end
1172
+
1173
+ def deserialize(params)
1174
+ unless params['SpecsPrice'].nil?
1175
+ @SpecsPrice = []
1176
+ params['SpecsPrice'].each do |i|
1177
+ specprice_tmp = SpecPrice.new
1178
+ specprice_tmp.deserialize(i)
1179
+ @SpecsPrice << specprice_tmp
1180
+ end
1181
+ end
1182
+ @RequestId = params['RequestId']
1183
+ end
1184
+ end
1185
+
1186
+ # DescribeDatasetDetailStructured请求参数结构体
1187
+ class DescribeDatasetDetailStructuredRequest < TencentCloud::Common::AbstractModel
1188
+ # @param DatasetId: 数据集ID
1189
+ # @type DatasetId: String
1190
+ # @param Offset: 偏移值
1191
+ # @type Offset: Integer
1192
+ # @param Limit: 返回数据条数,默认20,目前最大支持2000条数据
1193
+ # @type Limit: Integer
1194
+
1195
+ attr_accessor :DatasetId, :Offset, :Limit
1196
+
1197
+ def initialize(datasetid=nil, offset=nil, limit=nil)
1198
+ @DatasetId = datasetid
1199
+ @Offset = offset
1200
+ @Limit = limit
1201
+ end
1202
+
1203
+ def deserialize(params)
1204
+ @DatasetId = params['DatasetId']
1205
+ @Offset = params['Offset']
1206
+ @Limit = params['Limit']
1207
+ end
1208
+ end
1209
+
1210
+ # DescribeDatasetDetailStructured返回参数结构体
1211
+ class DescribeDatasetDetailStructuredResponse < TencentCloud::Common::AbstractModel
1212
+ # @param TotalCount: 数据总数
1213
+ # 注意:此字段可能返回 null,表示取不到有效值。
1214
+ # @type TotalCount: Integer
1215
+ # @param ColumnNames: 表格头信息
1216
+ # 注意:此字段可能返回 null,表示取不到有效值。
1217
+ # @type ColumnNames: Array
1218
+ # @param RowItems: 表格内容
1219
+ # 注意:此字段可能返回 null,表示取不到有效值。
1220
+ # @type RowItems: Array
1221
+ # @param RowTexts: 文本内容
1222
+ # 注意:此字段可能返回 null,表示取不到有效值。
1223
+ # @type RowTexts: Array
1224
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1225
+ # @type RequestId: String
1226
+
1227
+ attr_accessor :TotalCount, :ColumnNames, :RowItems, :RowTexts, :RequestId
1228
+
1229
+ def initialize(totalcount=nil, columnnames=nil, rowitems=nil, rowtexts=nil, requestid=nil)
1230
+ @TotalCount = totalcount
1231
+ @ColumnNames = columnnames
1232
+ @RowItems = rowitems
1233
+ @RowTexts = rowtexts
1234
+ @RequestId = requestid
1235
+ end
1236
+
1237
+ def deserialize(params)
1238
+ @TotalCount = params['TotalCount']
1239
+ @ColumnNames = params['ColumnNames']
1240
+ unless params['RowItems'].nil?
1241
+ @RowItems = []
1242
+ params['RowItems'].each do |i|
1243
+ rowitem_tmp = RowItem.new
1244
+ rowitem_tmp.deserialize(i)
1245
+ @RowItems << rowitem_tmp
1246
+ end
1247
+ end
1248
+ @RowTexts = params['RowTexts']
1249
+ @RequestId = params['RequestId']
1250
+ end
1251
+ end
1252
+
1253
+ # DescribeDatasetDetailUnstructured请求参数结构体
1254
+ class DescribeDatasetDetailUnstructuredRequest < TencentCloud::Common::AbstractModel
1255
+ # @param DatasetId: 数据集ID
1256
+ # @type DatasetId: String
1257
+ # @param Offset: 偏移量
1258
+ # @type Offset: Integer
1259
+ # @param Limit: 返回个数,默认20,目前最大支持2000条数据
1260
+ # @type Limit: Integer
1261
+ # @param LabelList: 标签过滤参数,对应标签值
1262
+ # @type LabelList: Array
1263
+ # @param AnnotationStatus: 标注状态过滤参数:
1264
+ # STATUS_ANNOTATED,已标注
1265
+ # STATUS_NON_ANNOTATED,未标注
1266
+ # STATUS_ALL,全部
1267
+ # 默认为STATUS_ALL
1268
+ # @type AnnotationStatus: String
1269
+ # @param DatasetIds: 数据集ID列表
1270
+ # @type DatasetIds: Array
1271
+
1272
+ attr_accessor :DatasetId, :Offset, :Limit, :LabelList, :AnnotationStatus, :DatasetIds
1273
+
1274
+ def initialize(datasetid=nil, offset=nil, limit=nil, labellist=nil, annotationstatus=nil, datasetids=nil)
1275
+ @DatasetId = datasetid
1276
+ @Offset = offset
1277
+ @Limit = limit
1278
+ @LabelList = labellist
1279
+ @AnnotationStatus = annotationstatus
1280
+ @DatasetIds = datasetids
1281
+ end
1282
+
1283
+ def deserialize(params)
1284
+ @DatasetId = params['DatasetId']
1285
+ @Offset = params['Offset']
1286
+ @Limit = params['Limit']
1287
+ @LabelList = params['LabelList']
1288
+ @AnnotationStatus = params['AnnotationStatus']
1289
+ @DatasetIds = params['DatasetIds']
1290
+ end
1291
+ end
1292
+
1293
+ # DescribeDatasetDetailUnstructured返回参数结构体
1294
+ class DescribeDatasetDetailUnstructuredResponse < TencentCloud::Common::AbstractModel
1295
+ # @param AnnotatedTotalCount: 已标注数据量
1296
+ # 注意:此字段可能返回 null,表示取不到有效值。
1297
+ # @type AnnotatedTotalCount: Integer
1298
+ # @param NonAnnotatedTotalCount: 没有标注数据量
1299
+ # 注意:此字段可能返回 null,表示取不到有效值。
1300
+ # @type NonAnnotatedTotalCount: Integer
1301
+ # @param FilterTotalCount: 过滤数据总量
1302
+ # 注意:此字段可能返回 null,表示取不到有效值。
1303
+ # @type FilterTotalCount: Integer
1304
+ # @param FilterLabelList: 过滤数据详情
1305
+ # 注意:此字段可能返回 null,表示取不到有效值。
1306
+ # @type FilterLabelList: Array
1307
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1308
+ # @type RequestId: String
1309
+
1310
+ attr_accessor :AnnotatedTotalCount, :NonAnnotatedTotalCount, :FilterTotalCount, :FilterLabelList, :RequestId
1311
+
1312
+ def initialize(annotatedtotalcount=nil, nonannotatedtotalcount=nil, filtertotalcount=nil, filterlabellist=nil, requestid=nil)
1313
+ @AnnotatedTotalCount = annotatedtotalcount
1314
+ @NonAnnotatedTotalCount = nonannotatedtotalcount
1315
+ @FilterTotalCount = filtertotalcount
1316
+ @FilterLabelList = filterlabellist
1317
+ @RequestId = requestid
1318
+ end
1319
+
1320
+ def deserialize(params)
1321
+ @AnnotatedTotalCount = params['AnnotatedTotalCount']
1322
+ @NonAnnotatedTotalCount = params['NonAnnotatedTotalCount']
1323
+ @FilterTotalCount = params['FilterTotalCount']
1324
+ unless params['FilterLabelList'].nil?
1325
+ @FilterLabelList = []
1326
+ params['FilterLabelList'].each do |i|
1327
+ filterlabelinfo_tmp = FilterLabelInfo.new
1328
+ filterlabelinfo_tmp.deserialize(i)
1329
+ @FilterLabelList << filterlabelinfo_tmp
1330
+ end
1331
+ end
1332
+ @RequestId = params['RequestId']
1333
+ end
1334
+ end
1335
+
1336
+ # DescribeDatasets请求参数结构体
1337
+ class DescribeDatasetsRequest < TencentCloud::Common::AbstractModel
1338
+ # @param DatasetIds: 数据集id列表
1339
+ # @type DatasetIds: Array
1340
+ # @param Filters: 数据集查询过滤条件,多个Filter之间的关系为逻辑与(AND)关系,过滤字段Filter.Name,类型为String
1341
+ # DatasetName,数据集名称
1342
+ # DatasetScope,数据集范围,SCOPE_DATASET_PRIVATE或SCOPE_DATASET_PUBLIC
1343
+ # @type Filters: Array
1344
+ # @param TagFilters: 标签过滤条件
1345
+ # @type TagFilters: Array
1346
+ # @param Order: 排序值,支持Asc或Desc,默认Desc
1347
+ # @type Order: String
1348
+ # @param OrderField: 排序字段,支持CreateTime或UpdateTime,默认CreateTime
1349
+ # @type OrderField: String
1350
+ # @param Offset: 偏移值
1351
+ # @type Offset: Integer
1352
+ # @param Limit: 返回数据个数,默认20,最大支持200
1353
+ # @type Limit: Integer
1354
+
1355
+ attr_accessor :DatasetIds, :Filters, :TagFilters, :Order, :OrderField, :Offset, :Limit
1356
+
1357
+ def initialize(datasetids=nil, filters=nil, tagfilters=nil, order=nil, orderfield=nil, offset=nil, limit=nil)
1358
+ @DatasetIds = datasetids
1359
+ @Filters = filters
1360
+ @TagFilters = tagfilters
1361
+ @Order = order
1362
+ @OrderField = orderfield
1363
+ @Offset = offset
1364
+ @Limit = limit
1365
+ end
1366
+
1367
+ def deserialize(params)
1368
+ @DatasetIds = params['DatasetIds']
1369
+ unless params['Filters'].nil?
1370
+ @Filters = []
1371
+ params['Filters'].each do |i|
1372
+ filter_tmp = Filter.new
1373
+ filter_tmp.deserialize(i)
1374
+ @Filters << filter_tmp
1375
+ end
1376
+ end
1377
+ unless params['TagFilters'].nil?
1378
+ @TagFilters = []
1379
+ params['TagFilters'].each do |i|
1380
+ tagfilter_tmp = TagFilter.new
1381
+ tagfilter_tmp.deserialize(i)
1382
+ @TagFilters << tagfilter_tmp
1383
+ end
1384
+ end
1385
+ @Order = params['Order']
1386
+ @OrderField = params['OrderField']
1387
+ @Offset = params['Offset']
1388
+ @Limit = params['Limit']
1389
+ end
1390
+ end
1391
+
1392
+ # DescribeDatasets返回参数结构体
1393
+ class DescribeDatasetsResponse < TencentCloud::Common::AbstractModel
1394
+ # @param TotalCount: 数据集总量(名称维度)
1395
+ # 注意:此字段可能返回 null,表示取不到有效值。
1396
+ # @type TotalCount: Integer
1397
+ # @param DatasetGroups: 数据集按照数据集名称聚合的分组
1398
+ # 注意:此字段可能返回 null,表示取不到有效值。
1399
+ # @type DatasetGroups: Array
1400
+ # @param DatasetIdNums: 数据集ID总量
1401
+ # 注意:此字段可能返回 null,表示取不到有效值。
1402
+ # @type DatasetIdNums: Integer
1403
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1404
+ # @type RequestId: String
1405
+
1406
+ attr_accessor :TotalCount, :DatasetGroups, :DatasetIdNums, :RequestId
1407
+
1408
+ def initialize(totalcount=nil, datasetgroups=nil, datasetidnums=nil, requestid=nil)
1409
+ @TotalCount = totalcount
1410
+ @DatasetGroups = datasetgroups
1411
+ @DatasetIdNums = datasetidnums
1412
+ @RequestId = requestid
1413
+ end
1414
+
1415
+ def deserialize(params)
1416
+ @TotalCount = params['TotalCount']
1417
+ unless params['DatasetGroups'].nil?
1418
+ @DatasetGroups = []
1419
+ params['DatasetGroups'].each do |i|
1420
+ datasetgroup_tmp = DatasetGroup.new
1421
+ datasetgroup_tmp.deserialize(i)
1422
+ @DatasetGroups << datasetgroup_tmp
1423
+ end
1424
+ end
1425
+ @DatasetIdNums = params['DatasetIdNums']
1426
+ @RequestId = params['RequestId']
1427
+ end
1428
+ end
1429
+
1430
+ # DescribeInferTemplates请求参数结构体
1431
+ class DescribeInferTemplatesRequest < TencentCloud::Common::AbstractModel
1432
+
1433
+
1434
+ def initialize()
1435
+ end
1436
+
1437
+ def deserialize(params)
1438
+ end
1439
+ end
1440
+
1441
+ # DescribeInferTemplates返回参数结构体
1442
+ class DescribeInferTemplatesResponse < TencentCloud::Common::AbstractModel
1443
+ # @param FrameworkTemplates: 模板列表
1444
+ # 注意:此字段可能返回 null,表示取不到有效值。
1445
+ # @type FrameworkTemplates: Array
1446
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1447
+ # @type RequestId: String
1448
+
1449
+ attr_accessor :FrameworkTemplates, :RequestId
1450
+
1451
+ def initialize(frameworktemplates=nil, requestid=nil)
1452
+ @FrameworkTemplates = frameworktemplates
1453
+ @RequestId = requestid
1454
+ end
1455
+
1456
+ def deserialize(params)
1457
+ unless params['FrameworkTemplates'].nil?
1458
+ @FrameworkTemplates = []
1459
+ params['FrameworkTemplates'].each do |i|
1460
+ infertemplategroup_tmp = InferTemplateGroup.new
1461
+ infertemplategroup_tmp.deserialize(i)
1462
+ @FrameworkTemplates << infertemplategroup_tmp
1463
+ end
1464
+ end
1465
+ @RequestId = params['RequestId']
1466
+ end
1467
+ end
1468
+
1469
+ # DescribeLatestTrainingMetrics请求参数结构体
1470
+ class DescribeLatestTrainingMetricsRequest < TencentCloud::Common::AbstractModel
1471
+ # @param TaskId: 任务ID
1472
+ # @type TaskId: String
1473
+
1474
+ attr_accessor :TaskId
1475
+
1476
+ def initialize(taskid=nil)
1477
+ @TaskId = taskid
1478
+ end
1479
+
1480
+ def deserialize(params)
1481
+ @TaskId = params['TaskId']
1482
+ end
1483
+ end
1484
+
1485
+ # DescribeLatestTrainingMetrics返回参数结构体
1486
+ class DescribeLatestTrainingMetricsResponse < TencentCloud::Common::AbstractModel
1487
+ # @param TaskId: 任务ID
1488
+ # 注意:此字段可能返回 null,表示取不到有效值。
1489
+ # @type TaskId: String
1490
+ # @param Metrics: 最近一次上报的训练指标.每个Metric中只有一个点的数据, 即len(Values) = len(Timestamps) = 1
1491
+ # 注意:此字段可能返回 null,表示取不到有效值。
1492
+ # @type Metrics: Array
1493
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1494
+ # @type RequestId: String
1495
+
1496
+ attr_accessor :TaskId, :Metrics, :RequestId
1497
+
1498
+ def initialize(taskid=nil, metrics=nil, requestid=nil)
1499
+ @TaskId = taskid
1500
+ @Metrics = metrics
1501
+ @RequestId = requestid
1502
+ end
1503
+
1504
+ def deserialize(params)
1505
+ @TaskId = params['TaskId']
1506
+ unless params['Metrics'].nil?
1507
+ @Metrics = []
1508
+ params['Metrics'].each do |i|
1509
+ trainingmetric_tmp = TrainingMetric.new
1510
+ trainingmetric_tmp.deserialize(i)
1511
+ @Metrics << trainingmetric_tmp
1512
+ end
1513
+ end
1514
+ @RequestId = params['RequestId']
1515
+ end
1516
+ end
1517
+
1518
+ # DescribeLogs请求参数结构体
1519
+ class DescribeLogsRequest < TencentCloud::Common::AbstractModel
1520
+ # @param Service: 查询哪个服务的事件(可选值为TRAIN, NOTEBOOK, INFER)
1521
+ # @type Service: String
1522
+ # @param PodName: 查询哪个Pod的日志(支持结尾通配符*)
1523
+ # @type PodName: String
1524
+ # @param StartTime: 日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时
1525
+ # @type StartTime: String
1526
+ # @param EndTime: 日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间
1527
+ # @type EndTime: String
1528
+ # @param Limit: 日志查询条数,默认值100,最大值100
1529
+ # @type Limit: Integer
1530
+ # @param Order: 排序方向(可选值为ASC, DESC ),默认为DESC
1531
+ # @type Order: String
1532
+ # @param OrderField: 按哪个字段排序(可选值为Timestamp),默认值为Timestamp
1533
+ # @type OrderField: String
1534
+ # @param Context: 日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回
1535
+ # @type Context: String
1536
+ # @param Filters: 过滤条件
1537
+ # 注意:
1538
+ # 1. Filter.Name:目前只支持Key(也就是按关键字过滤日志)
1539
+ # 2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足
1540
+ # 3. Filter. Negative和Filter. Fuzzy没有使用
1541
+ # @type Filters: Array
1542
+
1543
+ attr_accessor :Service, :PodName, :StartTime, :EndTime, :Limit, :Order, :OrderField, :Context, :Filters
1544
+
1545
+ def initialize(service=nil, podname=nil, starttime=nil, endtime=nil, limit=nil, order=nil, orderfield=nil, context=nil, filters=nil)
1546
+ @Service = service
1547
+ @PodName = podname
1548
+ @StartTime = starttime
1549
+ @EndTime = endtime
1550
+ @Limit = limit
1551
+ @Order = order
1552
+ @OrderField = orderfield
1553
+ @Context = context
1554
+ @Filters = filters
1555
+ end
1556
+
1557
+ def deserialize(params)
1558
+ @Service = params['Service']
1559
+ @PodName = params['PodName']
1560
+ @StartTime = params['StartTime']
1561
+ @EndTime = params['EndTime']
1562
+ @Limit = params['Limit']
1563
+ @Order = params['Order']
1564
+ @OrderField = params['OrderField']
1565
+ @Context = params['Context']
1566
+ unless params['Filters'].nil?
1567
+ @Filters = []
1568
+ params['Filters'].each do |i|
1569
+ filter_tmp = Filter.new
1570
+ filter_tmp.deserialize(i)
1571
+ @Filters << filter_tmp
1572
+ end
1573
+ end
1574
+ end
1575
+ end
1576
+
1577
+ # DescribeLogs返回参数结构体
1578
+ class DescribeLogsResponse < TencentCloud::Common::AbstractModel
1579
+ # @param Context: 分页的游标
1580
+ # 注意:此字段可能返回 null,表示取不到有效值。
1581
+ # @type Context: String
1582
+ # @param Content: 日志数组
1583
+ # 注意:此字段可能返回 null,表示取不到有效值。
1584
+ # @type Content: Array
1585
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1586
+ # @type RequestId: String
1587
+
1588
+ attr_accessor :Context, :Content, :RequestId
1589
+
1590
+ def initialize(context=nil, content=nil, requestid=nil)
1591
+ @Context = context
1592
+ @Content = content
1593
+ @RequestId = requestid
1594
+ end
1595
+
1596
+ def deserialize(params)
1597
+ @Context = params['Context']
1598
+ unless params['Content'].nil?
1599
+ @Content = []
1600
+ params['Content'].each do |i|
1601
+ logidentity_tmp = LogIdentity.new
1602
+ logidentity_tmp.deserialize(i)
1603
+ @Content << logidentity_tmp
1604
+ end
1605
+ end
1606
+ @RequestId = params['RequestId']
1607
+ end
1608
+ end
1609
+
1610
+ # DescribeTrainingFrameworks请求参数结构体
1611
+ class DescribeTrainingFrameworksRequest < TencentCloud::Common::AbstractModel
1612
+
1613
+
1614
+ def initialize()
1615
+ end
1616
+
1617
+ def deserialize(params)
1618
+ end
1619
+ end
1620
+
1621
+ # DescribeTrainingFrameworks返回参数结构体
1622
+ class DescribeTrainingFrameworksResponse < TencentCloud::Common::AbstractModel
1623
+ # @param FrameworkInfos: 框架信息列表
1624
+ # @type FrameworkInfos: Array
1625
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1626
+ # @type RequestId: String
1627
+
1628
+ attr_accessor :FrameworkInfos, :RequestId
1629
+
1630
+ def initialize(frameworkinfos=nil, requestid=nil)
1631
+ @FrameworkInfos = frameworkinfos
1632
+ @RequestId = requestid
1633
+ end
1634
+
1635
+ def deserialize(params)
1636
+ unless params['FrameworkInfos'].nil?
1637
+ @FrameworkInfos = []
1638
+ params['FrameworkInfos'].each do |i|
1639
+ frameworkinfo_tmp = FrameworkInfo.new
1640
+ frameworkinfo_tmp.deserialize(i)
1641
+ @FrameworkInfos << frameworkinfo_tmp
1642
+ end
1643
+ end
1644
+ @RequestId = params['RequestId']
1645
+ end
1646
+ end
1647
+
1648
+ # DescribeTrainingMetrics请求参数结构体
1649
+ class DescribeTrainingMetricsRequest < TencentCloud::Common::AbstractModel
1650
+ # @param TaskId: 任务ID
1651
+ # @type TaskId: String
1652
+
1653
+ attr_accessor :TaskId
1654
+
1655
+ def initialize(taskid=nil)
1656
+ @TaskId = taskid
1657
+ end
1658
+
1659
+ def deserialize(params)
1660
+ @TaskId = params['TaskId']
1661
+ end
1662
+ end
1663
+
1664
+ # DescribeTrainingMetrics返回参数结构体
1665
+ class DescribeTrainingMetricsResponse < TencentCloud::Common::AbstractModel
1666
+ # @param TaskId: 任务ID
1667
+ # 注意:此字段可能返回 null,表示取不到有效值。
1668
+ # @type TaskId: String
1669
+ # @param Data: 训练指标数据
1670
+ # 注意:此字段可能返回 null,表示取不到有效值。
1671
+ # @type Data: Array
1672
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1673
+ # @type RequestId: String
1674
+
1675
+ attr_accessor :TaskId, :Data, :RequestId
1676
+
1677
+ def initialize(taskid=nil, data=nil, requestid=nil)
1678
+ @TaskId = taskid
1679
+ @Data = data
1680
+ @RequestId = requestid
1681
+ end
1682
+
1683
+ def deserialize(params)
1684
+ @TaskId = params['TaskId']
1685
+ unless params['Data'].nil?
1686
+ @Data = []
1687
+ params['Data'].each do |i|
1688
+ customtrainingdata_tmp = CustomTrainingData.new
1689
+ customtrainingdata_tmp.deserialize(i)
1690
+ @Data << customtrainingdata_tmp
1691
+ end
1692
+ end
1693
+ @RequestId = params['RequestId']
1694
+ end
1695
+ end
1696
+
1697
+ # DescribeTrainingModelVersion请求参数结构体
1698
+ class DescribeTrainingModelVersionRequest < TencentCloud::Common::AbstractModel
1699
+ # @param TrainingModelVersionId: 模型版本ID
1700
+ # @type TrainingModelVersionId: String
1701
+
1702
+ attr_accessor :TrainingModelVersionId
1703
+
1704
+ def initialize(trainingmodelversionid=nil)
1705
+ @TrainingModelVersionId = trainingmodelversionid
1706
+ end
1707
+
1708
+ def deserialize(params)
1709
+ @TrainingModelVersionId = params['TrainingModelVersionId']
1710
+ end
1711
+ end
1712
+
1713
+ # DescribeTrainingModelVersion返回参数结构体
1714
+ class DescribeTrainingModelVersionResponse < TencentCloud::Common::AbstractModel
1715
+ # @param TrainingModelVersion: 模型版本
1716
+ # @type TrainingModelVersion: :class:`Tencentcloud::Tione.v20211111.models.TrainingModelVersionDTO`
1717
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1718
+ # @type RequestId: String
1719
+
1720
+ attr_accessor :TrainingModelVersion, :RequestId
1721
+
1722
+ def initialize(trainingmodelversion=nil, requestid=nil)
1723
+ @TrainingModelVersion = trainingmodelversion
1724
+ @RequestId = requestid
1725
+ end
1726
+
1727
+ def deserialize(params)
1728
+ unless params['TrainingModelVersion'].nil?
1729
+ @TrainingModelVersion = TrainingModelVersionDTO.new
1730
+ @TrainingModelVersion.deserialize(params['TrainingModelVersion'])
1731
+ end
1732
+ @RequestId = params['RequestId']
1733
+ end
1734
+ end
1735
+
1736
+ # DescribeTrainingModelVersions请求参数结构体
1737
+ class DescribeTrainingModelVersionsRequest < TencentCloud::Common::AbstractModel
1738
+ # @param TrainingModelId: 模型ID
1739
+ # @type TrainingModelId: String
1740
+ # @param Filters: 过滤条件
1741
+ # Filter.Name: 枚举值:
1742
+ # TrainingModelVersionId (模型版本ID)
1743
+ # ModelVersionType (模型版本类型) 其值支持: NORMAL(通用) ACCELERATE (加速)
1744
+ # ModelFormat(模型格式)其值Filter.Values支持:
1745
+ # TORCH_SCRIPT/PYTORCH/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/PMML
1746
+ # AlgorithmFramework (算法框架) 其值Filter.Values支持:TENSORFLOW/PYTORCH/DETECTRON2
1747
+ # Filter.Values: 当长度为1时,支持模糊查询; 不为1时,精确查询
1748
+ # 每次请求的Filters的上限为10,Filter.Values的上限为100
1749
+ # @type Filters: Array
1750
+
1751
+ attr_accessor :TrainingModelId, :Filters
1752
+
1753
+ def initialize(trainingmodelid=nil, filters=nil)
1754
+ @TrainingModelId = trainingmodelid
1755
+ @Filters = filters
1756
+ end
1757
+
1758
+ def deserialize(params)
1759
+ @TrainingModelId = params['TrainingModelId']
1760
+ unless params['Filters'].nil?
1761
+ @Filters = []
1762
+ params['Filters'].each do |i|
1763
+ filter_tmp = Filter.new
1764
+ filter_tmp.deserialize(i)
1765
+ @Filters << filter_tmp
1766
+ end
1767
+ end
1768
+ end
1769
+ end
1770
+
1771
+ # DescribeTrainingModelVersions返回参数结构体
1772
+ class DescribeTrainingModelVersionsResponse < TencentCloud::Common::AbstractModel
1773
+ # @param TrainingModelVersions: 模型版本列表
1774
+ # @type TrainingModelVersions: Array
1775
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1776
+ # @type RequestId: String
1777
+
1778
+ attr_accessor :TrainingModelVersions, :RequestId
1779
+
1780
+ def initialize(trainingmodelversions=nil, requestid=nil)
1781
+ @TrainingModelVersions = trainingmodelversions
1782
+ @RequestId = requestid
1783
+ end
1784
+
1785
+ def deserialize(params)
1786
+ unless params['TrainingModelVersions'].nil?
1787
+ @TrainingModelVersions = []
1788
+ params['TrainingModelVersions'].each do |i|
1789
+ trainingmodelversiondto_tmp = TrainingModelVersionDTO.new
1790
+ trainingmodelversiondto_tmp.deserialize(i)
1791
+ @TrainingModelVersions << trainingmodelversiondto_tmp
1792
+ end
1793
+ end
1794
+ @RequestId = params['RequestId']
1795
+ end
1796
+ end
1797
+
1798
+ # DescribeTrainingModels请求参数结构体
1799
+ class DescribeTrainingModelsRequest < TencentCloud::Common::AbstractModel
1800
+ # @param Filters: 过滤器
1801
+ # Filter.Name: 枚举值:
1802
+ # keyword (模型名称)
1803
+ # TrainingModelId (模型ID)
1804
+ # ModelVersionType (模型版本类型) 其值Filter.Values支持: NORMAL(通用) ACCELERATE (加速)
1805
+ # TrainingModelSource (模型来源) 其值Filter.Values支持: JOB/COS/AUTO_ML
1806
+ # AlgorithmFramework (算法框架) 其值Filter.Values支持:TENSORFLOW/PYTORCH/DETECTRON2
1807
+ # ModelFormat(模型格式)其值Filter.Values支持:
1808
+ # TORCH_SCRIPT/PYTORCH/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/PMML
1809
+ # Filter.Values: 当长度为1时,支持模糊查询; 不为1时,精确查询
1810
+ # 每次请求的Filters的上限为10,Filter.Values的上限为100
1811
+ # Filter.Fuzzy取值:true/false,是否支持模糊匹配
1812
+ # @type Filters: Array
1813
+ # @param OrderField: 排序字段,默认CreateTime
1814
+ # @type OrderField: String
1815
+ # @param Order: 排序方式,ASC/DESC,默认DESC
1816
+ # @type Order: String
1817
+ # @param Offset: 偏移量
1818
+ # @type Offset: Integer
1819
+ # @param Limit: 返回结果数量
1820
+ # @type Limit: Integer
1821
+ # @param TagFilters: 标签过滤
1822
+ # @type TagFilters: Array
1823
+
1824
+ attr_accessor :Filters, :OrderField, :Order, :Offset, :Limit, :TagFilters
1825
+
1826
+ def initialize(filters=nil, orderfield=nil, order=nil, offset=nil, limit=nil, tagfilters=nil)
1827
+ @Filters = filters
1828
+ @OrderField = orderfield
1829
+ @Order = order
1830
+ @Offset = offset
1831
+ @Limit = limit
1832
+ @TagFilters = tagfilters
1833
+ end
1834
+
1835
+ def deserialize(params)
1836
+ unless params['Filters'].nil?
1837
+ @Filters = []
1838
+ params['Filters'].each do |i|
1839
+ filter_tmp = Filter.new
1840
+ filter_tmp.deserialize(i)
1841
+ @Filters << filter_tmp
1842
+ end
1843
+ end
1844
+ @OrderField = params['OrderField']
1845
+ @Order = params['Order']
1846
+ @Offset = params['Offset']
1847
+ @Limit = params['Limit']
1848
+ unless params['TagFilters'].nil?
1849
+ @TagFilters = []
1850
+ params['TagFilters'].each do |i|
1851
+ tagfilter_tmp = TagFilter.new
1852
+ tagfilter_tmp.deserialize(i)
1853
+ @TagFilters << tagfilter_tmp
1854
+ end
1855
+ end
1856
+ end
1857
+ end
1858
+
1859
+ # DescribeTrainingModels返回参数结构体
1860
+ class DescribeTrainingModelsResponse < TencentCloud::Common::AbstractModel
1861
+ # @param TrainingModels: 模型列表
1862
+ # @type TrainingModels: Array
1863
+ # @param TotalCount: 模型总数
1864
+ # @type TotalCount: Integer
1865
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1866
+ # @type RequestId: String
1867
+
1868
+ attr_accessor :TrainingModels, :TotalCount, :RequestId
1869
+
1870
+ def initialize(trainingmodels=nil, totalcount=nil, requestid=nil)
1871
+ @TrainingModels = trainingmodels
1872
+ @TotalCount = totalcount
1873
+ @RequestId = requestid
1874
+ end
1875
+
1876
+ def deserialize(params)
1877
+ unless params['TrainingModels'].nil?
1878
+ @TrainingModels = []
1879
+ params['TrainingModels'].each do |i|
1880
+ trainingmodeldto_tmp = TrainingModelDTO.new
1881
+ trainingmodeldto_tmp.deserialize(i)
1882
+ @TrainingModels << trainingmodeldto_tmp
1883
+ end
1884
+ end
1885
+ @TotalCount = params['TotalCount']
1886
+ @RequestId = params['RequestId']
1887
+ end
1888
+ end
1889
+
1890
+ # DescribeTrainingTaskPods请求参数结构体
1891
+ class DescribeTrainingTaskPodsRequest < TencentCloud::Common::AbstractModel
1892
+ # @param Id: 训练任务ID
1893
+ # @type Id: String
1894
+
1895
+ attr_accessor :Id
1896
+
1897
+ def initialize(id=nil)
1898
+ @Id = id
1899
+ end
1900
+
1901
+ def deserialize(params)
1902
+ @Id = params['Id']
1903
+ end
1904
+ end
1905
+
1906
+ # DescribeTrainingTaskPods返回参数结构体
1907
+ class DescribeTrainingTaskPodsResponse < TencentCloud::Common::AbstractModel
1908
+ # @param PodNames: pod名称列表
1909
+ # @type PodNames: Array
1910
+ # @param TotalCount: 数量
1911
+ # @type TotalCount: Integer
1912
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1913
+ # @type RequestId: String
1914
+
1915
+ attr_accessor :PodNames, :TotalCount, :RequestId
1916
+
1917
+ def initialize(podnames=nil, totalcount=nil, requestid=nil)
1918
+ @PodNames = podnames
1919
+ @TotalCount = totalcount
1920
+ @RequestId = requestid
1921
+ end
1922
+
1923
+ def deserialize(params)
1924
+ @PodNames = params['PodNames']
1925
+ @TotalCount = params['TotalCount']
1926
+ @RequestId = params['RequestId']
1927
+ end
1928
+ end
1929
+
1930
+ # DescribeTrainingTask请求参数结构体
1931
+ class DescribeTrainingTaskRequest < TencentCloud::Common::AbstractModel
1932
+ # @param Id: 训练任务ID
1933
+ # @type Id: String
1934
+
1935
+ attr_accessor :Id
1936
+
1937
+ def initialize(id=nil)
1938
+ @Id = id
1939
+ end
1940
+
1941
+ def deserialize(params)
1942
+ @Id = params['Id']
1943
+ end
1944
+ end
1945
+
1946
+ # DescribeTrainingTask返回参数结构体
1947
+ class DescribeTrainingTaskResponse < TencentCloud::Common::AbstractModel
1948
+ # @param TrainingTaskDetail: 训练任务详情
1949
+ # @type TrainingTaskDetail: :class:`Tencentcloud::Tione.v20211111.models.TrainingTaskDetail`
1950
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1951
+ # @type RequestId: String
1952
+
1953
+ attr_accessor :TrainingTaskDetail, :RequestId
1954
+
1955
+ def initialize(trainingtaskdetail=nil, requestid=nil)
1956
+ @TrainingTaskDetail = trainingtaskdetail
1957
+ @RequestId = requestid
1958
+ end
1959
+
1960
+ def deserialize(params)
1961
+ unless params['TrainingTaskDetail'].nil?
1962
+ @TrainingTaskDetail = TrainingTaskDetail.new
1963
+ @TrainingTaskDetail.deserialize(params['TrainingTaskDetail'])
1964
+ end
1965
+ @RequestId = params['RequestId']
1966
+ end
1967
+ end
1968
+
1969
+ # DescribeTrainingTasks请求参数结构体
1970
+ class DescribeTrainingTasksRequest < TencentCloud::Common::AbstractModel
1971
+ # @param Filters: 过滤器,eg:[{ "Name": "Id", "Values": ["train-23091792777383936"] }]
1972
+
1973
+ # 取值范围:
1974
+ # Name(名称):task1
1975
+ # Id(task ID):train-23091792777383936
1976
+ # Status(状态):STARTING / RUNNING / STOPPING / STOPPED / FAILED / SUCCEED / SUBMIT_FAILED
1977
+ # ChargeType(计费类型):PREPAID(预付费)/ POSTPAID_BY_HOUR(后付费)
1978
+ # CHARGE_STATUS(计费状态):NOT_BILLING(未开始计费)/ BILLING(计费中)/ ARREARS_STOP(欠费停止)
1979
+ # @type Filters: Array
1980
+ # @param TagFilters: 标签过滤器,eg:[{ "TagKey": "TagKeyA", "TagValue": ["TagValueA"] }]
1981
+ # @type TagFilters: Array
1982
+ # @param Offset: 偏移量,默认为0
1983
+ # @type Offset: Integer
1984
+ # @param Limit: 返回数量,默认为10,最大为50
1985
+ # @type Limit: Integer
1986
+ # @param Order: 输出列表的排列顺序。取值范围:ASC(升序排列)/ DESC(降序排列),默认为DESC
1987
+ # @type Order: String
1988
+ # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime"
1989
+ # @type OrderField: String
1990
+
1991
+ attr_accessor :Filters, :TagFilters, :Offset, :Limit, :Order, :OrderField
1992
+
1993
+ def initialize(filters=nil, tagfilters=nil, offset=nil, limit=nil, order=nil, orderfield=nil)
1994
+ @Filters = filters
1995
+ @TagFilters = tagfilters
1996
+ @Offset = offset
1997
+ @Limit = limit
1998
+ @Order = order
1999
+ @OrderField = orderfield
2000
+ end
2001
+
2002
+ def deserialize(params)
2003
+ unless params['Filters'].nil?
2004
+ @Filters = []
2005
+ params['Filters'].each do |i|
2006
+ filter_tmp = Filter.new
2007
+ filter_tmp.deserialize(i)
2008
+ @Filters << filter_tmp
2009
+ end
2010
+ end
2011
+ unless params['TagFilters'].nil?
2012
+ @TagFilters = []
2013
+ params['TagFilters'].each do |i|
2014
+ tagfilter_tmp = TagFilter.new
2015
+ tagfilter_tmp.deserialize(i)
2016
+ @TagFilters << tagfilter_tmp
2017
+ end
2018
+ end
2019
+ @Offset = params['Offset']
2020
+ @Limit = params['Limit']
2021
+ @Order = params['Order']
2022
+ @OrderField = params['OrderField']
2023
+ end
2024
+ end
2025
+
2026
+ # DescribeTrainingTasks返回参数结构体
2027
+ class DescribeTrainingTasksResponse < TencentCloud::Common::AbstractModel
2028
+ # @param TrainingTaskSet: 训练任务集
2029
+ # @type TrainingTaskSet: Array
2030
+ # @param TotalCount: 数量
2031
+ # @type TotalCount: Integer
2032
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2033
+ # @type RequestId: String
2034
+
2035
+ attr_accessor :TrainingTaskSet, :TotalCount, :RequestId
2036
+
2037
+ def initialize(trainingtaskset=nil, totalcount=nil, requestid=nil)
2038
+ @TrainingTaskSet = trainingtaskset
2039
+ @TotalCount = totalcount
2040
+ @RequestId = requestid
2041
+ end
2042
+
2043
+ def deserialize(params)
2044
+ unless params['TrainingTaskSet'].nil?
2045
+ @TrainingTaskSet = []
2046
+ params['TrainingTaskSet'].each do |i|
2047
+ trainingtasksetitem_tmp = TrainingTaskSetItem.new
2048
+ trainingtasksetitem_tmp.deserialize(i)
2049
+ @TrainingTaskSet << trainingtasksetitem_tmp
2050
+ end
2051
+ end
2052
+ @TotalCount = params['TotalCount']
2053
+ @RequestId = params['RequestId']
2054
+ end
2055
+ end
2056
+
2057
+ # 图像检测参数信息
2058
+ class DetectionLabelInfo < TencentCloud::Common::AbstractModel
2059
+ # @param Points: 点坐标列表
2060
+ # 注意:此字段可能返回 null,表示取不到有效值。
2061
+ # @type Points: Array
2062
+ # @param Labels: 标签
2063
+ # 注意:此字段可能返回 null,表示取不到有效值。
2064
+ # @type Labels: Array
2065
+ # @param FrameType: 类别
2066
+ # 注意:此字段可能返回 null,表示取不到有效值。
2067
+ # @type FrameType: String
2068
+
2069
+ attr_accessor :Points, :Labels, :FrameType
2070
+
2071
+ def initialize(points=nil, labels=nil, frametype=nil)
2072
+ @Points = points
2073
+ @Labels = labels
2074
+ @FrameType = frametype
2075
+ end
2076
+
2077
+ def deserialize(params)
2078
+ unless params['Points'].nil?
2079
+ @Points = []
2080
+ params['Points'].each do |i|
2081
+ pointinfo_tmp = PointInfo.new
2082
+ pointinfo_tmp.deserialize(i)
2083
+ @Points << pointinfo_tmp
2084
+ end
2085
+ end
2086
+ @Labels = params['Labels']
2087
+ @FrameType = params['FrameType']
2088
+ end
2089
+ end
2090
+
2091
+ # 过滤器
2092
+ class Filter < TencentCloud::Common::AbstractModel
2093
+ # @param Name: 过滤字段名称
2094
+ # @type Name: String
2095
+ # @param Values: 过滤字段取值
2096
+ # @type Values: Array
2097
+ # @param Negative: 是否开启反向查询
2098
+ # @type Negative: Boolean
2099
+ # @param Fuzzy: 是否开启模糊匹配
2100
+ # @type Fuzzy: Boolean
2101
+
2102
+ attr_accessor :Name, :Values, :Negative, :Fuzzy
2103
+
2104
+ def initialize(name=nil, values=nil, negative=nil, fuzzy=nil)
2105
+ @Name = name
2106
+ @Values = values
2107
+ @Negative = negative
2108
+ @Fuzzy = fuzzy
2109
+ end
2110
+
2111
+ def deserialize(params)
2112
+ @Name = params['Name']
2113
+ @Values = params['Values']
2114
+ @Negative = params['Negative']
2115
+ @Fuzzy = params['Fuzzy']
2116
+ end
2117
+ end
2118
+
2119
+ # 图片列表查询结果详情
2120
+ class FilterLabelInfo < TencentCloud::Common::AbstractModel
2121
+ # @param DatasetId: 数据集id
2122
+ # @type DatasetId: String
2123
+ # @param FileId: 文件ID
2124
+ # @type FileId: String
2125
+ # @param FileName: 文件路径
2126
+ # @type FileName: String
2127
+ # @param ClassificationLabels: 分类标签结果
2128
+ # 注意:此字段可能返回 null,表示取不到有效值。
2129
+ # @type ClassificationLabels: Array
2130
+ # @param DetectionLabels: 检测标签结果
2131
+ # 注意:此字段可能返回 null,表示取不到有效值。
2132
+ # @type DetectionLabels: Array
2133
+ # @param SegmentationLabels: 分割标签结果
2134
+ # 注意:此字段可能返回 null,表示取不到有效值。
2135
+ # @type SegmentationLabels: Array
2136
+ # @param RGBPath: RGB 图片路径
2137
+ # 注意:此字段可能返回 null,表示取不到有效值。
2138
+ # @type RGBPath: String
2139
+ # @param LabelTemplateType: 标签模板类型
2140
+ # 注意:此字段可能返回 null,表示取不到有效值。
2141
+ # @type LabelTemplateType: String
2142
+ # @param DownloadUrl: 下载url链接
2143
+ # 注意:此字段可能返回 null,表示取不到有效值。
2144
+ # @type DownloadUrl: String
2145
+ # @param DownloadThumbnailUrl: 缩略图下载链接
2146
+ # 注意:此字段可能返回 null,表示取不到有效值。
2147
+ # @type DownloadThumbnailUrl: String
2148
+ # @param DownloadRGBUrl: 分割结果图片下载链接
2149
+ # 注意:此字段可能返回 null,表示取不到有效值。
2150
+ # @type DownloadRGBUrl: String
2151
+ # @param OcrScene: OCR场景
2152
+ # IDENTITY:识别
2153
+ # STRUCTURE:智能结构化
2154
+ # 注意:此字段可能返回 null,表示取不到有效值。
2155
+ # @type OcrScene: String
2156
+ # @param OcrLabels: OCR场景标签列表
2157
+ # 注意:此字段可能返回 null,表示取不到有效值。
2158
+ # @type OcrLabels: Array
2159
+
2160
+ attr_accessor :DatasetId, :FileId, :FileName, :ClassificationLabels, :DetectionLabels, :SegmentationLabels, :RGBPath, :LabelTemplateType, :DownloadUrl, :DownloadThumbnailUrl, :DownloadRGBUrl, :OcrScene, :OcrLabels
2161
+
2162
+ def initialize(datasetid=nil, fileid=nil, filename=nil, classificationlabels=nil, detectionlabels=nil, segmentationlabels=nil, rgbpath=nil, labeltemplatetype=nil, downloadurl=nil, downloadthumbnailurl=nil, downloadrgburl=nil, ocrscene=nil, ocrlabels=nil)
2163
+ @DatasetId = datasetid
2164
+ @FileId = fileid
2165
+ @FileName = filename
2166
+ @ClassificationLabels = classificationlabels
2167
+ @DetectionLabels = detectionlabels
2168
+ @SegmentationLabels = segmentationlabels
2169
+ @RGBPath = rgbpath
2170
+ @LabelTemplateType = labeltemplatetype
2171
+ @DownloadUrl = downloadurl
2172
+ @DownloadThumbnailUrl = downloadthumbnailurl
2173
+ @DownloadRGBUrl = downloadrgburl
2174
+ @OcrScene = ocrscene
2175
+ @OcrLabels = ocrlabels
2176
+ end
2177
+
2178
+ def deserialize(params)
2179
+ @DatasetId = params['DatasetId']
2180
+ @FileId = params['FileId']
2181
+ @FileName = params['FileName']
2182
+ @ClassificationLabels = params['ClassificationLabels']
2183
+ unless params['DetectionLabels'].nil?
2184
+ @DetectionLabels = []
2185
+ params['DetectionLabels'].each do |i|
2186
+ detectionlabelinfo_tmp = DetectionLabelInfo.new
2187
+ detectionlabelinfo_tmp.deserialize(i)
2188
+ @DetectionLabels << detectionlabelinfo_tmp
2189
+ end
2190
+ end
2191
+ unless params['SegmentationLabels'].nil?
2192
+ @SegmentationLabels = []
2193
+ params['SegmentationLabels'].each do |i|
2194
+ segmentationinfo_tmp = SegmentationInfo.new
2195
+ segmentationinfo_tmp.deserialize(i)
2196
+ @SegmentationLabels << segmentationinfo_tmp
2197
+ end
2198
+ end
2199
+ @RGBPath = params['RGBPath']
2200
+ @LabelTemplateType = params['LabelTemplateType']
2201
+ @DownloadUrl = params['DownloadUrl']
2202
+ @DownloadThumbnailUrl = params['DownloadThumbnailUrl']
2203
+ @DownloadRGBUrl = params['DownloadRGBUrl']
2204
+ @OcrScene = params['OcrScene']
2205
+ unless params['OcrLabels'].nil?
2206
+ @OcrLabels = []
2207
+ params['OcrLabels'].each do |i|
2208
+ ocrlabelinfo_tmp = OcrLabelInfo.new
2209
+ ocrlabelinfo_tmp.deserialize(i)
2210
+ @OcrLabels << ocrlabelinfo_tmp
2211
+ end
2212
+ end
2213
+ end
2214
+ end
2215
+
2216
+ # 框架信息列表
2217
+ class FrameworkInfo < TencentCloud::Common::AbstractModel
2218
+ # @param Name: 框架名称
2219
+ # @type Name: String
2220
+ # @param VersionInfos: 框架版本以及对应的训练模式
2221
+ # @type VersionInfos: Array
2222
+
2223
+ attr_accessor :Name, :VersionInfos
2224
+
2225
+ def initialize(name=nil, versioninfos=nil)
2226
+ @Name = name
2227
+ @VersionInfos = versioninfos
2228
+ end
2229
+
2230
+ def deserialize(params)
2231
+ @Name = params['Name']
2232
+ unless params['VersionInfos'].nil?
2233
+ @VersionInfos = []
2234
+ params['VersionInfos'].each do |i|
2235
+ frameworkversion_tmp = FrameworkVersion.new
2236
+ frameworkversion_tmp.deserialize(i)
2237
+ @VersionInfos << frameworkversion_tmp
2238
+ end
2239
+ end
2240
+ end
2241
+ end
2242
+
2243
+ # 框架版本以及对应的训练模式
2244
+ class FrameworkVersion < TencentCloud::Common::AbstractModel
2245
+ # @param Version: 框架版本
2246
+ # @type Version: String
2247
+ # @param TrainingModes: 训练模式
2248
+ # @type TrainingModes: Array
2249
+
2250
+ attr_accessor :Version, :TrainingModes
2251
+
2252
+ def initialize(version=nil, trainingmodes=nil)
2253
+ @Version = version
2254
+ @TrainingModes = trainingmodes
2255
+ end
2256
+
2257
+ def deserialize(params)
2258
+ @Version = params['Version']
2259
+ @TrainingModes = params['TrainingModes']
2260
+ end
2261
+ end
2262
+
2263
+ # gpu 详情
2264
+ class GpuDetail < TencentCloud::Common::AbstractModel
2265
+ # @param Name: GPU 显卡类型;枚举值: V100 A100 T4
2266
+ # 注意:此字段可能返回 null,表示取不到有效值。
2267
+ # @type Name: String
2268
+ # @param Value: GPU 显卡数;单位为1/100卡,比如100代表1卡
2269
+ # 注意:此字段可能返回 null,表示取不到有效值。
2270
+ # @type Value: Integer
2271
+
2272
+ attr_accessor :Name, :Value
2273
+
2274
+ def initialize(name=nil, value=nil)
2275
+ @Name = name
2276
+ @Value = value
2277
+ end
2278
+
2279
+ def deserialize(params)
2280
+ @Name = params['Name']
2281
+ @Value = params['Value']
2282
+ end
2283
+ end
2284
+
2285
+ # 资源信息
2286
+ class GroupResource < TencentCloud::Common::AbstractModel
2287
+ # @param Cpu: CPU核数; 单位为1/1000核,比如100表示0.1核
2288
+ # @type Cpu: Integer
2289
+ # @param Memory: 内存;单位为MB
2290
+ # @type Memory: Integer
2291
+ # @param Gpu: 总卡数;GPUDetail 显卡数之和;单位为1/100卡,比如100代表1卡
2292
+ # 注意:此字段可能返回 null,表示取不到有效值。
2293
+ # @type Gpu: Integer
2294
+ # @param GpuDetailSet: Gpu详情
2295
+ # 注意:此字段可能返回 null,表示取不到有效值。
2296
+ # @type GpuDetailSet: Array
2297
+
2298
+ attr_accessor :Cpu, :Memory, :Gpu, :GpuDetailSet
2299
+
2300
+ def initialize(cpu=nil, memory=nil, gpu=nil, gpudetailset=nil)
2301
+ @Cpu = cpu
2302
+ @Memory = memory
2303
+ @Gpu = gpu
2304
+ @GpuDetailSet = gpudetailset
2305
+ end
2306
+
2307
+ def deserialize(params)
2308
+ @Cpu = params['Cpu']
2309
+ @Memory = params['Memory']
2310
+ @Gpu = params['Gpu']
2311
+ unless params['GpuDetailSet'].nil?
2312
+ @GpuDetailSet = []
2313
+ params['GpuDetailSet'].each do |i|
2314
+ gpudetail_tmp = GpuDetail.new
2315
+ gpudetail_tmp.deserialize(i)
2316
+ @GpuDetailSet << gpudetail_tmp
2317
+ end
2318
+ end
2319
+ end
2320
+ end
2321
+
2322
+ # HDFS的参数配置
2323
+ class HDFSConfig < TencentCloud::Common::AbstractModel
2324
+ # @param Id: 集群实例ID,实例ID形如: emr-xxxxxxxx
2325
+ # @type Id: String
2326
+ # @param Path: 路径
2327
+ # @type Path: String
2328
+
2329
+ attr_accessor :Id, :Path
2330
+
2331
+ def initialize(id=nil, path=nil)
2332
+ @Id = id
2333
+ @Path = path
2334
+ end
2335
+
2336
+ def deserialize(params)
2337
+ @Id = params['Id']
2338
+ @Path = params['Path']
2339
+ end
2340
+ end
2341
+
2342
+ # 镜像描述信息
2343
+ class ImageInfo < TencentCloud::Common::AbstractModel
2344
+ # @param ImageType: 镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像
2345
+ # @type ImageType: String
2346
+ # @param ImageUrl: 镜像地址
2347
+ # @type ImageUrl: String
2348
+ # @param RegistryRegion: TCR镜像对应的地域
2349
+ # 注意:此字段可能返回 null,表示取不到有效值。
2350
+ # @type RegistryRegion: String
2351
+ # @param RegistryId: TCR镜像对应的实例id
2352
+ # 注意:此字段可能返回 null,表示取不到有效值。
2353
+ # @type RegistryId: String
2354
+
2355
+ attr_accessor :ImageType, :ImageUrl, :RegistryRegion, :RegistryId
2356
+
2357
+ def initialize(imagetype=nil, imageurl=nil, registryregion=nil, registryid=nil)
2358
+ @ImageType = imagetype
2359
+ @ImageUrl = imageurl
2360
+ @RegistryRegion = registryregion
2361
+ @RegistryId = registryid
2362
+ end
2363
+
2364
+ def deserialize(params)
2365
+ @ImageType = params['ImageType']
2366
+ @ImageUrl = params['ImageUrl']
2367
+ @RegistryRegion = params['RegistryRegion']
2368
+ @RegistryId = params['RegistryId']
2369
+ end
2370
+ end
2371
+
2372
+ # 推理镜像详情
2373
+ class InferTemplate < TencentCloud::Common::AbstractModel
2374
+ # @param InferTemplateId: 模板ID
2375
+ # @type InferTemplateId: String
2376
+ # @param InferTemplateImage: 模板镜像
2377
+ # @type InferTemplateImage: String
2378
+
2379
+ attr_accessor :InferTemplateId, :InferTemplateImage
2380
+
2381
+ def initialize(infertemplateid=nil, infertemplateimage=nil)
2382
+ @InferTemplateId = infertemplateid
2383
+ @InferTemplateImage = infertemplateimage
2384
+ end
2385
+
2386
+ def deserialize(params)
2387
+ @InferTemplateId = params['InferTemplateId']
2388
+ @InferTemplateImage = params['InferTemplateImage']
2389
+ end
2390
+ end
2391
+
2392
+ # 推理镜像组
2393
+ class InferTemplateGroup < TencentCloud::Common::AbstractModel
2394
+ # @param Framework: 算法框架
2395
+ # 注意:此字段可能返回 null,表示取不到有效值。
2396
+ # @type Framework: String
2397
+ # @param FrameworkVersion: 版本号
2398
+ # 注意:此字段可能返回 null,表示取不到有效值。
2399
+ # @type FrameworkVersion: String
2400
+ # @param Groups: 支持的训练框架集合
2401
+ # 注意:此字段可能返回 null,表示取不到有效值。
2402
+ # @type Groups: Array
2403
+ # @param InferTemplates: 镜像模板参数列表
2404
+ # 注意:此字段可能返回 null,表示取不到有效值。
2405
+ # @type InferTemplates: Array
2406
+
2407
+ attr_accessor :Framework, :FrameworkVersion, :Groups, :InferTemplates
2408
+
2409
+ def initialize(framework=nil, frameworkversion=nil, groups=nil, infertemplates=nil)
2410
+ @Framework = framework
2411
+ @FrameworkVersion = frameworkversion
2412
+ @Groups = groups
2413
+ @InferTemplates = infertemplates
2414
+ end
2415
+
2416
+ def deserialize(params)
2417
+ @Framework = params['Framework']
2418
+ @FrameworkVersion = params['FrameworkVersion']
2419
+ @Groups = params['Groups']
2420
+ unless params['InferTemplates'].nil?
2421
+ @InferTemplates = []
2422
+ params['InferTemplates'].each do |i|
2423
+ infertemplate_tmp = InferTemplate.new
2424
+ infertemplate_tmp.deserialize(i)
2425
+ @InferTemplates << infertemplate_tmp
2426
+ end
2427
+ end
2428
+ end
2429
+ end
2430
+
2431
+ # 资源组节点信息
2432
+ class Instance < TencentCloud::Common::AbstractModel
2433
+ # @param InstanceId: 资源组节点id
2434
+ # @type InstanceId: String
2435
+ # @param UsedResource: 节点已用资源
2436
+ # 注意:此字段可能返回 null,表示取不到有效值。
2437
+ # @type UsedResource: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
2438
+ # @param TotalResource: 节点总资源
2439
+ # 注意:此字段可能返回 null,表示取不到有效值。
2440
+ # @type TotalResource: :class:`Tencentcloud::Tione.v20211111.models.ResourceInfo`
2441
+ # @param InstanceStatus: 节点状态
2442
+ # 注意:此字段为枚举值
2443
+ # 说明:
2444
+ # DEPLOYING: 部署中
2445
+ # RUNNING: 运行中
2446
+ # DEPLOY_FAILED: 部署失败
2447
+ # RELEASING 释放中
2448
+ # RELEASED:已释放
2449
+ # EXCEPTION:异常
2450
+ # 注意:此字段可能返回 null,表示取不到有效值。
2451
+ # @type InstanceStatus: String
2452
+ # @param SubUin: 创建人
2453
+ # @type SubUin: String
2454
+ # @param CreateTime: 创建时间:
2455
+ # 注意:北京时间,比如: 2021-12-01 12:00:00
2456
+ # 注意:此字段可能返回 null,表示取不到有效值。
2457
+ # @type CreateTime: String
2458
+ # @param ExpireTime: 到期时间
2459
+ # 注意:北京时间,比如:2021-12-11 12:00:00
2460
+ # 注意:此字段可能返回 null,表示取不到有效值。
2461
+ # @type ExpireTime: String
2462
+ # @param AutoRenewFlag: 自动续费标识
2463
+ # 注意:此字段为枚举值
2464
+ # 说明:
2465
+ # NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期通知
2466
+ # NOTIFY_AND_AUTO_RENEW:自动续费且到期通知
2467
+ # DISABLE_NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期不通知
2468
+ # 注意:此字段可能返回 null,表示取不到有效值。
2469
+ # @type AutoRenewFlag: String
2470
+ # @param SpecId: 计费项ID
2471
+ # @type SpecId: String
2472
+ # @param SpecAlias: 计费项别名
2473
+ # @type SpecAlias: String
2474
+
2475
+ attr_accessor :InstanceId, :UsedResource, :TotalResource, :InstanceStatus, :SubUin, :CreateTime, :ExpireTime, :AutoRenewFlag, :SpecId, :SpecAlias
2476
+
2477
+ def initialize(instanceid=nil, usedresource=nil, totalresource=nil, instancestatus=nil, subuin=nil, createtime=nil, expiretime=nil, autorenewflag=nil, specid=nil, specalias=nil)
2478
+ @InstanceId = instanceid
2479
+ @UsedResource = usedresource
2480
+ @TotalResource = totalresource
2481
+ @InstanceStatus = instancestatus
2482
+ @SubUin = subuin
2483
+ @CreateTime = createtime
2484
+ @ExpireTime = expiretime
2485
+ @AutoRenewFlag = autorenewflag
2486
+ @SpecId = specid
2487
+ @SpecAlias = specalias
2488
+ end
2489
+
2490
+ def deserialize(params)
2491
+ @InstanceId = params['InstanceId']
2492
+ unless params['UsedResource'].nil?
2493
+ @UsedResource = ResourceInfo.new
2494
+ @UsedResource.deserialize(params['UsedResource'])
2495
+ end
2496
+ unless params['TotalResource'].nil?
2497
+ @TotalResource = ResourceInfo.new
2498
+ @TotalResource.deserialize(params['TotalResource'])
2499
+ end
2500
+ @InstanceStatus = params['InstanceStatus']
2501
+ @SubUin = params['SubUin']
2502
+ @CreateTime = params['CreateTime']
2503
+ @ExpireTime = params['ExpireTime']
2504
+ @AutoRenewFlag = params['AutoRenewFlag']
2505
+ @SpecId = params['SpecId']
2506
+ @SpecAlias = params['SpecAlias']
2507
+ end
2508
+ end
2509
+
2510
+ # 日志配置
2511
+ class LogConfig < TencentCloud::Common::AbstractModel
2512
+ # @param LogsetId: 日志需要投递到cls的日志集
2513
+ # 注意:此字段可能返回 null,表示取不到有效值。
2514
+ # @type LogsetId: String
2515
+ # @param TopicId: 日志需要投递到cls的主题
2516
+ # 注意:此字段可能返回 null,表示取不到有效值。
2517
+ # @type TopicId: String
2518
+
2519
+ attr_accessor :LogsetId, :TopicId
2520
+
2521
+ def initialize(logsetid=nil, topicid=nil)
2522
+ @LogsetId = logsetid
2523
+ @TopicId = topicid
2524
+ end
2525
+
2526
+ def deserialize(params)
2527
+ @LogsetId = params['LogsetId']
2528
+ @TopicId = params['TopicId']
2529
+ end
2530
+ end
2531
+
2532
+ # 单条日志数据结构
2533
+ class LogIdentity < TencentCloud::Common::AbstractModel
2534
+ # @param Id: 单条日志的ID
2535
+ # 注意:此字段可能返回 null,表示取不到有效值。
2536
+ # @type Id: String
2537
+ # @param Message: 单条日志的内容
2538
+ # 注意:此字段可能返回 null,表示取不到有效值。
2539
+ # @type Message: String
2540
+ # @param PodName: 这条日志对应的Pod名称
2541
+ # 注意:此字段可能返回 null,表示取不到有效值。
2542
+ # @type PodName: String
2543
+ # @param Timestamp: 日志的时间戳(RFC3339格式的时间字符串)
2544
+ # 注意:此字段可能返回 null,表示取不到有效值。
2545
+ # @type Timestamp: String
2546
+
2547
+ attr_accessor :Id, :Message, :PodName, :Timestamp
2548
+
2549
+ def initialize(id=nil, message=nil, podname=nil, timestamp=nil)
2550
+ @Id = id
2551
+ @Message = message
2552
+ @PodName = podname
2553
+ @Timestamp = timestamp
2554
+ end
2555
+
2556
+ def deserialize(params)
2557
+ @Id = params['Id']
2558
+ @Message = params['Message']
2559
+ @PodName = params['PodName']
2560
+ @Timestamp = params['Timestamp']
2561
+ end
2562
+ end
2563
+
2564
+ # 指标数据
2565
+ class MetricData < TencentCloud::Common::AbstractModel
2566
+ # @param TaskId: 训练任务id
2567
+ # @type TaskId: String
2568
+ # @param Timestamp: 时间戳.unix timestamp,单位为秒
2569
+ # 注意:此字段可能返回 null,表示取不到有效值。
2570
+ # @type Timestamp: Integer
2571
+ # @param Uin: 用户uin
2572
+ # 注意:此字段可能返回 null,表示取不到有效值。
2573
+ # @type Uin: String
2574
+ # @param Epoch: 本次上报数据所处的训练周期数。
2575
+ # 注意:此字段可能返回 null,表示取不到有效值。
2576
+ # @type Epoch: Integer
2577
+ # @param Step: 本次上报数据所处的训练迭代次数。
2578
+ # 注意:此字段可能返回 null,表示取不到有效值。
2579
+ # @type Step: Integer
2580
+ # @param TotalSteps: 训练停止所需的迭代总数。
2581
+ # 注意:此字段可能返回 null,表示取不到有效值。
2582
+ # @type TotalSteps: Integer
2583
+ # @param Points: 数据点。数组元素为不同指标的数据。数组长度不超过10。
2584
+ # 注意:此字段可能返回 null,表示取不到有效值。
2585
+ # @type Points: Array
2586
+
2587
+ attr_accessor :TaskId, :Timestamp, :Uin, :Epoch, :Step, :TotalSteps, :Points
2588
+
2589
+ def initialize(taskid=nil, timestamp=nil, uin=nil, epoch=nil, step=nil, totalsteps=nil, points=nil)
2590
+ @TaskId = taskid
2591
+ @Timestamp = timestamp
2592
+ @Uin = uin
2593
+ @Epoch = epoch
2594
+ @Step = step
2595
+ @TotalSteps = totalsteps
2596
+ @Points = points
2597
+ end
2598
+
2599
+ def deserialize(params)
2600
+ @TaskId = params['TaskId']
2601
+ @Timestamp = params['Timestamp']
2602
+ @Uin = params['Uin']
2603
+ @Epoch = params['Epoch']
2604
+ @Step = params['Step']
2605
+ @TotalSteps = params['TotalSteps']
2606
+ unless params['Points'].nil?
2607
+ @Points = []
2608
+ params['Points'].each do |i|
2609
+ datapoint_tmp = DataPoint.new
2610
+ datapoint_tmp.deserialize(i)
2611
+ @Points << datapoint_tmp
2612
+ end
2613
+ end
2614
+ end
2615
+ end
2616
+
2617
+ # OCR场景标签列表
2618
+ class OcrLabelInfo < TencentCloud::Common::AbstractModel
2619
+ # @param Points: 坐标点围起来的框
2620
+ # 注意:此字段可能返回 null,表示取不到有效值。
2621
+ # @type Points: Array
2622
+ # @param FrameType: 框的形状:
2623
+ # FRAME_TYPE_RECTANGLE
2624
+ # FRAME_TYPE_POLYGON
2625
+ # 注意:此字段可能返回 null,表示取不到有效值。
2626
+ # @type FrameType: String
2627
+ # @param Key: 智能结构化:key区域对应的内容
2628
+ # 注意:此字段可能返回 null,表示取不到有效值。
2629
+ # @type Key: String
2630
+ # @param KeyId: 智能结构化:上述key的ID
2631
+ # 注意:此字段可能返回 null,表示取不到有效值。
2632
+ # @type KeyId: String
2633
+ # @param Value: 识别:框区域的内容
2634
+ # 智能结构化:value区域对应的内容
2635
+ # 注意:此字段可能返回 null,表示取不到有效值。
2636
+ # @type Value: String
2637
+ # @param KeyIdsForValue: 智能结构化:value区域所关联的key 区域的keyID的集合
2638
+ # 注意:此字段可能返回 null,表示取不到有效值。
2639
+ # @type KeyIdsForValue: Array
2640
+ # @param Direction: key或者value区域内容的方向:
2641
+ # DIRECTION_VERTICAL
2642
+ # DIRECTION_HORIZONTAL
2643
+ # 注意:此字段可能返回 null,表示取不到有效值。
2644
+ # @type Direction: String
2645
+
2646
+ attr_accessor :Points, :FrameType, :Key, :KeyId, :Value, :KeyIdsForValue, :Direction
2647
+
2648
+ def initialize(points=nil, frametype=nil, key=nil, keyid=nil, value=nil, keyidsforvalue=nil, direction=nil)
2649
+ @Points = points
2650
+ @FrameType = frametype
2651
+ @Key = key
2652
+ @KeyId = keyid
2653
+ @Value = value
2654
+ @KeyIdsForValue = keyidsforvalue
2655
+ @Direction = direction
2656
+ end
2657
+
2658
+ def deserialize(params)
2659
+ unless params['Points'].nil?
2660
+ @Points = []
2661
+ params['Points'].each do |i|
2662
+ pointinfo_tmp = PointInfo.new
2663
+ pointinfo_tmp.deserialize(i)
2664
+ @Points << pointinfo_tmp
2665
+ end
2666
+ end
2667
+ @FrameType = params['FrameType']
2668
+ @Key = params['Key']
2669
+ @KeyId = params['KeyId']
2670
+ @Value = params['Value']
2671
+ @KeyIdsForValue = params['KeyIdsForValue']
2672
+ @Direction = params['Direction']
2673
+ end
2674
+ end
2675
+
2676
+ # 点信息描述
2677
+ class PointInfo < TencentCloud::Common::AbstractModel
2678
+ # @param X: X坐标值
2679
+ # 注意:此字段可能返回 null,表示取不到有效值。
2680
+ # @type X: Float
2681
+ # @param Y: Y坐标值
2682
+ # 注意:此字段可能返回 null,表示取不到有效值。
2683
+ # @type Y: Float
2684
+
2685
+ attr_accessor :X, :Y
2686
+
2687
+ def initialize(x=nil, y=nil)
2688
+ @X = x
2689
+ @Y = y
2690
+ end
2691
+
2692
+ def deserialize(params)
2693
+ @X = params['X']
2694
+ @Y = params['Y']
2695
+ end
2696
+ end
2697
+
2698
+ # PushTrainingMetrics请求参数结构体
2699
+ class PushTrainingMetricsRequest < TencentCloud::Common::AbstractModel
2700
+ # @param Data: 指标数据
2701
+ # @type Data: Array
2702
+
2703
+ attr_accessor :Data
2704
+
2705
+ def initialize(data=nil)
2706
+ @Data = data
2707
+ end
2708
+
2709
+ def deserialize(params)
2710
+ unless params['Data'].nil?
2711
+ @Data = []
2712
+ params['Data'].each do |i|
2713
+ metricdata_tmp = MetricData.new
2714
+ metricdata_tmp.deserialize(i)
2715
+ @Data << metricdata_tmp
2716
+ end
2717
+ end
2718
+ end
2719
+ end
2720
+
2721
+ # PushTrainingMetrics返回参数结构体
2722
+ class PushTrainingMetricsResponse < TencentCloud::Common::AbstractModel
2723
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2724
+ # @type RequestId: String
2725
+
2726
+ attr_accessor :RequestId
2727
+
2728
+ def initialize(requestid=nil)
2729
+ @RequestId = requestid
2730
+ end
2731
+
2732
+ def deserialize(params)
2733
+ @RequestId = params['RequestId']
2734
+ end
2735
+ end
2736
+
2737
+ # 资源配置
2738
+ class ResourceConfigInfo < TencentCloud::Common::AbstractModel
2739
+ # @param Role: 角色,eg:PS、WORKER、DRIVER、EXECUTOR
2740
+ # @type Role: String
2741
+ # @param Cpu: cpu核数,1000=1核
2742
+ # @type Cpu: Integer
2743
+ # @param Memory: 内存,单位为MB
2744
+ # @type Memory: Integer
2745
+ # @param GpuType: gpu卡类型
2746
+ # @type GpuType: String
2747
+ # @param Gpu: gpu数
2748
+ # @type Gpu: Integer
2749
+ # @param InstanceType: 算力规格ID
2750
+ # 计算规格 (for后付费),可选值如下:
2751
+ # TI.S.LARGE.POST: 4C8G
2752
+ # TI.S.2XLARGE16.POST: 8C16G
2753
+ # TI.S.2XLARGE32.POST: 8C32G
2754
+ # TI.S.4XLARGE32.POST: 16C32G
2755
+ # TI.S.4XLARGE64.POST: 16C64G
2756
+ # TI.S.6XLARGE48.POST: 24C48G
2757
+ # TI.S.6XLARGE96.POST: 24C96G
2758
+ # TI.S.8XLARGE64.POST: 32C64G
2759
+ # TI.S.8XLARGE128.POST : 32C128G
2760
+ # TI.GN10.2XLARGE40.POST: 8C40G V100*1
2761
+ # TI.GN10.5XLARGE80.POST: 18C80G V100*2
2762
+ # TI.GN10.10XLARGE160.POST : 32C160G V100*4
2763
+ # TI.GN10.20XLARGE320.POST : 72C320G V100*8
2764
+ # TI.GN7.8XLARGE128.POST: 32C128G T4*1
2765
+ # TI.GN7.10XLARGE160.POST: 40C160G T4*2
2766
+ # TI.GN7.20XLARGE320.POST: 80C32
2767
+ # @type InstanceType: String
2768
+ # @param InstanceNum: 计算节点数
2769
+ # @type InstanceNum: Integer
2770
+ # @param InstanceTypeAlias: 算力规格名称
2771
+ # 计算规格 (for后付费),可选值如下:
2772
+ # 4C8G
2773
+ # 8C16G
2774
+ # 8C32G
2775
+ # 16C32G
2776
+ # 6C64G
2777
+ # 24C48G
2778
+ # 24C96G
2779
+ # 32C64G
2780
+ # 32C128G
2781
+ # 8C40G V100*1
2782
+ # 8C80G V100*2
2783
+ # 32C160G V100*4
2784
+ # 72C320G V100*8
2785
+ # 32C128G T4*1
2786
+ # 40C160G T4*2
2787
+ # 80C32
2788
+ # @type InstanceTypeAlias: String
2789
+
2790
+ attr_accessor :Role, :Cpu, :Memory, :GpuType, :Gpu, :InstanceType, :InstanceNum, :InstanceTypeAlias
2791
+
2792
+ def initialize(role=nil, cpu=nil, memory=nil, gputype=nil, gpu=nil, instancetype=nil, instancenum=nil, instancetypealias=nil)
2793
+ @Role = role
2794
+ @Cpu = cpu
2795
+ @Memory = memory
2796
+ @GpuType = gputype
2797
+ @Gpu = gpu
2798
+ @InstanceType = instancetype
2799
+ @InstanceNum = instancenum
2800
+ @InstanceTypeAlias = instancetypealias
2801
+ end
2802
+
2803
+ def deserialize(params)
2804
+ @Role = params['Role']
2805
+ @Cpu = params['Cpu']
2806
+ @Memory = params['Memory']
2807
+ @GpuType = params['GpuType']
2808
+ @Gpu = params['Gpu']
2809
+ @InstanceType = params['InstanceType']
2810
+ @InstanceNum = params['InstanceNum']
2811
+ @InstanceTypeAlias = params['InstanceTypeAlias']
2812
+ end
2813
+ end
2814
+
2815
+ # 资源组
2816
+ class ResourceGroup < TencentCloud::Common::AbstractModel
2817
+ # @param ResourceGroupId: 资源组id
2818
+ # @type ResourceGroupId: String
2819
+ # @param ResourceGroupName: 资源组名称
2820
+ # @type ResourceGroupName: String
2821
+ # @param FreeInstance: 可用节点个数(运行中的节点)
2822
+ # @type FreeInstance: Integer
2823
+ # @param TotalInstance: 总节点个数(所有节点)
2824
+ # @type TotalInstance: Integer
2825
+ # @param UsedResource: 资资源组已用的资源
2826
+ # 注意:此字段可能返回 null,表示取不到有效值。
2827
+ # @type UsedResource: :class:`Tencentcloud::Tione.v20211111.models.GroupResource`
2828
+ # @param TotalResource: 资源组总资源
2829
+ # 注意:此字段可能返回 null,表示取不到有效值。
2830
+ # @type TotalResource: :class:`Tencentcloud::Tione.v20211111.models.GroupResource`
2831
+ # @param InstanceSet: 节点信息
2832
+ # 注意:此字段可能返回 null,表示取不到有效值。
2833
+ # @type InstanceSet: Array
2834
+ # @param TagSet: 标签列表
2835
+ # 注意:此字段可能返回 null,表示取不到有效值。
2836
+ # @type TagSet: Array
2837
+
2838
+ attr_accessor :ResourceGroupId, :ResourceGroupName, :FreeInstance, :TotalInstance, :UsedResource, :TotalResource, :InstanceSet, :TagSet
2839
+
2840
+ def initialize(resourcegroupid=nil, resourcegroupname=nil, freeinstance=nil, totalinstance=nil, usedresource=nil, totalresource=nil, instanceset=nil, tagset=nil)
2841
+ @ResourceGroupId = resourcegroupid
2842
+ @ResourceGroupName = resourcegroupname
2843
+ @FreeInstance = freeinstance
2844
+ @TotalInstance = totalinstance
2845
+ @UsedResource = usedresource
2846
+ @TotalResource = totalresource
2847
+ @InstanceSet = instanceset
2848
+ @TagSet = tagset
2849
+ end
2850
+
2851
+ def deserialize(params)
2852
+ @ResourceGroupId = params['ResourceGroupId']
2853
+ @ResourceGroupName = params['ResourceGroupName']
2854
+ @FreeInstance = params['FreeInstance']
2855
+ @TotalInstance = params['TotalInstance']
2856
+ unless params['UsedResource'].nil?
2857
+ @UsedResource = GroupResource.new
2858
+ @UsedResource.deserialize(params['UsedResource'])
2859
+ end
2860
+ unless params['TotalResource'].nil?
2861
+ @TotalResource = GroupResource.new
2862
+ @TotalResource.deserialize(params['TotalResource'])
2863
+ end
2864
+ unless params['InstanceSet'].nil?
2865
+ @InstanceSet = []
2866
+ params['InstanceSet'].each do |i|
2867
+ instance_tmp = Instance.new
2868
+ instance_tmp.deserialize(i)
2869
+ @InstanceSet << instance_tmp
2870
+ end
2871
+ end
2872
+ unless params['TagSet'].nil?
2873
+ @TagSet = []
2874
+ params['TagSet'].each do |i|
2875
+ tag_tmp = Tag.new
2876
+ tag_tmp.deserialize(i)
2877
+ @TagSet << tag_tmp
2878
+ end
2879
+ end
2880
+ end
2881
+ end
2882
+
2883
+ # 描述资源信息
2884
+ class ResourceInfo < TencentCloud::Common::AbstractModel
2885
+ # @param Cpu: 处理器资源, 单位为1/1000核
2886
+ # 注意:此字段可能返回 null,表示取不到有效值。
2887
+ # @type Cpu: Integer
2888
+ # @param Memory: 内存资源, 单位为1M
2889
+ # 注意:此字段可能返回 null,表示取不到有效值。
2890
+ # @type Memory: Integer
2891
+ # @param Gpu: Gpu卡个数资源, 单位为0.01单位的GpuType.
2892
+ # Gpu=100表示使用了“一张”gpu卡, 但此处的“一张”卡有可能是虚拟化后的1/4卡, 也有可能是整张卡. 取决于实例的机型
2893
+ # 例1 实例的机型带有1张虚拟gpu卡, 每张虚拟gpu卡对应1/4张实际T4卡, 则此时 GpuType=T4, Gpu=100, RealGpu=25.
2894
+ # 例2 实例的机型带有4张gpu整卡, 每张卡对应1张实际T4卡, 则 此时 GpuType=T4, Gpu=400, RealGpu=400.
2895
+ # 注意:此字段可能返回 null,表示取不到有效值。
2896
+ # @type Gpu: Integer
2897
+ # @param GpuType: Gpu卡型号 T4或者V100
2898
+ # 注意:此字段可能返回 null,表示取不到有效值。
2899
+ # @type GpuType: String
2900
+ # @param RealGpu: 创建或更新时无需填写,仅展示需要关注
2901
+ # 后付费非整卡实例对应的实际的Gpu卡资源, 表示gpu资源对应实际的gpu卡个数.
2902
+ # RealGpu=100表示实际使用了一张gpu卡, 对应实际的实例机型, 有可能代表带有1/4卡的实例4个, 或者带有1/2卡的实例2个, 或者带有1卡的实力1个.
2903
+ # 注意:此字段可能返回 null,表示取不到有效值。
2904
+ # @type RealGpu: Integer
2905
+
2906
+ attr_accessor :Cpu, :Memory, :Gpu, :GpuType, :RealGpu
2907
+
2908
+ def initialize(cpu=nil, memory=nil, gpu=nil, gputype=nil, realgpu=nil)
2909
+ @Cpu = cpu
2910
+ @Memory = memory
2911
+ @Gpu = gpu
2912
+ @GpuType = gputype
2913
+ @RealGpu = realgpu
2914
+ end
2915
+
2916
+ def deserialize(params)
2917
+ @Cpu = params['Cpu']
2918
+ @Memory = params['Memory']
2919
+ @Gpu = params['Gpu']
2920
+ @GpuType = params['GpuType']
2921
+ @RealGpu = params['RealGpu']
2922
+ end
2923
+ end
2924
+
2925
+ # 文本行信息
2926
+ class RowItem < TencentCloud::Common::AbstractModel
2927
+ # @param Values: rowValue 数组
2928
+ # 注意:此字段可能返回 null,表示取不到有效值。
2929
+ # @type Values: Array
2930
+
2931
+ attr_accessor :Values
2932
+
2933
+ def initialize(values=nil)
2934
+ @Values = values
2935
+ end
2936
+
2937
+ def deserialize(params)
2938
+ unless params['Values'].nil?
2939
+ @Values = []
2940
+ params['Values'].each do |i|
2941
+ rowvalue_tmp = RowValue.new
2942
+ rowvalue_tmp.deserialize(i)
2943
+ @Values << rowvalue_tmp
2944
+ end
2945
+ end
2946
+ end
2947
+ end
2948
+
2949
+ # 文件行信息
2950
+ class RowValue < TencentCloud::Common::AbstractModel
2951
+ # @param Name: 列名
2952
+ # @type Name: String
2953
+ # @param Value: 列值
2954
+ # 注意:此字段可能返回 null,表示取不到有效值。
2955
+ # @type Value: String
2956
+
2957
+ attr_accessor :Name, :Value
2958
+
2959
+ def initialize(name=nil, value=nil)
2960
+ @Name = name
2961
+ @Value = value
2962
+ end
2963
+
2964
+ def deserialize(params)
2965
+ @Name = params['Name']
2966
+ @Value = params['Value']
2967
+ end
2968
+ end
2969
+
2970
+ # 表格数据集表头信息
2971
+ class SchemaInfo < TencentCloud::Common::AbstractModel
2972
+ # @param Name: 长度30字符内
2973
+ # @type Name: String
2974
+ # @param Type: 数据类型
2975
+ # @type Type: String
2976
+
2977
+ attr_accessor :Name, :Type
2978
+
2979
+ def initialize(name=nil, type=nil)
2980
+ @Name = name
2981
+ @Type = type
2982
+ end
2983
+
2984
+ def deserialize(params)
2985
+ @Name = params['Name']
2986
+ @Type = params['Type']
2987
+ end
2988
+ end
2989
+
2990
+ # 图片分割参数信息
2991
+ class SegmentationInfo < TencentCloud::Common::AbstractModel
2992
+ # @param Points: 点坐标数组
2993
+ # 注意:此字段可能返回 null,表示取不到有效值。
2994
+ # @type Points: Array
2995
+ # @param Label: 分割标签
2996
+ # 注意:此字段可能返回 null,表示取不到有效值。
2997
+ # @type Label: String
2998
+ # @param Gray: 灰度值
2999
+ # 注意:此字段可能返回 null,表示取不到有效值。
3000
+ # @type Gray: Integer
3001
+ # @param Color: 颜色
3002
+ # 注意:此字段可能返回 null,表示取不到有效值。
3003
+ # @type Color: String
3004
+
3005
+ attr_accessor :Points, :Label, :Gray, :Color
3006
+
3007
+ def initialize(points=nil, label=nil, gray=nil, color=nil)
3008
+ @Points = points
3009
+ @Label = label
3010
+ @Gray = gray
3011
+ @Color = color
3012
+ end
3013
+
3014
+ def deserialize(params)
3015
+ unless params['Points'].nil?
3016
+ @Points = []
3017
+ params['Points'].each do |i|
3018
+ pointinfo_tmp = PointInfo.new
3019
+ pointinfo_tmp.deserialize(i)
3020
+ @Points << pointinfo_tmp
3021
+ end
3022
+ end
3023
+ @Label = params['Label']
3024
+ @Gray = params['Gray']
3025
+ @Color = params['Color']
3026
+ end
3027
+ end
3028
+
3029
+ # 计费项询价结果
3030
+ class SpecPrice < TencentCloud::Common::AbstractModel
3031
+ # @param SpecName: 计费项名称
3032
+ # @type SpecName: String
3033
+ # @param TotalCost: 原价,单位:分。最大值42亿,超过则返回0
3034
+ # @type TotalCost: Integer
3035
+ # @param RealTotalCost: 优惠后的价格,单位:分
3036
+ # @type RealTotalCost: Integer
3037
+
3038
+ attr_accessor :SpecName, :TotalCost, :RealTotalCost
3039
+
3040
+ def initialize(specname=nil, totalcost=nil, realtotalcost=nil)
3041
+ @SpecName = specname
3042
+ @TotalCost = totalcost
3043
+ @RealTotalCost = realtotalcost
3044
+ end
3045
+
3046
+ def deserialize(params)
3047
+ @SpecName = params['SpecName']
3048
+ @TotalCost = params['TotalCost']
3049
+ @RealTotalCost = params['RealTotalCost']
3050
+ end
3051
+ end
3052
+
3053
+ # 计费项询价单元
3054
+ class SpecUnit < TencentCloud::Common::AbstractModel
3055
+ # @param SpecName: 计费项名称
3056
+ # @type SpecName: String
3057
+ # @param SpecCount: 计费项数量,建议不超过100万
3058
+ # @type SpecCount: Integer
3059
+
3060
+ attr_accessor :SpecName, :SpecCount
3061
+
3062
+ def initialize(specname=nil, speccount=nil)
3063
+ @SpecName = specname
3064
+ @SpecCount = speccount
3065
+ end
3066
+
3067
+ def deserialize(params)
3068
+ @SpecName = params['SpecName']
3069
+ @SpecCount = params['SpecCount']
3070
+ end
3071
+ end
3072
+
3073
+ # 启动命令信息
3074
+ class StartCmdInfo < TencentCloud::Common::AbstractModel
3075
+ # @param StartCmd: 启动命令
3076
+ # @type StartCmd: String
3077
+ # @param PsStartCmd: ps启动命令
3078
+ # @type PsStartCmd: String
3079
+ # @param WorkerStartCmd: worker启动命令
3080
+ # @type WorkerStartCmd: String
3081
+
3082
+ attr_accessor :StartCmd, :PsStartCmd, :WorkerStartCmd
3083
+
3084
+ def initialize(startcmd=nil, psstartcmd=nil, workerstartcmd=nil)
3085
+ @StartCmd = startcmd
3086
+ @PsStartCmd = psstartcmd
3087
+ @WorkerStartCmd = workerstartcmd
3088
+ end
3089
+
3090
+ def deserialize(params)
3091
+ @StartCmd = params['StartCmd']
3092
+ @PsStartCmd = params['PsStartCmd']
3093
+ @WorkerStartCmd = params['WorkerStartCmd']
3094
+ end
3095
+ end
3096
+
3097
+ # StartTrainingTask请求参数结构体
3098
+ class StartTrainingTaskRequest < TencentCloud::Common::AbstractModel
3099
+ # @param Id: 训练任务ID
3100
+ # @type Id: String
3101
+
3102
+ attr_accessor :Id
3103
+
3104
+ def initialize(id=nil)
3105
+ @Id = id
3106
+ end
3107
+
3108
+ def deserialize(params)
3109
+ @Id = params['Id']
3110
+ end
3111
+ end
3112
+
3113
+ # StartTrainingTask返回参数结构体
3114
+ class StartTrainingTaskResponse < TencentCloud::Common::AbstractModel
3115
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3116
+ # @type RequestId: String
3117
+
3118
+ attr_accessor :RequestId
3119
+
3120
+ def initialize(requestid=nil)
3121
+ @RequestId = requestid
3122
+ end
3123
+
3124
+ def deserialize(params)
3125
+ @RequestId = params['RequestId']
3126
+ end
3127
+ end
3128
+
3129
+ # StopTrainingTask请求参数结构体
3130
+ class StopTrainingTaskRequest < TencentCloud::Common::AbstractModel
3131
+ # @param Id: 训练任务ID
3132
+ # @type Id: String
3133
+
3134
+ attr_accessor :Id
3135
+
3136
+ def initialize(id=nil)
3137
+ @Id = id
3138
+ end
3139
+
3140
+ def deserialize(params)
3141
+ @Id = params['Id']
3142
+ end
3143
+ end
3144
+
3145
+ # StopTrainingTask返回参数结构体
3146
+ class StopTrainingTaskResponse < TencentCloud::Common::AbstractModel
3147
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3148
+ # @type RequestId: String
3149
+
3150
+ attr_accessor :RequestId
3151
+
3152
+ def initialize(requestid=nil)
3153
+ @RequestId = requestid
3154
+ end
3155
+
3156
+ def deserialize(params)
3157
+ @RequestId = params['RequestId']
3158
+ end
3159
+ end
3160
+
3161
+ # 描述腾讯云标签
3162
+ class Tag < TencentCloud::Common::AbstractModel
3163
+ # @param TagKey: 标签键
3164
+ # 注意:此字段可能返回 null,表示取不到有效值。
3165
+ # @type TagKey: String
3166
+ # @param TagValue: 标签值
3167
+ # 注意:此字段可能返回 null,表示取不到有效值。
3168
+ # @type TagValue: String
3169
+
3170
+ attr_accessor :TagKey, :TagValue
3171
+
3172
+ def initialize(tagkey=nil, tagvalue=nil)
3173
+ @TagKey = tagkey
3174
+ @TagValue = tagvalue
3175
+ end
3176
+
3177
+ def deserialize(params)
3178
+ @TagKey = params['TagKey']
3179
+ @TagValue = params['TagValue']
3180
+ end
3181
+ end
3182
+
3183
+ # Tag过滤参数
3184
+ class TagFilter < TencentCloud::Common::AbstractModel
3185
+ # @param TagKey: 标签键
3186
+ # @type TagKey: String
3187
+ # @param TagValues: 多个标签值
3188
+ # @type TagValues: Array
3189
+
3190
+ attr_accessor :TagKey, :TagValues
3191
+
3192
+ def initialize(tagkey=nil, tagvalues=nil)
3193
+ @TagKey = tagkey
3194
+ @TagValues = tagvalues
3195
+ end
3196
+
3197
+ def deserialize(params)
3198
+ @TagKey = params['TagKey']
3199
+ @TagValues = params['TagValues']
3200
+ end
3201
+ end
3202
+
3203
+ # 训练数据
3204
+ class TrainingDataPoint < TencentCloud::Common::AbstractModel
3205
+
3206
+
3207
+ def initialize()
3208
+ end
3209
+
3210
+ def deserialize(params)
3211
+ end
3212
+ end
3213
+
3214
+ # 训练指标
3215
+ class TrainingMetric < TencentCloud::Common::AbstractModel
3216
+ # @param MetricName: 指标名
3217
+ # @type MetricName: String
3218
+ # @param Values: 数据值
3219
+ # 注意:此字段可能返回 null,表示取不到有效值。
3220
+ # @type Values: Array
3221
+ # @param Epochs: 上报的Epoch. 可能为空
3222
+ # 注意:此字段可能返回 null,表示取不到有效值。
3223
+ # @type Epochs: Array
3224
+ # @param Steps: 上报的Step. 可能为空
3225
+ # 注意:此字段可能返回 null,表示取不到有效值。
3226
+ # @type Steps: Array
3227
+ # @param TotalSteps: 上报的TotalSteps. 可能为空
3228
+ # 注意:此字段可能返回 null,表示取不到有效值。
3229
+ # @type TotalSteps: Array
3230
+
3231
+ attr_accessor :MetricName, :Values, :Epochs, :Steps, :TotalSteps
3232
+
3233
+ def initialize(metricname=nil, values=nil, epochs=nil, steps=nil, totalsteps=nil)
3234
+ @MetricName = metricname
3235
+ @Values = values
3236
+ @Epochs = epochs
3237
+ @Steps = steps
3238
+ @TotalSteps = totalsteps
3239
+ end
3240
+
3241
+ def deserialize(params)
3242
+ @MetricName = params['MetricName']
3243
+ unless params['Values'].nil?
3244
+ @Values = []
3245
+ params['Values'].each do |i|
3246
+ trainingdatapoint_tmp = TrainingDataPoint.new
3247
+ trainingdatapoint_tmp.deserialize(i)
3248
+ @Values << trainingdatapoint_tmp
3249
+ end
3250
+ end
3251
+ unless params['Epochs'].nil?
3252
+ @Epochs = []
3253
+ params['Epochs'].each do |i|
3254
+ trainingdatapoint_tmp = TrainingDataPoint.new
3255
+ trainingdatapoint_tmp.deserialize(i)
3256
+ @Epochs << trainingdatapoint_tmp
3257
+ end
3258
+ end
3259
+ unless params['Steps'].nil?
3260
+ @Steps = []
3261
+ params['Steps'].each do |i|
3262
+ trainingdatapoint_tmp = TrainingDataPoint.new
3263
+ trainingdatapoint_tmp.deserialize(i)
3264
+ @Steps << trainingdatapoint_tmp
3265
+ end
3266
+ end
3267
+ unless params['TotalSteps'].nil?
3268
+ @TotalSteps = []
3269
+ params['TotalSteps'].each do |i|
3270
+ trainingdatapoint_tmp = TrainingDataPoint.new
3271
+ trainingdatapoint_tmp.deserialize(i)
3272
+ @TotalSteps << trainingdatapoint_tmp
3273
+ end
3274
+ end
3275
+ end
3276
+ end
3277
+
3278
+ # 模型列表
3279
+ class TrainingModelDTO < TencentCloud::Common::AbstractModel
3280
+ # @param TrainingModelId: 模型id
3281
+ # @type TrainingModelId: String
3282
+ # @param TrainingModelName: 模型名称
3283
+ # @type TrainingModelName: String
3284
+ # @param Tags: 标签
3285
+ # 注意:此字段可能返回 null,表示取不到有效值。
3286
+ # @type Tags: Array
3287
+ # @param CreateTime: 模型创建时间
3288
+ # 注意:此字段可能返回 null,表示取不到有效值。
3289
+ # @type CreateTime: String
3290
+
3291
+ attr_accessor :TrainingModelId, :TrainingModelName, :Tags, :CreateTime
3292
+
3293
+ def initialize(trainingmodelid=nil, trainingmodelname=nil, tags=nil, createtime=nil)
3294
+ @TrainingModelId = trainingmodelid
3295
+ @TrainingModelName = trainingmodelname
3296
+ @Tags = tags
3297
+ @CreateTime = createtime
3298
+ end
3299
+
3300
+ def deserialize(params)
3301
+ @TrainingModelId = params['TrainingModelId']
3302
+ @TrainingModelName = params['TrainingModelName']
3303
+ unless params['Tags'].nil?
3304
+ @Tags = []
3305
+ params['Tags'].each do |i|
3306
+ tag_tmp = Tag.new
3307
+ tag_tmp.deserialize(i)
3308
+ @Tags << tag_tmp
3309
+ end
3310
+ end
3311
+ @CreateTime = params['CreateTime']
3312
+ end
3313
+ end
3314
+
3315
+ # 模型版本列表
3316
+ class TrainingModelVersionDTO < TencentCloud::Common::AbstractModel
3317
+ # @param TrainingModelId: 模型id
3318
+ # @type TrainingModelId: String
3319
+ # @param TrainingModelVersionId: 模型版本id
3320
+ # @type TrainingModelVersionId: String
3321
+ # @param TrainingModelVersion: 模型版本
3322
+ # @type TrainingModelVersion: String
3323
+ # @param TrainingModelSource: 模型来源
3324
+ # @type TrainingModelSource: String
3325
+ # @param TrainingModelCreateTime: 创建时间
3326
+ # @type TrainingModelCreateTime: String
3327
+ # @param TrainingModelCreator: 创建人uin
3328
+ # @type TrainingModelCreator: String
3329
+ # @param AlgorithmFramework: 算法框架
3330
+ # @type AlgorithmFramework: String
3331
+ # @param ReasoningEnvironment: 推理环境
3332
+ # @type ReasoningEnvironment: String
3333
+ # @param ReasoningEnvironmentSource: 推理环境来源
3334
+ # @type ReasoningEnvironmentSource: String
3335
+ # @param TrainingModelIndex: 模型指标
3336
+ # @type TrainingModelIndex: String
3337
+ # @param TrainingJobName: 训练任务名称
3338
+ # @type TrainingJobName: String
3339
+ # @param TrainingModelCosPath: 模型cos路径
3340
+ # @type TrainingModelCosPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
3341
+ # @param TrainingModelName: 模型名称
3342
+ # @type TrainingModelName: String
3343
+ # @param TrainingJobId: 训练任务id
3344
+ # @type TrainingJobId: String
3345
+ # @param ReasoningImageInfo: 自定义推理环境
3346
+ # @type ReasoningImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
3347
+ # @param CreateTime: 模型版本创建时间
3348
+ # @type CreateTime: String
3349
+ # @param TrainingModelStatus: 模型处理状态
3350
+ # 注意:此字段可能返回 null,表示取不到有效值。
3351
+ # @type TrainingModelStatus: String
3352
+ # @param TrainingModelProgress: 模型处理进度
3353
+ # 注意:此字段可能返回 null,表示取不到有效值。
3354
+ # @type TrainingModelProgress: Integer
3355
+ # @param TrainingModelErrorMsg: 模型错误信息
3356
+ # 注意:此字段可能返回 null,表示取不到有效值。
3357
+ # @type TrainingModelErrorMsg: String
3358
+ # @param TrainingModelFormat: 模型格式
3359
+ # 注意:此字段可能返回 null,表示取不到有效值。
3360
+ # @type TrainingModelFormat: String
3361
+
3362
+ attr_accessor :TrainingModelId, :TrainingModelVersionId, :TrainingModelVersion, :TrainingModelSource, :TrainingModelCreateTime, :TrainingModelCreator, :AlgorithmFramework, :ReasoningEnvironment, :ReasoningEnvironmentSource, :TrainingModelIndex, :TrainingJobName, :TrainingModelCosPath, :TrainingModelName, :TrainingJobId, :ReasoningImageInfo, :CreateTime, :TrainingModelStatus, :TrainingModelProgress, :TrainingModelErrorMsg, :TrainingModelFormat
3363
+
3364
+ def initialize(trainingmodelid=nil, trainingmodelversionid=nil, trainingmodelversion=nil, trainingmodelsource=nil, trainingmodelcreatetime=nil, trainingmodelcreator=nil, algorithmframework=nil, reasoningenvironment=nil, reasoningenvironmentsource=nil, trainingmodelindex=nil, trainingjobname=nil, trainingmodelcospath=nil, trainingmodelname=nil, trainingjobid=nil, reasoningimageinfo=nil, createtime=nil, trainingmodelstatus=nil, trainingmodelprogress=nil, trainingmodelerrormsg=nil, trainingmodelformat=nil)
3365
+ @TrainingModelId = trainingmodelid
3366
+ @TrainingModelVersionId = trainingmodelversionid
3367
+ @TrainingModelVersion = trainingmodelversion
3368
+ @TrainingModelSource = trainingmodelsource
3369
+ @TrainingModelCreateTime = trainingmodelcreatetime
3370
+ @TrainingModelCreator = trainingmodelcreator
3371
+ @AlgorithmFramework = algorithmframework
3372
+ @ReasoningEnvironment = reasoningenvironment
3373
+ @ReasoningEnvironmentSource = reasoningenvironmentsource
3374
+ @TrainingModelIndex = trainingmodelindex
3375
+ @TrainingJobName = trainingjobname
3376
+ @TrainingModelCosPath = trainingmodelcospath
3377
+ @TrainingModelName = trainingmodelname
3378
+ @TrainingJobId = trainingjobid
3379
+ @ReasoningImageInfo = reasoningimageinfo
3380
+ @CreateTime = createtime
3381
+ @TrainingModelStatus = trainingmodelstatus
3382
+ @TrainingModelProgress = trainingmodelprogress
3383
+ @TrainingModelErrorMsg = trainingmodelerrormsg
3384
+ @TrainingModelFormat = trainingmodelformat
3385
+ end
3386
+
3387
+ def deserialize(params)
3388
+ @TrainingModelId = params['TrainingModelId']
3389
+ @TrainingModelVersionId = params['TrainingModelVersionId']
3390
+ @TrainingModelVersion = params['TrainingModelVersion']
3391
+ @TrainingModelSource = params['TrainingModelSource']
3392
+ @TrainingModelCreateTime = params['TrainingModelCreateTime']
3393
+ @TrainingModelCreator = params['TrainingModelCreator']
3394
+ @AlgorithmFramework = params['AlgorithmFramework']
3395
+ @ReasoningEnvironment = params['ReasoningEnvironment']
3396
+ @ReasoningEnvironmentSource = params['ReasoningEnvironmentSource']
3397
+ @TrainingModelIndex = params['TrainingModelIndex']
3398
+ @TrainingJobName = params['TrainingJobName']
3399
+ unless params['TrainingModelCosPath'].nil?
3400
+ @TrainingModelCosPath = CosPathInfo.new
3401
+ @TrainingModelCosPath.deserialize(params['TrainingModelCosPath'])
3402
+ end
3403
+ @TrainingModelName = params['TrainingModelName']
3404
+ @TrainingJobId = params['TrainingJobId']
3405
+ unless params['ReasoningImageInfo'].nil?
3406
+ @ReasoningImageInfo = ImageInfo.new
3407
+ @ReasoningImageInfo.deserialize(params['ReasoningImageInfo'])
3408
+ end
3409
+ @CreateTime = params['CreateTime']
3410
+ @TrainingModelStatus = params['TrainingModelStatus']
3411
+ @TrainingModelProgress = params['TrainingModelProgress']
3412
+ @TrainingModelErrorMsg = params['TrainingModelErrorMsg']
3413
+ @TrainingModelFormat = params['TrainingModelFormat']
3414
+ end
3415
+ end
3416
+
3417
+ # 训练任务详情
3418
+ class TrainingTaskDetail < TencentCloud::Common::AbstractModel
3419
+ # @param Id: 训练任务ID
3420
+ # @type Id: String
3421
+ # @param Name: 训练任务名称
3422
+ # @type Name: String
3423
+ # @param Uin: 主账号uin
3424
+ # @type Uin: String
3425
+ # @param SubUin: 子账号uin
3426
+ # @type SubUin: String
3427
+ # @param Region: 地域
3428
+ # @type Region: String
3429
+ # @param FrameworkName: 训练框架名称,eg:SPARK、TENSORFLOW、PYTORCH、LIGHT
3430
+ # 注意:此字段可能返回 null,表示取不到有效值。
3431
+ # @type FrameworkName: String
3432
+ # @param FrameworkVersion: 训练框架版本
3433
+ # 注意:此字段可能返回 null,表示取不到有效值。
3434
+ # @type FrameworkVersion: String
3435
+ # @param TrainingMode: 训练模式,eg:PS_WORKER、DDP、MPI、HOROVOD
3436
+ # 注意:此字段可能返回 null,表示取不到有效值。
3437
+ # @type TrainingMode: String
3438
+ # @param ChargeType: 计费模式
3439
+ # @type ChargeType: String
3440
+ # @param ResourceGroupId: 预付费专用资源组
3441
+ # 注意:此字段可能返回 null,表示取不到有效值。
3442
+ # @type ResourceGroupId: String
3443
+ # @param ResourceConfigInfos: 资源配置
3444
+ # @type ResourceConfigInfos: Array
3445
+ # @param Tags: 标签
3446
+ # 注意:此字段可能返回 null,表示取不到有效值。
3447
+ # @type Tags: Array
3448
+ # @param ImageInfo: 自定义镜像信息
3449
+ # 注意:此字段可能返回 null,表示取不到有效值。
3450
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
3451
+ # @param CodePackagePath: 代码包
3452
+ # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
3453
+ # @param StartCmdInfo: 启动命令信息
3454
+ # @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo`
3455
+ # @param DataSource: 数据来源,eg:DATASET、COS
3456
+ # 注意:此字段可能返回 null,表示取不到有效值。
3457
+ # @type DataSource: String
3458
+ # @param DataConfigs: 数据配置
3459
+ # 注意:此字段可能返回 null,表示取不到有效值。
3460
+ # @type DataConfigs: Array
3461
+ # @param TuningParameters: 调优参数
3462
+ # 注意:此字段可能返回 null,表示取不到有效值。
3463
+ # @type TuningParameters: String
3464
+ # @param Output: 训练输出
3465
+ # @type Output: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
3466
+ # @param LogEnable: 是否上报日志
3467
+ # @type LogEnable: Boolean
3468
+ # @param LogConfig: 日志配置
3469
+ # 注意:此字段可能返回 null,表示取不到有效值。
3470
+ # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig`
3471
+ # @param VpcId: VPC ID
3472
+ # 注意:此字段可能返回 null,表示取不到有效值。
3473
+ # @type VpcId: String
3474
+ # @param SubnetId: 子网ID
3475
+ # 注意:此字段可能返回 null,表示取不到有效值。
3476
+ # @type SubnetId: String
3477
+ # @param Status: 任务状态
3478
+ # @type Status: String
3479
+ # @param RuntimeInSeconds: 运行时长
3480
+ # 注意:此字段可能返回 null,表示取不到有效值。
3481
+ # @type RuntimeInSeconds: Integer
3482
+ # @param CreateTime: 创建时间
3483
+ # @type CreateTime: String
3484
+ # @param StartTime: 训练开始时间
3485
+ # 注意:此字段可能返回 null,表示取不到有效值。
3486
+ # @type StartTime: String
3487
+ # @param ChargeStatus: 计费状态,eg:BILLING计费中,ARREARS_STOP欠费停止,NOT_BILLING不在计费中
3488
+ # @type ChargeStatus: String
3489
+ # @param LatestInstanceId: 最近一次实例ID
3490
+ # 注意:此字段可能返回 null,表示取不到有效值。
3491
+ # @type LatestInstanceId: String
3492
+ # @param TensorBoardId: TensorBoard ID
3493
+ # 注意:此字段可能返回 null,表示取不到有效值。
3494
+ # @type TensorBoardId: String
3495
+ # @param Remark: 备注
3496
+ # 注意:此字段可能返回 null,表示取不到有效值。
3497
+ # @type Remark: String
3498
+ # @param FailureReason: 失败原因
3499
+ # 注意:此字段可能返回 null,表示取不到有效值。
3500
+ # @type FailureReason: String
3501
+ # @param UpdateTime: 更新时间
3502
+ # @type UpdateTime: String
3503
+ # @param EndTime: 训练结束时间
3504
+ # 注意:此字段可能返回 null,表示取不到有效值。
3505
+ # @type EndTime: String
3506
+ # @param BillingInfo: 计费金额信息,eg:2.00元/小时 (for后付费)
3507
+ # 注意:此字段可能返回 null,表示取不到有效值。
3508
+ # @type BillingInfo: String
3509
+ # @param ResourceGroupName: 预付费专用资源组名称
3510
+ # 注意:此字段可能返回 null,表示取不到有效值。
3511
+ # @type ResourceGroupName: String
3512
+
3513
+ attr_accessor :Id, :Name, :Uin, :SubUin, :Region, :FrameworkName, :FrameworkVersion, :TrainingMode, :ChargeType, :ResourceGroupId, :ResourceConfigInfos, :Tags, :ImageInfo, :CodePackagePath, :StartCmdInfo, :DataSource, :DataConfigs, :TuningParameters, :Output, :LogEnable, :LogConfig, :VpcId, :SubnetId, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :ChargeStatus, :LatestInstanceId, :TensorBoardId, :Remark, :FailureReason, :UpdateTime, :EndTime, :BillingInfo, :ResourceGroupName
3514
+
3515
+ def initialize(id=nil, name=nil, uin=nil, subuin=nil, region=nil, frameworkname=nil, frameworkversion=nil, trainingmode=nil, chargetype=nil, resourcegroupid=nil, resourceconfiginfos=nil, tags=nil, imageinfo=nil, codepackagepath=nil, startcmdinfo=nil, datasource=nil, dataconfigs=nil, tuningparameters=nil, output=nil, logenable=nil, logconfig=nil, vpcid=nil, subnetid=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, chargestatus=nil, latestinstanceid=nil, tensorboardid=nil, remark=nil, failurereason=nil, updatetime=nil, endtime=nil, billinginfo=nil, resourcegroupname=nil)
3516
+ @Id = id
3517
+ @Name = name
3518
+ @Uin = uin
3519
+ @SubUin = subuin
3520
+ @Region = region
3521
+ @FrameworkName = frameworkname
3522
+ @FrameworkVersion = frameworkversion
3523
+ @TrainingMode = trainingmode
3524
+ @ChargeType = chargetype
3525
+ @ResourceGroupId = resourcegroupid
3526
+ @ResourceConfigInfos = resourceconfiginfos
3527
+ @Tags = tags
3528
+ @ImageInfo = imageinfo
3529
+ @CodePackagePath = codepackagepath
3530
+ @StartCmdInfo = startcmdinfo
3531
+ @DataSource = datasource
3532
+ @DataConfigs = dataconfigs
3533
+ @TuningParameters = tuningparameters
3534
+ @Output = output
3535
+ @LogEnable = logenable
3536
+ @LogConfig = logconfig
3537
+ @VpcId = vpcid
3538
+ @SubnetId = subnetid
3539
+ @Status = status
3540
+ @RuntimeInSeconds = runtimeinseconds
3541
+ @CreateTime = createtime
3542
+ @StartTime = starttime
3543
+ @ChargeStatus = chargestatus
3544
+ @LatestInstanceId = latestinstanceid
3545
+ @TensorBoardId = tensorboardid
3546
+ @Remark = remark
3547
+ @FailureReason = failurereason
3548
+ @UpdateTime = updatetime
3549
+ @EndTime = endtime
3550
+ @BillingInfo = billinginfo
3551
+ @ResourceGroupName = resourcegroupname
3552
+ end
3553
+
3554
+ def deserialize(params)
3555
+ @Id = params['Id']
3556
+ @Name = params['Name']
3557
+ @Uin = params['Uin']
3558
+ @SubUin = params['SubUin']
3559
+ @Region = params['Region']
3560
+ @FrameworkName = params['FrameworkName']
3561
+ @FrameworkVersion = params['FrameworkVersion']
3562
+ @TrainingMode = params['TrainingMode']
3563
+ @ChargeType = params['ChargeType']
3564
+ @ResourceGroupId = params['ResourceGroupId']
3565
+ unless params['ResourceConfigInfos'].nil?
3566
+ @ResourceConfigInfos = []
3567
+ params['ResourceConfigInfos'].each do |i|
3568
+ resourceconfiginfo_tmp = ResourceConfigInfo.new
3569
+ resourceconfiginfo_tmp.deserialize(i)
3570
+ @ResourceConfigInfos << resourceconfiginfo_tmp
3571
+ end
3572
+ end
3573
+ unless params['Tags'].nil?
3574
+ @Tags = []
3575
+ params['Tags'].each do |i|
3576
+ tag_tmp = Tag.new
3577
+ tag_tmp.deserialize(i)
3578
+ @Tags << tag_tmp
3579
+ end
3580
+ end
3581
+ unless params['ImageInfo'].nil?
3582
+ @ImageInfo = ImageInfo.new
3583
+ @ImageInfo.deserialize(params['ImageInfo'])
3584
+ end
3585
+ unless params['CodePackagePath'].nil?
3586
+ @CodePackagePath = CosPathInfo.new
3587
+ @CodePackagePath.deserialize(params['CodePackagePath'])
3588
+ end
3589
+ unless params['StartCmdInfo'].nil?
3590
+ @StartCmdInfo = StartCmdInfo.new
3591
+ @StartCmdInfo.deserialize(params['StartCmdInfo'])
3592
+ end
3593
+ @DataSource = params['DataSource']
3594
+ unless params['DataConfigs'].nil?
3595
+ @DataConfigs = []
3596
+ params['DataConfigs'].each do |i|
3597
+ dataconfig_tmp = DataConfig.new
3598
+ dataconfig_tmp.deserialize(i)
3599
+ @DataConfigs << dataconfig_tmp
3600
+ end
3601
+ end
3602
+ @TuningParameters = params['TuningParameters']
3603
+ unless params['Output'].nil?
3604
+ @Output = CosPathInfo.new
3605
+ @Output.deserialize(params['Output'])
3606
+ end
3607
+ @LogEnable = params['LogEnable']
3608
+ unless params['LogConfig'].nil?
3609
+ @LogConfig = LogConfig.new
3610
+ @LogConfig.deserialize(params['LogConfig'])
3611
+ end
3612
+ @VpcId = params['VpcId']
3613
+ @SubnetId = params['SubnetId']
3614
+ @Status = params['Status']
3615
+ @RuntimeInSeconds = params['RuntimeInSeconds']
3616
+ @CreateTime = params['CreateTime']
3617
+ @StartTime = params['StartTime']
3618
+ @ChargeStatus = params['ChargeStatus']
3619
+ @LatestInstanceId = params['LatestInstanceId']
3620
+ @TensorBoardId = params['TensorBoardId']
3621
+ @Remark = params['Remark']
3622
+ @FailureReason = params['FailureReason']
3623
+ @UpdateTime = params['UpdateTime']
3624
+ @EndTime = params['EndTime']
3625
+ @BillingInfo = params['BillingInfo']
3626
+ @ResourceGroupName = params['ResourceGroupName']
3627
+ end
3628
+ end
3629
+
3630
+ # 出参类型
3631
+ class TrainingTaskSetItem < TencentCloud::Common::AbstractModel
3632
+ # @param Id: 训练任务ID
3633
+ # @type Id: String
3634
+ # @param Name: 训练任务名称
3635
+ # @type Name: String
3636
+ # @param FrameworkName: 框架名称
3637
+ # 注意:此字段可能返回 null,表示取不到有效值。
3638
+ # @type FrameworkName: String
3639
+ # @param FrameworkVersion: 训练框架版本
3640
+ # 注意:此字段可能返回 null,表示取不到有效值。
3641
+ # @type FrameworkVersion: String
3642
+ # @param TrainingMode: 训练模式eg:PS_WORKER、DDP、MPI、HOROVOD
3643
+ # 注意:此字段可能返回 null,表示取不到有效值。
3644
+ # @type TrainingMode: String
3645
+ # @param ChargeType: 计费模式
3646
+ # @type ChargeType: String
3647
+ # @param ChargeStatus: 计费状态,eg:BILLING计费中,ARREARS_STOP欠费停止,NOT_BILLING不在计费中
3648
+ # @type ChargeStatus: String
3649
+ # @param ResourceGroupId: 预付费专用资源组
3650
+ # 注意:此字段可能返回 null,表示取不到有效值。
3651
+ # @type ResourceGroupId: String
3652
+ # @param ResourceConfigInfos: 资源配置
3653
+ # @type ResourceConfigInfos: Array
3654
+ # @param Tags: 标签配置
3655
+ # 注意:此字段可能返回 null,表示取不到有效值。
3656
+ # @type Tags: Array
3657
+ # @param Status: 任务状态
3658
+ # @type Status: String
3659
+ # @param RuntimeInSeconds: 运行时长
3660
+ # 注意:此字段可能返回 null,表示取不到有效值。
3661
+ # @type RuntimeInSeconds: Integer
3662
+ # @param CreateTime: 创建时间
3663
+ # @type CreateTime: String
3664
+ # @param StartTime: 训练开始时间
3665
+ # 注意:此字段可能返回 null,表示取不到有效值。
3666
+ # @type StartTime: String
3667
+ # @param EndTime: 训练结束时间
3668
+ # 注意:此字段可能返回 null,表示取不到有效值。
3669
+ # @type EndTime: String
3670
+ # @param Output: 训练输出
3671
+ # @type Output: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo`
3672
+ # @param FailureReason: 失败原因
3673
+ # 注意:此字段可能返回 null,表示取不到有效值。
3674
+ # @type FailureReason: String
3675
+ # @param UpdateTime: 更新时间
3676
+ # @type UpdateTime: String
3677
+ # @param BillingInfo: 计费金额信息,eg:2.00元/小时 (for后付费)
3678
+ # @type BillingInfo: String
3679
+ # @param ResourceGroupName: 预付费专用资源组名称
3680
+ # @type ResourceGroupName: String
3681
+ # @param ImageInfo: 自定义镜像信息
3682
+ # 注意:此字段可能返回 null,表示取不到有效值。
3683
+ # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo`
3684
+
3685
+ attr_accessor :Id, :Name, :FrameworkName, :FrameworkVersion, :TrainingMode, :ChargeType, :ChargeStatus, :ResourceGroupId, :ResourceConfigInfos, :Tags, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :EndTime, :Output, :FailureReason, :UpdateTime, :BillingInfo, :ResourceGroupName, :ImageInfo
3686
+
3687
+ def initialize(id=nil, name=nil, frameworkname=nil, frameworkversion=nil, trainingmode=nil, chargetype=nil, chargestatus=nil, resourcegroupid=nil, resourceconfiginfos=nil, tags=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, endtime=nil, output=nil, failurereason=nil, updatetime=nil, billinginfo=nil, resourcegroupname=nil, imageinfo=nil)
3688
+ @Id = id
3689
+ @Name = name
3690
+ @FrameworkName = frameworkname
3691
+ @FrameworkVersion = frameworkversion
3692
+ @TrainingMode = trainingmode
3693
+ @ChargeType = chargetype
3694
+ @ChargeStatus = chargestatus
3695
+ @ResourceGroupId = resourcegroupid
3696
+ @ResourceConfigInfos = resourceconfiginfos
3697
+ @Tags = tags
3698
+ @Status = status
3699
+ @RuntimeInSeconds = runtimeinseconds
3700
+ @CreateTime = createtime
3701
+ @StartTime = starttime
3702
+ @EndTime = endtime
3703
+ @Output = output
3704
+ @FailureReason = failurereason
3705
+ @UpdateTime = updatetime
3706
+ @BillingInfo = billinginfo
3707
+ @ResourceGroupName = resourcegroupname
3708
+ @ImageInfo = imageinfo
3709
+ end
3710
+
3711
+ def deserialize(params)
3712
+ @Id = params['Id']
3713
+ @Name = params['Name']
3714
+ @FrameworkName = params['FrameworkName']
3715
+ @FrameworkVersion = params['FrameworkVersion']
3716
+ @TrainingMode = params['TrainingMode']
3717
+ @ChargeType = params['ChargeType']
3718
+ @ChargeStatus = params['ChargeStatus']
3719
+ @ResourceGroupId = params['ResourceGroupId']
3720
+ unless params['ResourceConfigInfos'].nil?
3721
+ @ResourceConfigInfos = []
3722
+ params['ResourceConfigInfos'].each do |i|
3723
+ resourceconfiginfo_tmp = ResourceConfigInfo.new
3724
+ resourceconfiginfo_tmp.deserialize(i)
3725
+ @ResourceConfigInfos << resourceconfiginfo_tmp
3726
+ end
3727
+ end
3728
+ unless params['Tags'].nil?
3729
+ @Tags = []
3730
+ params['Tags'].each do |i|
3731
+ tag_tmp = Tag.new
3732
+ tag_tmp.deserialize(i)
3733
+ @Tags << tag_tmp
3734
+ end
3735
+ end
3736
+ @Status = params['Status']
3737
+ @RuntimeInSeconds = params['RuntimeInSeconds']
3738
+ @CreateTime = params['CreateTime']
3739
+ @StartTime = params['StartTime']
3740
+ @EndTime = params['EndTime']
3741
+ unless params['Output'].nil?
3742
+ @Output = CosPathInfo.new
3743
+ @Output.deserialize(params['Output'])
3744
+ end
3745
+ @FailureReason = params['FailureReason']
3746
+ @UpdateTime = params['UpdateTime']
3747
+ @BillingInfo = params['BillingInfo']
3748
+ @ResourceGroupName = params['ResourceGroupName']
3749
+ unless params['ImageInfo'].nil?
3750
+ @ImageInfo = ImageInfo.new
3751
+ @ImageInfo.deserialize(params['ImageInfo'])
3752
+ end
3753
+ end
3754
+ end
3755
+
3756
+ end
3757
+ end
3758
+ end
3759
+