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
Data
Gets or sets the data stream.
[JsonIgnore]
public Stream Data { get; set; }
Property Value
DateMoved
[JsonPropertyName("dateMoved")]
[JsonInclude]
public DateTime DateMoved { get; }
Property Value
DateUploaded
Gets or set the date time file was uploaded.
[JsonPropertyName("dateUploaded")]
public DateTime? DateUploaded { get; set; }
Property Value
DestinationFolderOverride
[JsonPropertyName("destinationFolderOverride")]
public bool DestinationFolderOverride { get; set; }
Property Value
FileExtension
Gets the file extension.
[JsonPropertyName("fileExtension")]
public string FileExtension { get; init; }
Property Value
IsMoveCompleted
[JsonPropertyName("isMoveCompleted")]
[JsonInclude]
public bool IsMoveCompleted { get; }
Property Value
IsUploadFailed
Gets or sets whether upload failed.
[JsonPropertyName("isUploadFailed")]
[JsonInclude]
public bool IsUploadFailed { get; }
Property Value
IsUploaded
Gets or sets whether the file is uploaded to the temporary bucket.
[JsonPropertyName("isUploaded")]
[JsonInclude]
public bool IsUploaded { get; }
Property Value
PayloadBucketName
[JsonPropertyName("payloadBucketName")]
[JsonInclude]
public string PayloadBucketName { get; }
Property Value
TemporaryBucketName
Gets the temporary bucket used for storing the file.
[JsonPropertyName("temporaryBucketName")]
[JsonInclude]
public string TemporaryBucketName { get; }
Property Value
TemporaryPath
Gets or sets the temporary path before file is assembled into a payload.
[JsonPropertyName("temporaryPath")]
public string TemporaryPath { get; set; }
Property Value
UploadPath
Gets or sets the path the file is stored within the payload directory.
[JsonPropertyName("uploadPath")]
public string UploadPath { get; set; }
Property Value
Methods
GetPayloadPath(Guid)
public string GetPayloadPath(Guid payloadId)
Parameters
payloadId
Guid
Returns
GetTempStoragPath(string)
public string GetTempStoragPath(string rootPath)
Parameters
rootPath
string
Returns
SetFailed()
public void SetFailed()
SetMoved(string)
public void SetMoved(string bucketName)
Parameters
bucketName
string
SetUploaded(string)
public void SetUploaded(string bucketName)
Parameters
bucketName
string