lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.815 vs lib/v20211111/models.rb in tencentcloud-sdk-tione-3.0.833

- old
+ new

@@ -15,505 +15,27 @@ # limitations under the License. module TencentCloud module Tione module V20211111 - # 接口描述信息 - class APIConfigDetail < TencentCloud::Common::AbstractModel - # @param Id: 接口id + # CBS存储配置 + class CBSConfig < TencentCloud::Common::AbstractModel + # @param VolumeSizeInGB: 存储大小 # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Id: String - # @param ServiceGroupId: 接口所属服务组id - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ServiceGroupId: String - # @param Description: 接口描述 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Description: String - # @param RelativeUrl: 相对路径 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RelativeUrl: String - # @param ServiceType: 服务类型 HTTP HTTPS - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ServiceType: String - # @param HttpMethod: GET POST - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type HttpMethod: String - # @param HttpInputExample: 请求示例 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type HttpInputExample: String - # @param HttpOutputExample: 回包示例 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type HttpOutputExample: String - # @param UpdatedBy: 更新成员 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type UpdatedBy: String - # @param UpdatedAt: 更新时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type UpdatedAt: String - # @param Uin: 主账号uin - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Uin: String - # @param SubUin: 子账号subuin - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type SubUin: String + # @type VolumeSizeInGB: Integer - attr_accessor :Id, :ServiceGroupId, :Description, :RelativeUrl, :ServiceType, :HttpMethod, :HttpInputExample, :HttpOutputExample, :UpdatedBy, :UpdatedAt, :Uin, :SubUin + attr_accessor :VolumeSizeInGB - def initialize(id=nil, servicegroupid=nil, description=nil, relativeurl=nil, servicetype=nil, httpmethod=nil, httpinputexample=nil, httpoutputexample=nil, updatedby=nil, updatedat=nil, uin=nil, subuin=nil) - @Id = id - @ServiceGroupId = servicegroupid - @Description = description - @RelativeUrl = relativeurl - @ServiceType = servicetype - @HttpMethod = httpmethod - @HttpInputExample = httpinputexample - @HttpOutputExample = httpoutputexample - @UpdatedBy = updatedby - @UpdatedAt = updatedat - @Uin = uin - @SubUin = subuin + def initialize(volumesizeingb=nil) + @VolumeSizeInGB = volumesizeingb end def deserialize(params) - @Id = params['Id'] - @ServiceGroupId = params['ServiceGroupId'] - @Description = params['Description'] - @RelativeUrl = params['RelativeUrl'] - @ServiceType = params['ServiceType'] - @HttpMethod = params['HttpMethod'] - @HttpInputExample = params['HttpInputExample'] - @HttpOutputExample = params['HttpOutputExample'] - @UpdatedBy = params['UpdatedBy'] - @UpdatedAt = params['UpdatedAt'] - @Uin = params['Uin'] - @SubUin = params['SubUin'] + @VolumeSizeInGB = params['VolumeSizeInGB'] end end - # 批量模型加速任务 - class BatchModelAccTask < TencentCloud::Common::AbstractModel - # @param ModelId: 模型ID - # @type ModelId: String - # @param ModelVersion: 模型版本 - # @type ModelVersion: String - # @param ModelSource: 模型来源(JOB/COS) - # @type ModelSource: String - # @param ModelFormat: 模型格式(TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/MMDETECTION/ONNX/HUGGING_FACE) - # @type ModelFormat: String - # @param TensorInfos: 模型Tensor信息 - # @type TensorInfos: Array - # @param AccEngineVersion: 加速引擎版本 - # @type AccEngineVersion: String - # @param ModelInputPath: 模型输入cos路径 - # @type ModelInputPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param ModelName: 模型名称 - # @type ModelName: String - # @param ModelSignature: SavedModel保存时配置的签名 - # @type ModelSignature: String - # @param FrameworkVersion: 加速引擎对应的框架版本 - # @type FrameworkVersion: String - - attr_accessor :ModelId, :ModelVersion, :ModelSource, :ModelFormat, :TensorInfos, :AccEngineVersion, :ModelInputPath, :ModelName, :ModelSignature, :FrameworkVersion - - def initialize(modelid=nil, modelversion=nil, modelsource=nil, modelformat=nil, tensorinfos=nil, accengineversion=nil, modelinputpath=nil, modelname=nil, modelsignature=nil, frameworkversion=nil) - @ModelId = modelid - @ModelVersion = modelversion - @ModelSource = modelsource - @ModelFormat = modelformat - @TensorInfos = tensorinfos - @AccEngineVersion = accengineversion - @ModelInputPath = modelinputpath - @ModelName = modelname - @ModelSignature = modelsignature - @FrameworkVersion = frameworkversion - end - - def deserialize(params) - @ModelId = params['ModelId'] - @ModelVersion = params['ModelVersion'] - @ModelSource = params['ModelSource'] - @ModelFormat = params['ModelFormat'] - @TensorInfos = params['TensorInfos'] - @AccEngineVersion = params['AccEngineVersion'] - unless params['ModelInputPath'].nil? - @ModelInputPath = CosPathInfo.new - @ModelInputPath.deserialize(params['ModelInputPath']) - end - @ModelName = params['ModelName'] - @ModelSignature = params['ModelSignature'] - @FrameworkVersion = params['FrameworkVersion'] - end - end - - # 批量预测任务详情 - class BatchTaskDetail < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - # @param BatchTaskName: 批量预测任务名称 - # @type BatchTaskName: String - # @param Uin: 主账号uin - # @type Uin: String - # @param SubUin: 子账号uin - # @type SubUin: String - # @param Region: 地域 - # @type Region: String - # @param ChargeType: 计费模式 - # @type ChargeType: String - # @param ResourceGroupId: 包年包月资源组ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceGroupId: String - # @param ResourceGroupName: 包年包月资源组名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceGroupName: String - # @param ResourceConfigInfo: 资源配置 - # @type ResourceConfigInfo: :class:`Tencentcloud::Tione.v20211111.models.ResourceConfigInfo` - # @param Tags: 标签 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Tags: Array - # @param ModelInfo: 服务对应的模型信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo` - # @param ImageInfo: 自定义镜像信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param CodePackagePath: 代码包 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param StartCmd: 启动命令 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type StartCmd: String - # @param DataConfigs: 输入数据配置 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type DataConfigs: Array - # @param Outputs: 输出数据配置 - # @type Outputs: Array - # @param LogEnable: 是否上报日志 - # @type LogEnable: Boolean - # @param LogConfig: 日志配置 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig` - # @param VpcId: vpc id - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type VpcId: String - # @param SubnetId: 子网id - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type SubnetId: String - # @param Status: 任务状态 - # @type Status: String - # @param RuntimeInSeconds: 运行时长 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RuntimeInSeconds: Integer - # @param CreateTime: 创建时间 - # @type CreateTime: String - # @param UpdateTime: 更新时间 - # @type UpdateTime: String - # @param StartTime: 任务开始时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type StartTime: String - # @param EndTime: 任务结束时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type EndTime: String - # @param ChargeStatus: 计费状态,取值范围: - # BILLING: 计费中 - # NOT_BILLING: 未计费 - # WHITELIST_USING: 白名单使用中 - # WHITELIST_STOP: 白名单到期 - # ARREARS_STOP: 欠费停止 - # @type ChargeStatus: String - # @param LatestInstanceId: 最近一次实例ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LatestInstanceId: String - # @param Remark: 备注 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Remark: String - # @param FailureReason: 失败原因 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FailureReason: String - # @param BillingInfo: 计费金额信息,eg:2.00元/小时 (for 按量计费) - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type BillingInfo: String - # @param PodList: 运行中的Pod的名字 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type PodList: Array - # @param ModelInferenceCodeInfo: 模型推理代码信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelInferenceCodeInfo: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - - attr_accessor :BatchTaskId, :BatchTaskName, :Uin, :SubUin, :Region, :ChargeType, :ResourceGroupId, :ResourceGroupName, :ResourceConfigInfo, :Tags, :ModelInfo, :ImageInfo, :CodePackagePath, :StartCmd, :DataConfigs, :Outputs, :LogEnable, :LogConfig, :VpcId, :SubnetId, :Status, :RuntimeInSeconds, :CreateTime, :UpdateTime, :StartTime, :EndTime, :ChargeStatus, :LatestInstanceId, :Remark, :FailureReason, :BillingInfo, :PodList, :ModelInferenceCodeInfo - - def initialize(batchtaskid=nil, batchtaskname=nil, uin=nil, subuin=nil, region=nil, chargetype=nil, resourcegroupid=nil, resourcegroupname=nil, resourceconfiginfo=nil, tags=nil, modelinfo=nil, imageinfo=nil, codepackagepath=nil, startcmd=nil, dataconfigs=nil, outputs=nil, logenable=nil, logconfig=nil, vpcid=nil, subnetid=nil, status=nil, runtimeinseconds=nil, createtime=nil, updatetime=nil, starttime=nil, endtime=nil, chargestatus=nil, latestinstanceid=nil, remark=nil, failurereason=nil, billinginfo=nil, podlist=nil, modelinferencecodeinfo=nil) - @BatchTaskId = batchtaskid - @BatchTaskName = batchtaskname - @Uin = uin - @SubUin = subuin - @Region = region - @ChargeType = chargetype - @ResourceGroupId = resourcegroupid - @ResourceGroupName = resourcegroupname - @ResourceConfigInfo = resourceconfiginfo - @Tags = tags - @ModelInfo = modelinfo - @ImageInfo = imageinfo - @CodePackagePath = codepackagepath - @StartCmd = startcmd - @DataConfigs = dataconfigs - @Outputs = outputs - @LogEnable = logenable - @LogConfig = logconfig - @VpcId = vpcid - @SubnetId = subnetid - @Status = status - @RuntimeInSeconds = runtimeinseconds - @CreateTime = createtime - @UpdateTime = updatetime - @StartTime = starttime - @EndTime = endtime - @ChargeStatus = chargestatus - @LatestInstanceId = latestinstanceid - @Remark = remark - @FailureReason = failurereason - @BillingInfo = billinginfo - @PodList = podlist - @ModelInferenceCodeInfo = modelinferencecodeinfo - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - @BatchTaskName = params['BatchTaskName'] - @Uin = params['Uin'] - @SubUin = params['SubUin'] - @Region = params['Region'] - @ChargeType = params['ChargeType'] - @ResourceGroupId = params['ResourceGroupId'] - @ResourceGroupName = params['ResourceGroupName'] - unless params['ResourceConfigInfo'].nil? - @ResourceConfigInfo = ResourceConfigInfo.new - @ResourceConfigInfo.deserialize(params['ResourceConfigInfo']) - end - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - unless params['ModelInfo'].nil? - @ModelInfo = ModelInfo.new - @ModelInfo.deserialize(params['ModelInfo']) - end - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - unless params['CodePackagePath'].nil? - @CodePackagePath = CosPathInfo.new - @CodePackagePath.deserialize(params['CodePackagePath']) - end - @StartCmd = params['StartCmd'] - unless params['DataConfigs'].nil? - @DataConfigs = [] - params['DataConfigs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @DataConfigs << dataconfig_tmp - end - end - unless params['Outputs'].nil? - @Outputs = [] - params['Outputs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @Outputs << dataconfig_tmp - end - end - @LogEnable = params['LogEnable'] - unless params['LogConfig'].nil? - @LogConfig = LogConfig.new - @LogConfig.deserialize(params['LogConfig']) - end - @VpcId = params['VpcId'] - @SubnetId = params['SubnetId'] - @Status = params['Status'] - @RuntimeInSeconds = params['RuntimeInSeconds'] - @CreateTime = params['CreateTime'] - @UpdateTime = params['UpdateTime'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @ChargeStatus = params['ChargeStatus'] - @LatestInstanceId = params['LatestInstanceId'] - @Remark = params['Remark'] - @FailureReason = params['FailureReason'] - @BillingInfo = params['BillingInfo'] - @PodList = params['PodList'] - unless params['ModelInferenceCodeInfo'].nil? - @ModelInferenceCodeInfo = CosPathInfo.new - @ModelInferenceCodeInfo.deserialize(params['ModelInferenceCodeInfo']) - end - end - end - - # 批处理任务实例 - class BatchTaskInstance < TencentCloud::Common::AbstractModel - # @param BatchTaskInstanceId: 任务实例id - # @type BatchTaskInstanceId: String - # @param StartTime: 开始时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type StartTime: String - # @param EndTime: 结束时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type EndTime: String - # @param Status: 任务状态 - # @type Status: String - # @param RuntimeInSeconds: 运行时长 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RuntimeInSeconds: Integer - - attr_accessor :BatchTaskInstanceId, :StartTime, :EndTime, :Status, :RuntimeInSeconds - - def initialize(batchtaskinstanceid=nil, starttime=nil, endtime=nil, status=nil, runtimeinseconds=nil) - @BatchTaskInstanceId = batchtaskinstanceid - @StartTime = starttime - @EndTime = endtime - @Status = status - @RuntimeInSeconds = runtimeinseconds - end - - def deserialize(params) - @BatchTaskInstanceId = params['BatchTaskInstanceId'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @Status = params['Status'] - @RuntimeInSeconds = params['RuntimeInSeconds'] - end - end - - # 出参类型 - class BatchTaskSetItem < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - # @param BatchTaskName: 批量预测任务名称 - # @type BatchTaskName: String - # @param ModelInfo: 模型信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo` - # @param ImageInfo: 镜像信息 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param ChargeType: 计费模式 - # @type ChargeType: String - # @param ChargeStatus: 计费状态,取值范围: - # BILLING: 计费中 - # NOT_BILLING: 未计费 - # WHITELIST_USING: 白名单使用中 - # WHITELIST_STOP: 白名单到期 - # ARREARS_STOP: 欠费停止 - # @type ChargeStatus: String - # @param ResourceGroupId: 包年包月资源组ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceGroupId: String - # @param ResourceConfigInfo: 资源配置 - # @type ResourceConfigInfo: :class:`Tencentcloud::Tione.v20211111.models.ResourceConfigInfo` - # @param Tags: 标签配置 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Tags: Array - # @param Status: 任务状态, 取值范围: - # INIT, STARTING, RUNNING, FAILED, STOPPING, STOPPED, SUCCEED - # @type Status: String - # @param RuntimeInSeconds: 运行时长 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RuntimeInSeconds: Integer - # @param CreateTime: 任务创建时间 - # @type CreateTime: String - # @param StartTime: 任务开始运行时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type StartTime: String - # @param EndTime: 任务结束时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type EndTime: String - # @param UpdateTime: 任务更新时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type UpdateTime: String - # @param Outputs: 输出 - # @type Outputs: Array - # @param ResourceGroupName: 包年包月资源组名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceGroupName: String - # @param FailureReason: 失败原因 - # @type FailureReason: String - # @param BillingInfo: 按量计费信息 - # @type BillingInfo: String - - attr_accessor :BatchTaskId, :BatchTaskName, :ModelInfo, :ImageInfo, :ChargeType, :ChargeStatus, :ResourceGroupId, :ResourceConfigInfo, :Tags, :Status, :RuntimeInSeconds, :CreateTime, :StartTime, :EndTime, :UpdateTime, :Outputs, :ResourceGroupName, :FailureReason, :BillingInfo - - def initialize(batchtaskid=nil, batchtaskname=nil, modelinfo=nil, imageinfo=nil, chargetype=nil, chargestatus=nil, resourcegroupid=nil, resourceconfiginfo=nil, tags=nil, status=nil, runtimeinseconds=nil, createtime=nil, starttime=nil, endtime=nil, updatetime=nil, outputs=nil, resourcegroupname=nil, failurereason=nil, billinginfo=nil) - @BatchTaskId = batchtaskid - @BatchTaskName = batchtaskname - @ModelInfo = modelinfo - @ImageInfo = imageinfo - @ChargeType = chargetype - @ChargeStatus = chargestatus - @ResourceGroupId = resourcegroupid - @ResourceConfigInfo = resourceconfiginfo - @Tags = tags - @Status = status - @RuntimeInSeconds = runtimeinseconds - @CreateTime = createtime - @StartTime = starttime - @EndTime = endtime - @UpdateTime = updatetime - @Outputs = outputs - @ResourceGroupName = resourcegroupname - @FailureReason = failurereason - @BillingInfo = billinginfo - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - @BatchTaskName = params['BatchTaskName'] - unless params['ModelInfo'].nil? - @ModelInfo = ModelInfo.new - @ModelInfo.deserialize(params['ModelInfo']) - end - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - @ChargeType = params['ChargeType'] - @ChargeStatus = params['ChargeStatus'] - @ResourceGroupId = params['ResourceGroupId'] - unless params['ResourceConfigInfo'].nil? - @ResourceConfigInfo = ResourceConfigInfo.new - @ResourceConfigInfo.deserialize(params['ResourceConfigInfo']) - end - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - @Status = params['Status'] - @RuntimeInSeconds = params['RuntimeInSeconds'] - @CreateTime = params['CreateTime'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @UpdateTime = params['UpdateTime'] - unless params['Outputs'].nil? - @Outputs = [] - params['Outputs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @Outputs << dataconfig_tmp - end - end - @ResourceGroupName = params['ResourceGroupName'] - @FailureReason = params['FailureReason'] - @BillingInfo = params['BillingInfo'] - end - end - # CFS存储的配置 class CFSConfig < TencentCloud::Common::AbstractModel # @param Id: cfs的实例的ID # @type Id: String # @param Path: 存储的路径 @@ -773,249 +295,10 @@ @Region = params['Region'] @Paths = params['Paths'] end end - # CreateBatchModelAccTasks请求参数结构体 - class CreateBatchModelAccTasksRequest < TencentCloud::Common::AbstractModel - # @param ModelAccTaskName: 模型加速任务名称 - # @type ModelAccTaskName: String - # @param BatchModelAccTasks: 批量模型加速任务 - # @type BatchModelAccTasks: Array - # @param ModelOutputPath: 模型加速保存路径 - # @type ModelOutputPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param Tags: 标签 - # @type Tags: Array - # @param OptimizationLevel: 优化级别(NO_LOSS/FP16/INT8),默认FP16 - # @type OptimizationLevel: String - # @param GPUType: GPU卡类型(T4/V100/A10),默认T4 - # @type GPUType: String - # @param HyperParameter: 专业参数设置 - # @type HyperParameter: :class:`Tencentcloud::Tione.v20211111.models.HyperParameter` - - attr_accessor :ModelAccTaskName, :BatchModelAccTasks, :ModelOutputPath, :Tags, :OptimizationLevel, :GPUType, :HyperParameter - - def initialize(modelacctaskname=nil, batchmodelacctasks=nil, modeloutputpath=nil, tags=nil, optimizationlevel=nil, gputype=nil, hyperparameter=nil) - @ModelAccTaskName = modelacctaskname - @BatchModelAccTasks = batchmodelacctasks - @ModelOutputPath = modeloutputpath - @Tags = tags - @OptimizationLevel = optimizationlevel - @GPUType = gputype - @HyperParameter = hyperparameter - end - - def deserialize(params) - @ModelAccTaskName = params['ModelAccTaskName'] - unless params['BatchModelAccTasks'].nil? - @BatchModelAccTasks = [] - params['BatchModelAccTasks'].each do |i| - batchmodelacctask_tmp = BatchModelAccTask.new - batchmodelacctask_tmp.deserialize(i) - @BatchModelAccTasks << batchmodelacctask_tmp - end - end - unless params['ModelOutputPath'].nil? - @ModelOutputPath = CosPathInfo.new - @ModelOutputPath.deserialize(params['ModelOutputPath']) - end - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - @OptimizationLevel = params['OptimizationLevel'] - @GPUType = params['GPUType'] - unless params['HyperParameter'].nil? - @HyperParameter = HyperParameter.new - @HyperParameter.deserialize(params['HyperParameter']) - end - end - end - - # CreateBatchModelAccTasks返回参数结构体 - class CreateBatchModelAccTasksResponse < TencentCloud::Common::AbstractModel - # @param ModelAccTaskIds: 模型优化任务ID列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelAccTaskIds: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ModelAccTaskIds, :RequestId - - def initialize(modelacctaskids=nil, requestid=nil) - @ModelAccTaskIds = modelacctaskids - @RequestId = requestid - end - - def deserialize(params) - @ModelAccTaskIds = params['ModelAccTaskIds'] - @RequestId = params['RequestId'] - end - end - - # CreateBatchTask请求参数结构体 - class CreateBatchTaskRequest < TencentCloud::Common::AbstractModel - # @param BatchTaskName: 批量预测任务名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头 - # @type BatchTaskName: String - # @param ChargeType: 计费模式,eg:PREPAID 包年包月;POSTPAID_BY_HOUR 按量计费 - # @type ChargeType: String - # @param ResourceConfigInfo: 资源配置 - # @type ResourceConfigInfo: :class:`Tencentcloud::Tione.v20211111.models.ResourceConfigInfo` - # @param Outputs: 结果输出存储信息 - # @type Outputs: Array - # @param LogEnable: 是否上报日志 - # @type LogEnable: Boolean - # @param JobType: 工作类型 1:单次 2:周期 - # @type JobType: Integer - # @param CronInfo: 任务周期描述 - # @type CronInfo: :class:`Tencentcloud::Tione.v20211111.models.CronInfo` - # @param ResourceGroupId: 包年包月资源组ID - # @type ResourceGroupId: String - # @param Tags: 标签配置 - # @type Tags: Array - # @param ModelInfo: 服务对应的模型信息,有模型文件时需要填写 - # @type ModelInfo: :class:`Tencentcloud::Tione.v20211111.models.ModelInfo` - # @param ImageInfo: 自定义镜像信息 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param CodePackage: 代码包 - # @type CodePackage: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param StartCmd: 启动命令 - # @type StartCmd: String - # @param DataConfigs: 数据配置 - # @type DataConfigs: Array - # @param LogConfig: 日志配置 - # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig` - # @param VpcId: VPC Id - # @type VpcId: String - # @param SubnetId: 子网Id - # @type SubnetId: String - # @param Remark: 备注 - # @type Remark: String - # @param CallbackUrl: 任务执行结果回调URL,仅支持http和https。回调格式&内容详见: [TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292) - # @type CallbackUrl: String - # @param StartCmdBase64: 以Base64方式编码的启动命令。假设启动命令是/app/run.sh,则此处输入参数应该为L2FwcC9ydW4uc2g=。 - # @type StartCmdBase64: String - - attr_accessor :BatchTaskName, :ChargeType, :ResourceConfigInfo, :Outputs, :LogEnable, :JobType, :CronInfo, :ResourceGroupId, :Tags, :ModelInfo, :ImageInfo, :CodePackage, :StartCmd, :DataConfigs, :LogConfig, :VpcId, :SubnetId, :Remark, :CallbackUrl, :StartCmdBase64 - extend Gem::Deprecate - deprecate :JobType, :none, 2024, 4 - deprecate :JobType=, :none, 2024, 4 - deprecate :CronInfo, :none, 2024, 4 - deprecate :CronInfo=, :none, 2024, 4 - deprecate :StartCmd, :none, 2024, 4 - deprecate :StartCmd=, :none, 2024, 4 - - def initialize(batchtaskname=nil, chargetype=nil, resourceconfiginfo=nil, outputs=nil, logenable=nil, jobtype=nil, croninfo=nil, resourcegroupid=nil, tags=nil, modelinfo=nil, imageinfo=nil, codepackage=nil, startcmd=nil, dataconfigs=nil, logconfig=nil, vpcid=nil, subnetid=nil, remark=nil, callbackurl=nil, startcmdbase64=nil) - @BatchTaskName = batchtaskname - @ChargeType = chargetype - @ResourceConfigInfo = resourceconfiginfo - @Outputs = outputs - @LogEnable = logenable - @JobType = jobtype - @CronInfo = croninfo - @ResourceGroupId = resourcegroupid - @Tags = tags - @ModelInfo = modelinfo - @ImageInfo = imageinfo - @CodePackage = codepackage - @StartCmd = startcmd - @DataConfigs = dataconfigs - @LogConfig = logconfig - @VpcId = vpcid - @SubnetId = subnetid - @Remark = remark - @CallbackUrl = callbackurl - @StartCmdBase64 = startcmdbase64 - end - - def deserialize(params) - @BatchTaskName = params['BatchTaskName'] - @ChargeType = params['ChargeType'] - unless params['ResourceConfigInfo'].nil? - @ResourceConfigInfo = ResourceConfigInfo.new - @ResourceConfigInfo.deserialize(params['ResourceConfigInfo']) - end - unless params['Outputs'].nil? - @Outputs = [] - params['Outputs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @Outputs << dataconfig_tmp - end - end - @LogEnable = params['LogEnable'] - @JobType = params['JobType'] - unless params['CronInfo'].nil? - @CronInfo = CronInfo.new - @CronInfo.deserialize(params['CronInfo']) - end - @ResourceGroupId = params['ResourceGroupId'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - unless params['ModelInfo'].nil? - @ModelInfo = ModelInfo.new - @ModelInfo.deserialize(params['ModelInfo']) - end - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - unless params['CodePackage'].nil? - @CodePackage = CosPathInfo.new - @CodePackage.deserialize(params['CodePackage']) - end - @StartCmd = params['StartCmd'] - unless params['DataConfigs'].nil? - @DataConfigs = [] - params['DataConfigs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @DataConfigs << dataconfig_tmp - end - end - unless params['LogConfig'].nil? - @LogConfig = LogConfig.new - @LogConfig.deserialize(params['LogConfig']) - end - @VpcId = params['VpcId'] - @SubnetId = params['SubnetId'] - @Remark = params['Remark'] - @CallbackUrl = params['CallbackUrl'] - @StartCmdBase64 = params['StartCmdBase64'] - end - end - - # CreateBatchTask返回参数结构体 - class CreateBatchTaskResponse < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :BatchTaskId, :RequestId - - def initialize(batchtaskid=nil, requestid=nil) - @BatchTaskId = batchtaskid - @RequestId = requestid - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - @RequestId = params['RequestId'] - end - end - # CreateDataset请求参数结构体 class CreateDatasetRequest < TencentCloud::Common::AbstractModel # @param DatasetName: 数据集名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头 # @type DatasetName: String # @param DatasetType: 数据集类型: @@ -1210,16 +493,18 @@ # @type ServiceCategory: String # @param Command: 服务的启动命令,如遇特殊字符导致配置失败,可使用CommandBase64参数 # @type Command: String # @param ServiceEIP: 是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。 # @type ServiceEIP: :class:`Tencentcloud::Tione.v20211111.models.ServiceEIP` - # @param CommandBase64: 服务的启动命令,以base64格式进行输入 + # @param CommandBase64: 服务的启动命令,以base64格式进行输入,与Command同时配置时,仅当前参数生效 # @type CommandBase64: String + # @param ServicePort: 服务端口,仅在非内置镜像时生效,默认8501。不支持输入8501-8510,6006,9092 + # @type ServicePort: Integer - attr_accessor :ServiceGroupId, :ServiceGroupName, :ServiceDescription, :ChargeType, :ResourceGroupId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :AuthorizationEnable, :Tags, :NewVersion, :CronScaleJobs, :ScaleStrategy, :HybridBillingPrepaidReplicas, :CreateSource, :ModelHotUpdateEnable, :ScheduledAction, :VolumeMount, :ServiceLimit, :CallbackUrl, :ModelTurboEnable, :ServiceCategory, :Command, :ServiceEIP, :CommandBase64 + attr_accessor :ServiceGroupId, :ServiceGroupName, :ServiceDescription, :ChargeType, :ResourceGroupId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :AuthorizationEnable, :Tags, :NewVersion, :CronScaleJobs, :ScaleStrategy, :HybridBillingPrepaidReplicas, :CreateSource, :ModelHotUpdateEnable, :ScheduledAction, :VolumeMount, :ServiceLimit, :CallbackUrl, :ModelTurboEnable, :ServiceCategory, :Command, :ServiceEIP, :CommandBase64, :ServicePort - def initialize(servicegroupid=nil, servicegroupname=nil, servicedescription=nil, chargetype=nil, resourcegroupid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, authorizationenable=nil, tags=nil, newversion=nil, cronscalejobs=nil, scalestrategy=nil, hybridbillingprepaidreplicas=nil, createsource=nil, modelhotupdateenable=nil, scheduledaction=nil, volumemount=nil, servicelimit=nil, callbackurl=nil, modelturboenable=nil, servicecategory=nil, command=nil, serviceeip=nil, commandbase64=nil) + def initialize(servicegroupid=nil, servicegroupname=nil, servicedescription=nil, chargetype=nil, resourcegroupid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, authorizationenable=nil, tags=nil, newversion=nil, cronscalejobs=nil, scalestrategy=nil, hybridbillingprepaidreplicas=nil, createsource=nil, modelhotupdateenable=nil, scheduledaction=nil, volumemount=nil, servicelimit=nil, callbackurl=nil, modelturboenable=nil, servicecategory=nil, command=nil, serviceeip=nil, commandbase64=nil, serviceport=nil) @ServiceGroupId = servicegroupid @ServiceGroupName = servicegroupname @ServiceDescription = servicedescription @ChargeType = chargetype @ResourceGroupId = resourcegroupid @@ -1248,10 +533,11 @@ @ModelTurboEnable = modelturboenable @ServiceCategory = servicecategory @Command = command @ServiceEIP = serviceeip @CommandBase64 = commandbase64 + @ServicePort = serviceport end def deserialize(params) @ServiceGroupId = params['ServiceGroupId'] @ServiceGroupName = params['ServiceGroupName'] @@ -1331,10 +617,11 @@ unless params['ServiceEIP'].nil? @ServiceEIP = ServiceEIP.new @ServiceEIP.deserialize(params['ServiceEIP']) end @CommandBase64 = params['CommandBase64'] + @ServicePort = params['ServicePort'] end end # CreateModelService返回参数结构体 class CreateModelServiceResponse < TencentCloud::Common::AbstractModel @@ -1358,53 +645,10 @@ end @RequestId = params['RequestId'] end end - # CreateNotebookImage请求参数结构体 - class CreateNotebookImageRequest < TencentCloud::Common::AbstractModel - # @param ImageInfo: 镜像信息 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param NotebookId: notebook id - # @type NotebookId: String - # @param Kernels: 要保存的kernel数组 - # @type Kernels: Array - - attr_accessor :ImageInfo, :NotebookId, :Kernels - - def initialize(imageinfo=nil, notebookid=nil, kernels=nil) - @ImageInfo = imageinfo - @NotebookId = notebookid - @Kernels = kernels - end - - def deserialize(params) - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - @NotebookId = params['NotebookId'] - @Kernels = params['Kernels'] - end - end - - # CreateNotebookImage返回参数结构体 - class CreateNotebookImageResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # CreateNotebook请求参数结构体 class CreateNotebookRequest < TencentCloud::Common::AbstractModel # @param Name: 名称。不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头 # @type Name: String # @param ChargeType: 计算资源付费模式 ,可选值为: @@ -1569,63 +813,10 @@ @Id = params['Id'] @RequestId = params['RequestId'] end end - # CreateOptimizedModel请求参数结构体 - class CreateOptimizedModelRequest < TencentCloud::Common::AbstractModel - # @param ModelAccTaskId: 模型加速任务ID - # @type ModelAccTaskId: String - # @param Tags: 标签 - # @type Tags: Array - - attr_accessor :ModelAccTaskId, :Tags - - def initialize(modelacctaskid=nil, tags=nil) - @ModelAccTaskId = modelacctaskid - @Tags = tags - end - - def deserialize(params) - @ModelAccTaskId = params['ModelAccTaskId'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - end - end - - # CreateOptimizedModel返回参数结构体 - class CreateOptimizedModelResponse < TencentCloud::Common::AbstractModel - # @param ModelId: 模型ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelId: String - # @param ModelVersionId: 模型版本ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelVersionId: String - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ModelId, :ModelVersionId, :RequestId - - def initialize(modelid=nil, modelversionid=nil, requestid=nil) - @ModelId = modelid - @ModelVersionId = modelversionid - @RequestId = requestid - end - - def deserialize(params) - @ModelId = params['ModelId'] - @ModelVersionId = params['ModelVersionId'] - @RequestId = params['RequestId'] - end - end - # CreatePresignedNotebookUrl请求参数结构体 class CreatePresignedNotebookUrlRequest < TencentCloud::Common::AbstractModel # @param Id: Notebook ID # @type Id: String @@ -1819,207 +1010,10 @@ @TrainingModelVersionId = params['TrainingModelVersionId'] @RequestId = params['RequestId'] end end - # CreateTrainingTask请求参数结构体 - class CreateTrainingTaskRequest < TencentCloud::Common::AbstractModel - # @param Name: 训练任务名称,不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头 - # @type Name: String - # @param ChargeType: 计费模式,eg:PREPAID 包年包月(资源组); - # POSTPAID_BY_HOUR 按量计费 - # @type ChargeType: String - # @param ResourceConfigInfos: 资源配置,需填写对应算力规格ID和节点数量,算力规格ID查询接口为DescribeBillingSpecsPrice,eg:[{"Role":"WORKER", "InstanceType": "TI.S.MEDIUM.POST", "InstanceNum": 1}] - # @type ResourceConfigInfos: Array - # @param FrameworkName: 训练框架名称,通过DescribeTrainingFrameworks接口查询,eg:SPARK、PYSPARK、TENSORFLOW、PYTORCH - # @type FrameworkName: String - # @param FrameworkVersion: 训练框架版本,通过DescribeTrainingFrameworks接口查询,eg:1.15、1.9 - # @type FrameworkVersion: String - # @param FrameworkEnvironment: 训练框架环境,通过DescribeTrainingFrameworks接口查询,eg:tf1.15-py3.7-cpu、torch1.9-py3.8-cuda11.1-gpu - # @type FrameworkEnvironment: String - # @param ResourceGroupId: 预付费专用资源组ID,通过DescribeBillingResourceGroups接口查询 - # @type ResourceGroupId: String - # @param Tags: 标签配置 - # @type Tags: Array - # @param ImageInfo: 自定义镜像信息 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param CodePackagePath: COS代码包路径 - # @type CodePackagePath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param StartCmdInfo: 任务的启动命令,按任务训练模式输入,如遇特殊字符导致配置失败,可使用EncodedStartCmdInfo参数 - # @type StartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.StartCmdInfo` - # @param TrainingMode: 训练模式,通过DescribeTrainingFrameworks接口查询,eg:PS_WORKER、DDP、MPI、HOROVOD - # @type TrainingMode: String - # @param DataConfigs: 数据配置,依赖DataSource字段,数量不超过10个 - # @type DataConfigs: Array - # @param VpcId: VPC Id - # @type VpcId: String - # @param SubnetId: 子网Id - # @type SubnetId: String - # @param Output: COS训练输出路径 - # @type Output: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param LogConfig: CLS日志配置 - # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig` - # @param TuningParameters: 调优参数,不超过2048个字符 - # @type TuningParameters: String - # @param LogEnable: 是否上报日志 - # @type LogEnable: Boolean - # @param Remark: 备注,不超过1024个字符 - # @type Remark: String - # @param DataSource: 数据来源,eg:DATASET、COS、CFS、CFSTurbo、HDFS、GooseFSx - # @type DataSource: String - # @param CallbackUrl: 回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292) - # @type CallbackUrl: String - # @param PreTrainModel: 太极预训练模型ID - # @type PreTrainModel: :class:`Tencentcloud::Tione.v20211111.models.PreTrainModel` - # @param EncodedStartCmdInfo: 编码后的任务启动命令,与StartCmdInfo同时配置时,仅当前参数生效 - # @type EncodedStartCmdInfo: :class:`Tencentcloud::Tione.v20211111.models.EncodedStartCmdInfo` - - attr_accessor :Name, :ChargeType, :ResourceConfigInfos, :FrameworkName, :FrameworkVersion, :FrameworkEnvironment, :ResourceGroupId, :Tags, :ImageInfo, :CodePackagePath, :StartCmdInfo, :TrainingMode, :DataConfigs, :VpcId, :SubnetId, :Output, :LogConfig, :TuningParameters, :LogEnable, :Remark, :DataSource, :CallbackUrl, :PreTrainModel, :EncodedStartCmdInfo - - def initialize(name=nil, chargetype=nil, resourceconfiginfos=nil, frameworkname=nil, frameworkversion=nil, frameworkenvironment=nil, resourcegroupid=nil, tags=nil, imageinfo=nil, codepackagepath=nil, startcmdinfo=nil, trainingmode=nil, dataconfigs=nil, vpcid=nil, subnetid=nil, output=nil, logconfig=nil, tuningparameters=nil, logenable=nil, remark=nil, datasource=nil, callbackurl=nil, pretrainmodel=nil, encodedstartcmdinfo=nil) - @Name = name - @ChargeType = chargetype - @ResourceConfigInfos = resourceconfiginfos - @FrameworkName = frameworkname - @FrameworkVersion = frameworkversion - @FrameworkEnvironment = frameworkenvironment - @ResourceGroupId = resourcegroupid - @Tags = tags - @ImageInfo = imageinfo - @CodePackagePath = codepackagepath - @StartCmdInfo = startcmdinfo - @TrainingMode = trainingmode - @DataConfigs = dataconfigs - @VpcId = vpcid - @SubnetId = subnetid - @Output = output - @LogConfig = logconfig - @TuningParameters = tuningparameters - @LogEnable = logenable - @Remark = remark - @DataSource = datasource - @CallbackUrl = callbackurl - @PreTrainModel = pretrainmodel - @EncodedStartCmdInfo = encodedstartcmdinfo - end - - def deserialize(params) - @Name = params['Name'] - @ChargeType = params['ChargeType'] - unless params['ResourceConfigInfos'].nil? - @ResourceConfigInfos = [] - params['ResourceConfigInfos'].each do |i| - resourceconfiginfo_tmp = ResourceConfigInfo.new - resourceconfiginfo_tmp.deserialize(i) - @ResourceConfigInfos << resourceconfiginfo_tmp - end - end - @FrameworkName = params['FrameworkName'] - @FrameworkVersion = params['FrameworkVersion'] - @FrameworkEnvironment = params['FrameworkEnvironment'] - @ResourceGroupId = params['ResourceGroupId'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - unless params['CodePackagePath'].nil? - @CodePackagePath = CosPathInfo.new - @CodePackagePath.deserialize(params['CodePackagePath']) - end - unless params['StartCmdInfo'].nil? - @StartCmdInfo = StartCmdInfo.new - @StartCmdInfo.deserialize(params['StartCmdInfo']) - end - @TrainingMode = params['TrainingMode'] - unless params['DataConfigs'].nil? - @DataConfigs = [] - params['DataConfigs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @DataConfigs << dataconfig_tmp - end - end - @VpcId = params['VpcId'] - @SubnetId = params['SubnetId'] - unless params['Output'].nil? - @Output = CosPathInfo.new - @Output.deserialize(params['Output']) - end - unless params['LogConfig'].nil? - @LogConfig = LogConfig.new - @LogConfig.deserialize(params['LogConfig']) - end - @TuningParameters = params['TuningParameters'] - @LogEnable = params['LogEnable'] - @Remark = params['Remark'] - @DataSource = params['DataSource'] - @CallbackUrl = params['CallbackUrl'] - unless params['PreTrainModel'].nil? - @PreTrainModel = PreTrainModel.new - @PreTrainModel.deserialize(params['PreTrainModel']) - end - unless params['EncodedStartCmdInfo'].nil? - @EncodedStartCmdInfo = EncodedStartCmdInfo.new - @EncodedStartCmdInfo.deserialize(params['EncodedStartCmdInfo']) - end - end - end - - # CreateTrainingTask返回参数结构体 - class CreateTrainingTaskResponse < TencentCloud::Common::AbstractModel - # @param Id: 训练任务ID - # @type Id: String - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Id, :RequestId - - def initialize(id=nil, requestid=nil) - @Id = id - @RequestId = requestid - end - - def deserialize(params) - @Id = params['Id'] - @RequestId = params['RequestId'] - end - end - - # 跑批任务周期描述 - class CronInfo < TencentCloud::Common::AbstractModel - # @param CronConfig: cron配置 - # @type CronConfig: String - # @param StartTime: 周期开始时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type StartTime: String - # @param EndTime: 周期结束时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type EndTime: String - - attr_accessor :CronConfig, :StartTime, :EndTime - - def initialize(cronconfig=nil, starttime=nil, endtime=nil) - @CronConfig = cronconfig - @StartTime = starttime - @EndTime = endtime - end - - def deserialize(params) - @CronConfig = params['CronConfig'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - end - end - # 定时扩缩任务 class CronScaleJob < TencentCloud::Common::AbstractModel # @param Schedule: Cron表达式,标识任务的执行时间,精确到分钟级 # @type Schedule: String # @param Name: 定时任务名 @@ -2079,87 +1073,10 @@ @PrimaryIP = params['PrimaryIP'] @Port = params['Port'] end end - # 自定义指标 - class CustomTrainingData < TencentCloud::Common::AbstractModel - # @param MetricName: 指标名 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type MetricName: String - # @param Metrics: 指标 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Metrics: Array - - attr_accessor :MetricName, :Metrics - - def initialize(metricname=nil, metrics=nil) - @MetricName = metricname - @Metrics = metrics - end - - def deserialize(params) - @MetricName = params['MetricName'] - unless params['Metrics'].nil? - @Metrics = [] - params['Metrics'].each do |i| - customtrainingmetric_tmp = CustomTrainingMetric.new - customtrainingmetric_tmp.deserialize(i) - @Metrics << customtrainingmetric_tmp - end - end - end - end - - # 自定义指标 - class CustomTrainingMetric < TencentCloud::Common::AbstractModel - # @param XType: X轴数据类型: TIMESTAMP; EPOCH; STEP - # @type XType: String - # @param Points: 数据点 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Points: Array - - attr_accessor :XType, :Points - - def initialize(xtype=nil, points=nil) - @XType = xtype - @Points = points - end - - def deserialize(params) - @XType = params['XType'] - unless params['Points'].nil? - @Points = [] - params['Points'].each do |i| - customtrainingpoint_tmp = CustomTrainingPoint.new - customtrainingpoint_tmp.deserialize(i) - @Points << customtrainingpoint_tmp - end - end - end - end - - # 自定义训练指标数据点 - class CustomTrainingPoint < TencentCloud::Common::AbstractModel - # @param XValue: X值 - # @type XValue: Float - # @param YValue: Y值 - # @type YValue: Float - - attr_accessor :XValue, :YValue - - def initialize(xvalue=nil, yvalue=nil) - @XValue = xvalue - @YValue = yvalue - end - - def deserialize(params) - @XValue = params['XValue'] - @YValue = params['YValue'] - end - end - # 数据配置 class DataConfig < TencentCloud::Common::AbstractModel # @param MappingPath: 映射路径 # @type MappingPath: String # @param DataSourceType: DATASET、COS、CFS、CFSTurbo、GooseFSx、HDFS、WEDATA_HDFS @@ -2184,23 +1101,27 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type CFSTurboSource: :class:`Tencentcloud::Tione.v20211111.models.CFSTurbo` # @param LocalDiskSource: 来自本地磁盘的信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LocalDiskSource: :class:`Tencentcloud::Tione.v20211111.models.LocalDisk` + # @param CBSSource: CBS配置信息 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type CBSSource: :class:`Tencentcloud::Tione.v20211111.models.CBSConfig` - attr_accessor :MappingPath, :DataSourceType, :DataSetSource, :COSSource, :CFSSource, :HDFSSource, :GooseFSSource, :CFSTurboSource, :LocalDiskSource + attr_accessor :MappingPath, :DataSourceType, :DataSetSource, :COSSource, :CFSSource, :HDFSSource, :GooseFSSource, :CFSTurboSource, :LocalDiskSource, :CBSSource - def initialize(mappingpath=nil, datasourcetype=nil, datasetsource=nil, cossource=nil, cfssource=nil, hdfssource=nil, goosefssource=nil, cfsturbosource=nil, localdisksource=nil) + def initialize(mappingpath=nil, datasourcetype=nil, datasetsource=nil, cossource=nil, cfssource=nil, hdfssource=nil, goosefssource=nil, cfsturbosource=nil, localdisksource=nil, cbssource=nil) @MappingPath = mappingpath @DataSourceType = datasourcetype @DataSetSource = datasetsource @COSSource = cossource @CFSSource = cfssource @HDFSSource = hdfssource @GooseFSSource = goosefssource @CFSTurboSource = cfsturbosource @LocalDiskSource = localdisksource + @CBSSource = cbssource end def deserialize(params) @MappingPath = params['MappingPath'] @DataSourceType = params['DataSourceType'] @@ -2230,10 +1151,14 @@ end unless params['LocalDiskSource'].nil? @LocalDiskSource = LocalDisk.new @LocalDiskSource.deserialize(params['LocalDiskSource']) end + unless params['CBSSource'].nil? + @CBSSource = CBSConfig.new + @CBSSource.deserialize(params['CBSSource']) + end end end # 数据点 class DataPoint < TencentCloud::Common::AbstractModel @@ -2615,42 +1540,10 @@ def deserialize(params) @Host = params['Host'] end end - # DeleteBatchTask请求参数结构体 - class DeleteBatchTaskRequest < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - - attr_accessor :BatchTaskId - - def initialize(batchtaskid=nil) - @BatchTaskId = batchtaskid - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - end - end - - # DeleteBatchTask返回参数结构体 - class DeleteBatchTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # DeleteDataset请求参数结构体 class DeleteDatasetRequest < TencentCloud::Common::AbstractModel # @param DatasetId: 数据集id # @type DatasetId: String # @param DeleteLabelEnable: 是否删除cos标签文件 @@ -2687,42 +1580,10 @@ @DatasetId = params['DatasetId'] @RequestId = params['RequestId'] end end - # DeleteModelAccelerateTask请求参数结构体 - class DeleteModelAccelerateTaskRequest < TencentCloud::Common::AbstractModel - # @param ModelAccTaskId: 模型加速任务ID - # @type ModelAccTaskId: String - - attr_accessor :ModelAccTaskId - - def initialize(modelacctaskid=nil) - @ModelAccTaskId = modelacctaskid - end - - def deserialize(params) - @ModelAccTaskId = params['ModelAccTaskId'] - end - end - - # DeleteModelAccelerateTask返回参数结构体 - class DeleteModelAccelerateTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # DeleteModelServiceGroup请求参数结构体 class DeleteModelServiceGroupRequest < TencentCloud::Common::AbstractModel # @param ServiceGroupId: 服务id # @type ServiceGroupId: String @@ -2787,42 +1648,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # DeleteNotebookImageRecord请求参数结构体 - class DeleteNotebookImageRecordRequest < TencentCloud::Common::AbstractModel - # @param RecordId: 记录id - # @type RecordId: String - - attr_accessor :RecordId - - def initialize(recordid=nil) - @RecordId = recordid - end - - def deserialize(params) - @RecordId = params['RecordId'] - end - end - - # DeleteNotebookImageRecord返回参数结构体 - class DeleteNotebookImageRecordResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # DeleteNotebook请求参数结构体 class DeleteNotebookRequest < TencentCloud::Common::AbstractModel # @param Id: notebook id # @type Id: String @@ -2927,288 +1756,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # DeleteTrainingTask请求参数结构体 - class DeleteTrainingTaskRequest < TencentCloud::Common::AbstractModel - # @param Id: 训练任务ID - # @type Id: String - - attr_accessor :Id - - def initialize(id=nil) - @Id = id - end - - def deserialize(params) - @Id = params['Id'] - end - end - - # DeleteTrainingTask返回参数结构体 - class DeleteTrainingTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # DescribeAPIConfigs请求参数结构体 - class DescribeAPIConfigsRequest < TencentCloud::Common::AbstractModel - # @param Offset: 偏移量,默认为0 - # @type Offset: Integer - # @param Limit: 返回数量,默认为20,最大值为100 - # @type Limit: Integer - # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列 - # @type Order: String - # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime" - # @type OrderField: String - # @param Filters: 分页参数,支持的分页过滤Name包括: - # ["ClusterId", "ServiceId", "ServiceGroupName", "ServiceGroupId"] - # @type Filters: Array - - attr_accessor :Offset, :Limit, :Order, :OrderField, :Filters - - def initialize(offset=nil, limit=nil, order=nil, orderfield=nil, filters=nil) - @Offset = offset - @Limit = limit - @Order = order - @OrderField = orderfield - @Filters = filters - end - - def deserialize(params) - @Offset = params['Offset'] - @Limit = params['Limit'] - @Order = params['Order'] - @OrderField = params['OrderField'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeAPIConfigs返回参数结构体 - class DescribeAPIConfigsResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 接口数量 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param Details: 接口详情 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Details: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :Details, :RequestId - - def initialize(totalcount=nil, details=nil, requestid=nil) - @TotalCount = totalcount - @Details = details - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['Details'].nil? - @Details = [] - params['Details'].each do |i| - apiconfigdetail_tmp = APIConfigDetail.new - apiconfigdetail_tmp.deserialize(i) - @Details << apiconfigdetail_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeBatchTaskInstances请求参数结构体 - class DescribeBatchTaskInstancesRequest < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务id - # @type BatchTaskId: String - - attr_accessor :BatchTaskId - - def initialize(batchtaskid=nil) - @BatchTaskId = batchtaskid - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - end - end - - # DescribeBatchTaskInstances返回参数结构体 - class DescribeBatchTaskInstancesResponse < TencentCloud::Common::AbstractModel - # @param BatchInstances: 批量预测实例结果 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type BatchInstances: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :BatchInstances, :RequestId - - def initialize(batchinstances=nil, requestid=nil) - @BatchInstances = batchinstances - @RequestId = requestid - end - - def deserialize(params) - unless params['BatchInstances'].nil? - @BatchInstances = [] - params['BatchInstances'].each do |i| - batchtaskinstance_tmp = BatchTaskInstance.new - batchtaskinstance_tmp.deserialize(i) - @BatchInstances << batchtaskinstance_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeBatchTask请求参数结构体 - class DescribeBatchTaskRequest < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - - attr_accessor :BatchTaskId - - def initialize(batchtaskid=nil) - @BatchTaskId = batchtaskid - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - end - end - - # DescribeBatchTask返回参数结构体 - class DescribeBatchTaskResponse < TencentCloud::Common::AbstractModel - # @param BatchTaskDetail: 批量预测任务详情 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type BatchTaskDetail: :class:`Tencentcloud::Tione.v20211111.models.BatchTaskDetail` - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :BatchTaskDetail, :RequestId - - def initialize(batchtaskdetail=nil, requestid=nil) - @BatchTaskDetail = batchtaskdetail - @RequestId = requestid - end - - def deserialize(params) - unless params['BatchTaskDetail'].nil? - @BatchTaskDetail = BatchTaskDetail.new - @BatchTaskDetail.deserialize(params['BatchTaskDetail']) - end - @RequestId = params['RequestId'] - end - end - - # DescribeBatchTasks请求参数结构体 - class DescribeBatchTasksRequest < TencentCloud::Common::AbstractModel - # @param Filters: 过滤器 - - # Name支持的取值范围: - # BatchTaskId, BatchTaskName, Status, ModelVersionId - - # 其中Status 的有效取值范围: - # INIT, STARTING, RUNNING, FAILED, STOPPING, STOPPED, SUCCEED - # @type Filters: Array - # @param TagFilters: 标签过滤器 - # @type TagFilters: Array - # @param Offset: 偏移量,默认为0 - # @type Offset: Integer - # @param Limit: 限制数目,默认为20 - # @type Limit: Integer - # @param Order: 输出列表的排列顺序。取值范围:ASC(升序排列)/ DESC(降序排列),默认为DESC - # @type Order: String - # @param OrderField: 排序字段。当前仅支持 "CreateTime"。 - # 不传此字段则按照DB默认排序结果返回 - # @type OrderField: String - - attr_accessor :Filters, :TagFilters, :Offset, :Limit, :Order, :OrderField - - def initialize(filters=nil, tagfilters=nil, offset=nil, limit=nil, order=nil, orderfield=nil) - @Filters = filters - @TagFilters = tagfilters - @Offset = offset - @Limit = limit - @Order = order - @OrderField = orderfield - end - - def deserialize(params) - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - unless params['TagFilters'].nil? - @TagFilters = [] - params['TagFilters'].each do |i| - tagfilter_tmp = TagFilter.new - tagfilter_tmp.deserialize(i) - @TagFilters << tagfilter_tmp - end - end - @Offset = params['Offset'] - @Limit = params['Limit'] - @Order = params['Order'] - @OrderField = params['OrderField'] - end - end - - # DescribeBatchTasks返回参数结构体 - class DescribeBatchTasksResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 批量预测任务总数 - # @type TotalCount: Integer - # @param BatchTaskSet: 批量预测任务列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type BatchTaskSet: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :BatchTaskSet, :RequestId - - def initialize(totalcount=nil, batchtaskset=nil, requestid=nil) - @TotalCount = totalcount - @BatchTaskSet = batchtaskset - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['BatchTaskSet'].nil? - @BatchTaskSet = [] - params['BatchTaskSet'].each do |i| - batchtasksetitem_tmp = BatchTaskSetItem.new - batchtasksetitem_tmp.deserialize(i) - @BatchTaskSet << batchtasksetitem_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeBillingResourceGroup请求参数结构体 class DescribeBillingResourceGroupRequest < TencentCloud::Common::AbstractModel # @param ResourceGroupId: 资源组id, 取值为创建资源组接口(CreateBillingResourceGroup)响应中的ResourceGroupId # @type ResourceGroupId: String # @param Filters: 过滤条件 @@ -3432,111 +1983,10 @@ end @RequestId = params['RequestId'] end end - # DescribeBillingSpecsPrice请求参数结构体 - class DescribeBillingSpecsPriceRequest < TencentCloud::Common::AbstractModel - # @param SpecsParam: 询价参数,支持批量询价 - # @type SpecsParam: Array - - attr_accessor :SpecsParam - - def initialize(specsparam=nil) - @SpecsParam = specsparam - end - - def deserialize(params) - unless params['SpecsParam'].nil? - @SpecsParam = [] - params['SpecsParam'].each do |i| - specunit_tmp = SpecUnit.new - specunit_tmp.deserialize(i) - @SpecsParam << specunit_tmp - end - end - end - end - - # DescribeBillingSpecsPrice返回参数结构体 - class DescribeBillingSpecsPriceResponse < TencentCloud::Common::AbstractModel - # @param SpecsPrice: 计费项价格,支持批量返回 - # @type SpecsPrice: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :SpecsPrice, :RequestId - - def initialize(specsprice=nil, requestid=nil) - @SpecsPrice = specsprice - @RequestId = requestid - end - - def deserialize(params) - unless params['SpecsPrice'].nil? - @SpecsPrice = [] - params['SpecsPrice'].each do |i| - specprice_tmp = SpecPrice.new - specprice_tmp.deserialize(i) - @SpecsPrice << specprice_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeBillingSpecs请求参数结构体 - class DescribeBillingSpecsRequest < TencentCloud::Common::AbstractModel - # @param ChargeType: 付费模式:POSTPAID_BY_HOUR按量计费、PREPAID包年包月 - # @type ChargeType: String - # @param TaskType: 枚举值:TRAIN、NOTEBOOK、INFERENCE - # @type TaskType: String - # @param ResourceType: 资源类型:CALC 计算资源、CPU CPU资源、GPU GPU资源、CBS云硬盘 - # @type ResourceType: String - - attr_accessor :ChargeType, :TaskType, :ResourceType - - def initialize(chargetype=nil, tasktype=nil, resourcetype=nil) - @ChargeType = chargetype - @TaskType = tasktype - @ResourceType = resourcetype - end - - def deserialize(params) - @ChargeType = params['ChargeType'] - @TaskType = params['TaskType'] - @ResourceType = params['ResourceType'] - end - end - - # DescribeBillingSpecs返回参数结构体 - class DescribeBillingSpecsResponse < TencentCloud::Common::AbstractModel - # @param Specs: 计费项列表 - # @type Specs: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Specs, :RequestId - - def initialize(specs=nil, requestid=nil) - @Specs = specs - @RequestId = requestid - end - - def deserialize(params) - unless params['Specs'].nil? - @Specs = [] - params['Specs'].each do |i| - spec_tmp = Spec.new - spec_tmp.deserialize(i) - @Specs << spec_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeBuildInImages请求参数结构体 class DescribeBuildInImagesRequest < TencentCloud::Common::AbstractModel # @param ImageFilters: 镜像过滤器 # @type ImageFilters: Array @@ -3583,176 +2033,10 @@ end @RequestId = params['RequestId'] end end - # DescribeDatasetDetailStructured请求参数结构体 - class DescribeDatasetDetailStructuredRequest < TencentCloud::Common::AbstractModel - # @param DatasetId: 数据集ID - # @type DatasetId: String - # @param Offset: 偏移值 - # @type Offset: Integer - # @param Limit: 返回数据条数,默认20,目前最大支持2000条数据 - # @type Limit: Integer - - attr_accessor :DatasetId, :Offset, :Limit - - def initialize(datasetid=nil, offset=nil, limit=nil) - @DatasetId = datasetid - @Offset = offset - @Limit = limit - end - - def deserialize(params) - @DatasetId = params['DatasetId'] - @Offset = params['Offset'] - @Limit = params['Limit'] - end - end - - # DescribeDatasetDetailStructured返回参数结构体 - class DescribeDatasetDetailStructuredResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 数据总数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param ColumnNames: 表格头信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ColumnNames: Array - # @param RowItems: 表格内容 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RowItems: Array - # @param RowTexts: 文本内容 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RowTexts: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :ColumnNames, :RowItems, :RowTexts, :RequestId - - def initialize(totalcount=nil, columnnames=nil, rowitems=nil, rowtexts=nil, requestid=nil) - @TotalCount = totalcount - @ColumnNames = columnnames - @RowItems = rowitems - @RowTexts = rowtexts - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - @ColumnNames = params['ColumnNames'] - unless params['RowItems'].nil? - @RowItems = [] - params['RowItems'].each do |i| - rowitem_tmp = RowItem.new - rowitem_tmp.deserialize(i) - @RowItems << rowitem_tmp - end - end - @RowTexts = params['RowTexts'] - @RequestId = params['RequestId'] - end - end - - # DescribeDatasetDetailUnstructured请求参数结构体 - class DescribeDatasetDetailUnstructuredRequest < TencentCloud::Common::AbstractModel - # @param DatasetId: 数据集ID - # @type DatasetId: String - # @param Offset: 偏移量 - # @type Offset: Integer - # @param Limit: 返回个数,默认20,目前最大支持2000条数据 - # @type Limit: Integer - # @param LabelList: 标签过滤参数,对应标签值 - # @type LabelList: Array - # @param AnnotationStatus: 标注状态过滤参数: - # STATUS_ANNOTATED,已标注 - # STATUS_NON_ANNOTATED,未标注 - # STATUS_ALL,全部 - # 默认为STATUS_ALL - # @type AnnotationStatus: String - # @param DatasetIds: 数据集ID列表 - # @type DatasetIds: Array - # @param TextClassificationLabels: 要筛选的文本分类场景标签信息 - # @type TextClassificationLabels: Array - - attr_accessor :DatasetId, :Offset, :Limit, :LabelList, :AnnotationStatus, :DatasetIds, :TextClassificationLabels - - def initialize(datasetid=nil, offset=nil, limit=nil, labellist=nil, annotationstatus=nil, datasetids=nil, textclassificationlabels=nil) - @DatasetId = datasetid - @Offset = offset - @Limit = limit - @LabelList = labellist - @AnnotationStatus = annotationstatus - @DatasetIds = datasetids - @TextClassificationLabels = textclassificationlabels - end - - def deserialize(params) - @DatasetId = params['DatasetId'] - @Offset = params['Offset'] - @Limit = params['Limit'] - @LabelList = params['LabelList'] - @AnnotationStatus = params['AnnotationStatus'] - @DatasetIds = params['DatasetIds'] - unless params['TextClassificationLabels'].nil? - @TextClassificationLabels = [] - params['TextClassificationLabels'].each do |i| - textlabeldistributioninfo_tmp = TextLabelDistributionInfo.new - textlabeldistributioninfo_tmp.deserialize(i) - @TextClassificationLabels << textlabeldistributioninfo_tmp - end - end - end - end - - # DescribeDatasetDetailUnstructured返回参数结构体 - class DescribeDatasetDetailUnstructuredResponse < TencentCloud::Common::AbstractModel - # @param AnnotatedTotalCount: 已标注数据量 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type AnnotatedTotalCount: Integer - # @param NonAnnotatedTotalCount: 没有标注数据量 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type NonAnnotatedTotalCount: Integer - # @param FilterTotalCount: 过滤数据总量 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FilterTotalCount: Integer - # @param FilterLabelList: 过滤数据详情 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FilterLabelList: Array - # @param RowTexts: 数据文本行,默认返回前1000行 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RowTexts: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :AnnotatedTotalCount, :NonAnnotatedTotalCount, :FilterTotalCount, :FilterLabelList, :RowTexts, :RequestId - - def initialize(annotatedtotalcount=nil, nonannotatedtotalcount=nil, filtertotalcount=nil, filterlabellist=nil, rowtexts=nil, requestid=nil) - @AnnotatedTotalCount = annotatedtotalcount - @NonAnnotatedTotalCount = nonannotatedtotalcount - @FilterTotalCount = filtertotalcount - @FilterLabelList = filterlabellist - @RowTexts = rowtexts - @RequestId = requestid - end - - def deserialize(params) - @AnnotatedTotalCount = params['AnnotatedTotalCount'] - @NonAnnotatedTotalCount = params['NonAnnotatedTotalCount'] - @FilterTotalCount = params['FilterTotalCount'] - unless params['FilterLabelList'].nil? - @FilterLabelList = [] - params['FilterLabelList'].each do |i| - filterlabelinfo_tmp = FilterLabelInfo.new - filterlabelinfo_tmp.deserialize(i) - @FilterLabelList << filterlabelinfo_tmp - end - end - @RowTexts = params['RowTexts'] - @RequestId = params['RequestId'] - end - end - # DescribeDatasets请求参数结构体 class DescribeDatasetsRequest < TencentCloud::Common::AbstractModel # @param DatasetIds: 数据集id列表 # @type DatasetIds: Array # @param Filters: 数据集查询过滤条件,多个Filter之间的关系为逻辑与(AND)关系,过滤字段Filter.Name,类型为String @@ -3843,118 +2127,10 @@ @DatasetIdNums = params['DatasetIdNums'] @RequestId = params['RequestId'] end end - # DescribeEvents请求参数结构体 - class DescribeEventsRequest < TencentCloud::Common::AbstractModel - # @param Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测 - # 枚举值: - # - TRAIN - # - NOTEBOOK - # - INFER - # - BATCH - # @type Service: String - # @param ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下: - # - Service类型为TRAIN: - # 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId - # - Service类型为NOTEBOOK: - # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName - # - Service类型为INFER: - # 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId - # - Service类型为BATCH: - # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId - # @type ServiceId: String - # @param StartTime: 查询事件最早发生的时间(RFC3339格式的时间字符串),默认值为当前时间的前一天 - # @type StartTime: String - # @param EndTime: 查询事件最晚发生的时间(RFC3339格式的时间字符串),默认值为当前时间 - # @type EndTime: String - # @param Limit: 分页Limit,默认值为100,最大值为100 - # @type Limit: Integer - # @param Offset: 分页Offset,默认值为0 - # @type Offset: Integer - # @param Order: 排列顺序(可选值为ASC, DESC ),默认为DESC - # @type Order: String - # @param OrderField: 排序的依据字段(可选值为FirstTimestamp, LastTimestamp),默认值为LastTimestamp - # @type OrderField: String - # @param Filters: 过滤条件 - # 注意: - # 1. Filter.Name:目前支持ResourceKind(按事件关联的资源类型过滤);Type(按事件类型过滤) - # 2. Filter.Values: - # 对于Name为ResourceKind,Values的可选取值为Deployment, Replicaset, Pod等K8S资源类型; - # 对于Name为Type,Values的可选取值仅为Normal或者Warning; - # Values为多个的时候表示同时满足 - # 3. Filter. Negative和Filter. Fuzzy没有使用 - # @type Filters: Array - - attr_accessor :Service, :ServiceId, :StartTime, :EndTime, :Limit, :Offset, :Order, :OrderField, :Filters - - def initialize(service=nil, serviceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, order=nil, orderfield=nil, filters=nil) - @Service = service - @ServiceId = serviceid - @StartTime = starttime - @EndTime = endtime - @Limit = limit - @Offset = offset - @Order = order - @OrderField = orderfield - @Filters = filters - end - - def deserialize(params) - @Service = params['Service'] - @ServiceId = params['ServiceId'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @Limit = params['Limit'] - @Offset = params['Offset'] - @Order = params['Order'] - @OrderField = params['OrderField'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeEvents返回参数结构体 - class DescribeEventsResponse < TencentCloud::Common::AbstractModel - # @param Events: 事件的列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Events: Array - # @param TotalCount: 此次查询的事件的个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Events, :TotalCount, :RequestId - - def initialize(events=nil, totalcount=nil, requestid=nil) - @Events = events - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['Events'].nil? - @Events = [] - params['Events'].each do |i| - event_tmp = Event.new - event_tmp.deserialize(i) - @Events << event_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - # DescribeInferTemplates请求参数结构体 class DescribeInferTemplatesRequest < TencentCloud::Common::AbstractModel def initialize() @@ -3990,216 +2166,10 @@ end @RequestId = params['RequestId'] end end - # DescribeLatestTrainingMetrics请求参数结构体 - class DescribeLatestTrainingMetricsRequest < TencentCloud::Common::AbstractModel - # @param TaskId: 任务ID - # @type TaskId: String - - attr_accessor :TaskId - - def initialize(taskid=nil) - @TaskId = taskid - end - - def deserialize(params) - @TaskId = params['TaskId'] - end - end - - # DescribeLatestTrainingMetrics返回参数结构体 - class DescribeLatestTrainingMetricsResponse < TencentCloud::Common::AbstractModel - # @param TaskId: 任务ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TaskId: String - # @param Metrics: 最近一次上报的训练指标.每个Metric中只有一个点的数据, 即len(Values) = len(Timestamps) = 1 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Metrics: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TaskId, :Metrics, :RequestId - - def initialize(taskid=nil, metrics=nil, requestid=nil) - @TaskId = taskid - @Metrics = metrics - @RequestId = requestid - end - - def deserialize(params) - @TaskId = params['TaskId'] - unless params['Metrics'].nil? - @Metrics = [] - params['Metrics'].each do |i| - trainingmetric_tmp = TrainingMetric.new - trainingmetric_tmp.deserialize(i) - @Metrics << trainingmetric_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeLogs请求参数结构体 - class DescribeLogsRequest < TencentCloud::Common::AbstractModel - # @param Service: 服务类型,TRAIN为任务式建模, NOTEBOOK为Notebook, INFER为在线服务, BATCH为批量预测 - # 枚举值: - # - TRAIN - # - NOTEBOOK - # - INFER - # - BATCH - # @type Service: String - # @param StartTime: 日志查询开始时间(RFC3339格式的时间字符串),默认值为当前时间的前一个小时 - # @type StartTime: String - # @param EndTime: 日志查询结束时间(RFC3339格式的时间字符串),默认值为当前时间 - # @type EndTime: String - # @param Limit: 日志查询条数,默认值100,最大值100 - # @type Limit: Integer - # @param ServiceId: 服务ID,和Service参数对应,不同Service的服务ID获取方式不同,具体如下: - # - Service类型为TRAIN: - # 调用[DescribeTrainingTask接口](/document/product/851/75089)查询训练任务详情,ServiceId为接口返回值中Response.TrainingTaskDetail.LatestInstanceId - # - Service类型为NOTEBOOK: - # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,ServiceId为接口返回值中Response.NotebookDetail.PodName - # - Service类型为INFER: - # 调用[DescribeModelServiceGroup接口](/document/product/851/82285)查询服务组详情,ServiceId为接口返回值中Response.ServiceGroup.Services.ServiceId - # - Service类型为BATCH: - # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,ServiceId为接口返回值中Response.BatchTaskDetail.LatestInstanceId - # @type ServiceId: String - # @param PodName: Pod的名称,即需要查询服务对应的Pod,和Service参数对应,不同Service的PodName获取方式不同,具体如下: - # - Service类型为TRAIN: - # 调用[DescribeTrainingTaskPods接口](/document/product/851/75088)查询训练任务pod列表,PodName为接口返回值中Response.PodNames - # - Service类型为NOTEBOOK: - # 调用[DescribeNotebook接口](/document/product/851/95662)查询Notebook详情,PodName为接口返回值中Response.NotebookDetail.PodName - # - Service类型为INFER: - # 调用[DescribeModelService接口](/document/product/851/82287)查询单个服务详情,PodName为接口返回值中Response.Service.ServiceInfo.PodInfos - # - Service类型为BATCH: - # 调用[DescribeBatchTask接口](/document/product/851/80180)查询跑批任务详情,PodName为接口返回值中Response.BatchTaskDetail. PodList - # 注:支持结尾通配符* - # @type PodName: String - # @param Order: 排序方向(可选值为ASC, DESC ),默认为DESC - # @type Order: String - # @param OrderField: 按哪个字段排序(可选值为Timestamp),默认值为Timestamp - # @type OrderField: String - # @param Context: 日志查询上下文,查询下一页的时候需要回传这个字段,该字段来自本接口的返回 - # @type Context: String - # @param Filters: 过滤条件 - # 注意: - # 1. Filter.Name:目前只支持Key(也就是按关键字过滤日志) - # 2. Filter.Values:表示过滤日志的关键字;Values为多个的时候表示同时满足 - # 3. Filter. Negative和Filter. Fuzzy没有使用 - # @type Filters: Array - - attr_accessor :Service, :StartTime, :EndTime, :Limit, :ServiceId, :PodName, :Order, :OrderField, :Context, :Filters - - def initialize(service=nil, starttime=nil, endtime=nil, limit=nil, serviceid=nil, podname=nil, order=nil, orderfield=nil, context=nil, filters=nil) - @Service = service - @StartTime = starttime - @EndTime = endtime - @Limit = limit - @ServiceId = serviceid - @PodName = podname - @Order = order - @OrderField = orderfield - @Context = context - @Filters = filters - end - - def deserialize(params) - @Service = params['Service'] - @StartTime = params['StartTime'] - @EndTime = params['EndTime'] - @Limit = params['Limit'] - @ServiceId = params['ServiceId'] - @PodName = params['PodName'] - @Order = params['Order'] - @OrderField = params['OrderField'] - @Context = params['Context'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeLogs返回参数结构体 - class DescribeLogsResponse < TencentCloud::Common::AbstractModel - # @param Context: 分页的游标 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Context: String - # @param Content: 日志数组 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Content: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Context, :Content, :RequestId - - def initialize(context=nil, content=nil, requestid=nil) - @Context = context - @Content = content - @RequestId = requestid - end - - def deserialize(params) - @Context = params['Context'] - unless params['Content'].nil? - @Content = [] - params['Content'].each do |i| - logidentity_tmp = LogIdentity.new - logidentity_tmp.deserialize(i) - @Content << logidentity_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeModelAccEngineVersions请求参数结构体 - class DescribeModelAccEngineVersionsRequest < TencentCloud::Common::AbstractModel - - - def initialize() - end - - def deserialize(params) - end - end - - # DescribeModelAccEngineVersions返回参数结构体 - class DescribeModelAccEngineVersionsResponse < TencentCloud::Common::AbstractModel - # @param ModelAccEngineVersions: 模型加速版本列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelAccEngineVersions: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ModelAccEngineVersions, :RequestId - - def initialize(modelaccengineversions=nil, requestid=nil) - @ModelAccEngineVersions = modelaccengineversions - @RequestId = requestid - end - - def deserialize(params) - unless params['ModelAccEngineVersions'].nil? - @ModelAccEngineVersions = [] - params['ModelAccEngineVersions'].each do |i| - modelaccengineversion_tmp = ModelAccEngineVersion.new - modelaccengineversion_tmp.deserialize(i) - @ModelAccEngineVersions << modelaccengineversion_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeModelAccelerateTask请求参数结构体 class DescribeModelAccelerateTaskRequest < TencentCloud::Common::AbstractModel # @param ModelAccTaskId: 模型加速任务ID # @type ModelAccTaskId: String @@ -4251,95 +2221,10 @@ @ModelAccEndTime = params['ModelAccEndTime'] @RequestId = params['RequestId'] end end - # DescribeModelAccelerateTasks请求参数结构体 - class DescribeModelAccelerateTasksRequest < TencentCloud::Common::AbstractModel - # @param Filters: 过滤器 - # ModelAccTaskName 任务名称 - # ModelSource 模型来源 - # @type Filters: Array - # @param OrderField: 排序字段,默认CreateTime - # @type OrderField: String - # @param Order: 排序方式:ASC/DESC,默认DESC - # @type Order: String - # @param Offset: 偏移量 - # @type Offset: Integer - # @param Limit: 返回记录条数,默认10 - # @type Limit: Integer - # @param TagFilters: 标签过滤 - # @type TagFilters: Array - - attr_accessor :Filters, :OrderField, :Order, :Offset, :Limit, :TagFilters - - def initialize(filters=nil, orderfield=nil, order=nil, offset=nil, limit=nil, tagfilters=nil) - @Filters = filters - @OrderField = orderfield - @Order = order - @Offset = offset - @Limit = limit - @TagFilters = tagfilters - end - - def deserialize(params) - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - @OrderField = params['OrderField'] - @Order = params['Order'] - @Offset = params['Offset'] - @Limit = params['Limit'] - unless params['TagFilters'].nil? - @TagFilters = [] - params['TagFilters'].each do |i| - tagfilter_tmp = TagFilter.new - tagfilter_tmp.deserialize(i) - @TagFilters << tagfilter_tmp - end - end - end - end - - # DescribeModelAccelerateTasks返回参数结构体 - class DescribeModelAccelerateTasksResponse < TencentCloud::Common::AbstractModel - # @param ModelAccelerateTasks: 模型加速任务列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelAccelerateTasks: Array - # @param TotalCount: 任务总数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ModelAccelerateTasks, :TotalCount, :RequestId - - def initialize(modelacceleratetasks=nil, totalcount=nil, requestid=nil) - @ModelAccelerateTasks = modelacceleratetasks - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['ModelAccelerateTasks'].nil? - @ModelAccelerateTasks = [] - params['ModelAccelerateTasks'].each do |i| - modelacceleratetask_tmp = ModelAccelerateTask.new - modelacceleratetask_tmp.deserialize(i) - @ModelAccelerateTasks << modelacceleratetask_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - # DescribeModelAccelerateVersions请求参数结构体 class DescribeModelAccelerateVersionsRequest < TencentCloud::Common::AbstractModel # @param Filters: 过滤条件 # Filter.Name: 枚举值: ModelJobName (任务名称)|TrainingModelVersionId (模型版本id) # Filter.Values: 当长度为1时,支持模糊查询; 不为1时,精确查询 @@ -4624,59 +2509,10 @@ end @RequestId = params['RequestId'] end end - # DescribeModelServiceHistory请求参数结构体 - class DescribeModelServiceHistoryRequest < TencentCloud::Common::AbstractModel - # @param ServiceId: 服务Id - # @type ServiceId: String - - attr_accessor :ServiceId - - def initialize(serviceid=nil) - @ServiceId = serviceid - end - - def deserialize(params) - @ServiceId = params['ServiceId'] - end - end - - # DescribeModelServiceHistory返回参数结构体 - class DescribeModelServiceHistoryResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 历史版本总数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param ServiceHistory: 服务版本 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ServiceHistory: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :ServiceHistory, :RequestId - - def initialize(totalcount=nil, servicehistory=nil, requestid=nil) - @TotalCount = totalcount - @ServiceHistory = servicehistory - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['ServiceHistory'].nil? - @ServiceHistory = [] - params['ServiceHistory'].each do |i| - servicehistory_tmp = ServiceHistory.new - servicehistory_tmp.deserialize(i) - @ServiceHistory << servicehistory_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeModelServiceHotUpdated请求参数结构体 class DescribeModelServiceHotUpdatedRequest < TencentCloud::Common::AbstractModel # @param ImageInfo: 镜像信息,配置服务运行所需的镜像地址等信息 # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` # @param ModelInfo: 模型信息,需要挂载模型时填写 @@ -4769,196 +2605,10 @@ end @RequestId = params['RequestId'] end end - # DescribeModelServices请求参数结构体 - class DescribeModelServicesRequest < TencentCloud::Common::AbstractModel - # @param Offset: 偏移量,默认为0 - # @type Offset: Integer - # @param Limit: 返回数量,默认为20,最大值为20 - # @type Limit: Integer - # @param Order: 输出列表的排列顺序。取值范围:ASC:升序排列 DESC:降序排列 - # @type Order: String - # @param OrderField: 排序的依据字段, 取值范围 "CreateTime" "UpdateTime" - # @type OrderField: String - # @param Filters: 分页参数,支持的分页过滤Name包括: - # ["ClusterId", "ServiceId", "ServiceGroupName", "ServiceGroupId","Status","CreatedBy","ModelId"] - # @type Filters: Array - # @param TagFilters: 标签过滤参数 - # @type TagFilters: Array - - attr_accessor :Offset, :Limit, :Order, :OrderField, :Filters, :TagFilters - - def initialize(offset=nil, limit=nil, order=nil, orderfield=nil, filters=nil, tagfilters=nil) - @Offset = offset - @Limit = limit - @Order = order - @OrderField = orderfield - @Filters = filters - @TagFilters = tagfilters - end - - def deserialize(params) - @Offset = params['Offset'] - @Limit = params['Limit'] - @Order = params['Order'] - @OrderField = params['OrderField'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - unless params['TagFilters'].nil? - @TagFilters = [] - params['TagFilters'].each do |i| - tagfilter_tmp = TagFilter.new - tagfilter_tmp.deserialize(i) - @TagFilters << tagfilter_tmp - end - end - end - end - - # DescribeModelServices返回参数结构体 - class DescribeModelServicesResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 服务数量 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalCount: Integer - # @param Services: 无 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Services: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :Services, :RequestId - - def initialize(totalcount=nil, services=nil, requestid=nil) - @TotalCount = totalcount - @Services = services - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['Services'].nil? - @Services = [] - params['Services'].each do |i| - service_tmp = Service.new - service_tmp.deserialize(i) - @Services << service_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeNotebookImageKernels请求参数结构体 - class DescribeNotebookImageKernelsRequest < TencentCloud::Common::AbstractModel - # @param NotebookId: notebook id - # @type NotebookId: String - - attr_accessor :NotebookId - - def initialize(notebookid=nil) - @NotebookId = notebookid - end - - def deserialize(params) - @NotebookId = params['NotebookId'] - end - end - - # DescribeNotebookImageKernels返回参数结构体 - class DescribeNotebookImageKernelsResponse < TencentCloud::Common::AbstractModel - # @param Kernels: 镜像kernel数组 - # @type Kernels: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Kernels, :RequestId - - def initialize(kernels=nil, requestid=nil) - @Kernels = kernels - @RequestId = requestid - end - - def deserialize(params) - @Kernels = params['Kernels'] - @RequestId = params['RequestId'] - end - end - - # DescribeNotebookImageRecords请求参数结构体 - class DescribeNotebookImageRecordsRequest < TencentCloud::Common::AbstractModel - # @param NotebookId: notebook id - # @type NotebookId: String - # @param Offset: 位移值 - # @type Offset: Integer - # @param Limit: 日志限制 - # @type Limit: Integer - # @param Filters: 状态筛选 - # @type Filters: Array - - attr_accessor :NotebookId, :Offset, :Limit, :Filters - - def initialize(notebookid=nil, offset=nil, limit=nil, filters=nil) - @NotebookId = notebookid - @Offset = offset - @Limit = limit - @Filters = filters - end - - def deserialize(params) - @NotebookId = params['NotebookId'] - @Offset = params['Offset'] - @Limit = params['Limit'] - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - end - end - - # DescribeNotebookImageRecords返回参数结构体 - class DescribeNotebookImageRecordsResponse < TencentCloud::Common::AbstractModel - # @param TotalCount: 总条数 - # @type TotalCount: Integer - # @param NotebookImageRecords: 镜像保存记录 - # @type NotebookImageRecords: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TotalCount, :NotebookImageRecords, :RequestId - - def initialize(totalcount=nil, notebookimagerecords=nil, requestid=nil) - @TotalCount = totalcount - @NotebookImageRecords = notebookimagerecords - @RequestId = requestid - end - - def deserialize(params) - @TotalCount = params['TotalCount'] - unless params['NotebookImageRecords'].nil? - @NotebookImageRecords = [] - params['NotebookImageRecords'].each do |i| - notebookimagerecord_tmp = NotebookImageRecord.new - notebookimagerecord_tmp.deserialize(i) - @NotebookImageRecords << notebookimagerecord_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeNotebook请求参数结构体 class DescribeNotebookRequest < TencentCloud::Common::AbstractModel # @param Id: notebook id # @type Id: String @@ -5088,97 +2738,10 @@ @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end end - # DescribeTrainingFrameworks请求参数结构体 - class DescribeTrainingFrameworksRequest < TencentCloud::Common::AbstractModel - - - def initialize() - end - - def deserialize(params) - end - end - - # DescribeTrainingFrameworks返回参数结构体 - class DescribeTrainingFrameworksResponse < TencentCloud::Common::AbstractModel - # @param FrameworkInfos: 框架信息列表 - # @type FrameworkInfos: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :FrameworkInfos, :RequestId - - def initialize(frameworkinfos=nil, requestid=nil) - @FrameworkInfos = frameworkinfos - @RequestId = requestid - end - - def deserialize(params) - unless params['FrameworkInfos'].nil? - @FrameworkInfos = [] - params['FrameworkInfos'].each do |i| - frameworkinfo_tmp = FrameworkInfo.new - frameworkinfo_tmp.deserialize(i) - @FrameworkInfos << frameworkinfo_tmp - end - end - @RequestId = params['RequestId'] - end - end - - # DescribeTrainingMetrics请求参数结构体 - class DescribeTrainingMetricsRequest < TencentCloud::Common::AbstractModel - # @param TaskId: 任务ID - # @type TaskId: String - - attr_accessor :TaskId - - def initialize(taskid=nil) - @TaskId = taskid - end - - def deserialize(params) - @TaskId = params['TaskId'] - end - end - - # DescribeTrainingMetrics返回参数结构体 - class DescribeTrainingMetricsResponse < TencentCloud::Common::AbstractModel - # @param TaskId: 任务ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TaskId: String - # @param Data: 训练指标数据 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Data: Array - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TaskId, :Data, :RequestId - - def initialize(taskid=nil, data=nil, requestid=nil) - @TaskId = taskid - @Data = data - @RequestId = requestid - end - - def deserialize(params) - @TaskId = params['TaskId'] - unless params['Data'].nil? - @Data = [] - params['Data'].each do |i| - customtrainingdata_tmp = CustomTrainingData.new - customtrainingdata_tmp.deserialize(i) - @Data << customtrainingdata_tmp - end - end - @RequestId = params['RequestId'] - end - end - # DescribeTrainingModelVersion请求参数结构体 class DescribeTrainingModelVersionRequest < TencentCloud::Common::AbstractModel # @param TrainingModelVersionId: 模型版本ID # @type TrainingModelVersionId: String @@ -5276,105 +2839,10 @@ end @RequestId = params['RequestId'] end end - # DescribeTrainingModels请求参数结构体 - class DescribeTrainingModelsRequest < TencentCloud::Common::AbstractModel - # @param Filters: 过滤器 - # Filter.Name: 枚举值: - # keyword (模型名称) - # TrainingModelId (模型ID) - # ModelVersionType (模型版本类型) 其值Filter.Values支持: NORMAL(通用) ACCELERATE (加速) - # TrainingModelSource (模型来源) 其值Filter.Values支持: JOB/COS - # ModelFormat(模型格式)其值Filter.Values支持: - # PYTORCH/TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/PMML/MMDETECTION/ONNX/HUGGING_FACE - # Filter.Values: 当长度为1时,支持模糊查询; 不为1时,精确查询 - # 每次请求的Filters的上限为10,Filter.Values的上限为100 - # Filter.Fuzzy取值:true/false,是否支持模糊匹配 - # @type Filters: Array - # @param OrderField: 排序字段,默认CreateTime - # @type OrderField: String - # @param Order: 排序方式,ASC/DESC,默认DESC - # @type Order: String - # @param Offset: 偏移量 - # @type Offset: Integer - # @param Limit: 返回结果数量 - # @type Limit: Integer - # @param TagFilters: 标签过滤 - # @type TagFilters: Array - # @param WithModelVersions: 是否同时返回模型版本列表 - # @type WithModelVersions: Boolean - - attr_accessor :Filters, :OrderField, :Order, :Offset, :Limit, :TagFilters, :WithModelVersions - - def initialize(filters=nil, orderfield=nil, order=nil, offset=nil, limit=nil, tagfilters=nil, withmodelversions=nil) - @Filters = filters - @OrderField = orderfield - @Order = order - @Offset = offset - @Limit = limit - @TagFilters = tagfilters - @WithModelVersions = withmodelversions - end - - def deserialize(params) - unless params['Filters'].nil? - @Filters = [] - params['Filters'].each do |i| - filter_tmp = Filter.new - filter_tmp.deserialize(i) - @Filters << filter_tmp - end - end - @OrderField = params['OrderField'] - @Order = params['Order'] - @Offset = params['Offset'] - @Limit = params['Limit'] - unless params['TagFilters'].nil? - @TagFilters = [] - params['TagFilters'].each do |i| - tagfilter_tmp = TagFilter.new - tagfilter_tmp.deserialize(i) - @TagFilters << tagfilter_tmp - end - end - @WithModelVersions = params['WithModelVersions'] - end - end - - # DescribeTrainingModels返回参数结构体 - class DescribeTrainingModelsResponse < TencentCloud::Common::AbstractModel - # @param TrainingModels: 模型列表 - # @type TrainingModels: Array - # @param TotalCount: 模型总数 - # @type TotalCount: Integer - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :TrainingModels, :TotalCount, :RequestId - - def initialize(trainingmodels=nil, totalcount=nil, requestid=nil) - @TrainingModels = trainingmodels - @TotalCount = totalcount - @RequestId = requestid - end - - def deserialize(params) - unless params['TrainingModels'].nil? - @TrainingModels = [] - params['TrainingModels'].each do |i| - trainingmodeldto_tmp = TrainingModelDTO.new - trainingmodeldto_tmp.deserialize(i) - @TrainingModels << trainingmodeldto_tmp - end - end - @TotalCount = params['TotalCount'] - @RequestId = params['RequestId'] - end - end - # DescribeTrainingTaskPods请求参数结构体 class DescribeTrainingTaskPodsRequest < TencentCloud::Common::AbstractModel # @param Id: 训练任务ID # @type Id: String @@ -5551,92 +3019,10 @@ @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end end - # 图像检测参数信息 - class DetectionLabelInfo < TencentCloud::Common::AbstractModel - # @param Points: 点坐标列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Points: Array - # @param Labels: 标签 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Labels: Array - # @param FrameType: 类别 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FrameType: String - - attr_accessor :Points, :Labels, :FrameType - - def initialize(points=nil, labels=nil, frametype=nil) - @Points = points - @Labels = labels - @FrameType = frametype - end - - def deserialize(params) - unless params['Points'].nil? - @Points = [] - params['Points'].each do |i| - pointinfo_tmp = PointInfo.new - pointinfo_tmp.deserialize(i) - @Points << pointinfo_tmp - end - end - @Labels = params['Labels'] - @FrameType = params['FrameType'] - end - end - - # 编码后的启动命令信息 - class EncodedStartCmdInfo < TencentCloud::Common::AbstractModel - # @param StartCmdInfo: 任务的启动命令,以base64格式输入,注意转换时需要完整输入{"StartCmd":"","PsStartCmd":"","WorkerStartCmd":""} - # @type StartCmdInfo: String - - attr_accessor :StartCmdInfo - - def initialize(startcmdinfo=nil) - @StartCmdInfo = startcmdinfo - end - - def deserialize(params) - @StartCmdInfo = params['StartCmdInfo'] - end - end - - # 引擎版本 - class EngineVersion < TencentCloud::Common::AbstractModel - # @param Version: 引擎版本 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Version: String - # @param Image: 运行镜像 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Image: String - # @param IsSupportIntEightQuantization: 是否支持int8量化 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type IsSupportIntEightQuantization: Boolean - # @param FrameworkVersion: 框架版本 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FrameworkVersion: String - - attr_accessor :Version, :Image, :IsSupportIntEightQuantization, :FrameworkVersion - - def initialize(version=nil, image=nil, issupportinteightquantization=nil, frameworkversion=nil) - @Version = version - @Image = image - @IsSupportIntEightQuantization = issupportinteightquantization - @FrameworkVersion = frameworkversion - end - - def deserialize(params) - @Version = params['Version'] - @Image = params['Image'] - @IsSupportIntEightQuantization = params['IsSupportIntEightQuantization'] - @FrameworkVersion = params['FrameworkVersion'] - end - end - # 环境变量 class EnvVar < TencentCloud::Common::AbstractModel # @param Name: 环境变量key # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String @@ -5655,62 +3041,10 @@ @Name = params['Name'] @Value = params['Value'] end end - # K8s的Event - class Event < TencentCloud::Common::AbstractModel - # @param Id: 事件的id - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Id: String - # @param Message: 事件的具体信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Message: String - # @param FirstTimestamp: 事件第一次发生的时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FirstTimestamp: String - # @param LastTimestamp: 事件最后一次发生的时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LastTimestamp: String - # @param Count: 事件发生的次数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Count: Integer - # @param Type: 事件的类型 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Type: String - # @param ResourceKind: 事件关联的资源的类型 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceKind: String - # @param ResourceName: 事件关联的资源的名字 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ResourceName: String - - attr_accessor :Id, :Message, :FirstTimestamp, :LastTimestamp, :Count, :Type, :ResourceKind, :ResourceName - - def initialize(id=nil, message=nil, firsttimestamp=nil, lasttimestamp=nil, count=nil, type=nil, resourcekind=nil, resourcename=nil) - @Id = id - @Message = message - @FirstTimestamp = firsttimestamp - @LastTimestamp = lasttimestamp - @Count = count - @Type = type - @ResourceKind = resourcekind - @ResourceName = resourcename - end - - def deserialize(params) - @Id = params['Id'] - @Message = params['Message'] - @FirstTimestamp = params['FirstTimestamp'] - @LastTimestamp = params['LastTimestamp'] - @Count = params['Count'] - @Type = params['Type'] - @ResourceKind = params['ResourceKind'] - @ResourceName = params['ResourceName'] - end - end - # 过滤器 class Filter < TencentCloud::Common::AbstractModel # @param Name: 过滤字段名称 # @type Name: String # @param Values: 过滤字段取值 @@ -5735,178 +3069,10 @@ @Negative = params['Negative'] @Fuzzy = params['Fuzzy'] end end - # 图片列表查询结果详情 - class FilterLabelInfo < TencentCloud::Common::AbstractModel - # @param DatasetId: 数据集id - # @type DatasetId: String - # @param FileId: 文件ID - # @type FileId: String - # @param FileName: 文件路径 - # @type FileName: String - # @param ClassificationLabels: 分类标签结果 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ClassificationLabels: Array - # @param DetectionLabels: 检测标签结果 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type DetectionLabels: Array - # @param SegmentationLabels: 分割标签结果 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type SegmentationLabels: Array - # @param RGBPath: RGB 图片路径 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RGBPath: String - # @param LabelTemplateType: 标签模板类型 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelTemplateType: String - # @param DownloadUrl: 下载url链接 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type DownloadUrl: String - # @param DownloadThumbnailUrl: 缩略图下载链接 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type DownloadThumbnailUrl: String - # @param DownloadRGBUrl: 分割结果图片下载链接 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type DownloadRGBUrl: String - # @param OcrScene: OCR场景 - # IDENTITY:识别 - # STRUCTURE:智能结构化 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type OcrScene: String - # @param OcrLabels: OCR场景标签列表 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type OcrLabels: Array - # @param OcrLabelInfo: OCR场景标签信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type OcrLabelInfo: String - # @param TextClassificationLabelList: 文本分类场景标签结果,内容是json结构 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TextClassificationLabelList: String - # @param RowText: 文本内容,返回50字符 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RowText: String - # @param ContentOmit: 文本内容是否完全返回 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ContentOmit: Boolean - - attr_accessor :DatasetId, :FileId, :FileName, :ClassificationLabels, :DetectionLabels, :SegmentationLabels, :RGBPath, :LabelTemplateType, :DownloadUrl, :DownloadThumbnailUrl, :DownloadRGBUrl, :OcrScene, :OcrLabels, :OcrLabelInfo, :TextClassificationLabelList, :RowText, :ContentOmit - - 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, ocrlabelinfo=nil, textclassificationlabellist=nil, rowtext=nil, contentomit=nil) - @DatasetId = datasetid - @FileId = fileid - @FileName = filename - @ClassificationLabels = classificationlabels - @DetectionLabels = detectionlabels - @SegmentationLabels = segmentationlabels - @RGBPath = rgbpath - @LabelTemplateType = labeltemplatetype - @DownloadUrl = downloadurl - @DownloadThumbnailUrl = downloadthumbnailurl - @DownloadRGBUrl = downloadrgburl - @OcrScene = ocrscene - @OcrLabels = ocrlabels - @OcrLabelInfo = ocrlabelinfo - @TextClassificationLabelList = textclassificationlabellist - @RowText = rowtext - @ContentOmit = contentomit - end - - def deserialize(params) - @DatasetId = params['DatasetId'] - @FileId = params['FileId'] - @FileName = params['FileName'] - @ClassificationLabels = params['ClassificationLabels'] - unless params['DetectionLabels'].nil? - @DetectionLabels = [] - params['DetectionLabels'].each do |i| - detectionlabelinfo_tmp = DetectionLabelInfo.new - detectionlabelinfo_tmp.deserialize(i) - @DetectionLabels << detectionlabelinfo_tmp - end - end - unless params['SegmentationLabels'].nil? - @SegmentationLabels = [] - params['SegmentationLabels'].each do |i| - segmentationinfo_tmp = SegmentationInfo.new - segmentationinfo_tmp.deserialize(i) - @SegmentationLabels << segmentationinfo_tmp - end - end - @RGBPath = params['RGBPath'] - @LabelTemplateType = params['LabelTemplateType'] - @DownloadUrl = params['DownloadUrl'] - @DownloadThumbnailUrl = params['DownloadThumbnailUrl'] - @DownloadRGBUrl = params['DownloadRGBUrl'] - @OcrScene = params['OcrScene'] - unless params['OcrLabels'].nil? - @OcrLabels = [] - params['OcrLabels'].each do |i| - ocrlabelinfo_tmp = OcrLabelInfo.new - ocrlabelinfo_tmp.deserialize(i) - @OcrLabels << ocrlabelinfo_tmp - end - end - @OcrLabelInfo = params['OcrLabelInfo'] - @TextClassificationLabelList = params['TextClassificationLabelList'] - @RowText = params['RowText'] - @ContentOmit = params['ContentOmit'] - end - end - - # 框架信息列表 - class FrameworkInfo < TencentCloud::Common::AbstractModel - # @param Name: 框架名称 - # @type Name: String - # @param VersionInfos: 框架版本以及对应的训练模式 - # @type VersionInfos: Array - - attr_accessor :Name, :VersionInfos - - def initialize(name=nil, versioninfos=nil) - @Name = name - @VersionInfos = versioninfos - end - - def deserialize(params) - @Name = params['Name'] - unless params['VersionInfos'].nil? - @VersionInfos = [] - params['VersionInfos'].each do |i| - frameworkversion_tmp = FrameworkVersion.new - frameworkversion_tmp.deserialize(i) - @VersionInfos << frameworkversion_tmp - end - end - end - end - - # 框架版本以及对应的训练模式 - class FrameworkVersion < TencentCloud::Common::AbstractModel - # @param Version: 框架版本 - # @type Version: String - # @param TrainingModes: 训练模式 - # @type TrainingModes: Array - # @param Environment: 框架运行环境 - # @type Environment: String - - attr_accessor :Version, :TrainingModes, :Environment - - def initialize(version=nil, trainingmodes=nil, environment=nil) - @Version = version - @TrainingModes = trainingmodes - @Environment = environment - end - - def deserialize(params) - @Version = params['Version'] - @TrainingModes = params['TrainingModes'] - @Environment = params['Environment'] - end - end - # 配置GooseFS参数 class GooseFS < TencentCloud::Common::AbstractModel # @param Id: goosefs实例id # 注意:此字段可能返回 null,表示取不到有效值。 # @type Id: String @@ -5914,23 +3080,28 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type Type: String # @param Path: GooseFSx实例需要挂载的路径 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Path: String + # @param NameSpace: GooseFS命名空间 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type NameSpace: String - attr_accessor :Id, :Type, :Path + attr_accessor :Id, :Type, :Path, :NameSpace - def initialize(id=nil, type=nil, path=nil) + def initialize(id=nil, type=nil, path=nil, namespace=nil) @Id = id @Type = type @Path = path + @NameSpace = namespace end def deserialize(params) @Id = params['Id'] @Type = params['Type'] @Path = params['Path'] + @NameSpace = params['NameSpace'] end end # gpu 详情 class GpuDetail < TencentCloud::Common::AbstractModel @@ -6128,11 +3299,11 @@ end end # 镜像描述信息 class ImageInfo < TencentCloud::Common::AbstractModel - # @param ImageType: 镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像 + # @param ImageType: 镜像类型:TCR为腾讯云TCR镜像; CCR为腾讯云TCR个人版镜像,PreSet为平台预置镜像,CUSTOM为第三方自定义镜像 # @type ImageType: String # @param ImageUrl: 镜像地址 # @type ImageUrl: String # @param RegistryRegion: TCR镜像对应的地域 # 注意:此字段可能返回 null,表示取不到有效值。 @@ -6147,34 +3318,69 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type ImageName: String # @param SupportDataPipeline: 是否支持数据构建 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SupportDataPipeline: Boolean + # @param ImageSecret: 镜像仓库用户名密码信息(仅当ImageType为CUSTOM第三方镜像的时候需要) + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ImageSecret: :class:`Tencentcloud::Tione.v20211111.models.ImageSecret` - attr_accessor :ImageType, :ImageUrl, :RegistryRegion, :RegistryId, :AllowSaveAllContent, :ImageName, :SupportDataPipeline + attr_accessor :ImageType, :ImageUrl, :RegistryRegion, :RegistryId, :AllowSaveAllContent, :ImageName, :SupportDataPipeline, :ImageSecret - def initialize(imagetype=nil, imageurl=nil, registryregion=nil, registryid=nil, allowsaveallcontent=nil, imagename=nil, supportdatapipeline=nil) + def initialize(imagetype=nil, imageurl=nil, registryregion=nil, registryid=nil, allowsaveallcontent=nil, imagename=nil, supportdatapipeline=nil, imagesecret=nil) @ImageType = imagetype @ImageUrl = imageurl @RegistryRegion = registryregion @RegistryId = registryid @AllowSaveAllContent = allowsaveallcontent @ImageName = imagename @SupportDataPipeline = supportdatapipeline + @ImageSecret = imagesecret end def deserialize(params) @ImageType = params['ImageType'] @ImageUrl = params['ImageUrl'] @RegistryRegion = params['RegistryRegion'] @RegistryId = params['RegistryId'] @AllowSaveAllContent = params['AllowSaveAllContent'] @ImageName = params['ImageName'] @SupportDataPipeline = params['SupportDataPipeline'] + unless params['ImageSecret'].nil? + @ImageSecret = ImageSecret.new + @ImageSecret.deserialize(params['ImageSecret']) + end end end + # 自定义镜像仓库凭据 + class ImageSecret < TencentCloud::Common::AbstractModel + # @param KeyId: 用于加密密码的KMS公钥ID + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type KeyId: String + # @param Username: 用户名 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Username: String + # @param Password: 密码,base64编码; 当keyId不为空时,密码是加密后的 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type Password: String + + attr_accessor :KeyId, :Username, :Password + + def initialize(keyid=nil, username=nil, password=nil) + @KeyId = keyid + @Username = username + @Password = password + end + + def deserialize(params) + @KeyId = params['KeyId'] + @Username = params['Username'] + @Password = params['Password'] + end + end + # 推理代码的信息 class InferCodeInfo < TencentCloud::Common::AbstractModel # @param CosPathInfo: 推理代码所在的cos详情 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CosPathInfo: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` @@ -6483,19 +3689,24 @@ # 本地磁盘信息 class LocalDisk < TencentCloud::Common::AbstractModel # @param InstanceId: 节点ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceId: String + # @param LocalPath: 本地路径 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type LocalPath: String - attr_accessor :InstanceId + attr_accessor :InstanceId, :LocalPath - def initialize(instanceid=nil) + def initialize(instanceid=nil, localpath=nil) @InstanceId = instanceid + @LocalPath = localpath end def deserialize(params) @InstanceId = params['InstanceId'] + @LocalPath = params['LocalPath'] end end # 日志配置 class LogConfig < TencentCloud::Common::AbstractModel @@ -6517,42 +3728,10 @@ @LogsetId = params['LogsetId'] @TopicId = params['TopicId'] end end - # 单条日志数据结构 - class LogIdentity < TencentCloud::Common::AbstractModel - # @param Id: 单条日志的ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Id: String - # @param Message: 单条日志的内容 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Message: String - # @param PodName: 这条日志对应的Pod名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type PodName: String - # @param Timestamp: 日志的时间戳(RFC3339格式的时间字符串) - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Timestamp: String - - attr_accessor :Id, :Message, :PodName, :Timestamp - - def initialize(id=nil, message=nil, podname=nil, timestamp=nil) - @Id = id - @Message = message - @PodName = podname - @Timestamp = timestamp - end - - def deserialize(params) - @Id = params['Id'] - @Message = params['Message'] - @PodName = params['PodName'] - @Timestamp = params['Timestamp'] - end - end - # 对话输入内容 class Message < TencentCloud::Common::AbstractModel # @param Role: 角色名。支持三个角色:system、user、assistant,其中system仅开头可出现一次,也可忽略。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Role: String @@ -6624,39 +3803,10 @@ end end end end - # 模型加速引擎版本 - class ModelAccEngineVersion < TencentCloud::Common::AbstractModel - # @param ModelFormat: 模型格式 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelFormat: String - # @param EngineVersions: 引擎版本信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type EngineVersions: Array - - attr_accessor :ModelFormat, :EngineVersions - - def initialize(modelformat=nil, engineversions=nil) - @ModelFormat = modelformat - @EngineVersions = engineversions - end - - def deserialize(params) - @ModelFormat = params['ModelFormat'] - unless params['EngineVersions'].nil? - @EngineVersions = [] - params['EngineVersions'].each do |i| - engineversion_tmp = EngineVersion.new - engineversion_tmp.deserialize(i) - @EngineVersions << engineversion_tmp - end - end - end - end - # 模型加速任务 class ModelAccelerateTask < TencentCloud::Common::AbstractModel # @param ModelAccTaskId: 模型加速任务ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ModelAccTaskId: String @@ -7083,63 +4233,10 @@ @ReasoningImageInfo.deserialize(params['ReasoningImageInfo']) end end end - # ModifyModelServicePartialConfig请求参数结构体 - class ModifyModelServicePartialConfigRequest < TencentCloud::Common::AbstractModel - # @param ServiceId: 在线推理服务Id,需已存在 - # @type ServiceId: String - # @param ScheduledAction: 更新后服务不重启,定时停止的配置 - # @type ScheduledAction: :class:`Tencentcloud::Tione.v20211111.models.ScheduledAction` - # @param ServiceLimit: 更新后服务不重启,服务对应限流限频配置 - # @type ServiceLimit: :class:`Tencentcloud::Tione.v20211111.models.ServiceLimit` - - attr_accessor :ServiceId, :ScheduledAction, :ServiceLimit - - def initialize(serviceid=nil, scheduledaction=nil, servicelimit=nil) - @ServiceId = serviceid - @ScheduledAction = scheduledaction - @ServiceLimit = servicelimit - end - - def deserialize(params) - @ServiceId = params['ServiceId'] - unless params['ScheduledAction'].nil? - @ScheduledAction = ScheduledAction.new - @ScheduledAction.deserialize(params['ScheduledAction']) - end - unless params['ServiceLimit'].nil? - @ServiceLimit = ServiceLimit.new - @ServiceLimit.deserialize(params['ServiceLimit']) - end - end - end - - # ModifyModelServicePartialConfig返回参数结构体 - class ModifyModelServicePartialConfigResponse < TencentCloud::Common::AbstractModel - # @param Service: 被修改后的服务配置 - # @type Service: :class:`Tencentcloud::Tione.v20211111.models.Service` - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :Service, :RequestId - - def initialize(service=nil, requestid=nil) - @Service = service - @RequestId = requestid - end - - def deserialize(params) - unless params['Service'].nil? - @Service = Service.new - @Service.deserialize(params['Service']) - end - @RequestId = params['RequestId'] - end - end - # ModifyModelService请求参数结构体 class ModifyModelServiceRequest < TencentCloud::Common::AbstractModel # @param ServiceId: 服务id # @type ServiceId: String # @param ModelInfo: 模型信息,需要挂载模型时填写 @@ -7207,16 +4304,18 @@ # @type ModelTurboEnable: Boolean # @param Command: 服务的启动命令,如遇特殊字符导致配置失败,可使用CommandBase64参数 # @type Command: String # @param ServiceEIP: 是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。 # @type ServiceEIP: :class:`Tencentcloud::Tione.v20211111.models.ServiceEIP` - # @param CommandBase64: 服务的启动命令,以base64格式进行输入 + # @param CommandBase64: 服务的启动命令,以base64格式进行输入,与Command同时配置时,仅当前参数生效 # @type CommandBase64: String + # @param ServicePort: 服务端口,仅在非内置镜像时生效,默认8501。不支持输入8501-8510,6006,9092 + # @type ServicePort: Integer - attr_accessor :ServiceId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :ServiceAction, :ServiceDescription, :ScaleStrategy, :CronScaleJobs, :HybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScheduledAction, :ServiceLimit, :VolumeMount, :ModelTurboEnable, :Command, :ServiceEIP, :CommandBase64 + attr_accessor :ServiceId, :ModelInfo, :ImageInfo, :Env, :Resources, :InstanceType, :ScaleMode, :Replicas, :HorizontalPodAutoscaler, :LogEnable, :LogConfig, :ServiceAction, :ServiceDescription, :ScaleStrategy, :CronScaleJobs, :HybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScheduledAction, :ServiceLimit, :VolumeMount, :ModelTurboEnable, :Command, :ServiceEIP, :CommandBase64, :ServicePort - def initialize(serviceid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, serviceaction=nil, servicedescription=nil, scalestrategy=nil, cronscalejobs=nil, hybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scheduledaction=nil, servicelimit=nil, volumemount=nil, modelturboenable=nil, command=nil, serviceeip=nil, commandbase64=nil) + def initialize(serviceid=nil, modelinfo=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, scalemode=nil, replicas=nil, horizontalpodautoscaler=nil, logenable=nil, logconfig=nil, serviceaction=nil, servicedescription=nil, scalestrategy=nil, cronscalejobs=nil, hybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scheduledaction=nil, servicelimit=nil, volumemount=nil, modelturboenable=nil, command=nil, serviceeip=nil, commandbase64=nil, serviceport=nil) @ServiceId = serviceid @ModelInfo = modelinfo @ImageInfo = imageinfo @Env = env @Resources = resources @@ -7237,10 +4336,11 @@ @VolumeMount = volumemount @ModelTurboEnable = modelturboenable @Command = command @ServiceEIP = serviceeip @CommandBase64 = commandbase64 + @ServicePort = serviceport end def deserialize(params) @ServiceId = params['ServiceId'] unless params['ModelInfo'].nil? @@ -7305,10 +4405,11 @@ unless params['ServiceEIP'].nil? @ServiceEIP = ServiceEIP.new @ServiceEIP.deserialize(params['ServiceEIP']) end @CommandBase64 = params['CommandBase64'] + @ServicePort = params['ServicePort'] end end # ModifyModelService返回参数结构体 class ModifyModelServiceResponse < TencentCloud::Common::AbstractModel @@ -7332,263 +4433,10 @@ end @RequestId = params['RequestId'] end end - # ModifyNotebook请求参数结构体 - class ModifyNotebookRequest < TencentCloud::Common::AbstractModel - # @param Id: notebook id - # @type Id: String - # @param Name: 名称。不超过60个字符,仅支持中英文、数字、下划线"_"、短横"-",只能以中英文、数字开头 - # @type Name: String - # @param ChargeType: (不允许修改)计算资源付费模式 ,可选值为: - # PREPAID:预付费,即包年包月 - # POSTPAID_BY_HOUR:按小时后付费 - # @type ChargeType: String - # @param ResourceConf: 计算资源配置 - # @type ResourceConf: :class:`Tencentcloud::Tione.v20211111.models.ResourceConf` - # @param LogEnable: 是否上报日志 - # @type LogEnable: Boolean - # @param AutoStopping: 是否自动停止 - # @type AutoStopping: Boolean - # @param DirectInternetAccess: 是否访问公网 - # @type DirectInternetAccess: Boolean - # @param RootAccess: 是否ROOT权限 - # @type RootAccess: Boolean - # @param ResourceGroupId: 资源组ID(for预付费) - # @type ResourceGroupId: String - # @param VpcId: (不允许修改)Vpc-Id - # @type VpcId: String - # @param SubnetId: (不允许修改)子网Id - # @type SubnetId: String - # @param VolumeSizeInGB: 存储卷大小,单位GB - # @type VolumeSizeInGB: Integer - # @param VolumeSourceType: (不允许修改)存储的类型。取值包含: - # FREE: 预付费的免费存储 - # CLOUD_PREMIUM: 高性能云硬盘 - # CLOUD_SSD: SSD云硬盘 - # CFS: CFS存储,包含NFS和turbo - # @type VolumeSourceType: String - # @param VolumeSourceCFS: (不允许修改)CFS存储的配置 - # @type VolumeSourceCFS: :class:`Tencentcloud::Tione.v20211111.models.CFSConfig` - # @param LogConfig: 日志配置 - # @type LogConfig: :class:`Tencentcloud::Tione.v20211111.models.LogConfig` - # @param LifecycleScriptId: 生命周期脚本的ID - # @type LifecycleScriptId: String - # @param DefaultCodeRepoId: 默认GIT存储库的ID - # @type DefaultCodeRepoId: String - # @param AdditionalCodeRepoIds: 其他GIT存储库的ID,最多3个 - # @type AdditionalCodeRepoIds: Array - # @param AutomaticStopTime: 自动停止时间,单位小时 - # @type AutomaticStopTime: Integer - # @param Tags: 标签配置 - # @type Tags: Array - # @param DataConfigs: 数据配置,只支持WEDATA_HDFS - # @type DataConfigs: Array - # @param ImageInfo: 镜像信息 - # @type ImageInfo: :class:`Tencentcloud::Tione.v20211111.models.ImageInfo` - # @param ImageType: 镜像类型,包括SYSTEM、TCR、CCR - # @type ImageType: String - # @param SSHConfig: SSH配置 - # @type SSHConfig: :class:`Tencentcloud::Tione.v20211111.models.SSHConfig` - - attr_accessor :Id, :Name, :ChargeType, :ResourceConf, :LogEnable, :AutoStopping, :DirectInternetAccess, :RootAccess, :ResourceGroupId, :VpcId, :SubnetId, :VolumeSizeInGB, :VolumeSourceType, :VolumeSourceCFS, :LogConfig, :LifecycleScriptId, :DefaultCodeRepoId, :AdditionalCodeRepoIds, :AutomaticStopTime, :Tags, :DataConfigs, :ImageInfo, :ImageType, :SSHConfig - - def initialize(id=nil, name=nil, chargetype=nil, resourceconf=nil, logenable=nil, autostopping=nil, directinternetaccess=nil, rootaccess=nil, resourcegroupid=nil, vpcid=nil, subnetid=nil, volumesizeingb=nil, volumesourcetype=nil, volumesourcecfs=nil, logconfig=nil, lifecyclescriptid=nil, defaultcoderepoid=nil, additionalcoderepoids=nil, automaticstoptime=nil, tags=nil, dataconfigs=nil, imageinfo=nil, imagetype=nil, sshconfig=nil) - @Id = id - @Name = name - @ChargeType = chargetype - @ResourceConf = resourceconf - @LogEnable = logenable - @AutoStopping = autostopping - @DirectInternetAccess = directinternetaccess - @RootAccess = rootaccess - @ResourceGroupId = resourcegroupid - @VpcId = vpcid - @SubnetId = subnetid - @VolumeSizeInGB = volumesizeingb - @VolumeSourceType = volumesourcetype - @VolumeSourceCFS = volumesourcecfs - @LogConfig = logconfig - @LifecycleScriptId = lifecyclescriptid - @DefaultCodeRepoId = defaultcoderepoid - @AdditionalCodeRepoIds = additionalcoderepoids - @AutomaticStopTime = automaticstoptime - @Tags = tags - @DataConfigs = dataconfigs - @ImageInfo = imageinfo - @ImageType = imagetype - @SSHConfig = sshconfig - end - - def deserialize(params) - @Id = params['Id'] - @Name = params['Name'] - @ChargeType = params['ChargeType'] - unless params['ResourceConf'].nil? - @ResourceConf = ResourceConf.new - @ResourceConf.deserialize(params['ResourceConf']) - end - @LogEnable = params['LogEnable'] - @AutoStopping = params['AutoStopping'] - @DirectInternetAccess = params['DirectInternetAccess'] - @RootAccess = params['RootAccess'] - @ResourceGroupId = params['ResourceGroupId'] - @VpcId = params['VpcId'] - @SubnetId = params['SubnetId'] - @VolumeSizeInGB = params['VolumeSizeInGB'] - @VolumeSourceType = params['VolumeSourceType'] - unless params['VolumeSourceCFS'].nil? - @VolumeSourceCFS = CFSConfig.new - @VolumeSourceCFS.deserialize(params['VolumeSourceCFS']) - end - unless params['LogConfig'].nil? - @LogConfig = LogConfig.new - @LogConfig.deserialize(params['LogConfig']) - end - @LifecycleScriptId = params['LifecycleScriptId'] - @DefaultCodeRepoId = params['DefaultCodeRepoId'] - @AdditionalCodeRepoIds = params['AdditionalCodeRepoIds'] - @AutomaticStopTime = params['AutomaticStopTime'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - unless params['DataConfigs'].nil? - @DataConfigs = [] - params['DataConfigs'].each do |i| - dataconfig_tmp = DataConfig.new - dataconfig_tmp.deserialize(i) - @DataConfigs << dataconfig_tmp - end - end - unless params['ImageInfo'].nil? - @ImageInfo = ImageInfo.new - @ImageInfo.deserialize(params['ImageInfo']) - end - @ImageType = params['ImageType'] - unless params['SSHConfig'].nil? - @SSHConfig = SSHConfig.new - @SSHConfig.deserialize(params['SSHConfig']) - end - end - end - - # ModifyNotebook返回参数结构体 - class ModifyNotebookResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # ModifyNotebookTags请求参数结构体 - class ModifyNotebookTagsRequest < TencentCloud::Common::AbstractModel - # @param Id: Notebook Id - # @type Id: String - # @param Tags: Notebook修改标签集合 - # @type Tags: Array - - attr_accessor :Id, :Tags - - def initialize(id=nil, tags=nil) - @Id = id - @Tags = tags - end - - def deserialize(params) - @Id = params['Id'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - end - end - - # ModifyNotebookTags返回参数结构体 - class ModifyNotebookTagsResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # ModifyServiceGroupWeights请求参数结构体 - class ModifyServiceGroupWeightsRequest < TencentCloud::Common::AbstractModel - # @param ServiceGroupId: 服务组id - # @type ServiceGroupId: String - # @param Weights: 权重设置 - # @type Weights: Array - - attr_accessor :ServiceGroupId, :Weights - - def initialize(servicegroupid=nil, weights=nil) - @ServiceGroupId = servicegroupid - @Weights = weights - end - - def deserialize(params) - @ServiceGroupId = params['ServiceGroupId'] - unless params['Weights'].nil? - @Weights = [] - params['Weights'].each do |i| - weightentry_tmp = WeightEntry.new - weightentry_tmp.deserialize(i) - @Weights << weightentry_tmp - end - end - end - end - - # ModifyServiceGroupWeights返回参数结构体 - class ModifyServiceGroupWeightsResponse < TencentCloud::Common::AbstractModel - # @param ServiceGroup: 更新权重后的服务组信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ServiceGroup: :class:`Tencentcloud::Tione.v20211111.models.ServiceGroup` - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :ServiceGroup, :RequestId - - def initialize(servicegroup=nil, requestid=nil) - @ServiceGroup = servicegroup - @RequestId = requestid - end - - def deserialize(params) - unless params['ServiceGroup'].nil? - @ServiceGroup = ServiceGroup.new - @ServiceGroup.deserialize(params['ServiceGroup']) - end - @RequestId = params['RequestId'] - end - end - # 类型NotebookDetail class NotebookDetail < TencentCloud::Common::AbstractModel # @param Id: notebook ID # @type Id: String # @param Name: notebook 名称 @@ -7816,57 +4664,10 @@ @VolumeSourceGooseFS.deserialize(params['VolumeSourceGooseFS']) end end end - # 镜像保存记录 - class NotebookImageRecord < TencentCloud::Common::AbstractModel - # @param RecordId: 保存记录ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RecordId: String - # @param ImageUrl: 镜像地址 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ImageUrl: String - # @param Status: 状态。eg:creating导出中/success已完成/stopped已停止/fail异常 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Status: String - # @param CreateTime: 创建时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type CreateTime: String - # @param Message: 状态信息 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Message: String - # @param InstanceId: 实例ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type InstanceId: String - # @param Kernels: kernel数组 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Kernels: Array - - attr_accessor :RecordId, :ImageUrl, :Status, :CreateTime, :Message, :InstanceId, :Kernels - - def initialize(recordid=nil, imageurl=nil, status=nil, createtime=nil, message=nil, instanceid=nil, kernels=nil) - @RecordId = recordid - @ImageUrl = imageurl - @Status = status - @CreateTime = createtime - @Message = message - @InstanceId = instanceid - @Kernels = kernels - end - - def deserialize(params) - @RecordId = params['RecordId'] - @ImageUrl = params['ImageUrl'] - @Status = params['Status'] - @CreateTime = params['CreateTime'] - @Message = params['Message'] - @InstanceId = params['InstanceId'] - @Kernels = params['Kernels'] - end - end - # Notebook列表元素 class NotebookSetItem < TencentCloud::Common::AbstractModel # @param Id: notebook ID # @type Id: String # @param Name: notebook 名称 @@ -8025,69 +4826,10 @@ @VolumeSourceGooseFS.deserialize(params['VolumeSourceGooseFS']) end end end - # OCR场景标签列表 - class OcrLabelInfo < TencentCloud::Common::AbstractModel - # @param Points: 坐标点围起来的框 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Points: Array - # @param FrameType: 框的形状: - # FRAME_TYPE_RECTANGLE - # FRAME_TYPE_POLYGON - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type FrameType: String - # @param Key: 智能结构化:key区域对应的内容 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Key: String - # @param KeyId: 智能结构化:上述key的ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type KeyId: String - # @param Value: 识别:框区域的内容 - # 智能结构化:value区域对应的内容 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Value: String - # @param KeyIdsForValue: 智能结构化:value区域所关联的key 区域的keyID的集合 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type KeyIdsForValue: Array - # @param Direction: key或者value区域内容的方向: - # DIRECTION_VERTICAL - # DIRECTION_HORIZONTAL - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Direction: String - - attr_accessor :Points, :FrameType, :Key, :KeyId, :Value, :KeyIdsForValue, :Direction - - def initialize(points=nil, frametype=nil, key=nil, keyid=nil, value=nil, keyidsforvalue=nil, direction=nil) - @Points = points - @FrameType = frametype - @Key = key - @KeyId = keyid - @Value = value - @KeyIdsForValue = keyidsforvalue - @Direction = direction - end - - def deserialize(params) - unless params['Points'].nil? - @Points = [] - params['Points'].each do |i| - pointinfo_tmp = PointInfo.new - pointinfo_tmp.deserialize(i) - @Points << pointinfo_tmp - end - end - @FrameType = params['FrameType'] - @Key = params['Key'] - @KeyId = params['KeyId'] - @Value = params['Value'] - @KeyIdsForValue = params['KeyIdsForValue'] - @Direction = params['Direction'] - end - end - # 键值对 class Option < TencentCloud::Common::AbstractModel # @param Name: 指标名 # @type Name: String # @param Value: 指标值 @@ -8219,54 +4961,10 @@ @ResourceConfigInfo.deserialize(params['ResourceConfigInfo']) end end end - # 点信息描述 - class PointInfo < TencentCloud::Common::AbstractModel - # @param X: X坐标值 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type X: Float - # @param Y: Y坐标值 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Y: Float - - attr_accessor :X, :Y - - def initialize(x=nil, y=nil) - @X = x - @Y = y - end - - def deserialize(params) - @X = params['X'] - @Y = params['Y'] - end - end - - # 太极任务预训练模型信息 - class PreTrainModel < TencentCloud::Common::AbstractModel - # @param ModelId: 模型ID - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelId: String - # @param ModelName: 模型名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelName: String - - attr_accessor :ModelId, :ModelName - - def initialize(modelid=nil, modelname=nil) - @ModelId = modelid - @ModelName = modelname - end - - def deserialize(params) - @ModelId = params['ModelId'] - @ModelName = params['ModelName'] - end - end - # 私有连接信息 class PrivateLinkInfo < TencentCloud::Common::AbstractModel # @param VpcId: 私有连接所在的VPCID # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcId: String @@ -8647,186 +5345,10 @@ @TaskId = params['TaskId'] @TaskName = params['TaskName'] end end - # RestartModelAccelerateTask请求参数结构体 - class RestartModelAccelerateTaskRequest < TencentCloud::Common::AbstractModel - # @param ModelAccTaskId: 模型加速任务ID - # @type ModelAccTaskId: String - # @param ModelAccTaskName: 模型加速任务名称 - # @type ModelAccTaskName: String - # @param ModelSource: 模型来源(JOB/COS) - # @type ModelSource: String - # @param AlgorithmFramework: 算法框架(废弃) - # @type AlgorithmFramework: String - # @param ModelId: 模型ID - # @type ModelId: String - # @param ModelName: 模型名称 - # @type ModelName: String - # @param ModelVersion: 模型版本 - # @type ModelVersion: String - # @param ModelInputPath: 模型输入cos路径 - # @type ModelInputPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param OptimizationLevel: 优化级别(NO_LOSS/FP16/INT8),默认FP16 - # @type OptimizationLevel: String - # @param ModelInputNum: input节点个数(废弃) - # @type ModelInputNum: Integer - # @param ModelInputInfos: input节点信息(废弃) - # @type ModelInputInfos: Array - # @param ModelOutputPath: 模型输出cos路径 - # @type ModelOutputPath: :class:`Tencentcloud::Tione.v20211111.models.CosPathInfo` - # @param ModelFormat: 模型格式(TORCH_SCRIPT/DETECTRON2/SAVED_MODEL/FROZEN_GRAPH/MMDETECTION/ONNX/HUGGING_FACE) - # @type ModelFormat: String - # @param TensorInfos: 模型Tensor信息 - # @type TensorInfos: Array - # @param GPUType: GPU类型(T4/V100/A10),默认T4 - # @type GPUType: String - # @param HyperParameter: 模型专业参数 - # @type HyperParameter: :class:`Tencentcloud::Tione.v20211111.models.HyperParameter` - # @param AccEngineVersion: 加速引擎版本 - # @type AccEngineVersion: String - # @param Tags: 标签 - # @type Tags: Array - # @param ModelSignature: SavedModel保存时配置的签名 - # @type ModelSignature: String - # @param FrameworkVersion: 加速引擎对应的框架版本 - # @type FrameworkVersion: String - - attr_accessor :ModelAccTaskId, :ModelAccTaskName, :ModelSource, :AlgorithmFramework, :ModelId, :ModelName, :ModelVersion, :ModelInputPath, :OptimizationLevel, :ModelInputNum, :ModelInputInfos, :ModelOutputPath, :ModelFormat, :TensorInfos, :GPUType, :HyperParameter, :AccEngineVersion, :Tags, :ModelSignature, :FrameworkVersion - - def initialize(modelacctaskid=nil, modelacctaskname=nil, modelsource=nil, algorithmframework=nil, modelid=nil, modelname=nil, modelversion=nil, modelinputpath=nil, optimizationlevel=nil, modelinputnum=nil, modelinputinfos=nil, modeloutputpath=nil, modelformat=nil, tensorinfos=nil, gputype=nil, hyperparameter=nil, accengineversion=nil, tags=nil, modelsignature=nil, frameworkversion=nil) - @ModelAccTaskId = modelacctaskid - @ModelAccTaskName = modelacctaskname - @ModelSource = modelsource - @AlgorithmFramework = algorithmframework - @ModelId = modelid - @ModelName = modelname - @ModelVersion = modelversion - @ModelInputPath = modelinputpath - @OptimizationLevel = optimizationlevel - @ModelInputNum = modelinputnum - @ModelInputInfos = modelinputinfos - @ModelOutputPath = modeloutputpath - @ModelFormat = modelformat - @TensorInfos = tensorinfos - @GPUType = gputype - @HyperParameter = hyperparameter - @AccEngineVersion = accengineversion - @Tags = tags - @ModelSignature = modelsignature - @FrameworkVersion = frameworkversion - end - - def deserialize(params) - @ModelAccTaskId = params['ModelAccTaskId'] - @ModelAccTaskName = params['ModelAccTaskName'] - @ModelSource = params['ModelSource'] - @AlgorithmFramework = params['AlgorithmFramework'] - @ModelId = params['ModelId'] - @ModelName = params['ModelName'] - @ModelVersion = params['ModelVersion'] - unless params['ModelInputPath'].nil? - @ModelInputPath = CosPathInfo.new - @ModelInputPath.deserialize(params['ModelInputPath']) - end - @OptimizationLevel = params['OptimizationLevel'] - @ModelInputNum = params['ModelInputNum'] - unless params['ModelInputInfos'].nil? - @ModelInputInfos = [] - params['ModelInputInfos'].each do |i| - modelinputinfo_tmp = ModelInputInfo.new - modelinputinfo_tmp.deserialize(i) - @ModelInputInfos << modelinputinfo_tmp - end - end - unless params['ModelOutputPath'].nil? - @ModelOutputPath = CosPathInfo.new - @ModelOutputPath.deserialize(params['ModelOutputPath']) - end - @ModelFormat = params['ModelFormat'] - @TensorInfos = params['TensorInfos'] - @GPUType = params['GPUType'] - unless params['HyperParameter'].nil? - @HyperParameter = HyperParameter.new - @HyperParameter.deserialize(params['HyperParameter']) - end - @AccEngineVersion = params['AccEngineVersion'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - @ModelSignature = params['ModelSignature'] - @FrameworkVersion = params['FrameworkVersion'] - end - end - - # RestartModelAccelerateTask返回参数结构体 - class RestartModelAccelerateTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # 文本行信息 - class RowItem < TencentCloud::Common::AbstractModel - # @param Values: rowValue 数组 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Values: Array - - attr_accessor :Values - - def initialize(values=nil) - @Values = values - end - - def deserialize(params) - unless params['Values'].nil? - @Values = [] - params['Values'].each do |i| - rowvalue_tmp = RowValue.new - rowvalue_tmp.deserialize(i) - @Values << rowvalue_tmp - end - end - end - end - - # 文件行信息 - class RowValue < TencentCloud::Common::AbstractModel - # @param Name: 列名 - # @type Name: String - # @param Value: 列值 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Value: String - - attr_accessor :Name, :Value - - def initialize(name=nil, value=nil) - @Name = name - @Value = value - end - - def deserialize(params) - @Name = params['Name'] - @Value = params['Value'] - end - end - # notebook ssh端口配置 class SSHConfig < TencentCloud::Common::AbstractModel # @param Enable: 是否开启ssh # 注意:此字段可能返回 null,表示取不到有效值。 # @type Enable: Boolean @@ -8895,49 +5417,10 @@ @Name = params['Name'] @Type = params['Type'] end end - # 图片分割参数信息 - class SegmentationInfo < TencentCloud::Common::AbstractModel - # @param Points: 点坐标数组 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Points: Array - # @param Label: 分割标签 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Label: String - # @param Gray: 灰度值 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Gray: Integer - # @param Color: 颜色 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Color: String - - attr_accessor :Points, :Label, :Gray, :Color - - def initialize(points=nil, label=nil, gray=nil, color=nil) - @Points = points - @Label = label - @Gray = gray - @Color = color - end - - def deserialize(params) - unless params['Points'].nil? - @Points = [] - params['Points'].each do |i| - pointinfo_tmp = PointInfo.new - pointinfo_tmp.deserialize(i) - @Points << pointinfo_tmp - end - end - @Label = params['Label'] - @Gray = params['Gray'] - @Color = params['Color'] - end - end - # SendChatMessage请求参数结构体 class SendChatMessageRequest < TencentCloud::Common::AbstractModel # @param SessionId: 会话id,标识一组对话的唯一id,id变更则重置会话 # @type SessionId: String # @param Question: 问题描述 @@ -9099,14 +5582,14 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceGroupSWType: String attr_accessor :ServiceGroupId, :ServiceId, :ServiceGroupName, :ServiceDescription, :ServiceInfo, :ClusterId, :Region, :Namespace, :ChargeType, :ResourceGroupId, :ResourceGroupName, :Tags, :IngressName, :CreatedBy, :CreateTime, :UpdateTime, :Uin, :SubUin, :AppId, :BusinessStatus, :ServiceLimit, :ScheduledAction, :CreateFailedReason, :Status, :BillingInfo, :Weight, :CreateSource, :Version, :LatestVersion, :ResourceGroupSWType extend Gem::Deprecate - deprecate :ServiceLimit, :none, 2024, 4 - deprecate :ServiceLimit=, :none, 2024, 4 - deprecate :ScheduledAction, :none, 2024, 4 - deprecate :ScheduledAction=, :none, 2024, 4 + deprecate :ServiceLimit, :none, 2024, 5 + deprecate :ServiceLimit=, :none, 2024, 5 + deprecate :ScheduledAction, :none, 2024, 5 + deprecate :ScheduledAction=, :none, 2024, 5 def initialize(servicegroupid=nil, serviceid=nil, servicegroupname=nil, servicedescription=nil, serviceinfo=nil, clusterid=nil, region=nil, namespace=nil, chargetype=nil, resourcegroupid=nil, resourcegroupname=nil, tags=nil, ingressname=nil, createdby=nil, createtime=nil, updatetime=nil, uin=nil, subuin=nil, appid=nil, businessstatus=nil, servicelimit=nil, scheduledaction=nil, createfailedreason=nil, status=nil, billinginfo=nil, weight=nil, createsource=nil, version=nil, latestversion=nil, resourcegroupswtype=nil) @ServiceGroupId = servicegroupid @ServiceId = serviceid @ServiceGroupName = servicegroupname @@ -9420,47 +5903,10 @@ @ReplicasCount = params['ReplicasCount'] @AvailableReplicasCount = params['AvailableReplicasCount'] end end - # 服务历史版本 - class ServiceHistory < TencentCloud::Common::AbstractModel - # @param Revision: 版本 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Revision: String - # @param UpdateTime: 更新时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type UpdateTime: String - # @param Image: 镜像 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Image: String - # @param ModelFile: 模型文件 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ModelFile: String - # @param RawData: 原始数据 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type RawData: String - - attr_accessor :Revision, :UpdateTime, :Image, :ModelFile, :RawData - - def initialize(revision=nil, updatetime=nil, image=nil, modelfile=nil, rawdata=nil) - @Revision = revision - @UpdateTime = updatetime - @Image = image - @ModelFile = modelfile - @RawData = rawdata - end - - def deserialize(params) - @Revision = params['Revision'] - @UpdateTime = params['UpdateTime'] - @Image = params['Image'] - @ModelFile = params['ModelFile'] - @RawData = params['RawData'] - end - end - # 推理服务在集群中的信息 class ServiceInfo < TencentCloud::Common::AbstractModel # @param Replicas: 期望运行的Pod数量,停止状态是0 # 不同计费模式和调节模式下对应关系如下 # PREPAID 和 POSTPAID_BY_HOUR: @@ -9557,19 +6003,22 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type Command: String # @param ServiceEIP: 开启TIONE内网访问外部设置 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ServiceEIP: :class:`Tencentcloud::Tione.v20211111.models.ServiceEIP` + # @param ServicePort: 服务端口,默认为8501 + # 注意:此字段可能返回 null,表示取不到有效值。 + # @type ServicePort: Integer - attr_accessor :Replicas, :ImageInfo, :Env, :Resources, :InstanceType, :ModelInfo, :LogEnable, :LogConfig, :AuthorizationEnable, :HorizontalPodAutoscaler, :Status, :Weight, :ResourceTotal, :OldReplicas, :HybridBillingPrepaidReplicas, :OldHybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScaleMode, :CronScaleJobs, :ScaleStrategy, :ScheduledAction, :PodList, :Pods, :PodInfos, :ServiceLimit, :ModelTurboEnable, :VolumeMount, :InferCodeInfo, :Command, :ServiceEIP + attr_accessor :Replicas, :ImageInfo, :Env, :Resources, :InstanceType, :ModelInfo, :LogEnable, :LogConfig, :AuthorizationEnable, :HorizontalPodAutoscaler, :Status, :Weight, :ResourceTotal, :OldReplicas, :HybridBillingPrepaidReplicas, :OldHybridBillingPrepaidReplicas, :ModelHotUpdateEnable, :ScaleMode, :CronScaleJobs, :ScaleStrategy, :ScheduledAction, :PodList, :Pods, :PodInfos, :ServiceLimit, :ModelTurboEnable, :VolumeMount, :InferCodeInfo, :Command, :ServiceEIP, :ServicePort extend Gem::Deprecate - deprecate :PodList, :none, 2024, 4 - deprecate :PodList=, :none, 2024, 4 - deprecate :Pods, :none, 2024, 4 - deprecate :Pods=, :none, 2024, 4 + deprecate :PodList, :none, 2024, 5 + deprecate :PodList=, :none, 2024, 5 + deprecate :Pods, :none, 2024, 5 + deprecate :Pods=, :none, 2024, 5 - def initialize(replicas=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, modelinfo=nil, logenable=nil, logconfig=nil, authorizationenable=nil, horizontalpodautoscaler=nil, status=nil, weight=nil, resourcetotal=nil, oldreplicas=nil, hybridbillingprepaidreplicas=nil, oldhybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scalemode=nil, cronscalejobs=nil, scalestrategy=nil, scheduledaction=nil, podlist=nil, pods=nil, podinfos=nil, servicelimit=nil, modelturboenable=nil, volumemount=nil, infercodeinfo=nil, command=nil, serviceeip=nil) + def initialize(replicas=nil, imageinfo=nil, env=nil, resources=nil, instancetype=nil, modelinfo=nil, logenable=nil, logconfig=nil, authorizationenable=nil, horizontalpodautoscaler=nil, status=nil, weight=nil, resourcetotal=nil, oldreplicas=nil, hybridbillingprepaidreplicas=nil, oldhybridbillingprepaidreplicas=nil, modelhotupdateenable=nil, scalemode=nil, cronscalejobs=nil, scalestrategy=nil, scheduledaction=nil, podlist=nil, pods=nil, podinfos=nil, servicelimit=nil, modelturboenable=nil, volumemount=nil, infercodeinfo=nil, command=nil, serviceeip=nil, serviceport=nil) @Replicas = replicas @ImageInfo = imageinfo @Env = env @Resources = resources @InstanceType = instancetype @@ -9596,10 +6045,11 @@ @ModelTurboEnable = modelturboenable @VolumeMount = volumemount @InferCodeInfo = infercodeinfo @Command = command @ServiceEIP = serviceeip + @ServicePort = serviceport end def deserialize(params) @Replicas = params['Replicas'] unless params['ImageInfo'].nil? @@ -9686,10 +6136,11 @@ @Command = params['Command'] unless params['ServiceEIP'].nil? @ServiceEIP = ServiceEIP.new @ServiceEIP.deserialize(params['ServiceEIP']) end + @ServicePort = params['ServicePort'] end end # 服务的限流限速等配置 class ServiceLimit < TencentCloud::Common::AbstractModel @@ -9717,110 +6168,10 @@ @EnableInstanceReqLimit = params['EnableInstanceReqLimit'] @InstanceReqLimit = params['InstanceReqLimit'] end end - # 计费项内容 - class Spec < TencentCloud::Common::AbstractModel - # @param SpecId: 计费项标签 - # @type SpecId: String - # @param SpecName: 计费项名称 - # @type SpecName: String - # @param SpecAlias: 计费项显示名称 - # @type SpecAlias: String - # @param Available: 是否售罄 - # @type Available: Boolean - # @param AvailableRegion: 当前资源售罄时,可用的区域有哪些 - # @type AvailableRegion: Array - # @param SpecFeatures: 当前计费项支持的特性 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type SpecFeatures: Array - # @param SpecType: 计费项类型 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type SpecType: String - # @param GpuType: GPU类型 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type GpuType: String - # @param CategoryId: 计费项CategoryId - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type CategoryId: String - - attr_accessor :SpecId, :SpecName, :SpecAlias, :Available, :AvailableRegion, :SpecFeatures, :SpecType, :GpuType, :CategoryId - - def initialize(specid=nil, specname=nil, specalias=nil, available=nil, availableregion=nil, specfeatures=nil, spectype=nil, gputype=nil, categoryid=nil) - @SpecId = specid - @SpecName = specname - @SpecAlias = specalias - @Available = available - @AvailableRegion = availableregion - @SpecFeatures = specfeatures - @SpecType = spectype - @GpuType = gputype - @CategoryId = categoryid - end - - def deserialize(params) - @SpecId = params['SpecId'] - @SpecName = params['SpecName'] - @SpecAlias = params['SpecAlias'] - @Available = params['Available'] - @AvailableRegion = params['AvailableRegion'] - @SpecFeatures = params['SpecFeatures'] - @SpecType = params['SpecType'] - @GpuType = params['GpuType'] - @CategoryId = params['CategoryId'] - end - end - - # 计费项询价结果 - class SpecPrice < TencentCloud::Common::AbstractModel - # @param SpecName: 计费项名称 - # @type SpecName: String - # @param TotalCost: 原价,单位:分。最大值42亿,超过则返回0 - # @type TotalCost: Integer - # @param RealTotalCost: 优惠后的价格,单位:分 - # @type RealTotalCost: Integer - # @param SpecCount: 计费项数量 - # @type SpecCount: Integer - - attr_accessor :SpecName, :TotalCost, :RealTotalCost, :SpecCount - - def initialize(specname=nil, totalcost=nil, realtotalcost=nil, speccount=nil) - @SpecName = specname - @TotalCost = totalcost - @RealTotalCost = realtotalcost - @SpecCount = speccount - end - - def deserialize(params) - @SpecName = params['SpecName'] - @TotalCost = params['TotalCost'] - @RealTotalCost = params['RealTotalCost'] - @SpecCount = params['SpecCount'] - end - end - - # 计费项询价单元 - class SpecUnit < TencentCloud::Common::AbstractModel - # @param SpecName: 计费项名称 - # @type SpecName: String - # @param SpecCount: 计费项数量,建议不超过100万 - # @type SpecCount: Integer - - attr_accessor :SpecName, :SpecCount - - def initialize(specname=nil, speccount=nil) - @SpecName = specname - @SpecCount = speccount - end - - def deserialize(params) - @SpecName = params['SpecName'] - @SpecCount = params['SpecCount'] - end - end - # 启动命令信息 class StartCmdInfo < TencentCloud::Common::AbstractModel # @param StartCmd: 启动命令 # @type StartCmd: String # @param PsStartCmd: ps启动命令 @@ -9873,42 +6224,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # StartTrainingTask请求参数结构体 - class StartTrainingTaskRequest < TencentCloud::Common::AbstractModel - # @param Id: 训练任务ID - # @type Id: String - - attr_accessor :Id - - def initialize(id=nil) - @Id = id - end - - def deserialize(params) - @Id = params['Id'] - end - end - - # StartTrainingTask返回参数结构体 - class StartTrainingTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # 实例状况 class StatefulSetCondition < TencentCloud::Common::AbstractModel # @param Message: 信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Message: String @@ -9947,74 +6266,10 @@ @LastTransitionTime = params['LastTransitionTime'] @LastUpdateTime = params['LastUpdateTime'] end end - # StopBatchTask请求参数结构体 - class StopBatchTaskRequest < TencentCloud::Common::AbstractModel - # @param BatchTaskId: 批量预测任务ID - # @type BatchTaskId: String - - attr_accessor :BatchTaskId - - def initialize(batchtaskid=nil) - @BatchTaskId = batchtaskid - end - - def deserialize(params) - @BatchTaskId = params['BatchTaskId'] - end - end - - # StopBatchTask返回参数结构体 - class StopBatchTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - - # StopCreatingImage请求参数结构体 - class StopCreatingImageRequest < TencentCloud::Common::AbstractModel - # @param RecordId: 镜像保存记录ID - # @type RecordId: String - - attr_accessor :RecordId - - def initialize(recordid=nil) - @RecordId = recordid - end - - def deserialize(params) - @RecordId = params['RecordId'] - end - end - - # StopCreatingImage返回参数结构体 - class StopCreatingImageResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # StopModelAccelerateTask请求参数结构体 class StopModelAccelerateTaskRequest < TencentCloud::Common::AbstractModel # @param ModelAccTaskId: 模型加速任务ID # @type ModelAccTaskId: String @@ -10085,42 +6340,10 @@ def deserialize(params) @RequestId = params['RequestId'] end end - # StopTrainingTask请求参数结构体 - class StopTrainingTaskRequest < TencentCloud::Common::AbstractModel - # @param Id: 训练任务ID - # @type Id: String - - attr_accessor :Id - - def initialize(id=nil) - @Id = id - end - - def deserialize(params) - @Id = params['Id'] - end - end - - # StopTrainingTask返回参数结构体 - class StopTrainingTaskResponse < TencentCloud::Common::AbstractModel - # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 - # @type RequestId: String - - attr_accessor :RequestId - - def initialize(requestid=nil) - @RequestId = requestid - end - - def deserialize(params) - @RequestId = params['RequestId'] - end - end - # 太极服务的调用信息 class TJCallInfo < TencentCloud::Common::AbstractModel # @param HttpAddr: 调用地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type HttpAddr: String @@ -10186,357 +6409,10 @@ @TagKey = params['TagKey'] @TagValues = params['TagValues'] end end - # 五级标签 - class TextLabelDistributionDetailInfoFifthClass < TencentCloud::Common::AbstractModel - # @param LabelValue: 标签名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelValue: String - # @param LabelCount: 标签个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelCount: Integer - # @param LabelPercentage: 标签占比 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelPercentage: Float - - attr_accessor :LabelValue, :LabelCount, :LabelPercentage - - def initialize(labelvalue=nil, labelcount=nil, labelpercentage=nil) - @LabelValue = labelvalue - @LabelCount = labelcount - @LabelPercentage = labelpercentage - end - - def deserialize(params) - @LabelValue = params['LabelValue'] - @LabelCount = params['LabelCount'] - @LabelPercentage = params['LabelPercentage'] - end - end - - # 一级标签 - class TextLabelDistributionDetailInfoFirstClass < TencentCloud::Common::AbstractModel - # @param LabelValue: 标签名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelValue: String - # @param LabelCount: 标签个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelCount: Integer - # @param LabelPercentage: 标签占比 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelPercentage: Float - # @param ChildLabelList: 子标签分布 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ChildLabelList: Array - - attr_accessor :LabelValue, :LabelCount, :LabelPercentage, :ChildLabelList - - def initialize(labelvalue=nil, labelcount=nil, labelpercentage=nil, childlabellist=nil) - @LabelValue = labelvalue - @LabelCount = labelcount - @LabelPercentage = labelpercentage - @ChildLabelList = childlabellist - end - - def deserialize(params) - @LabelValue = params['LabelValue'] - @LabelCount = params['LabelCount'] - @LabelPercentage = params['LabelPercentage'] - unless params['ChildLabelList'].nil? - @ChildLabelList = [] - params['ChildLabelList'].each do |i| - textlabeldistributiondetailinfosecondclass_tmp = TextLabelDistributionDetailInfoSecondClass.new - textlabeldistributiondetailinfosecondclass_tmp.deserialize(i) - @ChildLabelList << textlabeldistributiondetailinfosecondclass_tmp - end - end - end - end - - # 四级标签 - class TextLabelDistributionDetailInfoFourthClass < TencentCloud::Common::AbstractModel - # @param LabelValue: 标签名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelValue: String - # @param LabelCount: 标签个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelCount: Integer - # @param LabelPercentage: 标签占比 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelPercentage: Float - # @param ChildLabelList: 子标签分布 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ChildLabelList: Array - - attr_accessor :LabelValue, :LabelCount, :LabelPercentage, :ChildLabelList - - def initialize(labelvalue=nil, labelcount=nil, labelpercentage=nil, childlabellist=nil) - @LabelValue = labelvalue - @LabelCount = labelcount - @LabelPercentage = labelpercentage - @ChildLabelList = childlabellist - end - - def deserialize(params) - @LabelValue = params['LabelValue'] - @LabelCount = params['LabelCount'] - @LabelPercentage = params['LabelPercentage'] - unless params['ChildLabelList'].nil? - @ChildLabelList = [] - params['ChildLabelList'].each do |i| - textlabeldistributiondetailinfofifthclass_tmp = TextLabelDistributionDetailInfoFifthClass.new - textlabeldistributiondetailinfofifthclass_tmp.deserialize(i) - @ChildLabelList << textlabeldistributiondetailinfofifthclass_tmp - end - end - end - end - - # 二级标签 - class TextLabelDistributionDetailInfoSecondClass < TencentCloud::Common::AbstractModel - # @param LabelValue: 标签名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelValue: String - # @param LabelCount: 标签个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelCount: Integer - # @param LabelPercentage: 标签占比 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelPercentage: Float - # @param ChildLabelList: 子标签分布 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ChildLabelList: Array - - attr_accessor :LabelValue, :LabelCount, :LabelPercentage, :ChildLabelList - - def initialize(labelvalue=nil, labelcount=nil, labelpercentage=nil, childlabellist=nil) - @LabelValue = labelvalue - @LabelCount = labelcount - @LabelPercentage = labelpercentage - @ChildLabelList = childlabellist - end - - def deserialize(params) - @LabelValue = params['LabelValue'] - @LabelCount = params['LabelCount'] - @LabelPercentage = params['LabelPercentage'] - unless params['ChildLabelList'].nil? - @ChildLabelList = [] - params['ChildLabelList'].each do |i| - textlabeldistributiondetailinfothirdclass_tmp = TextLabelDistributionDetailInfoThirdClass.new - textlabeldistributiondetailinfothirdclass_tmp.deserialize(i) - @ChildLabelList << textlabeldistributiondetailinfothirdclass_tmp - end - end - end - end - - # 三级标签 - class TextLabelDistributionDetailInfoThirdClass < TencentCloud::Common::AbstractModel - # @param LabelValue: 标签名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelValue: String - # @param LabelCount: 标签个数 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelCount: Integer - # @param LabelPercentage: 标签占比 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type LabelPercentage: Float - # @param ChildLabelList: 子标签分布 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ChildLabelList: Array - - attr_accessor :LabelValue, :LabelCount, :LabelPercentage, :ChildLabelList - - def initialize(labelvalue=nil, labelcount=nil, labelpercentage=nil, childlabellist=nil) - @LabelValue = labelvalue - @LabelCount = labelcount - @LabelPercentage = labelpercentage - @ChildLabelList = childlabellist - end - - def deserialize(params) - @LabelValue = params['LabelValue'] - @LabelCount = params['LabelCount'] - @LabelPercentage = params['LabelPercentage'] - unless params['ChildLabelList'].nil? - @ChildLabelList = [] - params['ChildLabelList'].each do |i| - textlabeldistributiondetailinfofourthclass_tmp = TextLabelDistributionDetailInfoFourthClass.new - textlabeldistributiondetailinfofourthclass_tmp.deserialize(i) - @ChildLabelList << textlabeldistributiondetailinfofourthclass_tmp - end - end - end - end - - # 文本标签 - class TextLabelDistributionInfo < TencentCloud::Common::AbstractModel - # @param Theme: 文本分类题目名称 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Theme: String - # @param ClassLabelList: 一级标签分布 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type ClassLabelList: Array - - attr_accessor :Theme, :ClassLabelList - - def initialize(theme=nil, classlabellist=nil) - @Theme = theme - @ClassLabelList = classlabellist - end - - def deserialize(params) - @Theme = params['Theme'] - unless params['ClassLabelList'].nil? - @ClassLabelList = [] - params['ClassLabelList'].each do |i| - textlabeldistributiondetailinfofirstclass_tmp = TextLabelDistributionDetailInfoFirstClass.new - textlabeldistributiondetailinfofirstclass_tmp.deserialize(i) - @ClassLabelList << textlabeldistributiondetailinfofirstclass_tmp - end - end - end - end - - # 训练数据 - class TrainingDataPoint < TencentCloud::Common::AbstractModel - # @param Timestamp: 时间戳 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Timestamp: Integer - # @param Value: 训练上报的值。可以为训练指标(双精度浮点数,也可以为Epoch/Step(两者皆保证是整数) - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Value: Float - - attr_accessor :Timestamp, :Value - - def initialize(timestamp=nil, value=nil) - @Timestamp = timestamp - @Value = value - end - - def deserialize(params) - @Timestamp = params['Timestamp'] - @Value = params['Value'] - end - end - - # 训练指标 - class TrainingMetric < TencentCloud::Common::AbstractModel - # @param MetricName: 指标名 - # @type MetricName: String - # @param Values: 数据值 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Values: Array - # @param Epochs: 上报的Epoch. 可能为空 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Epochs: Array - # @param Steps: 上报的Step. 可能为空 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Steps: Array - # @param TotalSteps: 上报的TotalSteps. 可能为空 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TotalSteps: Array - - attr_accessor :MetricName, :Values, :Epochs, :Steps, :TotalSteps - - def initialize(metricname=nil, values=nil, epochs=nil, steps=nil, totalsteps=nil) - @MetricName = metricname - @Values = values - @Epochs = epochs - @Steps = steps - @TotalSteps = totalsteps - end - - def deserialize(params) - @MetricName = params['MetricName'] - unless params['Values'].nil? - @Values = [] - params['Values'].each do |i| - trainingdatapoint_tmp = TrainingDataPoint.new - trainingdatapoint_tmp.deserialize(i) - @Values << trainingdatapoint_tmp - end - end - unless params['Epochs'].nil? - @Epochs = [] - params['Epochs'].each do |i| - trainingdatapoint_tmp = TrainingDataPoint.new - trainingdatapoint_tmp.deserialize(i) - @Epochs << trainingdatapoint_tmp - end - end - unless params['Steps'].nil? - @Steps = [] - params['Steps'].each do |i| - trainingdatapoint_tmp = TrainingDataPoint.new - trainingdatapoint_tmp.deserialize(i) - @Steps << trainingdatapoint_tmp - end - end - unless params['TotalSteps'].nil? - @TotalSteps = [] - params['TotalSteps'].each do |i| - trainingdatapoint_tmp = TrainingDataPoint.new - trainingdatapoint_tmp.deserialize(i) - @TotalSteps << trainingdatapoint_tmp - end - end - end - end - - # 模型列表 - class TrainingModelDTO < TencentCloud::Common::AbstractModel - # @param TrainingModelId: 模型id - # @type TrainingModelId: String - # @param TrainingModelName: 模型名称 - # @type TrainingModelName: String - # @param Tags: 标签 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type Tags: Array - # @param CreateTime: 模型创建时间 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type CreateTime: String - # @param TrainingModelVersions: 模型版本列表。默认不返回,仅在指定请求参数开启时返回。 - # 注意:此字段可能返回 null,表示取不到有效值。 - # @type TrainingModelVersions: Array - - attr_accessor :TrainingModelId, :TrainingModelName, :Tags, :CreateTime, :TrainingModelVersions - - def initialize(trainingmodelid=nil, trainingmodelname=nil, tags=nil, createtime=nil, trainingmodelversions=nil) - @TrainingModelId = trainingmodelid - @TrainingModelName = trainingmodelname - @Tags = tags - @CreateTime = createtime - @TrainingModelVersions = trainingmodelversions - end - - def deserialize(params) - @TrainingModelId = params['TrainingModelId'] - @TrainingModelName = params['TrainingModelName'] - unless params['Tags'].nil? - @Tags = [] - params['Tags'].each do |i| - tag_tmp = Tag.new - tag_tmp.deserialize(i) - @Tags << tag_tmp - end - end - @CreateTime = params['CreateTime'] - unless params['TrainingModelVersions'].nil? - @TrainingModelVersions = [] - params['TrainingModelVersions'].each do |i| - trainingmodelversiondto_tmp = TrainingModelVersionDTO.new - trainingmodelversiondto_tmp.deserialize(i) - @TrainingModelVersions << trainingmodelversiondto_tmp - end - end - end - end - # 模型版本列表 class TrainingModelVersionDTO < TencentCloud::Common::AbstractModel # @param TrainingModelId: 模型id # @type TrainingModelId: String # @param TrainingModelVersionId: 模型版本id @@ -11114,30 +6990,10 @@ end @VolumeSourceType = params['VolumeSourceType'] end end - # 服务的权重 - class WeightEntry < TencentCloud::Common::AbstractModel - # @param ServiceId: 服务id - # @type ServiceId: String - # @param Weight: 流量权重值,同 ServiceGroup 下 总和应为 100 - # @type Weight: Integer - - attr_accessor :ServiceId, :Weight - - def initialize(serviceid=nil, weight=nil) - @ServiceId = serviceid - @Weight = weight - end - - def deserialize(params) - @ServiceId = params['ServiceId'] - @Weight = params['Weight'] - end - end - # 工作负载的状态 class WorkloadStatus < TencentCloud::Common::AbstractModel # @param Replicas: 当前实例数 # @type Replicas: Integer # @param UpdatedReplicas: 更新的实例数 @@ -11163,11 +7019,11 @@ # 注意:此字段可能返回 null,表示取不到有效值。 # @type Reason: String attr_accessor :Replicas, :UpdatedReplicas, :ReadyReplicas, :AvailableReplicas, :UnavailableReplicas, :Status, :StatefulSetCondition, :Conditions, :Reason extend Gem::Deprecate - deprecate :StatefulSetCondition, :none, 2024, 4 - deprecate :StatefulSetCondition=, :none, 2024, 4 + deprecate :StatefulSetCondition, :none, 2024, 5 + deprecate :StatefulSetCondition=, :none, 2024, 5 def initialize(replicas=nil, updatedreplicas=nil, readyreplicas=nil, availablereplicas=nil, unavailablereplicas=nil, status=nil, statefulsetcondition=nil, conditions=nil, reason=nil) @Replicas = replicas @UpdatedReplicas = updatedreplicas @ReadyReplicas = readyreplicas