<?php

// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.

namespace Algolia\AlgoliaSearch\Model\Search;

/**
 * Action Class Doc Comment.
 *
 * @category Class
 *
 * @description Type of indexing operation.
 */
class Action
{
    /**
     * Possible values of this enum.
     */
    public const ADD_OBJECT = 'addObject';

    public const UPDATE_OBJECT = 'updateObject';

    public const PARTIAL_UPDATE_OBJECT = 'partialUpdateObject';

    public const PARTIAL_UPDATE_OBJECT_NO_CREATE = 'partialUpdateObjectNoCreate';

    public const DELETE_OBJECT = 'deleteObject';

    public const DELETE = 'delete';

    public const CLEAR = 'clear';

    /**
     * Gets allowable values of the enum.
     *
     * @return string[]
     */
    public static function getAllowableEnumValues()
    {
        return [
            self::ADD_OBJECT,
            self::UPDATE_OBJECT,
            self::PARTIAL_UPDATE_OBJECT,
            self::PARTIAL_UPDATE_OBJECT_NO_CREATE,
            self::DELETE_OBJECT,
            self::DELETE,
            self::CLEAR,
        ];
    }
}
