Skip to content

Remove APIs that do not exist on serverless #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 0 additions & 102 deletions docs/sphinx/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,18 @@ Async Search
.. autoclass:: AsyncSearchClient
:members:

Autoscaling
-----------

.. autoclass:: AutoscalingClient
:members:

Cat
---

.. autoclass:: CatClient
:members:

Cross-Cluster Replication (CCR)
-------------------------------

.. autoclass:: CcrClient
:members:

Cluster
-------

.. autoclass:: ClusterClient
:members:

Dangling Indices
----------------

.. autoclass:: DanglingIndicesClient
:members:

Enrich Policies
---------------

Expand All @@ -72,30 +54,12 @@ Event Query Language (EQL)
.. autoclass:: EqlClient
:members:

Snapshottable Features
----------------------

.. autoclass:: FeaturesClient
:members:

Fleet
-----

.. autoclass:: FleetClient
:members:

Graph Explore
-------------

.. autoclass:: GraphClient
:members:

Index Lifecycle Management (ILM)
--------------------------------

.. autoclass:: IlmClient
:members:

Indices
-------

Expand All @@ -120,12 +84,6 @@ Logstash
.. autoclass:: LogstashClient
:members:

Migration
---------

.. autoclass:: MigrationClient
:members:

Machine Learning (ML)
---------------------

Expand All @@ -138,86 +96,26 @@ Monitoring
.. autoclass:: MonitoringClient
:members:

Nodes
-----

.. autoclass:: NodesClient
:members:

Rollup Indices
--------------

.. autoclass:: RollupClient
:members:

Searchable Snapshots
--------------------

.. autoclass:: SearchableSnapshotsClient
:members:

Security
--------

.. autoclass:: SecurityClient
:members:

Shutdown
--------

.. autoclass:: ShutdownClient
:members:

Snapshot Lifecycle Management (SLM)
-----------------------------------

.. autoclass:: SlmClient
:members:

Snapshots
---------

.. autoclass:: SnapshotClient
:members:

SQL
---

.. autoclass:: SqlClient
:members:

TLS/SSL
-------

.. autoclass:: SslClient
:members:

Tasks
-----

.. autoclass:: TasksClient
:members:

Text Structure
--------------

.. autoclass:: TextStructureClient
:members:

Transforms
----------

.. autoclass:: TransformClient
:members:

Watcher
-------

.. autoclass:: WatcherClient
:members:

X-Pack
------

.. autoclass:: XPackClient
:members:
36 changes: 0 additions & 36 deletions elasticsearch_serverless/_async/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,22 @@
from ...serializer import DEFAULT_SERIALIZERS
from ._base import BaseClient, resolve_auth_headers
from .async_search import AsyncSearchClient
from .autoscaling import AutoscalingClient
from .cat import CatClient
from .ccr import CcrClient
from .cluster import ClusterClient
from .dangling_indices import DanglingIndicesClient
from .enrich import EnrichClient
from .eql import EqlClient
from .features import FeaturesClient
from .fleet import FleetClient
from .graph import GraphClient
from .ilm import IlmClient
from .indices import IndicesClient
from .ingest import IngestClient
from .license import LicenseClient
from .logstash import LogstashClient
from .migration import MigrationClient
from .ml import MlClient
from .monitoring import MonitoringClient
from .nodes import NodesClient
from .query_ruleset import QueryRulesetClient
from .rollup import RollupClient
from .search_application import SearchApplicationClient
from .searchable_snapshots import SearchableSnapshotsClient
from .security import SecurityClient
from .shutdown import ShutdownClient
from .slm import SlmClient
from .snapshot import SnapshotClient
from .sql import SqlClient
from .ssl import SslClient
from .synonyms import SynonymsClient
from .tasks import TasksClient
from .text_structure import TextStructureClient
from .transform import TransformClient
from .utils import (
_TYPE_HOST,
Expand All @@ -78,8 +62,6 @@
is_requests_http_auth,
is_requests_node_class,
)
from .watcher import WatcherClient
from .xpack import XPackClient

logger = logging.getLogger("elasticsearch")

Expand Down Expand Up @@ -294,42 +276,24 @@ def __init__(

# namespaced clients for compatibility with API names
self.async_search = AsyncSearchClient(self)
self.autoscaling = AutoscalingClient(self)
self.cat = CatClient(self)
self.cluster = ClusterClient(self)
self.fleet = FleetClient(self)
self.features = FeaturesClient(self)
self.indices = IndicesClient(self)
self.ingest = IngestClient(self)
self.nodes = NodesClient(self)
self.snapshot = SnapshotClient(self)
self.tasks = TasksClient(self)

self.xpack = XPackClient(self)
self.ccr = CcrClient(self)
self.dangling_indices = DanglingIndicesClient(self)
self.enrich = EnrichClient(self)
self.eql = EqlClient(self)
self.graph = GraphClient(self)
self.ilm = IlmClient(self)
self.license = LicenseClient(self)
self.logstash = LogstashClient(self)
self.migration = MigrationClient(self)
self.ml = MlClient(self)
self.monitoring = MonitoringClient(self)
self.query_ruleset = QueryRulesetClient(self)
self.rollup = RollupClient(self)
self.search_application = SearchApplicationClient(self)
self.searchable_snapshots = SearchableSnapshotsClient(self)
self.security = SecurityClient(self)
self.slm = SlmClient(self)
self.shutdown = ShutdownClient(self)
self.sql = SqlClient(self)
self.ssl = SslClient(self)
self.synonyms = SynonymsClient(self)
self.text_structure = TextStructureClient(self)
self.transform = TransformClient(self)
self.watcher = WatcherClient(self)

def __repr__(self) -> str:
try:
Expand Down
Loading
Loading