/* 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 { ProjectStorageLocationUsageFromJSON, ProjectStorageLocationUsageToJSON, } from './ProjectStorageLocationUsage';
/**
 * @export
 */
export const ExternalObjectStoreUploadDestinationConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_ExternalObjectStoreUploadDestination: 'org.sagebionetworks.repo.model.file.ExternalObjectStoreUploadDestination'
};
/**
 * @export
 */
export const ExternalObjectStoreUploadDestinationUploadTypeEnum = {
    S3: 'S3',
    GOOGLECLOUDSTORAGE: 'GOOGLECLOUDSTORAGE',
    SFTP: 'SFTP',
    HTTPS: 'HTTPS',
    PROXYLOCAL: 'PROXYLOCAL',
    NONE: 'NONE'
};
/**
 * Check if a given object implements the ExternalObjectStoreUploadDestination interface.
 */
export function instanceOfExternalObjectStoreUploadDestination(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ExternalObjectStoreUploadDestinationConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ExternalObjectStoreUploadDestinationFromJSON(json) {
    return ExternalObjectStoreUploadDestinationFromJSONTyped(json, false);
}
export function ExternalObjectStoreUploadDestinationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'storageLocationId': json['storageLocationId'] == null ? undefined : json['storageLocationId'],
        'uploadType': json['uploadType'] == null ? undefined : json['uploadType'],
        'banner': json['banner'] == null ? undefined : json['banner'],
        'destinationProjectId': json['destinationProjectId'] == null ? undefined : json['destinationProjectId'],
        'projectStorageLocationUsage': json['projectStorageLocationUsage'] == null ? undefined : ProjectStorageLocationUsageFromJSON(json['projectStorageLocationUsage']),
        'endpointUrl': json['endpointUrl'] == null ? undefined : json['endpointUrl'],
        'bucket': json['bucket'] == null ? undefined : json['bucket'],
        'keyPrefixUUID': json['keyPrefixUUID'] == null ? undefined : json['keyPrefixUUID'],
    };
}
export function ExternalObjectStoreUploadDestinationToJSON(json) {
    return ExternalObjectStoreUploadDestinationToJSONTyped(json, false);
}
export function ExternalObjectStoreUploadDestinationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'storageLocationId': value['storageLocationId'],
        'uploadType': value['uploadType'],
        'banner': value['banner'],
        'destinationProjectId': value['destinationProjectId'],
        'projectStorageLocationUsage': ProjectStorageLocationUsageToJSON(value['projectStorageLocationUsage']),
        'endpointUrl': value['endpointUrl'],
        'bucket': value['bucket'],
        'keyPrefixUUID': value['keyPrefixUUID'],
    };
}
//# sourceMappingURL=ExternalObjectStoreUploadDestination.js.map