From d3794249d9896beeb5eb9723b9326be6340cce2e Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 17 Jan 2025 15:52:19 +0400 Subject: [PATCH] Fix simulate client docs --- .readthedocs.yml | 1 + docs/sphinx/api/simulate.rst | 2 +- elasticsearch/client.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 0bb2cebab..bcef38ebe 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -17,3 +17,4 @@ python: sphinx: configuration: docs/sphinx/conf.py + fail_on_warning: true diff --git a/docs/sphinx/api/simulate.rst b/docs/sphinx/api/simulate.rst index eabd3fc07..64607bbac 100644 --- a/docs/sphinx/api/simulate.rst +++ b/docs/sphinx/api/simulate.rst @@ -1,4 +1,4 @@ -.. _snapshot-lifecycle-management: +.. _simulate: Simulate -------- diff --git a/elasticsearch/client.py b/elasticsearch/client.py index 9ea6f3667..af25c5ae1 100644 --- a/elasticsearch/client.py +++ b/elasticsearch/client.py @@ -57,6 +57,7 @@ ) from ._sync.client.security import SecurityClient as SecurityClient # noqa: F401 from ._sync.client.shutdown import ShutdownClient as ShutdownClient # noqa: F401 +from ._sync.client.simulate import SimulateClient as SimulateClient # noqa: F401 from ._sync.client.slm import SlmClient as SlmClient # noqa: F401 from ._sync.client.snapshot import SnapshotClient as SnapshotClient # noqa: F401 from ._sync.client.sql import SqlClient as SqlClient # noqa: F401 @@ -107,6 +108,7 @@ "SearchableSnapshotsClient", "SecurityClient", "ShutdownClient", + "SimulateClient", "SlmClient", "SnapshotClient", "SqlClient",