Share via


DatasetVersion Class

Definition

DatasetVersion Definition Please note DatasetVersion is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FileDatasetVersion and FolderDatasetVersion.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.UnknownDatasetVersion))]
public abstract class DatasetVersion : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.DatasetVersion>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.DatasetVersion>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.UnknownDatasetVersion))>]
type DatasetVersion = class
    interface IJsonModel<DatasetVersion>
    interface IPersistableModel<DatasetVersion>
Public MustInherit Class DatasetVersion
Implements IJsonModel(Of DatasetVersion), IPersistableModel(Of DatasetVersion)
Inheritance
DatasetVersion
Derived
Attributes
Implements

Constructors

DatasetVersion(String)

Initializes a new instance of DatasetVersion.

Properties

ConnectionName

The Azure Storage Account connection name. Required if startPendingUploadVersion was not called before creating the Dataset.

DataUri

URI of the data. Example: https://go.microsoft.com/fwlink/?linkid=2202330.

Description

The asset description text.

Id

Asset ID, a unique identifier for the asset.

IsReference

Indicates if the dataset holds a reference to the storage, or the dataset manages storage itself. If true, the underlying data will not be deleted when the dataset version is deleted.

Name

The name of the resource.

Tags

Tag dictionary. Tags can be added, removed, and updated.

Version

The version of the resource.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<DatasetVersion>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<DatasetVersion>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<DatasetVersion>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<DatasetVersion>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<DatasetVersion>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to