/* tslint:disable */
/* eslint-disable */
/**
 * 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.
 */
/**
 * @export
 */
export const GoogleCloudFileHandleConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_GoogleCloudFileHandle: 'org.sagebionetworks.repo.model.file.GoogleCloudFileHandle'
};
/**
 * @export
 */
export const GoogleCloudFileHandleStatusEnum = {
    AVAILABLE: 'AVAILABLE',
    UNLINKED: 'UNLINKED',
    ARCHIVED: 'ARCHIVED'
};
/**
 * Check if a given object implements the GoogleCloudFileHandle interface.
 */
export function instanceOfGoogleCloudFileHandle(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(GoogleCloudFileHandleConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function GoogleCloudFileHandleFromJSON(json) {
    return GoogleCloudFileHandleFromJSONTyped(json, false);
}
export function GoogleCloudFileHandleFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'concreteType': json['concreteType'],
        'contentType': json['contentType'] == null ? undefined : json['contentType'],
        'contentMd5': json['contentMd5'] == null ? undefined : json['contentMd5'],
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
        'storageLocationId': json['storageLocationId'] == null ? undefined : json['storageLocationId'],
        'contentSize': json['contentSize'] == null ? undefined : json['contentSize'],
        'status': json['status'] == null ? undefined : json['status'],
        'bucketName': json['bucketName'] == null ? undefined : json['bucketName'],
        'key': json['key'] == null ? undefined : json['key'],
        'previewId': json['previewId'] == null ? undefined : json['previewId'],
        'isPreview': json['isPreview'] == null ? undefined : json['isPreview'],
    };
}
export function GoogleCloudFileHandleToJSON(json) {
    return GoogleCloudFileHandleToJSONTyped(json, false);
}
export function GoogleCloudFileHandleToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'concreteType': value['concreteType'],
        'contentType': value['contentType'],
        'contentMd5': value['contentMd5'],
        'fileName': value['fileName'],
        'storageLocationId': value['storageLocationId'],
        'contentSize': value['contentSize'],
        'status': value['status'],
        'bucketName': value['bucketName'],
        'key': value['key'],
        'previewId': value['previewId'],
        'isPreview': value['isPreview'],
    };
}
//# sourceMappingURL=GoogleCloudFileHandle.js.map