/* 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 SearchIndexStatusStateEnum = {
    CREATING: 'CREATING',
    ACTIVE: 'ACTIVE',
    FAILED: 'FAILED',
    WAITING_FOR_SOURCE: 'WAITING_FOR_SOURCE'
};
/**
 * Check if a given object implements the SearchIndexStatus interface.
 */
export function instanceOfSearchIndexStatus(value) {
    return true;
}
export function SearchIndexStatusFromJSON(json) {
    return SearchIndexStatusFromJSONTyped(json, false);
}
export function SearchIndexStatusFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'searchIndexId': json['searchIndexId'] == null ? undefined : json['searchIndexId'],
        'state': json['state'] == null ? undefined : json['state'],
        'changedOn': json['changedOn'] == null ? undefined : json['changedOn'],
        'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
    };
}
export function SearchIndexStatusToJSON(json) {
    return SearchIndexStatusToJSONTyped(json, false);
}
export function SearchIndexStatusToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'searchIndexId': value['searchIndexId'],
        'state': value['state'],
        'changedOn': value['changedOn'],
        'errorMessage': value['errorMessage'],
    };
}
//# sourceMappingURL=SearchIndexStatus.js.map