/* 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 ExternalS3StorageLocationSettingConcreteTypeEnum = {
    org_sagebionetworks_repo_model_project_ExternalS3StorageLocationSetting: 'org.sagebionetworks.repo.model.project.ExternalS3StorageLocationSetting'
};
/**
 * @export
 */
export const ExternalS3StorageLocationSettingUploadTypeEnum = {
    S3: 'S3',
    GOOGLECLOUDSTORAGE: 'GOOGLECLOUDSTORAGE',
    SFTP: 'SFTP',
    HTTPS: 'HTTPS',
    PROXYLOCAL: 'PROXYLOCAL',
    NONE: 'NONE'
};
/**
 * Check if a given object implements the ExternalS3StorageLocationSetting interface.
 */
export function instanceOfExternalS3StorageLocationSetting(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ExternalS3StorageLocationSettingConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    if (!('bucket' in value) || value['bucket'] === undefined)
        return false;
    return true;
}
export function ExternalS3StorageLocationSettingFromJSON(json) {
    return ExternalS3StorageLocationSettingFromJSONTyped(json, false);
}
export function ExternalS3StorageLocationSettingFromJSONTyped(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'],
        'description': json['description'] == null ? undefined : json['description'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'bucket': json['bucket'],
        'baseKey': json['baseKey'] == null ? undefined : json['baseKey'],
        'stsEnabled': json['stsEnabled'] == null ? undefined : json['stsEnabled'],
        'endpointUrl': json['endpointUrl'] == null ? undefined : json['endpointUrl'],
    };
}
export function ExternalS3StorageLocationSettingToJSON(json) {
    return ExternalS3StorageLocationSettingToJSONTyped(json, false);
}
export function ExternalS3StorageLocationSettingToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'storageLocationId': value['storageLocationId'],
        'uploadType': value['uploadType'],
        'banner': value['banner'],
        'description': value['description'],
        'etag': value['etag'],
        'createdOn': value['createdOn'],
        'createdBy': value['createdBy'],
        'bucket': value['bucket'],
        'baseKey': value['baseKey'],
        'stsEnabled': value['stsEnabled'],
        'endpointUrl': value['endpointUrl'],
    };
}
//# sourceMappingURL=ExternalS3StorageLocationSetting.js.map