Skip to content

Commit 557afd5

Browse files
authored
Remove deprecated scale_index method (#279)
## Problem Found this deprecated method while updating doc strings. It won't work in its current state, and it was described as deprecated in the Changelog 2 years ago. ## Solution - [x] Delete it 🗑️ - [x] Verified not used in notebook examples - [x] Verified not used in readme-docs
1 parent 2cace80 commit 557afd5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pinecone/control/pinecone.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,6 @@ def configure_index(self, name: str, replicas: Optional[int] = None, pod_type: O
179179
configure_index_request = ConfigureIndexRequest(**config_args)
180180
api_instance.configure_index(name, configure_index_request=configure_index_request)
181181

182-
def scale_index(self, name: str, replicas: int):
183-
"""Change the number of replicas for the index. Replicas may be scaled up or down.
184-
185-
:param name: the name of the Index
186-
:type name: str
187-
:param replicas: the number of replicas in the index now, lowest value is 1.
188-
:type replicas: int
189-
"""
190-
api_instance = self.index_api
191-
api_instance.configure_index(name, patch_request=ConfigureIndexRequest(replicas=replicas, pod_type=""))
192-
193182
def create_collection(self, name: str, source: str):
194183
"""Create a collection
195184
:param name: Name of the collection

0 commit comments

Comments
 (0)