Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pinecone/core/client/model/update_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
from pinecone.core.client.exceptions import ApiAttributeError


def lazy_import():
from pinecone.core.client.model.sparse_values import SparseValues
globals()['SparseValues'] = SparseValues


class UpdateRequest(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down Expand Up @@ -77,6 +81,7 @@ def additional_properties_type():
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
"""
lazy_import()
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501

_nullable = False
Expand All @@ -91,9 +96,11 @@ def openapi_types():
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy_import()
return {
'id': (str,), # noqa: E501
'values': ([float],), # noqa: E501
'sparse_values': (SparseValues,), # noqa: E501
'set_metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501
'namespace': (str,), # noqa: E501
}
Expand All @@ -106,6 +113,7 @@ def discriminator():
attribute_map = {
'id': 'id', # noqa: E501
'values': 'values', # noqa: E501
'sparse_values': 'sparseValues', # noqa: E501
'set_metadata': 'setMetadata', # noqa: E501
'namespace': 'namespace', # noqa: E501
}
Expand Down Expand Up @@ -155,6 +163,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
values ([float]): Vector data.. [optional] # noqa: E501
sparse_values (SparseValues): [optional] # noqa: E501
set_metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Metadata to *set* for the vector.. [optional] # noqa: E501
namespace (str): Namespace name where to update the vector.. [optional] # noqa: E501
"""
Expand Down Expand Up @@ -243,6 +252,7 @@ def __init__(self, id, *args, **kwargs): # noqa: E501
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
values ([float]): Vector data.. [optional] # noqa: E501
sparse_values (SparseValues): [optional] # noqa: E501
set_metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Metadata to *set* for the vector.. [optional] # noqa: E501
namespace (str): Namespace name where to update the vector.. [optional] # noqa: E501
"""
Expand Down
Loading