/* 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 ExternalObjectStoreFileHandleConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_ExternalObjectStoreFileHandle: 'org.sagebionetworks.repo.model.file.ExternalObjectStoreFileHandle'
};
/**
 * @export
 */
export const ExternalObjectStoreFileHandleStatusEnum = {
    AVAILABLE: 'AVAILABLE',
    UNLINKED: 'UNLINKED',
    ARCHIVED: 'ARCHIVED'
};
/**
 * Check if a given object implements the ExternalObjectStoreFileHandle interface.
 */
export function instanceOfExternalObjectStoreFileHandle(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ExternalObjectStoreFileHandleConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    if (!('fileKey' in value) || value['fileKey'] === undefined)
        return false;
    return true;
}
export function ExternalObjectStoreFileHandleFromJSON(json) {
    return ExternalObjectStoreFileHandleFromJSONTyped(json, false);
}
export function ExternalObjectStoreFileHandleFromJSONTyped(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'],
        'endpointUrl': json['endpointUrl'] == null ? undefined : json['endpointUrl'],
        'bucket': json['bucket'] == null ? undefined : json['bucket'],
        'fileKey': json['fileKey'],
    };
}
export function ExternalObjectStoreFileHandleToJSON(json) {
    return ExternalObjectStoreFileHandleToJSONTyped(json, false);
}
export function ExternalObjectStoreFileHandleToJSONTyped(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'],
        'endpointUrl': value['endpointUrl'],
        'bucket': value['bucket'],
        'fileKey': value['fileKey'],
    };
}
//# sourceMappingURL=ExternalObjectStoreFileHandle.js.map