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
ArtifactIdstringThe identifier of the artifact.
FilenamestringThe artifact file name used for the upload.
MimetypestringA MIME type of the artifact. If not specified, the MIME type is guessed from the file extension.
EncodingstringAn 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
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
Filename
The artifact file name used for the upload.
public string Filename { get; init; }
Property Value
Mimetype
A MIME type of the artifact. If not specified, the MIME type is guessed from the file extension.
public string Mimetype { get; init; }