Skip to content

Commit 2cace80

Browse files
committed
Update generated class
1 parent 965631a commit 2cace80

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

pinecone/core/client/model/collection_model.py

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ def openapi_types():
9191
"""
9292
return {
9393
'name': (str,), # noqa: E501
94-
'size': (int,), # noqa: E501
9594
'status': (str,), # noqa: E501
95+
'size': (int,), # noqa: E501
9696
'dimension': (int,), # noqa: E501
97-
'record_count': (int,), # noqa: E501
97+
'vector_count': (int,), # noqa: E501
9898
'environment': (str,), # noqa: E501
9999
}
100100

@@ -105,10 +105,10 @@ def discriminator():
105105

106106
attribute_map = {
107107
'name': 'name', # noqa: E501
108-
'size': 'size', # noqa: E501
109108
'status': 'status', # noqa: E501
109+
'size': 'size', # noqa: E501
110110
'dimension': 'dimension', # noqa: E501
111-
'record_count': 'record_count', # noqa: E501
111+
'vector_count': 'vector_count', # noqa: E501
112112
'environment': 'environment', # noqa: E501
113113
}
114114

@@ -119,15 +119,12 @@ def discriminator():
119119

120120
@classmethod
121121
@convert_js_args_to_python_args
122-
def _from_openapi_data(cls, name, size, status, dimension, record_count, *args, **kwargs): # noqa: E501
122+
def _from_openapi_data(cls, name, status, *args, **kwargs): # noqa: E501
123123
"""CollectionModel - a model defined in OpenAPI
124124
125125
Args:
126126
name (str):
127-
size (int): The size of the collection in bytes.
128127
status (str): The status of the collection.
129-
dimension (int): The dimension of the vectors stored in each record held in the collection
130-
record_count (int): The number of records stored in the collection
131128
132129
Keyword Args:
133130
_check_type (bool): if True, values for parameters in openapi_types
@@ -160,6 +157,9 @@ def _from_openapi_data(cls, name, size, status, dimension, record_count, *args,
160157
Animal class but this time we won't travel
161158
through its discriminator because we passed in
162159
_visited_composed_classes = (Animal,)
160+
size (int): The size of the collection in bytes.. [optional] # noqa: E501
161+
dimension (int): The dimension of the vectors stored in each record held in the collection. [optional] # noqa: E501
162+
vector_count (int): The number of records stored in the collection. [optional] # noqa: E501
163163
environment (str): The environment where the collection is hosted.. [optional] # noqa: E501
164164
"""
165165

@@ -189,10 +189,7 @@ def _from_openapi_data(cls, name, size, status, dimension, record_count, *args,
189189
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
190190

191191
self.name = name
192-
self.size = size
193192
self.status = status
194-
self.dimension = dimension
195-
self.record_count = record_count
196193
for var_name, var_value in kwargs.items():
197194
if var_name not in self.attribute_map and \
198195
self._configuration is not None and \
@@ -213,15 +210,12 @@ def _from_openapi_data(cls, name, size, status, dimension, record_count, *args,
213210
])
214211

215212
@convert_js_args_to_python_args
216-
def __init__(self, name, size, status, dimension, record_count, *args, **kwargs): # noqa: E501
213+
def __init__(self, name, status, *args, **kwargs): # noqa: E501
217214
"""CollectionModel - a model defined in OpenAPI
218215
219216
Args:
220217
name (str):
221-
size (int): The size of the collection in bytes.
222218
status (str): The status of the collection.
223-
dimension (int): The dimension of the vectors stored in each record held in the collection
224-
record_count (int): The number of records stored in the collection
225219
226220
Keyword Args:
227221
_check_type (bool): if True, values for parameters in openapi_types
@@ -254,6 +248,9 @@ def __init__(self, name, size, status, dimension, record_count, *args, **kwargs)
254248
Animal class but this time we won't travel
255249
through its discriminator because we passed in
256250
_visited_composed_classes = (Animal,)
251+
size (int): The size of the collection in bytes.. [optional] # noqa: E501
252+
dimension (int): The dimension of the vectors stored in each record held in the collection. [optional] # noqa: E501
253+
vector_count (int): The number of records stored in the collection. [optional] # noqa: E501
257254
environment (str): The environment where the collection is hosted.. [optional] # noqa: E501
258255
"""
259256

@@ -281,10 +278,7 @@ def __init__(self, name, size, status, dimension, record_count, *args, **kwargs)
281278
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282279

283280
self.name = name
284-
self.size = size
285281
self.status = status
286-
self.dimension = dimension
287-
self.record_count = record_count
288282
for var_name, var_value in kwargs.items():
289283
if var_name not in self.attribute_map and \
290284
self._configuration is not None and \

0 commit comments

Comments
 (0)