/* 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 DataAccessSubmissionEventConcreteTypeEnum = {
    org_sagebionetworks_repo_model_dataaccess_DataAccessSubmissionEvent: 'org.sagebionetworks.repo.model.dataaccess.DataAccessSubmissionEvent'
};
/**
 * @export
 */
export const DataAccessSubmissionEventObjectTypeEnum = {
    ENTITY: 'ENTITY',
    ENTITY_CONTAINER: 'ENTITY_CONTAINER',
    PRINCIPAL: 'PRINCIPAL',
    ACTIVITY: 'ACTIVITY',
    EVALUATION: 'EVALUATION',
    EVALUATION_ROUND: 'EVALUATION_ROUND',
    SUBMISSION: 'SUBMISSION',
    EVALUATION_SUBMISSIONS: 'EVALUATION_SUBMISSIONS',
    FILE: 'FILE',
    MESSAGE: 'MESSAGE',
    WIKI: 'WIKI',
    FAVORITE: 'FAVORITE',
    ACCESS_REQUIREMENT: 'ACCESS_REQUIREMENT',
    ACCESS_APPROVAL: 'ACCESS_APPROVAL',
    TEAM: 'TEAM',
    TABLE: 'TABLE',
    ACCESS_CONTROL_LIST: 'ACCESS_CONTROL_LIST',
    PROJECT_SETTING: 'PROJECT_SETTING',
    VERIFICATION_SUBMISSION: 'VERIFICATION_SUBMISSION',
    CERTIFIED_USER_PASSING_RECORD: 'CERTIFIED_USER_PASSING_RECORD',
    FORUM: 'FORUM',
    THREAD: 'THREAD',
    REPLY: 'REPLY',
    FORM_GROUP: 'FORM_GROUP',
    ORGANIZATION: 'ORGANIZATION',
    FORM_DATA: 'FORM_DATA',
    ENTITY_VIEW: 'ENTITY_VIEW',
    USER_PROFILE: 'USER_PROFILE',
    DATA_ACCESS_REQUEST: 'DATA_ACCESS_REQUEST',
    DATA_ACCESS_SUBMISSION: 'DATA_ACCESS_SUBMISSION',
    DATA_ACCESS_SUBMISSION_STATUS: 'DATA_ACCESS_SUBMISSION_STATUS',
    MEMBERSHIP_INVITATION: 'MEMBERSHIP_INVITATION',
    JSON_SCHEMA: 'JSON_SCHEMA',
    JSON_SCHEMA_DEPENDANT: 'JSON_SCHEMA_DEPENDANT',
    DATASET: 'DATASET',
    DATASET_COLLECTION: 'DATASET_COLLECTION',
    THREAD_VIEW: 'THREAD_VIEW',
    MATERIALIZED_VIEW: 'MATERIALIZED_VIEW',
    VIRTUAL_TABLE: 'VIRTUAL_TABLE',
    TABLE_STATUS_EVENT: 'TABLE_STATUS_EVENT',
    DATA_ACCESS_SUBMISSION_EVENT: 'DATA_ACCESS_SUBMISSION_EVENT',
    FILE_EVENT: 'FILE_EVENT',
    QUERY_CACHE_HIT: 'QUERY_CACHE_HIT',
    PROJECT_STORAGE_EVENT: 'PROJECT_STORAGE_EVENT',
    REPLICATED_EVENT: 'REPLICATED_EVENT',
    PORTAL: 'PORTAL',
    OAUTH_CLIENT: 'OAUTH_CLIENT',
    GRID_SESSION: 'GRID_SESSION',
    RECORDSET: 'RECORDSET',
    SEARCH_INDEX: 'SEARCH_INDEX',
    SOURCE_DEPENDENCY_EVENT: 'SOURCE_DEPENDENCY_EVENT'
};
/**
 * Check if a given object implements the DataAccessSubmissionEvent interface.
 */
export function instanceOfDataAccessSubmissionEvent(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DataAccessSubmissionEventConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DataAccessSubmissionEventFromJSON(json) {
    return DataAccessSubmissionEventFromJSONTyped(json, false);
}
export function DataAccessSubmissionEventFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'objectVersion': json['objectVersion'] == null ? undefined : json['objectVersion'],
        'objectType': json['objectType'] == null ? undefined : json['objectType'],
        'timestamp': json['timestamp'] == null ? undefined : json['timestamp'],
    };
}
export function DataAccessSubmissionEventToJSON(json) {
    return DataAccessSubmissionEventToJSONTyped(json, false);
}
export function DataAccessSubmissionEventToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'objectId': value['objectId'],
        'objectVersion': value['objectVersion'],
        'objectType': value['objectType'],
        'timestamp': value['timestamp'],
    };
}
//# sourceMappingURL=DataAccessSubmissionEvent.js.map