class TencentCloud::Tione::V20211111::CreateTrainingTaskRequest
CreateTrainingTask请求参数结构体
def deserialize(params)
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'] end
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)
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) @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 end