Table of Contents

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

string

ExtensionData

Fields this SDK does not model yet.

[JsonExtensionData]
public Dictionary<string, JsonElement>? ExtensionData { get; set; }

Property Value

Dictionary<string, JsonElement>

MimeType

The MIME type of the file.

[JsonPropertyName("mime_type")]
public string? MimeType { get; set; }

Property Value

string

Modified

Last modification time (RFC 3339).

[JsonPropertyName("modified")]
public string? Modified { get; set; }

Property Value

string

Name

The file name.

[JsonPropertyName("name")]
public string? Name { get; set; }

Property Value

string

Path

The path relative to the workspace root.

[JsonPropertyName("path")]
public string? Path { get; set; }

Property Value

string

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; }

Property Value

string