/** * 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. */ /** * A GoogleCloudFileHandle represents a file stored in Google Cloud Storage. * @export * @interface GoogleCloudFileHandle */ export interface GoogleCloudFileHandle { /** * 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 GoogleCloudFileHandle */ 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 GoogleCloudFileHandle */ etag?: string; /** * The ID Of the user that created this file. * @type {string} * @memberof GoogleCloudFileHandle */ createdBy?: string; /** * The date when this file was uploaded. * @type {string} * @memberof GoogleCloudFileHandle */ createdOn?: string; /** * The date when the file was modified. This is handled by the backend and cannot be modified. * @type {string} * @memberof GoogleCloudFileHandle */ 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 GoogleCloudFileHandle */ concreteType: GoogleCloudFileHandleConcreteTypeEnum; /** * Must be: http://en.wikipedia.org/wiki/Internet_media_type * @type {string} * @memberof GoogleCloudFileHandle */ contentType?: string; /** * The file's content MD5. * @type {string} * @memberof GoogleCloudFileHandle */ contentMd5?: string; /** * The short, user visible name for this file. * @type {string} * @memberof GoogleCloudFileHandle */ fileName?: string; /** * The optional storage location descriptor * @type {number} * @memberof GoogleCloudFileHandle */ storageLocationId?: number; /** * The size of the file in bytes. * @type {number} * @memberof GoogleCloudFileHandle */ 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 GoogleCloudFileHandle */ status?: GoogleCloudFileHandleStatusEnum; /** * The name of the bucket where this file resides * @type {string} * @memberof GoogleCloudFileHandle */ bucketName?: string; /** * The path or resource name for this object * @type {string} * @memberof GoogleCloudFileHandle */ key?: string; /** * If this file has a preview, then this will be the file ID of the preview. * @type {string} * @memberof GoogleCloudFileHandle */ previewId?: string; /** * Whether or not this is a preview of another file * @type {boolean} * @memberof GoogleCloudFileHandle */ isPreview?: boolean; } /** * @export */ export declare const GoogleCloudFileHandleConcreteTypeEnum: { readonly org_sagebionetworks_repo_model_file_GoogleCloudFileHandle: "org.sagebionetworks.repo.model.file.GoogleCloudFileHandle"; }; export type GoogleCloudFileHandleConcreteTypeEnum = typeof GoogleCloudFileHandleConcreteTypeEnum[keyof typeof GoogleCloudFileHandleConcreteTypeEnum]; /** * @export */ export declare const GoogleCloudFileHandleStatusEnum: { readonly AVAILABLE: "AVAILABLE"; readonly UNLINKED: "UNLINKED"; readonly ARCHIVED: "ARCHIVED"; }; export type GoogleCloudFileHandleStatusEnum = typeof GoogleCloudFileHandleStatusEnum[keyof typeof GoogleCloudFileHandleStatusEnum]; /** * Check if a given object implements the GoogleCloudFileHandle interface. */ export declare function instanceOfGoogleCloudFileHandle(value: object): value is GoogleCloudFileHandle; export declare function GoogleCloudFileHandleFromJSON(json: any): GoogleCloudFileHandle; export declare function GoogleCloudFileHandleFromJSONTyped(json: any, ignoreDiscriminator: boolean): GoogleCloudFileHandle; export declare function GoogleCloudFileHandleToJSON(json: any): GoogleCloudFileHandle; export declare function GoogleCloudFileHandleToJSONTyped(value?: GoogleCloudFileHandle | null, ignoreDiscriminator?: boolean): any;