class TencentCloud::Tione::V20211111::CreateDatasetRequest
CreateDataset请求参数结构体
def deserialize(params)
def deserialize(params) @DatasetName = params['DatasetName'] @DatasetType = params['DatasetType'] unless params['StorageDataPath'].nil? @StorageDataPath = CosPathInfo.new @StorageDataPath.deserialize(params['StorageDataPath']) end unless params['StorageLabelPath'].nil? @StorageLabelPath = CosPathInfo.new @StorageLabelPath.deserialize(params['StorageLabelPath']) end unless params['DatasetTags'].nil? @DatasetTags = [] params['DatasetTags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @DatasetTags << tag_tmp end end @AnnotationStatus = params['AnnotationStatus'] @AnnotationType = params['AnnotationType'] @AnnotationFormat = params['AnnotationFormat'] unless params['SchemaInfos'].nil? @SchemaInfos = [] params['SchemaInfos'].each do |i| schemainfo_tmp = SchemaInfo.new schemainfo_tmp.deserialize(i) @SchemaInfos << schemainfo_tmp end end @IsSchemaExisted = params['IsSchemaExisted'] @ContentType = params['ContentType'] end
def initialize(datasetname=nil, datasettype=nil, storagedatapath=nil, storagelabelpath=nil, datasettags=nil, annotationstatus=nil, annotationtype=nil, annotationformat=nil, schemainfos=nil, isschemaexisted=nil, contenttype=nil)
def initialize(datasetname=nil, datasettype=nil, storagedatapath=nil, storagelabelpath=nil, datasettags=nil, annotationstatus=nil, annotationtype=nil, annotationformat=nil, schemainfos=nil, isschemaexisted=nil, contenttype=nil) @DatasetName = datasetname @DatasetType = datasettype @StorageDataPath = storagedatapath @StorageLabelPath = storagelabelpath @DatasetTags = datasettags @AnnotationStatus = annotationstatus @AnnotationType = annotationtype @AnnotationFormat = annotationformat @SchemaInfos = schemainfos @IsSchemaExisted = isschemaexisted @ContentType = contenttype end