Table of Contents

Class AttachmentUpload

Namespace
Honua.Sdk.Grpc.Models
Assembly
Honua.Sdk.Grpc.dll

Metadata describing an attachment creation or atomic replacement upload.

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

Properties

ContentType

MIME content type.

public required string ContentType { get; init; }

Property Value

string

IdempotencyKey

Required client-generated idempotency key.

public required string IdempotencyKey { get; init; }

Property Value

string

Keywords

Optional keywords associated with the attachment.

public IReadOnlyList<string>? Keywords { get; init; }

Property Value

IReadOnlyList<string>

Name

Display file name.

public required string Name { get; init; }

Property Value

string

Parent

Parent feature identity.

public required AttachmentParent Parent { get; init; }

Property Value

AttachmentParent

ReplaceAttachmentId

Optional attachment ID to replace atomically; null creates a new attachment.

public long? ReplaceAttachmentId { get; init; }

Property Value

long?

Sha256

Required 32-byte SHA-256 digest of the complete attachment content.

public required ReadOnlyMemory<byte> Sha256 { get; init; }

Property Value

ReadOnlyMemory<byte>

SizeBytes

Total attachment content size in bytes.

public required long SizeBytes { get; init; }

Property Value

long