Skip to content

Commit fbc630a

Browse files
committed
Regenerate code for 2025-04
1 parent cf20e5d commit fbc630a

File tree

86 files changed

+159
-162
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+159
-162
lines changed

codegen/apis

Submodule apis updated from eb79d8e to bec6297

codegen/build-oas.sh

+7-15
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,13 @@
22

33
set -eux -o pipefail
44

5-
version=$1 # e.g. 2024-07
6-
is_early_access=$2 # e.g. true
7-
8-
# if is_early_access is true, add the "ea" module
9-
if [ "$is_early_access" = "true" ]; then
10-
destination="pinecone/core_ea/openapi"
11-
modules=("db_control" "db_data" "inference")
12-
py_module_name="core_ea"
13-
template_dir="codegen/python-oas-templates/templates5.2.0"
14-
else
15-
destination="pinecone/core/openapi"
16-
modules=("db_control" "db_data" "inference")
17-
py_module_name="core"
18-
template_dir="codegen/python-oas-templates/templates5.2.0"
19-
fi
5+
version=$1 # e.g. 2025-01
6+
7+
8+
destination="pinecone/core/openapi"
9+
modules=("db_control" "db_data" "inference")
10+
py_module_name="core"
11+
template_dir="codegen/python-oas-templates/templates5.2.0"
2012

2113
build_dir="build"
2214

pinecone/core/openapi/db_control/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
This file is @generated using OpenAPI.
99
10-
The version of the OpenAPI document: 2025-01
10+
The version of the OpenAPI document: 2025-04
1111
Contact: support@pinecone.io
1212
"""
1313

@@ -27,4 +27,4 @@
2727
from pinecone.openapi_support.exceptions import PineconeApiKeyError
2828
from pinecone.openapi_support.exceptions import PineconeApiException
2929

30-
API_VERSION = "2025-01"
30+
API_VERSION = "2025-04"

pinecone/core/openapi/db_control/api/manage_indexes_api.py

+21-21
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

@@ -52,7 +52,7 @@ def __configure_index(
5252
):
5353
"""Configure an index # noqa: E501
5454
55-
This operation configures an existing index. For serverless indexes, you can configure index deletion protection, tags, and integrated inference embedding settings for the index. For pod-based indexes, you can configure the pod size, number of replicas, tags, and index deletion protection. It is not possible to change the pod type of a pod-based index. However, you can create a collection from a pod-based index and then [create a new pod-based index with a different pod type](http://docs.pinecone.io/guides/indexes/pods/create-a-pod-based-index#create-a-pod-index-from-a-collection) from the collection. For guidance and examples, see [Configure an index](http://docs.pinecone.io/guides/indexes/pods/manage-pod-based-indexes). # noqa: E501
55+
Configure an existing index. For serverless indexes, you can configure index deletion protection, tags, and integrated inference embedding settings for the index. For pod-based indexes, you can configure the pod size, number of replicas, tags, and index deletion protection. It is not possible to change the pod type of a pod-based index. However, you can create a collection from a pod-based index and then [create a new pod-based index with a different pod type](http://docs.pinecone.io/guides/indexes/pods/create-a-pod-based-index#create-a-pod-index-from-a-collection) from the collection. For guidance and examples, see [Configure an index](http://docs.pinecone.io/guides/indexes/pods/manage-pod-based-indexes). # noqa: E501
5656
This method makes a synchronous HTTP request by default. To make an
5757
asynchronous HTTP request, please pass async_req=True
5858
@@ -128,7 +128,7 @@ def __create_collection(
128128
):
129129
"""Create a collection # noqa: E501
130130
131-
This operation creates a Pinecone collection. Serverless indexes do not support collections. # noqa: E501
131+
Create a Pinecone collection. Serverless indexes do not support collections. # noqa: E501
132132
This method makes a synchronous HTTP request by default. To make an
133133
asynchronous HTTP request, please pass async_req=True
134134
@@ -197,7 +197,7 @@ def __create_collection(
197197
def __create_index(self, create_index_request, **kwargs: ExtraOpenApiKwargsTypedDict):
198198
"""Create an index # noqa: E501
199199
200-
This operation deploys a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). # noqa: E501
200+
Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). # noqa: E501
201201
This method makes a synchronous HTTP request by default. To make an
202202
asynchronous HTTP request, please pass async_req=True
203203
@@ -266,9 +266,9 @@ def __create_index(self, create_index_request, **kwargs: ExtraOpenApiKwargsTyped
266266
def __create_index_for_model(
267267
self, create_index_for_model_request, **kwargs: ExtraOpenApiKwargsTypedDict
268268
):
269-
"""Create an index for an embedding model # noqa: E501
269+
"""Create an index with integrated embedding # noqa: E501
270270
271-
This operation creates a serverless integrated inference index for a specific embedding model. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) for available models and model details. # noqa: E501
271+
Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). # noqa: E501
272272
This method makes a synchronous HTTP request by default. To make an
273273
asynchronous HTTP request, please pass async_req=True
274274
@@ -337,7 +337,7 @@ def __create_index_for_model(
337337
def __delete_collection(self, collection_name, **kwargs: ExtraOpenApiKwargsTypedDict):
338338
"""Delete a collection # noqa: E501
339339
340-
This operation deletes an existing collection. Serverless indexes do not support collections. # noqa: E501
340+
Delete an existing collection. Serverless indexes do not support collections. # noqa: E501
341341
This method makes a synchronous HTTP request by default. To make an
342342
asynchronous HTTP request, please pass async_req=True
343343
@@ -406,7 +406,7 @@ def __delete_collection(self, collection_name, **kwargs: ExtraOpenApiKwargsTyped
406406
def __delete_index(self, index_name, **kwargs: ExtraOpenApiKwargsTypedDict):
407407
"""Delete an index # noqa: E501
408408
409-
This operation deletes an existing index. # noqa: E501
409+
Delete an existing index. # noqa: E501
410410
This method makes a synchronous HTTP request by default. To make an
411411
asynchronous HTTP request, please pass async_req=True
412412
@@ -475,7 +475,7 @@ def __delete_index(self, index_name, **kwargs: ExtraOpenApiKwargsTypedDict):
475475
def __describe_collection(self, collection_name, **kwargs: ExtraOpenApiKwargsTypedDict):
476476
"""Describe a collection # noqa: E501
477477
478-
This operation gets a description of a collection. Serverless indexes do not support collections. # noqa: E501
478+
Get a description of a collection. Serverless indexes do not support collections. # noqa: E501
479479
This method makes a synchronous HTTP request by default. To make an
480480
asynchronous HTTP request, please pass async_req=True
481481
@@ -613,7 +613,7 @@ def __describe_index(self, index_name, **kwargs: ExtraOpenApiKwargsTypedDict):
613613
def __list_collections(self, **kwargs: ExtraOpenApiKwargsTypedDict):
614614
"""List collections # noqa: E501
615615
616-
This operation returns a list of all collections in a project. Serverless indexes do not support collections. # noqa: E501
616+
List all collections in a project. Serverless indexes do not support collections. # noqa: E501
617617
This method makes a synchronous HTTP request by default. To make an
618618
asynchronous HTTP request, please pass async_req=True
619619
@@ -673,7 +673,7 @@ def __list_collections(self, **kwargs: ExtraOpenApiKwargsTypedDict):
673673
def __list_indexes(self, **kwargs: ExtraOpenApiKwargsTypedDict):
674674
"""List indexes # noqa: E501
675675
676-
This operation returns a list of all indexes in a project. # noqa: E501
676+
List all indexes in a project. # noqa: E501
677677
This method makes a synchronous HTTP request by default. To make an
678678
asynchronous HTTP request, please pass async_req=True
679679
@@ -745,7 +745,7 @@ def __init__(self, api_client=None) -> None:
745745
async def __configure_index(self, index_name, configure_index_request, **kwargs):
746746
"""Configure an index # noqa: E501
747747
748-
This operation configures an existing index. For serverless indexes, you can configure index deletion protection, tags, and integrated inference embedding settings for the index. For pod-based indexes, you can configure the pod size, number of replicas, tags, and index deletion protection. It is not possible to change the pod type of a pod-based index. However, you can create a collection from a pod-based index and then [create a new pod-based index with a different pod type](http://docs.pinecone.io/guides/indexes/pods/create-a-pod-based-index#create-a-pod-index-from-a-collection) from the collection. For guidance and examples, see [Configure an index](http://docs.pinecone.io/guides/indexes/pods/manage-pod-based-indexes). # noqa: E501
748+
Configure an existing index. For serverless indexes, you can configure index deletion protection, tags, and integrated inference embedding settings for the index. For pod-based indexes, you can configure the pod size, number of replicas, tags, and index deletion protection. It is not possible to change the pod type of a pod-based index. However, you can create a collection from a pod-based index and then [create a new pod-based index with a different pod type](http://docs.pinecone.io/guides/indexes/pods/create-a-pod-based-index#create-a-pod-index-from-a-collection) from the collection. For guidance and examples, see [Configure an index](http://docs.pinecone.io/guides/indexes/pods/manage-pod-based-indexes). # noqa: E501
749749
750750
751751
Args:
@@ -812,7 +812,7 @@ async def __configure_index(self, index_name, configure_index_request, **kwargs)
812812
async def __create_collection(self, create_collection_request, **kwargs):
813813
"""Create a collection # noqa: E501
814814
815-
This operation creates a Pinecone collection. Serverless indexes do not support collections. # noqa: E501
815+
Create a Pinecone collection. Serverless indexes do not support collections. # noqa: E501
816816
817817
818818
Args:
@@ -874,7 +874,7 @@ async def __create_collection(self, create_collection_request, **kwargs):
874874
async def __create_index(self, create_index_request, **kwargs):
875875
"""Create an index # noqa: E501
876876
877-
This operation deploys a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). # noqa: E501
877+
Create a Pinecone index. This is where you specify the measure of similarity, the dimension of vectors to be stored in the index, which cloud provider you would like to deploy with, and more. For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#create-a-serverless-index). # noqa: E501
878878
879879
880880
Args:
@@ -934,9 +934,9 @@ async def __create_index(self, create_index_request, **kwargs):
934934
)
935935

936936
async def __create_index_for_model(self, create_index_for_model_request, **kwargs):
937-
"""Create an index for an embedding model # noqa: E501
937+
"""Create an index with integrated embedding # noqa: E501
938938
939-
This operation creates a serverless integrated inference index for a specific embedding model. Refer to the [model guide](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) for available models and model details. # noqa: E501
939+
Create an index with integrated embedding. With this type of index, you provide source text, and Pinecone uses a [hosted embedding model](https://docs.pinecone.io/guides/inference/understanding-inference#embedding-models) to convert the text automatically during [upsert](https://docs.pinecone.io/reference/api/2025-01/data-plane/upsert_records) and [search](https://docs.pinecone.io/reference/api/2025-01/data-plane/search_records). For guidance and examples, see [Create an index](https://docs.pinecone.io/guides/indexes/create-an-index#integrated-embedding). # noqa: E501
940940
941941
942942
Args:
@@ -998,7 +998,7 @@ async def __create_index_for_model(self, create_index_for_model_request, **kwarg
998998
async def __delete_collection(self, collection_name, **kwargs):
999999
"""Delete a collection # noqa: E501
10001000
1001-
This operation deletes an existing collection. Serverless indexes do not support collections. # noqa: E501
1001+
Delete an existing collection. Serverless indexes do not support collections. # noqa: E501
10021002
10031003
10041004
Args:
@@ -1060,7 +1060,7 @@ async def __delete_collection(self, collection_name, **kwargs):
10601060
async def __delete_index(self, index_name, **kwargs):
10611061
"""Delete an index # noqa: E501
10621062
1063-
This operation deletes an existing index. # noqa: E501
1063+
Delete an existing index. # noqa: E501
10641064
10651065
10661066
Args:
@@ -1122,7 +1122,7 @@ async def __delete_index(self, index_name, **kwargs):
11221122
async def __describe_collection(self, collection_name, **kwargs):
11231123
"""Describe a collection # noqa: E501
11241124
1125-
This operation gets a description of a collection. Serverless indexes do not support collections. # noqa: E501
1125+
Get a description of a collection. Serverless indexes do not support collections. # noqa: E501
11261126
11271127
11281128
Args:
@@ -1246,7 +1246,7 @@ async def __describe_index(self, index_name, **kwargs):
12461246
async def __list_collections(self, **kwargs):
12471247
"""List collections # noqa: E501
12481248
1249-
This operation returns a list of all collections in a project. Serverless indexes do not support collections. # noqa: E501
1249+
List all collections in a project. Serverless indexes do not support collections. # noqa: E501
12501250
12511251
12521252
@@ -1299,7 +1299,7 @@ async def __list_collections(self, **kwargs):
12991299
async def __list_indexes(self, **kwargs):
13001300
"""List indexes # noqa: E501
13011301
1302-
This operation returns a list of all indexes in a project. # noqa: E501
1302+
List all indexes in a project. # noqa: E501
13031303
13041304
13051305

pinecone/core/openapi/db_control/model/collection_list.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/collection_model.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/configure_index_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/configure_index_request_embed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/configure_index_request_spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/configure_index_request_spec_pod.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/create_collection_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/create_index_for_model_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/create_index_for_model_request_embed.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

@@ -89,6 +89,7 @@ def openapi_types(cls):
8989
"model": (str,), # noqa: E501
9090
"field_map": ({str: (bool, dict, float, int, list, str, none_type)},), # noqa: E501
9191
"metric": (str,), # noqa: E501
92+
"dimension": (int,), # noqa: E501
9293
"read_parameters": ({str: (bool, dict, float, int, list, str, none_type)},), # noqa: E501
9394
"write_parameters": ({str: (bool, dict, float, int, list, str, none_type)},), # noqa: E501
9495
}
@@ -101,6 +102,7 @@ def discriminator(cls):
101102
"model": "model", # noqa: E501
102103
"field_map": "field_map", # noqa: E501
103104
"metric": "metric", # noqa: E501
105+
"dimension": "dimension", # noqa: E501
104106
"read_parameters": "read_parameters", # noqa: E501
105107
"write_parameters": "write_parameters", # noqa: E501
106108
}
@@ -150,6 +152,7 @@ def _from_openapi_data(cls: Type[T], model, field_map, *args, **kwargs) -> T: #
150152
through its discriminator because we passed in
151153
_visited_composed_classes = (Animal,)
152154
metric (str): The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'. If not specified, the metric will be defaulted according to the model. Cannot be updated once set. [optional] # noqa: E501
155+
dimension (int): The dimension of embedding vectors produced for the index. [optional] # noqa: E501
153156
read_parameters ({str: (bool, dict, float, int, list, str, none_type)}): The read parameters for the embedding model. [optional] # noqa: E501
154157
write_parameters ({str: (bool, dict, float, int, list, str, none_type)}): The write parameters for the embedding model. [optional] # noqa: E501
155158
"""
@@ -242,6 +245,7 @@ def __init__(self, model, field_map, *args, **kwargs) -> None: # noqa: E501
242245
through its discriminator because we passed in
243246
_visited_composed_classes = (Animal,)
244247
metric (str): The distance metric to be used for similarity search. You can use 'euclidean', 'cosine', or 'dotproduct'. If not specified, the metric will be defaulted according to the model. Cannot be updated once set. [optional] # noqa: E501
248+
dimension (int): The dimension of embedding vectors produced for the index. [optional] # noqa: E501
245249
read_parameters ({str: (bool, dict, float, int, list, str, none_type)}): The read parameters for the embedding model. [optional] # noqa: E501
246250
write_parameters ({str: (bool, dict, float, int, list, str, none_type)}): The write parameters for the embedding model. [optional] # noqa: E501
247251
"""

pinecone/core/openapi/db_control/model/create_index_request.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

pinecone/core/openapi/db_control/model/deletion_protection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This file is @generated using OpenAPI.
77
8-
The version of the OpenAPI document: 2025-01
8+
The version of the OpenAPI document: 2025-04
99
Contact: support@pinecone.io
1010
"""
1111

0 commit comments

Comments
 (0)