Class AI21FileInfo
Assembly: Glitch9.AIDevKit.Provider.AI21.dll
Syntax
public sealed class AI21FileInfo : IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
|
Edit this page
View Source
Api
Declaration
[JsonIgnore]
public Api Api { get; }
Property Value
|
Edit this page
View Source
ByteSize
Required. File size in bytes.
Declaration
[JsonProperty("size")]
public int ByteSize { get; set; }
Property Value
|
Edit this page
View Source
CreatedAt
Required. File creation timestamp.
Declaration
[JsonProperty("created_at")]
public UnixTime? CreatedAt { get; set; }
Property Value
|
Edit this page
View Source
ErrorCode
Optional. Error code, if any.
Declaration
[JsonProperty("errorCode")]
public int? ErrorCode { get; set; }
Property Value
|
Edit this page
View Source
ErrorMessage
Optional. Error message, if any.
Declaration
[JsonProperty("errorMessage")]
public string ErrorMessage { get; set; }
Property Value
|
Edit this page
View Source
ExpiresAt
Gets the file expiration timestamp, if the provider defines one.
Returns null when the file has no expiration policy.
Declaration
[JsonIgnore]
public UnixTime? ExpiresAt { get; set; }
Property Value
|
Edit this page
View Source
Id
Declaration
[JsonProperty("id")]
public string Id { get; set; }
Property Value
|
Edit this page
View Source
Labels
Required. Labels assigned to the file.
Declaration
[JsonProperty("labels")]
public string[] Labels { get; set; }
Property Value
|
Edit this page
View Source
MimeType
Gets the MIME type associated with the file.
This can be used to select preview, parsing, or processing paths.
Declaration
[JsonIgnore]
public MimeType MimeType { get; set; }
Property Value
|
Edit this page
View Source
Name
Declaration
[JsonProperty("name")]
public string Name { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public SerializableMetadata GetMetadata()
Returns
Implements
Extension Methods