/* 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 ResourceAccessAccessTypeEnum = {
    CREATE: 'CREATE',
    READ: 'READ',
    UPDATE: 'UPDATE',
    DELETE: 'DELETE',
    CHANGE_PERMISSIONS: 'CHANGE_PERMISSIONS',
    DOWNLOAD: 'DOWNLOAD',
    UPLOAD: 'UPLOAD',
    PARTICIPATE: 'PARTICIPATE',
    SUBMIT: 'SUBMIT',
    READ_PRIVATE_SUBMISSION: 'READ_PRIVATE_SUBMISSION',
    UPDATE_SUBMISSION: 'UPDATE_SUBMISSION',
    DELETE_SUBMISSION: 'DELETE_SUBMISSION',
    TEAM_MEMBERSHIP_UPDATE: 'TEAM_MEMBERSHIP_UPDATE',
    SEND_MESSAGE: 'SEND_MESSAGE',
    CHANGE_SETTINGS: 'CHANGE_SETTINGS',
    MODERATE: 'MODERATE',
    REVIEW_SUBMISSIONS: 'REVIEW_SUBMISSIONS',
    EXEMPTION_ELIGIBLE: 'EXEMPTION_ELIGIBLE'
};
/**
 * Check if a given object implements the ResourceAccess interface.
 */
export function instanceOfResourceAccess(value) {
    return true;
}
export function ResourceAccessFromJSON(json) {
    return ResourceAccessFromJSONTyped(json, false);
}
export function ResourceAccessFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'principalId': json['principalId'] == null ? undefined : json['principalId'],
        'accessType': json['accessType'] == null ? undefined : new Set(json['accessType']),
    };
}
export function ResourceAccessToJSON(json) {
    return ResourceAccessToJSONTyped(json, false);
}
export function ResourceAccessToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'principalId': value['principalId'],
        'accessType': value['accessType'] == null ? undefined : Array.from(value['accessType']),
    };
}
//# sourceMappingURL=ResourceAccess.js.map