You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add describe, delete, and list namespaces (REST) (#507)
## Problem
Add support for describe, delete, and and list namespaces for index and
async index classes.
## Solution
Following methods were added to the index and async index classes:
1. describe_namespace(self, namespace: str, **kwargs) ->
"NamespaceDescription"
2. delete_namespace(self, namespace: str, **kwargs) -> Dict[str, Any]
3. list_namespaces:
- list_namespaces(self, **kwargs) -> Iterator[ListNamespacesResponse]
(for index.py)
- list_namespaces(self, **kwargs) ->
AsyncIterator[ListNamespacesResponse] (for index_asyncio.py)
4. list_namespaces_paginated(
self, limit: Optional[int] = None, pagination_token: Optional[str] =
None, **kwargs
) -> ListNamespacesResponse
## Type of Change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [ ] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)
## Test Plan
Added integration tests for both index and async index classes
0 commit comments