Skip to content

Commit

Permalink
Adds various client docs within Opensearch client (#204)
Browse files Browse the repository at this point in the history
Signed-off-by: Jay Mehta <[email protected]>
Signed-off-by: Jay Mehta <[email protected]>

Signed-off-by: Jay Mehta <[email protected]>
Signed-off-by: Jay Mehta <[email protected]>
Co-authored-by: Jay Mehta <[email protected]>
  • Loading branch information
jaydm26 and Jay Mehta authored Sep 27, 2022
1 parent 382f63e commit 9398975
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/source/api-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ titlesonly:
maxdepth: 2
---
api-ref/client
api-ref/*
```
35 changes: 32 additions & 3 deletions docs/source/api-ref/client.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,34 @@
# client
# Clients

```{eval-rst}
.. autoclass:: opensearchpy.OpenSearch
```{toctree}
---
glob:
titlesonly:
maxdepth: 1
---
clients/opensearch_client
```

## Clients within Opensearch

OpenSearch Client includes several clients:

```{toctree}
---
glob:
titlesonly:
maxdepth: 1
---
clients/cat_client
clients/cluster_client
clients/dangling_indices_client
clients/ingest_client
clients/indices_client
clients/nodes_client
clients/remote_client
clients/snapshot_client
clients/tasks_client
clients/features_client
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/cat_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Compact and aligned text (CAT) Client

```{eval-rst}
.. autoclass:: opensearchpy.client.cat.CatClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/cluster_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cluster Client

```{eval-rst}
.. autoclass:: opensearchpy.client.cluster.ClusterClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/dangling_indices_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Dangling Indices Client

```{eval-rst}
.. autoclass:: opensearchpy.client.dangling_indices.DanglingIndicesClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/features_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Features Client

```{eval-rst}
.. autoclass:: opensearchpy.client.features.FeaturesClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/indices_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Indices Client

```{eval-rst}
.. autoclass:: opensearchpy.client.indices.IndicesClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/ingest_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ingest Client

```{eval-rst}
.. autoclass:: opensearchpy.client.ingest.IngestClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/nodes_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Nodes Client

```{eval-rst}
.. autoclass:: opensearchpy.client.nodes.NodesClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/opensearch_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# OpenSearch Client

```{eval-rst}
.. autoclass:: opensearchpy.OpenSearch
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/remote_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Remote Client

```{eval-rst}
.. autoclass:: opensearchpy.client.remote.RemoteClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/snapshot_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Snapshot Client

```{eval-rst}
.. autoclass:: opensearchpy.client.snapshot.SnapshotClient
```
5 changes: 5 additions & 0 deletions docs/source/api-ref/clients/tasks_client.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Tasks Client

```{eval-rst}
.. autoclass:: opensearchpy.client.tasks.TasksClient
```
2 changes: 2 additions & 0 deletions docs/source/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# OpenSearch Python Client Documentation

## Table of Contents

```{toctree}
---
maxdepth: 1
Expand All @@ -16,4 +17,5 @@ GitHub Repository <https://github.com/opensearch-project/opensearch-py>
```

```{include} README.md
```

0 comments on commit 9398975

Please sign in to comment.