addRule('key', [ 'type' => self::TYPE_STRING, 'description' => 'Index Key.', 'default' => '', 'example' => 'index1', ]) ->addRule('type', [ 'type' => self::TYPE_STRING, 'description' => 'Index type.', 'default' => '', 'example' => 'primary', ]) ->addRule('status', [ 'type' => self::TYPE_STRING, 'description' => 'Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`', 'default' => '', 'example' => 'available', ]) ->addRule('error', [ 'type' => self::TYPE_STRING, 'description' => 'Error message. Displays error generated on failure of creating or deleting an index.', 'default' => '', 'example' => 'string', ]) ->addRule('attributes', [ 'type' => self::TYPE_STRING, 'description' => 'Index attributes.', 'default' => [], 'example' => [], 'array' => true, ]) ->addRule('orders', [ 'type' => self::TYPE_STRING, 'description' => 'Index orders.', 'default' => [], 'example' => [], 'array' => true, 'required' => false, ]) ; } /** * Get Name * * @return string */ public function getName(): string { return 'Index'; } /** * Get Collection * * @return string */ public function getType(): string { return Response::MODEL_INDEX; } }