Skip to content

Commit

Permalink
Regenerate without error template
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Oct 11, 2023
1 parent 792b801 commit b758766
Show file tree
Hide file tree
Showing 32 changed files with 313 additions and 3,341 deletions.
1 change: 0 additions & 1 deletion pinecone/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

37 changes: 0 additions & 37 deletions pinecone/core/api_action.py

This file was deleted.

35 changes: 0 additions & 35 deletions pinecone/core/api_base.py

This file was deleted.

33 changes: 18 additions & 15 deletions pinecone/core/client/api/index_operations_api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
"""
Pinecone index operations API
Pinecone API
# noqa: E501
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: version not set
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


Expand All @@ -24,6 +26,7 @@
from pinecone.core.client.model.create_collection_request import CreateCollectionRequest
from pinecone.core.client.model.create_request import CreateRequest
from pinecone.core.client.model.index_meta import IndexMeta
from pinecone.core.client.model.inline_response200 import InlineResponse200
from pinecone.core.client.model.patch_request import PatchRequest


Expand Down Expand Up @@ -75,7 +78,7 @@ def __configure_index(self, index_name, **kwargs):
async_req (bool): execute request asynchronously
Returns:
str
IndexMeta
If the method is called asynchronously, returns the request
thread.
"""
Expand All @@ -91,7 +94,7 @@ def __configure_index(self, index_name, **kwargs):

self.configure_index = _Endpoint(
settings={
"response_type": (str,),
"response_type": (IndexMeta,),
"auth": ["ApiKeyAuth"],
"endpoint_path": "/databases/{indexName}",
"operation_id": "configure_index",
Expand Down Expand Up @@ -137,15 +140,15 @@ def __configure_index(self, index_name, **kwargs):
},
"collection_format_map": {},
},
headers_map={"accept": ["text/plain"], "content_type": ["application/json"]},
headers_map={"accept": ["application/json"], "content_type": ["application/json"]},
api_client=api_client,
callable=__configure_index,
)

def __create_collection(self, **kwargs):
"""create_collection # noqa: E501
This operation creates a Pinecone collection from an existing index. # noqa: E501
This operation creates a Pinecone collection. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -238,7 +241,7 @@ def __create_collection(self, **kwargs):
def __create_index(self, **kwargs):
"""create_index # noqa: E501
This operation creates a Pinecone index. Specify the distance metric, the dimension of vectors to be stored in the index, the numbers replicas to use, and the collection from which to create the index, if applicable. # noqa: E501
This operation creates a Pinecone index. You can use it to specify the measure of similarity, the dimension of vectors to be stored in the index, the numbers of shards and replicas to use, and more. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -269,7 +272,7 @@ def __create_index(self, **kwargs):
async_req (bool): execute request asynchronously
Returns:
str
IndexMeta
If the method is called asynchronously, returns the request
thread.
"""
Expand All @@ -284,7 +287,7 @@ def __create_index(self, **kwargs):

self.create_index = _Endpoint(
settings={
"response_type": (str,),
"response_type": (IndexMeta,),
"auth": ["ApiKeyAuth"],
"endpoint_path": "/databases",
"operation_id": "create_index",
Expand Down Expand Up @@ -323,7 +326,7 @@ def __create_index(self, **kwargs):
},
"collection_format_map": {},
},
headers_map={"accept": ["text/plain"], "content_type": ["application/json"]},
headers_map={"accept": ["application/json"], "content_type": ["application/json"]},
api_client=api_client,
callable=__create_index,
)
Expand Down Expand Up @@ -535,7 +538,7 @@ def __delete_index(self, index_name, **kwargs):
def __describe_collection(self, collection_name, **kwargs):
"""describe_collection # noqa: E501
Get a description of a collection, including the name, size, and status. # noqa: E501
Get a description of a collection. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -637,7 +640,7 @@ def __describe_collection(self, collection_name, **kwargs):
def __describe_index(self, index_name, **kwargs):
"""describe_index # noqa: E501
Get a description of an index, including dimension, distance metric, number of replicas, and more. # noqa: E501
Get a description of an index. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -822,7 +825,7 @@ def __list_collections(self, **kwargs):
def __list_indexes(self, **kwargs):
"""list_indexes # noqa: E501
This operation returns a list of the indexes in the current project. # noqa: E501
This operation returns a list of your Pinecone indexes. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Expand Down Expand Up @@ -852,7 +855,7 @@ def __list_indexes(self, **kwargs):
async_req (bool): execute request asynchronously
Returns:
[str]
InlineResponse200
If the method is called asynchronously, returns the request
thread.
"""
Expand All @@ -867,7 +870,7 @@ def __list_indexes(self, **kwargs):

self.list_indexes = _Endpoint(
settings={
"response_type": ([str],),
"response_type": (InlineResponse200,),
"auth": ["ApiKeyAuth"],
"endpoint_path": "/databases",
"operation_id": "list_indexes",
Expand Down
Loading

0 comments on commit b758766

Please sign in to comment.