Table of Contents

Interface IAttachmentManagementClient

Namespace
FoundationaLLM.Client.Management.Interfaces
Assembly
FoundationaLLM.Client.Management.dll

Provides methods to manage attachment resources.

public interface IAttachmentManagementClient
Extension Methods

Methods

DeleteAttachmentAsync(string)

Deletes an attachment resource by name.

Task DeleteAttachmentAsync(string attachmentName)

Parameters

attachmentName string

The name of the attachment resource to delete.

Returns

Task

GetAttachmentAsync(string)

Retrieves a specific attachment by name.

Task<ResourceProviderGetResult<AttachmentFile>> GetAttachmentAsync(string attachmentName)

Parameters

attachmentName string

The name of the attachment resource to retrieve.

Returns

Task<ResourceProviderGetResult<AttachmentFile>>

GetAttachmentsAsync()

Retrieves all attachment resources.

Task<List<ResourceProviderGetResult<AttachmentFile>>> GetAttachmentsAsync()

Returns

Task<List<ResourceProviderGetResult<AttachmentFile>>>

All attachment resources to which the caller has access.

UpsertAttachmentAsync(AttachmentFile)

Upserts an attachment resource. If an attachment does not exist, it will be created. If an attachment does exist, it will be updated.

Task<ResourceProviderUpsertResult> UpsertAttachmentAsync(AttachmentFile attachment)

Parameters

attachment AttachmentFile

The attachment resource to create or update.

Returns

Task<ResourceProviderUpsertResult>

Returns a ResourceProviderUpsertResult, which contains the Object ID of the resource.