Class EnvironmentFile
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
A file or directory in an environment workspace.
public sealed class EnvironmentFile
- Inheritance
-
EnvironmentFile
- Inherited Members
- Extension Methods
Properties
Created
Creation time (RFC 3339).
[JsonPropertyName("created")]
public string? Created { get; set; }
Property Value
ExtensionData
Fields this SDK does not model yet.
[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }
Property Value
MimeType
The MIME type of the file.
[JsonPropertyName("mime_type")]
public string? MimeType { get; set; }
Property Value
Modified
Last modification time (RFC 3339).
[JsonPropertyName("modified")]
public string? Modified { get; set; }
Property Value
Name
The file name.
[JsonPropertyName("name")]
public string? Name { get; set; }
Property Value
Path
The path relative to the workspace root.
[JsonPropertyName("path")]
public string? Path { get; set; }
Property Value
SizeBytes
The size in bytes.
[JsonPropertyName("size_bytes")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString|JsonNumberHandling.WriteAsString)]
public long? SizeBytes { get; set; }
Property Value
- long?
Type
The entry type (see EnvironmentFileTypes).
[JsonPropertyName("type")]
public string? Type { get; set; }