Skip to content

DatasetVersionProps

Properties for defining a DatasetVersion.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-pai-datasetversion

Initializer

using AlibabaCloud.SDK.ROS.CDK.Pai;
new DatasetVersionProps {
    object DatasetId,
    object DataSourceType,
    object Property,
    object Uri,
    object DataCount = null,
    object DataSize = null,
    object Description = null,
    object Labels = null,
    object Options = null,
    object SourceId = null,
    object SourceType = null
};

Properties

Name Type Description
DatasetId object Property datasetId: The ID of the dataset.
DataSourceType object Property dataSourceType: The data source type.
Property object Property property: The properties of the dataset.
Uri object Property uri: The Uri configuration sample is as follows: - The data source type is OSS:'oss:\/\/bucket.endpoint\/object' - The data source type is NAS: The general NAS format is: 'nas:\/\/.region\/subpath\/to\/dir\/'; CPFS1.0:'nas:\/\/.region\/subpath\/to\/dir \/'; CPFS2.0:'nas:\/\/.region\/\/'. CPFS1.0 and CPFS2.0 are distinguished by the format of fsid: CPFS1.0 is cpfs-<8-bit ascii characters>;CPFS2.0 is cpfs-<16 ascii characters>.
DataCount object Property dataCount: The number of dataset files, in units of pieces.
DataSize object Property dataSize: The size of the dataset file in bytes.
Description object Property description: To create a custom description for dataset versions in order to distinguish between different versions of the dataset.
Labels object Property labels: Dataset version tag list.
Options object Property options: The extended field, which is of the JsonString type.
SourceId object Property sourceId: The data source ID.
SourceType object Property sourceType: The data source type.

DatasetIdRequired

public object DatasetId { get; set; }
  • Type: object

Property datasetId: The ID of the dataset.


DataSourceTypeRequired

public object DataSourceType { get; set; }
  • Type: object

Property dataSourceType: The data source type.

The following values are supported:

  • OSS: Alibaba Cloud Object Storage (OSS).
  • NAS: Alibaba cloud file storage (NAS).
  • CPFS

PropertyRequired

public object Property { get; set; }
  • Type: object

Property property: The properties of the dataset.

The following values are supported:

  • FILE: FILE.
  • DIRECTORY: folder.

UriRequired

public object Uri { get; set; }
  • Type: object

Property uri: The Uri configuration sample is as follows: - The data source type is OSS:'oss:\/\/bucket.endpoint\/object' - The data source type is NAS: The general NAS format is: 'nas:\/\/.region\/subpath\/to\/dir\/'; CPFS1.0:'nas:\/\/.region\/subpath\/to\/dir \/'; CPFS2.0:'nas:\/\/.region\/\/'. CPFS1.0 and CPFS2.0 are distinguished by the format of fsid: CPFS1.0 is cpfs-<8-bit ascii characters>;CPFS2.0 is cpfs-<16 ascii characters>.


DataCountOptional

public object DataCount { get; set; }
  • Type: object

Property dataCount: The number of dataset files, in units of pieces.


DataSizeOptional

public object DataSize { get; set; }
  • Type: object

Property dataSize: The size of the dataset file in bytes.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: To create a custom description for dataset versions in order to distinguish between different versions of the dataset.


LabelsOptional

public object Labels { get; set; }
  • Type: object

Property labels: Dataset version tag list.


OptionsOptional

public object Options { get; set; }
  • Type: object

Property options: The extended field, which is of the JsonString type.

When DLC uses a dataset, you can specify the default Mount path for the dataset by configuring the mountPath field.


SourceIdOptional

public object SourceId { get; set; }
  • Type: object

Property sourceId: The data source ID.

  • When the SourceType is USER, SourceId can be customized.
  • When SourceType is ITAG, that is, when the iTAG module labels the data set generated by the result, SourceId is the task ID of ITAG.
  • When SourceType is PAI_PUBLIC_DATASET, that is, a dataset created using PAI public datasets, SourceId is empty by default.

SourceTypeOptional

public object SourceType { get; set; }
  • Type: object

Property sourceType: The data source type.

The default value is USER. The following values are supported:

  • PAI-PUBLIC-DATASET:PAI public dataset.
  • ITAG: The dataset generated by the iTAG module annotation result.
  • USER: The data set registered by the USER.