/* 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.
 */
import { RestrictableObjectDescriptorFromJSON, RestrictableObjectDescriptorToJSON, } from './RestrictableObjectDescriptor';
/**
 * @export
 */
export const ManagedACTAccessRequirementAccessTypeEnum = {
    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'
};
/**
 * @export
 */
export const ManagedACTAccessRequirementConcreteTypeEnum = {
    org_sagebionetworks_repo_model_ManagedACTAccessRequirement: 'org.sagebionetworks.repo.model.ManagedACTAccessRequirement'
};
/**
 * Check if a given object implements the ManagedACTAccessRequirement interface.
 */
export function instanceOfManagedACTAccessRequirement(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ManagedACTAccessRequirementConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ManagedACTAccessRequirementFromJSON(json) {
    return ManagedACTAccessRequirementFromJSONTyped(json, false);
}
export function ManagedACTAccessRequirementFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'versionNumber': json['versionNumber'] == null ? undefined : json['versionNumber'],
        'id': json['id'] == null ? undefined : json['id'],
        'description': json['description'] == null ? undefined : json['description'],
        'name': json['name'] == null ? undefined : json['name'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'modifiedBy': json['modifiedBy'] == null ? undefined : json['modifiedBy'],
        'subjectsDefinedByAnnotations': json['subjectsDefinedByAnnotations'] == null ? undefined : json['subjectsDefinedByAnnotations'],
        'subjectIds': json['subjectIds'] == null ? undefined : (json['subjectIds'].map(RestrictableObjectDescriptorFromJSON)),
        'accessType': json['accessType'] == null ? undefined : json['accessType'],
        'concreteType': json['concreteType'],
        'isCertifiedUserRequired': json['isCertifiedUserRequired'] == null ? undefined : json['isCertifiedUserRequired'],
        'isValidatedProfileRequired': json['isValidatedProfileRequired'] == null ? undefined : json['isValidatedProfileRequired'],
        'isDUCRequired': json['isDUCRequired'] == null ? undefined : json['isDUCRequired'],
        'ducTemplateFileHandleId': json['ducTemplateFileHandleId'] == null ? undefined : json['ducTemplateFileHandleId'],
        'isIRBApprovalRequired': json['isIRBApprovalRequired'] == null ? undefined : json['isIRBApprovalRequired'],
        'areOtherAttachmentsRequired': json['areOtherAttachmentsRequired'] == null ? undefined : json['areOtherAttachmentsRequired'],
        'expirationPeriod': json['expirationPeriod'] == null ? undefined : json['expirationPeriod'],
        'isIDUPublic': json['isIDUPublic'] == null ? undefined : json['isIDUPublic'],
        'isIDURequired': json['isIDURequired'] == null ? undefined : json['isIDURequired'],
        'isTwoFaRequired': json['isTwoFaRequired'] == null ? undefined : json['isTwoFaRequired'],
        'eDucTemplateId': json['eDucTemplateId'] == null ? undefined : json['eDucTemplateId'],
    };
}
export function ManagedACTAccessRequirementToJSON(json) {
    return ManagedACTAccessRequirementToJSONTyped(json, false);
}
export function ManagedACTAccessRequirementToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'versionNumber': value['versionNumber'],
        'id': value['id'],
        'description': value['description'],
        'name': value['name'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'createdBy': value['createdBy'],
        'modifiedBy': value['modifiedBy'],
        'subjectsDefinedByAnnotations': value['subjectsDefinedByAnnotations'],
        'subjectIds': value['subjectIds'] == null ? undefined : (value['subjectIds'].map(RestrictableObjectDescriptorToJSON)),
        'accessType': value['accessType'],
        'concreteType': value['concreteType'],
        'isCertifiedUserRequired': value['isCertifiedUserRequired'],
        'isValidatedProfileRequired': value['isValidatedProfileRequired'],
        'isDUCRequired': value['isDUCRequired'],
        'ducTemplateFileHandleId': value['ducTemplateFileHandleId'],
        'isIRBApprovalRequired': value['isIRBApprovalRequired'],
        'areOtherAttachmentsRequired': value['areOtherAttachmentsRequired'],
        'expirationPeriod': value['expirationPeriod'],
        'isIDUPublic': value['isIDUPublic'],
        'isIDURequired': value['isIDURequired'],
        'isTwoFaRequired': value['isTwoFaRequired'],
        'eDucTemplateId': value['eDucTemplateId'],
    };
}
//# sourceMappingURL=ManagedACTAccessRequirement.js.map