From e7097439859db79c3338e60dac0a0b475935429a Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Sun, 14 Jan 2024 17:55:04 -0500 Subject: [PATCH] Remove deprecated scale_index method --- pinecone/control/pinecone.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pinecone/control/pinecone.py b/pinecone/control/pinecone.py index 2099bbef7..97430fe1d 100644 --- a/pinecone/control/pinecone.py +++ b/pinecone/control/pinecone.py @@ -179,17 +179,6 @@ def configure_index(self, name: str, replicas: Optional[int] = None, pod_type: O configure_index_request = ConfigureIndexRequest(**config_args) api_instance.configure_index(name, configure_index_request=configure_index_request) - def scale_index(self, name: str, replicas: int): - """Change the number of replicas for the index. Replicas may be scaled up or down. - - :param name: the name of the Index - :type name: str - :param replicas: the number of replicas in the index now, lowest value is 1. - :type replicas: int - """ - api_instance = self.index_api - api_instance.configure_index(name, patch_request=ConfigureIndexRequest(replicas=replicas, pod_type="")) - def create_collection(self, name: str, source: str): """Create a collection :param name: Name of the collection