Table of Contents

Class StorageObjectMetadata

Namespace
Monai.Deploy.InformaticsGateway.Api.Storage
Assembly
Monai.Deploy.InformaticsGateway.Api.dll
public class StorageObjectMetadata
Inheritance
StorageObjectMetadata

Constructors

StorageObjectMetadata(string)

public StorageObjectMetadata(string fileExtension)

Parameters

fileExtension string

Properties

ContentType

Gets or sets the content type of the file.

[JsonPropertyName("contentType")]
public string ContentType { get; set; }

Property Value

string

Data

Gets or sets the data stream.

[JsonIgnore]
public Stream Data { get; set; }

Property Value

Stream

DateMoved

[JsonPropertyName("dateMoved")]
[JsonInclude]
public DateTime DateMoved { get; }

Property Value

DateTime

DateUploaded

Gets or set the date time file was uploaded.

[JsonPropertyName("dateUploaded")]
public DateTime? DateUploaded { get; set; }

Property Value

DateTime?

DestinationFolderOverride

[JsonPropertyName("destinationFolderOverride")]
public bool DestinationFolderOverride { get; set; }

Property Value

bool

FileExtension

Gets the file extension.

[JsonPropertyName("fileExtension")]
public string FileExtension { get; init; }

Property Value

string

IsMoveCompleted

[JsonPropertyName("isMoveCompleted")]
[JsonInclude]
public bool IsMoveCompleted { get; }

Property Value

bool

IsUploadFailed

Gets or sets whether upload failed.

[JsonPropertyName("isUploadFailed")]
[JsonInclude]
public bool IsUploadFailed { get; }

Property Value

bool

IsUploaded

Gets or sets whether the file is uploaded to the temporary bucket.

[JsonPropertyName("isUploaded")]
[JsonInclude]
public bool IsUploaded { get; }

Property Value

bool

PayloadBucketName

[JsonPropertyName("payloadBucketName")]
[JsonInclude]
public string PayloadBucketName { get; }

Property Value

string

TemporaryBucketName

Gets the temporary bucket used for storing the file.

[JsonPropertyName("temporaryBucketName")]
[JsonInclude]
public string TemporaryBucketName { get; }

Property Value

string

TemporaryPath

Gets or sets the temporary path before file is assembled into a payload.

[JsonPropertyName("temporaryPath")]
public string TemporaryPath { get; set; }

Property Value

string

UploadPath

Gets or sets the path the file is stored within the payload directory.

[JsonPropertyName("uploadPath")]
public string UploadPath { get; set; }

Property Value

string

Methods

GetPayloadPath(Guid)

public string GetPayloadPath(Guid payloadId)

Parameters

payloadId Guid

Returns

string

GetTempStoragPath(string)

public string GetTempStoragPath(string rootPath)

Parameters

rootPath string

Returns

string

SetFailed()

public void SetFailed()

SetMoved(string)

public void SetMoved(string bucketName)

Parameters

bucketName string

SetUploaded(string)

public void SetUploaded(string bucketName)

Parameters

bucketName string