/** * Synapse REST API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * Reference to a file that accessible via a proxy server. Each ProxyFileHandle must reference a ProxyStorageLocationSettings that defines how the files are accessed. * @export * @interface ProxyFileHandle */ export interface ProxyFileHandle { /** * The ID of this FileHandle. All references to this FileHandle will use this ID. Synapse will generate this ID when the FileHandle is created. * @type {string} * @memberof ProxyFileHandle */ id?: string; /** * FileHandles are immutable from the perspective of the API. The only field that can be change is the previewId. When a new previewId is set, the etag will change. * @type {string} * @memberof ProxyFileHandle */ etag?: string; /** * The ID Of the user that created this file. * @type {string} * @memberof ProxyFileHandle */ createdBy?: string; /** * The date when this file was uploaded. * @type {string} * @memberof ProxyFileHandle */ createdOn?: string; /** * The date when the file was modified. This is handled by the backend and cannot be modified. * @type {string} * @memberof ProxyFileHandle */ modifiedOn?: string; /** * This is used to indicate the implementation of this interface. For example, an S3FileHandle should be set to: org.sagebionetworks.repo.model.file.S3FileHandle * @type {string} * @memberof ProxyFileHandle */ concreteType: ProxyFileHandleConcreteTypeEnum; /** * Must be: http://en.wikipedia.org/wiki/Internet_media_type * @type {string} * @memberof ProxyFileHandle */ contentType?: string; /** * The file's content MD5. * @type {string} * @memberof ProxyFileHandle */ contentMd5?: string; /** * The short, user visible name for this file. * @type {string} * @memberof ProxyFileHandle */ fileName?: string; /** * The optional storage location descriptor * @type {number} * @memberof ProxyFileHandle */ storageLocationId?: number; /** * The size of the file in bytes. * @type {number} * @memberof ProxyFileHandle */ contentSize?: number; /** * The status of the file handle as computed by the backend. This value cannot be changed, any file handle that is not AVAILABLE should not be used. * @type {string} * @memberof ProxyFileHandle */ status?: ProxyFileHandleStatusEnum; /** * The relative path of this file within the proxy. * @type {string} * @memberof ProxyFileHandle */ filePath?: string; } /** * @export */ export declare const ProxyFileHandleConcreteTypeEnum: { readonly org_sagebionetworks_repo_model_file_ProxyFileHandle: "org.sagebionetworks.repo.model.file.ProxyFileHandle"; }; export type ProxyFileHandleConcreteTypeEnum = typeof ProxyFileHandleConcreteTypeEnum[keyof typeof ProxyFileHandleConcreteTypeEnum]; /** * @export */ export declare const ProxyFileHandleStatusEnum: { readonly AVAILABLE: "AVAILABLE"; readonly UNLINKED: "UNLINKED"; readonly ARCHIVED: "ARCHIVED"; }; export type ProxyFileHandleStatusEnum = typeof ProxyFileHandleStatusEnum[keyof typeof ProxyFileHandleStatusEnum]; /** * Check if a given object implements the ProxyFileHandle interface. */ export declare function instanceOfProxyFileHandle(value: object): value is ProxyFileHandle; export declare function ProxyFileHandleFromJSON(json: any): ProxyFileHandle; export declare function ProxyFileHandleFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProxyFileHandle; export declare function ProxyFileHandleToJSON(json: any): ProxyFileHandle; export declare function ProxyFileHandleToJSONTyped(value?: ProxyFileHandle | null, ignoreDiscriminator?: boolean): any;