Table of Contents

Class ArtifactMeta

Namespace
OptunaSharp.Artifacts
Assembly
OptunaSharp.dll

Meta information for an artifact. Port of optuna/artifacts/_upload.py: ArtifactMeta.

public sealed record ArtifactMeta : IEquatable<ArtifactMeta>
Inheritance
ArtifactMeta
Implements
Inherited Members

Constructors

ArtifactMeta(string, string, string, string?)

Meta information for an artifact. Port of optuna/artifacts/_upload.py: ArtifactMeta.

public ArtifactMeta(string ArtifactId, string Filename, string Mimetype, string? Encoding)

Parameters

ArtifactId string

The identifier of the artifact.

Filename string

The artifact file name used for the upload.

Mimetype string

A MIME type of the artifact. If not specified, the MIME type is guessed from the file extension.

Encoding string

An encoding of the artifact, suitable for use as a Content-Encoding header (e.g. gzip). If not specified, the encoding is guessed from the file extension.

Properties

ArtifactId

The identifier of the artifact.

public string ArtifactId { get; init; }

Property Value

string

Encoding

An encoding of the artifact, suitable for use as a Content-Encoding header (e.g. gzip). If not specified, the encoding is guessed from the file extension.

public string? Encoding { get; init; }

Property Value

string

Filename

The artifact file name used for the upload.

public string Filename { get; init; }

Property Value

string

Mimetype

A MIME type of the artifact. If not specified, the MIME type is guessed from the file extension.

public string Mimetype { get; init; }

Property Value

string