diff --git a/codegen/python-oas-templates b/codegen/python-oas-templates index 2ba53806..57a4c44d 160000 --- a/codegen/python-oas-templates +++ b/codegen/python-oas-templates @@ -1 +1 @@ -Subproject commit 2ba53806258cc8ab42ced7e52ba84dce1e977c6d +Subproject commit 57a4c44d6f18bbabedfe25aa173359c37fb9f705 diff --git a/pinecone/core/openapi/db_control/model/backup_list.py b/pinecone/core/openapi/db_control/model/backup_list.py index a7a637ad..c485a03d 100644 --- a/pinecone/core/openapi/db_control/model/backup_list.py +++ b/pinecone/core/openapi/db_control/model/backup_list.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -240,6 +243,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -256,6 +260,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/backup_model.py b/pinecone/core/openapi/db_control/model/backup_model.py index 817677e4..5b50ba9d 100644 --- a/pinecone/core/openapi/db_control/model/backup_model.py +++ b/pinecone/core/openapi/db_control/model/backup_model.py @@ -205,6 +205,7 @@ def _from_openapi_data( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -223,6 +224,7 @@ def _from_openapi_data( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -250,6 +252,7 @@ def _from_openapi_data( required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -316,6 +319,7 @@ def __init__( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -332,6 +336,7 @@ def __init__( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/byoc_spec.py b/pinecone/core/openapi/db_control/model/byoc_spec.py index a78279f2..4d7a843d 100644 --- a/pinecone/core/openapi/db_control/model/byoc_spec.py +++ b/pinecone/core/openapi/db_control/model/byoc_spec.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -231,6 +234,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -247,6 +251,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/collection_list.py b/pinecone/core/openapi/db_control/model/collection_list.py index e0618662..8afb0b7e 100644 --- a/pinecone/core/openapi/db_control/model/collection_list.py +++ b/pinecone/core/openapi/db_control/model/collection_list.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -186,6 +188,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -234,6 +237,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -250,6 +254,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/collection_model.py b/pinecone/core/openapi/db_control/model/collection_model.py index 5b3b9435..bb8e6577 100644 --- a/pinecone/core/openapi/db_control/model/collection_model.py +++ b/pinecone/core/openapi/db_control/model/collection_model.py @@ -164,6 +164,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs) """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -182,6 +183,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs) self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -206,6 +208,7 @@ def _from_openapi_data(cls: Type[T], name, status, environment, *args, **kwargs) required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -261,6 +264,7 @@ def __init__(self, name, status, environment, *args, **kwargs) -> None: # noqa: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -277,6 +281,7 @@ def __init__(self, name, status, environment, *args, **kwargs) -> None: # noqa: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/configure_index_request.py b/pinecone/core/openapi/db_control/model/configure_index_request.py index bc79fd9d..352166e0 100644 --- a/pinecone/core/openapi/db_control/model/configure_index_request.py +++ b/pinecone/core/openapi/db_control/model/configure_index_request.py @@ -166,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -184,6 +185,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -205,6 +207,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -256,6 +259,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -272,6 +276,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/configure_index_request_embed.py b/pinecone/core/openapi/db_control/model/configure_index_request_embed.py index f63db37d..c3b1fc2b 100644 --- a/pinecone/core/openapi/db_control/model/configure_index_request_embed.py +++ b/pinecone/core/openapi/db_control/model/configure_index_request_embed.py @@ -148,6 +148,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -166,6 +167,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -187,6 +189,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -238,6 +241,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -254,6 +258,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/configure_index_request_spec.py b/pinecone/core/openapi/db_control/model/configure_index_request_spec.py index 840127a9..5f2b0668 100644 --- a/pinecone/core/openapi/db_control/model/configure_index_request_spec.py +++ b/pinecone/core/openapi/db_control/model/configure_index_request_spec.py @@ -151,6 +151,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -169,6 +170,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], pod, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -241,6 +244,7 @@ def __init__(self, pod, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -257,6 +261,7 @@ def __init__(self, pod, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/configure_index_request_spec_pod.py b/pinecone/core/openapi/db_control/model/configure_index_request_spec_pod.py index adf0efd5..91909c75 100644 --- a/pinecone/core/openapi/db_control/model/configure_index_request_spec_pod.py +++ b/pinecone/core/openapi/db_control/model/configure_index_request_spec_pod.py @@ -144,6 +144,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -162,6 +163,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -183,6 +185,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -232,6 +235,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -248,6 +252,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_backup_request.py b/pinecone/core/openapi/db_control/model/create_backup_request.py index df3ef581..6375f18f 100644 --- a/pinecone/core/openapi/db_control/model/create_backup_request.py +++ b/pinecone/core/openapi/db_control/model/create_backup_request.py @@ -142,6 +142,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -160,6 +161,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -230,6 +233,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -246,6 +250,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_collection_request.py b/pinecone/core/openapi/db_control/model/create_collection_request.py index f1b0e06f..544d5f96 100644 --- a/pinecone/core/openapi/db_control/model/create_collection_request.py +++ b/pinecone/core/openapi/db_control/model/create_collection_request.py @@ -146,6 +146,7 @@ def _from_openapi_data(cls: Type[T], name, source, *args, **kwargs) -> T: # noq """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -164,6 +165,7 @@ def _from_openapi_data(cls: Type[T], name, source, *args, **kwargs) -> T: # noq self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -187,6 +189,7 @@ def _from_openapi_data(cls: Type[T], name, source, *args, **kwargs) -> T: # noq required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -238,6 +241,7 @@ def __init__(self, name, source, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -254,6 +258,7 @@ def __init__(self, name, source, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_index_for_model_request.py b/pinecone/core/openapi/db_control/model/create_index_for_model_request.py index 05a4b10f..6fe5fe79 100644 --- a/pinecone/core/openapi/db_control/model/create_index_for_model_request.py +++ b/pinecone/core/openapi/db_control/model/create_index_for_model_request.py @@ -174,6 +174,7 @@ def _from_openapi_data(cls: Type[T], name, cloud, region, embed, *args, **kwargs """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -192,6 +193,7 @@ def _from_openapi_data(cls: Type[T], name, cloud, region, embed, *args, **kwargs self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -217,6 +219,7 @@ def _from_openapi_data(cls: Type[T], name, cloud, region, embed, *args, **kwargs required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -272,6 +275,7 @@ def __init__(self, name, cloud, region, embed, *args, **kwargs) -> None: # noqa """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -288,6 +292,7 @@ def __init__(self, name, cloud, region, embed, *args, **kwargs) -> None: # noqa self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_index_for_model_request_embed.py b/pinecone/core/openapi/db_control/model/create_index_for_model_request_embed.py index a70cce3e..63693c90 100644 --- a/pinecone/core/openapi/db_control/model/create_index_for_model_request_embed.py +++ b/pinecone/core/openapi/db_control/model/create_index_for_model_request_embed.py @@ -158,6 +158,7 @@ def _from_openapi_data(cls: Type[T], model, field_map, *args, **kwargs) -> T: # """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -176,6 +177,7 @@ def _from_openapi_data(cls: Type[T], model, field_map, *args, **kwargs) -> T: # self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -199,6 +201,7 @@ def _from_openapi_data(cls: Type[T], model, field_map, *args, **kwargs) -> T: # required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -254,6 +257,7 @@ def __init__(self, model, field_map, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -270,6 +274,7 @@ def __init__(self, model, field_map, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_index_from_backup_request.py b/pinecone/core/openapi/db_control/model/create_index_from_backup_request.py index ef3127fa..1070f4eb 100644 --- a/pinecone/core/openapi/db_control/model/create_index_from_backup_request.py +++ b/pinecone/core/openapi/db_control/model/create_index_from_backup_request.py @@ -159,6 +159,7 @@ def _from_openapi_data(cls: Type[T], name, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -177,6 +178,7 @@ def _from_openapi_data(cls: Type[T], name, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -199,6 +201,7 @@ def _from_openapi_data(cls: Type[T], name, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -251,6 +254,7 @@ def __init__(self, name, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -267,6 +271,7 @@ def __init__(self, name, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_index_from_backup_response.py b/pinecone/core/openapi/db_control/model/create_index_from_backup_response.py index dc6bbbbd..360df0c2 100644 --- a/pinecone/core/openapi/db_control/model/create_index_from_backup_response.py +++ b/pinecone/core/openapi/db_control/model/create_index_from_backup_response.py @@ -144,6 +144,7 @@ def _from_openapi_data(cls: Type[T], restore_job_id, index_id, *args, **kwargs) """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -162,6 +163,7 @@ def _from_openapi_data(cls: Type[T], restore_job_id, index_id, *args, **kwargs) self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -185,6 +187,7 @@ def _from_openapi_data(cls: Type[T], restore_job_id, index_id, *args, **kwargs) required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -236,6 +239,7 @@ def __init__(self, restore_job_id, index_id, *args, **kwargs) -> None: # noqa: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -252,6 +256,7 @@ def __init__(self, restore_job_id, index_id, *args, **kwargs) -> None: # noqa: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/create_index_request.py b/pinecone/core/openapi/db_control/model/create_index_request.py index 55a6096e..06c11c97 100644 --- a/pinecone/core/openapi/db_control/model/create_index_request.py +++ b/pinecone/core/openapi/db_control/model/create_index_request.py @@ -176,6 +176,7 @@ def _from_openapi_data(cls: Type[T], name, spec, *args, **kwargs) -> T: # noqa: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -194,6 +195,7 @@ def _from_openapi_data(cls: Type[T], name, spec, *args, **kwargs) -> T: # noqa: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -217,6 +219,7 @@ def _from_openapi_data(cls: Type[T], name, spec, *args, **kwargs) -> T: # noqa: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -273,6 +276,7 @@ def __init__(self, name, spec, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -289,6 +293,7 @@ def __init__(self, name, spec, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/deletion_protection.py b/pinecone/core/openapi/db_control/model/deletion_protection.py index 4b67f67e..c70945a2 100644 --- a/pinecone/core/openapi/db_control/model/deletion_protection.py +++ b/pinecone/core/openapi/db_control/model/deletion_protection.py @@ -96,6 +96,7 @@ def discriminator(cls): required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -169,6 +170,7 @@ def __init__(self, *args, **kwargs) -> None: value = "disabled" _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -176,6 +178,7 @@ def __init__(self, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -257,6 +260,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: value = "disabled" _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -264,6 +268,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/error_response.py b/pinecone/core/openapi/db_control/model/error_response.py index 886a9c39..23445308 100644 --- a/pinecone/core/openapi/db_control/model/error_response.py +++ b/pinecone/core/openapi/db_control/model/error_response.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -193,6 +195,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -244,6 +247,7 @@ def __init__(self, status, error, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -260,6 +264,7 @@ def __init__(self, status, error, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/error_response_error.py b/pinecone/core/openapi/db_control/model/error_response_error.py index 2cf453cc..30cc62ac 100644 --- a/pinecone/core/openapi/db_control/model/error_response_error.py +++ b/pinecone/core/openapi/db_control/model/error_response_error.py @@ -170,6 +170,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -188,6 +189,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -211,6 +213,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -263,6 +266,7 @@ def __init__(self, code, message, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -279,6 +283,7 @@ def __init__(self, code, message, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_list.py b/pinecone/core/openapi/db_control/model/index_list.py index 6b22bea3..b2f7468e 100644 --- a/pinecone/core/openapi/db_control/model/index_list.py +++ b/pinecone/core/openapi/db_control/model/index_list.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -186,6 +188,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -234,6 +237,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -250,6 +254,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_model.py b/pinecone/core/openapi/db_control/model/index_model.py index 5ded19c3..97ada3aa 100644 --- a/pinecone/core/openapi/db_control/model/index_model.py +++ b/pinecone/core/openapi/db_control/model/index_model.py @@ -190,6 +190,7 @@ def _from_openapi_data(cls: Type[T], name, metric, host, spec, status, *args, ** vector_type = kwargs.get("vector_type", "dense") _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -208,6 +209,7 @@ def _from_openapi_data(cls: Type[T], name, metric, host, spec, status, *args, ** self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -235,6 +237,7 @@ def _from_openapi_data(cls: Type[T], name, metric, host, spec, status, *args, ** required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -295,6 +298,7 @@ def __init__(self, name, metric, host, spec, status, *args, **kwargs) -> None: vector_type = kwargs.get("vector_type", "dense") _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -311,6 +315,7 @@ def __init__(self, name, metric, host, spec, status, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_model_spec.py b/pinecone/core/openapi/db_control/model/index_model_spec.py index 1b5cd871..7fc5452b 100644 --- a/pinecone/core/openapi/db_control/model/index_model_spec.py +++ b/pinecone/core/openapi/db_control/model/index_model_spec.py @@ -157,6 +157,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -175,6 +176,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -196,6 +198,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -246,6 +249,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -262,6 +266,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_model_status.py b/pinecone/core/openapi/db_control/model/index_model_status.py index d549526d..52821c68 100644 --- a/pinecone/core/openapi/db_control/model/index_model_status.py +++ b/pinecone/core/openapi/db_control/model/index_model_status.py @@ -156,6 +156,7 @@ def _from_openapi_data(cls: Type[T], ready, state, *args, **kwargs) -> T: # noq """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -174,6 +175,7 @@ def _from_openapi_data(cls: Type[T], ready, state, *args, **kwargs) -> T: # noq self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -197,6 +199,7 @@ def _from_openapi_data(cls: Type[T], ready, state, *args, **kwargs) -> T: # noq required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -248,6 +251,7 @@ def __init__(self, ready, state, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -264,6 +268,7 @@ def __init__(self, ready, state, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_spec.py b/pinecone/core/openapi/db_control/model/index_spec.py index d0acd19c..fe1ac44e 100644 --- a/pinecone/core/openapi/db_control/model/index_spec.py +++ b/pinecone/core/openapi/db_control/model/index_spec.py @@ -150,6 +150,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -168,6 +169,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -189,6 +191,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -239,6 +242,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -255,6 +259,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/index_tags.py b/pinecone/core/openapi/db_control/model/index_tags.py index c71dc4f9..62f17fb0 100644 --- a/pinecone/core/openapi/db_control/model/index_tags.py +++ b/pinecone/core/openapi/db_control/model/index_tags.py @@ -134,6 +134,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -152,6 +153,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -173,6 +175,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -220,6 +223,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -236,6 +240,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/model_index_embed.py b/pinecone/core/openapi/db_control/model/model_index_embed.py index c47df155..1a7f2010 100644 --- a/pinecone/core/openapi/db_control/model/model_index_embed.py +++ b/pinecone/core/openapi/db_control/model/model_index_embed.py @@ -163,6 +163,7 @@ def _from_openapi_data(cls: Type[T], model, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -181,6 +182,7 @@ def _from_openapi_data(cls: Type[T], model, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -203,6 +205,7 @@ def _from_openapi_data(cls: Type[T], model, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -259,6 +262,7 @@ def __init__(self, model, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -275,6 +279,7 @@ def __init__(self, model, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/pagination_response.py b/pinecone/core/openapi/db_control/model/pagination_response.py index 1942c2c5..8a954cc4 100644 --- a/pinecone/core/openapi/db_control/model/pagination_response.py +++ b/pinecone/core/openapi/db_control/model/pagination_response.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], next, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], next, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], next, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -231,6 +234,7 @@ def __init__(self, next, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -247,6 +251,7 @@ def __init__(self, next, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/pod_spec.py b/pinecone/core/openapi/db_control/model/pod_spec.py index d19d2645..64c0b2a7 100644 --- a/pinecone/core/openapi/db_control/model/pod_spec.py +++ b/pinecone/core/openapi/db_control/model/pod_spec.py @@ -174,6 +174,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa pod_type = kwargs.get("pod_type", "p1.x1") _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -192,6 +193,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -215,6 +217,7 @@ def _from_openapi_data(cls: Type[T], environment, *args, **kwargs) -> T: # noqa required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -272,6 +275,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501 pod_type = kwargs.get("pod_type", "p1.x1") _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -288,6 +292,7 @@ def __init__(self, environment, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/pod_spec_metadata_config.py b/pinecone/core/openapi/db_control/model/pod_spec_metadata_config.py index 02b855a1..e605a141 100644 --- a/pinecone/core/openapi/db_control/model/pod_spec_metadata_config.py +++ b/pinecone/core/openapi/db_control/model/pod_spec_metadata_config.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/restore_job_list.py b/pinecone/core/openapi/db_control/model/restore_job_list.py index bcf4bd62..2f39d91c 100644 --- a/pinecone/core/openapi/db_control/model/restore_job_list.py +++ b/pinecone/core/openapi/db_control/model/restore_job_list.py @@ -154,6 +154,7 @@ def _from_openapi_data(cls: Type[T], data, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -172,6 +173,7 @@ def _from_openapi_data(cls: Type[T], data, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -194,6 +196,7 @@ def _from_openapi_data(cls: Type[T], data, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -245,6 +248,7 @@ def __init__(self, data, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -261,6 +265,7 @@ def __init__(self, data, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/restore_job_model.py b/pinecone/core/openapi/db_control/model/restore_job_model.py index bc75aba4..951200d1 100644 --- a/pinecone/core/openapi/db_control/model/restore_job_model.py +++ b/pinecone/core/openapi/db_control/model/restore_job_model.py @@ -174,6 +174,7 @@ def _from_openapi_data( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -192,6 +193,7 @@ def _from_openapi_data( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -219,6 +221,7 @@ def _from_openapi_data( required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -286,6 +289,7 @@ def __init__( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -302,6 +306,7 @@ def __init__( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_control/model/serverless_spec.py b/pinecone/core/openapi/db_control/model/serverless_spec.py index 595ad811..efa9157e 100644 --- a/pinecone/core/openapi/db_control/model/serverless_spec.py +++ b/pinecone/core/openapi/db_control/model/serverless_spec.py @@ -146,6 +146,7 @@ def _from_openapi_data(cls: Type[T], cloud, region, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -164,6 +165,7 @@ def _from_openapi_data(cls: Type[T], cloud, region, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -187,6 +189,7 @@ def _from_openapi_data(cls: Type[T], cloud, region, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -238,6 +241,7 @@ def __init__(self, cloud, region, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -254,6 +258,7 @@ def __init__(self, cloud, region, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/delete_request.py b/pinecone/core/openapi/db_data/model/delete_request.py index 1f2abd25..0d3409a7 100644 --- a/pinecone/core/openapi/db_data/model/delete_request.py +++ b/pinecone/core/openapi/db_data/model/delete_request.py @@ -148,6 +148,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -166,6 +167,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -187,6 +189,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -238,6 +241,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -254,6 +258,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/describe_index_stats_request.py b/pinecone/core/openapi/db_data/model/describe_index_stats_request.py index 059c79a8..6c54d92f 100644 --- a/pinecone/core/openapi/db_data/model/describe_index_stats_request.py +++ b/pinecone/core/openapi/db_data/model/describe_index_stats_request.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/fetch_response.py b/pinecone/core/openapi/db_data/model/fetch_response.py index b3d23ef9..092fad1c 100644 --- a/pinecone/core/openapi/db_data/model/fetch_response.py +++ b/pinecone/core/openapi/db_data/model/fetch_response.py @@ -155,6 +155,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -173,6 +174,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -194,6 +196,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -244,6 +247,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -260,6 +264,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/hit.py b/pinecone/core/openapi/db_data/model/hit.py index c6407d2f..1a7431d1 100644 --- a/pinecone/core/openapi/db_data/model/hit.py +++ b/pinecone/core/openapi/db_data/model/hit.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], _id, _score, fields, *args, **kwargs) -> T: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], _id, _score, fields, *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -189,6 +191,7 @@ def _from_openapi_data(cls: Type[T], _id, _score, fields, *args, **kwargs) -> T: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -241,6 +244,7 @@ def __init__(self, _id, _score, fields, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -257,6 +261,7 @@ def __init__(self, _id, _score, fields, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/import_error_mode.py b/pinecone/core/openapi/db_data/model/import_error_mode.py index 66bd3fd0..2f320d88 100644 --- a/pinecone/core/openapi/db_data/model/import_error_mode.py +++ b/pinecone/core/openapi/db_data/model/import_error_mode.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -180,6 +182,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -228,6 +231,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -244,6 +248,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/import_model.py b/pinecone/core/openapi/db_data/model/import_model.py index 4c87e189..6bb3c296 100644 --- a/pinecone/core/openapi/db_data/model/import_model.py +++ b/pinecone/core/openapi/db_data/model/import_model.py @@ -171,6 +171,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -189,6 +190,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -210,6 +212,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -265,6 +268,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -281,6 +285,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/index_description.py b/pinecone/core/openapi/db_data/model/index_description.py index af438c59..0af2c259 100644 --- a/pinecone/core/openapi/db_data/model/index_description.py +++ b/pinecone/core/openapi/db_data/model/index_description.py @@ -162,6 +162,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -180,6 +181,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -201,6 +203,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -254,6 +257,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -270,6 +274,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/list_imports_response.py b/pinecone/core/openapi/db_data/model/list_imports_response.py index ede53ad1..d2321fb8 100644 --- a/pinecone/core/openapi/db_data/model/list_imports_response.py +++ b/pinecone/core/openapi/db_data/model/list_imports_response.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -240,6 +243,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -256,6 +260,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/list_item.py b/pinecone/core/openapi/db_data/model/list_item.py index eed68e6d..22d2e0fd 100644 --- a/pinecone/core/openapi/db_data/model/list_item.py +++ b/pinecone/core/openapi/db_data/model/list_item.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/list_namespaces_response.py b/pinecone/core/openapi/db_data/model/list_namespaces_response.py index 1699d04a..5bbc61be 100644 --- a/pinecone/core/openapi/db_data/model/list_namespaces_response.py +++ b/pinecone/core/openapi/db_data/model/list_namespaces_response.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -240,6 +243,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -256,6 +260,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/list_response.py b/pinecone/core/openapi/db_data/model/list_response.py index 4e28ce18..f5ea54af 100644 --- a/pinecone/core/openapi/db_data/model/list_response.py +++ b/pinecone/core/openapi/db_data/model/list_response.py @@ -160,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -178,6 +179,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -199,6 +201,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -250,6 +253,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -266,6 +270,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/namespace_description.py b/pinecone/core/openapi/db_data/model/namespace_description.py index 4dcde11c..abd3fc50 100644 --- a/pinecone/core/openapi/db_data/model/namespace_description.py +++ b/pinecone/core/openapi/db_data/model/namespace_description.py @@ -142,6 +142,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -160,6 +161,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -230,6 +233,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -246,6 +250,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/namespace_summary.py b/pinecone/core/openapi/db_data/model/namespace_summary.py index 15800b09..752f95ee 100644 --- a/pinecone/core/openapi/db_data/model/namespace_summary.py +++ b/pinecone/core/openapi/db_data/model/namespace_summary.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/pagination.py b/pinecone/core/openapi/db_data/model/pagination.py index 89d07865..6ddb4973 100644 --- a/pinecone/core/openapi/db_data/model/pagination.py +++ b/pinecone/core/openapi/db_data/model/pagination.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/protobuf_any.py b/pinecone/core/openapi/db_data/model/protobuf_any.py index 218f294f..fe7f54c2 100644 --- a/pinecone/core/openapi/db_data/model/protobuf_any.py +++ b/pinecone/core/openapi/db_data/model/protobuf_any.py @@ -142,6 +142,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -160,6 +161,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -230,6 +233,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -246,6 +250,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/protobuf_null_value.py b/pinecone/core/openapi/db_data/model/protobuf_null_value.py index ed47d38d..ecf6b359 100644 --- a/pinecone/core/openapi/db_data/model/protobuf_null_value.py +++ b/pinecone/core/openapi/db_data/model/protobuf_null_value.py @@ -96,6 +96,7 @@ def discriminator(cls): required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -169,6 +170,7 @@ def __init__(self, *args, **kwargs) -> None: value = "NULL_VALUE" _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -176,6 +178,7 @@ def __init__(self, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -257,6 +260,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: value = "NULL_VALUE" _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -264,6 +268,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/query_request.py b/pinecone/core/openapi/db_data/model/query_request.py index 41ab6a52..989ad83e 100644 --- a/pinecone/core/openapi/db_data/model/query_request.py +++ b/pinecone/core/openapi/db_data/model/query_request.py @@ -180,6 +180,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -198,6 +199,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -220,6 +222,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -278,6 +281,7 @@ def __init__(self, top_k, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -294,6 +298,7 @@ def __init__(self, top_k, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/query_response.py b/pinecone/core/openapi/db_data/model/query_response.py index aaabb0bd..9d693f34 100644 --- a/pinecone/core/openapi/db_data/model/query_response.py +++ b/pinecone/core/openapi/db_data/model/query_response.py @@ -160,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -178,6 +179,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -199,6 +201,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -250,6 +253,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -266,6 +270,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/query_vector.py b/pinecone/core/openapi/db_data/model/query_vector.py index 903ce62a..3ea0196f 100644 --- a/pinecone/core/openapi/db_data/model/query_vector.py +++ b/pinecone/core/openapi/db_data/model/query_vector.py @@ -164,6 +164,7 @@ def _from_openapi_data(cls: Type[T], values, *args, **kwargs) -> T: # noqa: E50 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -182,6 +183,7 @@ def _from_openapi_data(cls: Type[T], values, *args, **kwargs) -> T: # noqa: E50 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -204,6 +206,7 @@ def _from_openapi_data(cls: Type[T], values, *args, **kwargs) -> T: # noqa: E50 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -258,6 +261,7 @@ def __init__(self, values, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -274,6 +278,7 @@ def __init__(self, values, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/rpc_status.py b/pinecone/core/openapi/db_data/model/rpc_status.py index cb6c7d24..ac8da180 100644 --- a/pinecone/core/openapi/db_data/model/rpc_status.py +++ b/pinecone/core/openapi/db_data/model/rpc_status.py @@ -153,6 +153,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -171,6 +172,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -192,6 +194,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -242,6 +245,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -258,6 +262,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/scored_vector.py b/pinecone/core/openapi/db_data/model/scored_vector.py index 3248def5..61f28530 100644 --- a/pinecone/core/openapi/db_data/model/scored_vector.py +++ b/pinecone/core/openapi/db_data/model/scored_vector.py @@ -163,6 +163,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -181,6 +182,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -203,6 +205,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -257,6 +260,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -273,6 +277,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_request.py b/pinecone/core/openapi/db_data/model/search_records_request.py index a85244af..19b0ba55 100644 --- a/pinecone/core/openapi/db_data/model/search_records_request.py +++ b/pinecone/core/openapi/db_data/model/search_records_request.py @@ -161,6 +161,7 @@ def _from_openapi_data(cls: Type[T], query, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -179,6 +180,7 @@ def _from_openapi_data(cls: Type[T], query, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -201,6 +203,7 @@ def _from_openapi_data(cls: Type[T], query, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -253,6 +256,7 @@ def __init__(self, query, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -269,6 +273,7 @@ def __init__(self, query, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_request_query.py b/pinecone/core/openapi/db_data/model/search_records_request_query.py index 659cc057..790dbf82 100644 --- a/pinecone/core/openapi/db_data/model/search_records_request_query.py +++ b/pinecone/core/openapi/db_data/model/search_records_request_query.py @@ -161,6 +161,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -179,6 +180,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -201,6 +203,7 @@ def _from_openapi_data(cls: Type[T], top_k, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -255,6 +258,7 @@ def __init__(self, top_k, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -271,6 +275,7 @@ def __init__(self, top_k, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_request_rerank.py b/pinecone/core/openapi/db_data/model/search_records_request_rerank.py index bc80d08b..b365a7d3 100644 --- a/pinecone/core/openapi/db_data/model/search_records_request_rerank.py +++ b/pinecone/core/openapi/db_data/model/search_records_request_rerank.py @@ -153,6 +153,7 @@ def _from_openapi_data(cls: Type[T], model, rank_fields, *args, **kwargs) -> T: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -171,6 +172,7 @@ def _from_openapi_data(cls: Type[T], model, rank_fields, *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -194,6 +196,7 @@ def _from_openapi_data(cls: Type[T], model, rank_fields, *args, **kwargs) -> T: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -248,6 +251,7 @@ def __init__(self, model, rank_fields, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -264,6 +268,7 @@ def __init__(self, model, rank_fields, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_response.py b/pinecone/core/openapi/db_data/model/search_records_response.py index a46aa0c4..229b60dd 100644 --- a/pinecone/core/openapi/db_data/model/search_records_response.py +++ b/pinecone/core/openapi/db_data/model/search_records_response.py @@ -156,6 +156,7 @@ def _from_openapi_data(cls: Type[T], result, usage, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -174,6 +175,7 @@ def _from_openapi_data(cls: Type[T], result, usage, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -197,6 +199,7 @@ def _from_openapi_data(cls: Type[T], result, usage, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -248,6 +251,7 @@ def __init__(self, result, usage, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -264,6 +268,7 @@ def __init__(self, result, usage, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_response_result.py b/pinecone/core/openapi/db_data/model/search_records_response_result.py index f479c0a4..ab04277f 100644 --- a/pinecone/core/openapi/db_data/model/search_records_response_result.py +++ b/pinecone/core/openapi/db_data/model/search_records_response_result.py @@ -149,6 +149,7 @@ def _from_openapi_data(cls: Type[T], hits, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -167,6 +168,7 @@ def _from_openapi_data(cls: Type[T], hits, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -189,6 +191,7 @@ def _from_openapi_data(cls: Type[T], hits, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -239,6 +242,7 @@ def __init__(self, hits, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -255,6 +259,7 @@ def __init__(self, hits, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_records_vector.py b/pinecone/core/openapi/db_data/model/search_records_vector.py index 81076824..34afe2cf 100644 --- a/pinecone/core/openapi/db_data/model/search_records_vector.py +++ b/pinecone/core/openapi/db_data/model/search_records_vector.py @@ -153,6 +153,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -171,6 +172,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -192,6 +194,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -242,6 +245,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -258,6 +262,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_usage.py b/pinecone/core/openapi/db_data/model/search_usage.py index ca7cda7c..c4444c8b 100644 --- a/pinecone/core/openapi/db_data/model/search_usage.py +++ b/pinecone/core/openapi/db_data/model/search_usage.py @@ -151,6 +151,7 @@ def _from_openapi_data(cls: Type[T], read_units, *args, **kwargs) -> T: # noqa: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -169,6 +170,7 @@ def _from_openapi_data(cls: Type[T], read_units, *args, **kwargs) -> T: # noqa: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -191,6 +193,7 @@ def _from_openapi_data(cls: Type[T], read_units, *args, **kwargs) -> T: # noqa: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -243,6 +246,7 @@ def __init__(self, read_units, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -259,6 +263,7 @@ def __init__(self, read_units, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/search_vector.py b/pinecone/core/openapi/db_data/model/search_vector.py index 74ca49d4..00be22b5 100644 --- a/pinecone/core/openapi/db_data/model/search_vector.py +++ b/pinecone/core/openapi/db_data/model/search_vector.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -186,6 +188,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -234,6 +237,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -250,6 +254,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/single_query_results.py b/pinecone/core/openapi/db_data/model/single_query_results.py index 9c790616..d5636688 100644 --- a/pinecone/core/openapi/db_data/model/single_query_results.py +++ b/pinecone/core/openapi/db_data/model/single_query_results.py @@ -150,6 +150,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -168,6 +169,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -189,6 +191,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -238,6 +241,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -254,6 +258,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/sparse_values.py b/pinecone/core/openapi/db_data/model/sparse_values.py index 6b5acd85..8100f664 100644 --- a/pinecone/core/openapi/db_data/model/sparse_values.py +++ b/pinecone/core/openapi/db_data/model/sparse_values.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], indices, values, *args, **kwargs) -> T: # """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], indices, values, *args, **kwargs) -> T: # self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -188,6 +190,7 @@ def _from_openapi_data(cls: Type[T], indices, values, *args, **kwargs) -> T: # required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -239,6 +242,7 @@ def __init__(self, indices, values, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -255,6 +259,7 @@ def __init__(self, indices, values, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/start_import_request.py b/pinecone/core/openapi/db_data/model/start_import_request.py index f8b4602a..20e23275 100644 --- a/pinecone/core/openapi/db_data/model/start_import_request.py +++ b/pinecone/core/openapi/db_data/model/start_import_request.py @@ -158,6 +158,7 @@ def _from_openapi_data(cls: Type[T], uri, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -176,6 +177,7 @@ def _from_openapi_data(cls: Type[T], uri, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -198,6 +200,7 @@ def _from_openapi_data(cls: Type[T], uri, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -250,6 +253,7 @@ def __init__(self, uri, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -266,6 +270,7 @@ def __init__(self, uri, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/start_import_response.py b/pinecone/core/openapi/db_data/model/start_import_response.py index 0eba3dd9..d8511fe8 100644 --- a/pinecone/core/openapi/db_data/model/start_import_response.py +++ b/pinecone/core/openapi/db_data/model/start_import_response.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -180,6 +182,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -228,6 +231,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -244,6 +248,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/update_request.py b/pinecone/core/openapi/db_data/model/update_request.py index b2a879d5..c45849b1 100644 --- a/pinecone/core/openapi/db_data/model/update_request.py +++ b/pinecone/core/openapi/db_data/model/update_request.py @@ -164,6 +164,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -182,6 +183,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -204,6 +206,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -258,6 +261,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -274,6 +278,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/upsert_record.py b/pinecone/core/openapi/db_data/model/upsert_record.py index 65739cc4..31445ab4 100644 --- a/pinecone/core/openapi/db_data/model/upsert_record.py +++ b/pinecone/core/openapi/db_data/model/upsert_record.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], _id, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], _id, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -181,6 +183,7 @@ def _from_openapi_data(cls: Type[T], _id, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -231,6 +234,7 @@ def __init__(self, _id, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -247,6 +251,7 @@ def __init__(self, _id, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/upsert_request.py b/pinecone/core/openapi/db_data/model/upsert_request.py index b5bc0b77..fccfb3c8 100644 --- a/pinecone/core/openapi/db_data/model/upsert_request.py +++ b/pinecone/core/openapi/db_data/model/upsert_request.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], vectors, *args, **kwargs) -> T: # noqa: E5 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], vectors, *args, **kwargs) -> T: # noqa: E5 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -192,6 +194,7 @@ def _from_openapi_data(cls: Type[T], vectors, *args, **kwargs) -> T: # noqa: E5 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -243,6 +246,7 @@ def __init__(self, vectors, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -259,6 +263,7 @@ def __init__(self, vectors, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/upsert_response.py b/pinecone/core/openapi/db_data/model/upsert_response.py index 98fe68aa..57098ed2 100644 --- a/pinecone/core/openapi/db_data/model/upsert_response.py +++ b/pinecone/core/openapi/db_data/model/upsert_response.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/usage.py b/pinecone/core/openapi/db_data/model/usage.py index d8b02b78..61f3faa5 100644 --- a/pinecone/core/openapi/db_data/model/usage.py +++ b/pinecone/core/openapi/db_data/model/usage.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/vector.py b/pinecone/core/openapi/db_data/model/vector.py index ddda25d3..a83536a5 100644 --- a/pinecone/core/openapi/db_data/model/vector.py +++ b/pinecone/core/openapi/db_data/model/vector.py @@ -161,6 +161,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -179,6 +180,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -201,6 +203,7 @@ def _from_openapi_data(cls: Type[T], id, *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -254,6 +257,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -270,6 +274,7 @@ def __init__(self, id, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/db_data/model/vector_values.py b/pinecone/core/openapi/db_data/model/vector_values.py index ad32376f..b18494cd 100644 --- a/pinecone/core/openapi/db_data/model/vector_values.py +++ b/pinecone/core/openapi/db_data/model/vector_values.py @@ -94,6 +94,7 @@ def discriminator(cls): required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -171,6 +172,7 @@ def __init__(self, *args, **kwargs) -> None: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -178,6 +180,7 @@ def __init__(self, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -263,6 +266,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -270,6 +274,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/dense_embedding.py b/pinecone/core/openapi/inference/model/dense_embedding.py index 40ec736a..50b6a725 100644 --- a/pinecone/core/openapi/inference/model/dense_embedding.py +++ b/pinecone/core/openapi/inference/model/dense_embedding.py @@ -144,6 +144,7 @@ def _from_openapi_data(cls: Type[T], values, vector_type, *args, **kwargs) -> T: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -162,6 +163,7 @@ def _from_openapi_data(cls: Type[T], values, vector_type, *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -185,6 +187,7 @@ def _from_openapi_data(cls: Type[T], values, vector_type, *args, **kwargs) -> T: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -236,6 +239,7 @@ def __init__(self, values, vector_type, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -252,6 +256,7 @@ def __init__(self, values, vector_type, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/document.py b/pinecone/core/openapi/inference/model/document.py index f6897555..79ebb5d0 100644 --- a/pinecone/core/openapi/inference/model/document.py +++ b/pinecone/core/openapi/inference/model/document.py @@ -134,6 +134,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -152,6 +153,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -173,6 +175,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -220,6 +223,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -236,6 +240,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/embed_request.py b/pinecone/core/openapi/inference/model/embed_request.py index 0b71a114..0141f9db 100644 --- a/pinecone/core/openapi/inference/model/embed_request.py +++ b/pinecone/core/openapi/inference/model/embed_request.py @@ -155,6 +155,7 @@ def _from_openapi_data(cls: Type[T], model, inputs, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -173,6 +174,7 @@ def _from_openapi_data(cls: Type[T], model, inputs, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -196,6 +198,7 @@ def _from_openapi_data(cls: Type[T], model, inputs, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -248,6 +251,7 @@ def __init__(self, model, inputs, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -264,6 +268,7 @@ def __init__(self, model, inputs, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/embed_request_inputs.py b/pinecone/core/openapi/inference/model/embed_request_inputs.py index b1d26258..55fa9f69 100644 --- a/pinecone/core/openapi/inference/model/embed_request_inputs.py +++ b/pinecone/core/openapi/inference/model/embed_request_inputs.py @@ -139,6 +139,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -157,6 +158,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -178,6 +180,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -226,6 +229,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -242,6 +246,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/embedding.py b/pinecone/core/openapi/inference/model/embedding.py index 799dd9ea..8b0bf05b 100644 --- a/pinecone/core/openapi/inference/model/embedding.py +++ b/pinecone/core/openapi/inference/model/embedding.py @@ -219,6 +219,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -274,6 +275,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -290,6 +292,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/embeddings_list.py b/pinecone/core/openapi/inference/model/embeddings_list.py index 4c25f9f7..87df31f8 100644 --- a/pinecone/core/openapi/inference/model/embeddings_list.py +++ b/pinecone/core/openapi/inference/model/embeddings_list.py @@ -160,6 +160,7 @@ def _from_openapi_data(cls: Type[T], model, vector_type, data, usage, *args, **k """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -178,6 +179,7 @@ def _from_openapi_data(cls: Type[T], model, vector_type, data, usage, *args, **k self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -203,6 +205,7 @@ def _from_openapi_data(cls: Type[T], model, vector_type, data, usage, *args, **k required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -256,6 +259,7 @@ def __init__(self, model, vector_type, data, usage, *args, **kwargs) -> None: # """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -272,6 +276,7 @@ def __init__(self, model, vector_type, data, usage, *args, **kwargs) -> None: # self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/embeddings_list_usage.py b/pinecone/core/openapi/inference/model/embeddings_list_usage.py index 901df955..6cdea666 100644 --- a/pinecone/core/openapi/inference/model/embeddings_list_usage.py +++ b/pinecone/core/openapi/inference/model/embeddings_list_usage.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -180,6 +182,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -228,6 +231,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -244,6 +248,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/error_response.py b/pinecone/core/openapi/inference/model/error_response.py index f7657fae..b526e6a2 100644 --- a/pinecone/core/openapi/inference/model/error_response.py +++ b/pinecone/core/openapi/inference/model/error_response.py @@ -152,6 +152,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -193,6 +195,7 @@ def _from_openapi_data(cls: Type[T], status, error, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -244,6 +247,7 @@ def __init__(self, status, error, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -260,6 +264,7 @@ def __init__(self, status, error, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/error_response_error.py b/pinecone/core/openapi/inference/model/error_response_error.py index 0984cbea..595a5f1f 100644 --- a/pinecone/core/openapi/inference/model/error_response_error.py +++ b/pinecone/core/openapi/inference/model/error_response_error.py @@ -168,6 +168,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -186,6 +187,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -209,6 +211,7 @@ def _from_openapi_data(cls: Type[T], code, message, *args, **kwargs) -> T: # no required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -261,6 +264,7 @@ def __init__(self, code, message, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -277,6 +281,7 @@ def __init__(self, code, message, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/model_info.py b/pinecone/core/openapi/inference/model/model_info.py index 9e4b076d..2d983cd9 100644 --- a/pinecone/core/openapi/inference/model/model_info.py +++ b/pinecone/core/openapi/inference/model/model_info.py @@ -194,6 +194,7 @@ def _from_openapi_data( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -212,6 +213,7 @@ def _from_openapi_data( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -237,6 +239,7 @@ def _from_openapi_data( required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -300,6 +303,7 @@ def __init__( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -316,6 +320,7 @@ def __init__( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/model_info_list.py b/pinecone/core/openapi/inference/model/model_info_list.py index 2c2ca496..a47cb910 100644 --- a/pinecone/core/openapi/inference/model/model_info_list.py +++ b/pinecone/core/openapi/inference/model/model_info_list.py @@ -147,6 +147,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -165,6 +166,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -186,6 +188,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -234,6 +237,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -250,6 +254,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/model_info_metric.py b/pinecone/core/openapi/inference/model/model_info_metric.py index e84c8e19..0dbcbf1f 100644 --- a/pinecone/core/openapi/inference/model/model_info_metric.py +++ b/pinecone/core/openapi/inference/model/model_info_metric.py @@ -96,6 +96,7 @@ def discriminator(cls): required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -173,6 +174,7 @@ def __init__(self, *args, **kwargs) -> None: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -180,6 +182,7 @@ def __init__(self, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -265,6 +268,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -272,6 +276,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/model_info_supported_metrics.py b/pinecone/core/openapi/inference/model/model_info_supported_metrics.py index 63c3e2fd..a13fec67 100644 --- a/pinecone/core/openapi/inference/model/model_info_supported_metrics.py +++ b/pinecone/core/openapi/inference/model/model_info_supported_metrics.py @@ -102,6 +102,7 @@ def discriminator(cls): required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -179,6 +180,7 @@ def __init__(self, *args, **kwargs) -> None: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -186,6 +188,7 @@ def __init__(self, *args, **kwargs) -> None: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -271,6 +274,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: ) _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _configuration = kwargs.pop("_configuration", None) @@ -278,6 +282,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/model_info_supported_parameter.py b/pinecone/core/openapi/inference/model/model_info_supported_parameter.py index 3d889cad..ec84f8ea 100644 --- a/pinecone/core/openapi/inference/model/model_info_supported_parameter.py +++ b/pinecone/core/openapi/inference/model/model_info_supported_parameter.py @@ -164,6 +164,7 @@ def _from_openapi_data( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -182,6 +183,7 @@ def _from_openapi_data( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -207,6 +209,7 @@ def _from_openapi_data( required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -264,6 +267,7 @@ def __init__(self, parameter, type, value_type, required, *args, **kwargs) -> No """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -280,6 +284,7 @@ def __init__(self, parameter, type, value_type, required, *args, **kwargs) -> No self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/ranked_document.py b/pinecone/core/openapi/inference/model/ranked_document.py index 6ad8bbbb..e222d005 100644 --- a/pinecone/core/openapi/inference/model/ranked_document.py +++ b/pinecone/core/openapi/inference/model/ranked_document.py @@ -155,6 +155,7 @@ def _from_openapi_data(cls: Type[T], index, score, *args, **kwargs) -> T: # noq """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -173,6 +174,7 @@ def _from_openapi_data(cls: Type[T], index, score, *args, **kwargs) -> T: # noq self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -196,6 +198,7 @@ def _from_openapi_data(cls: Type[T], index, score, *args, **kwargs) -> T: # noq required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -248,6 +251,7 @@ def __init__(self, index, score, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -264,6 +268,7 @@ def __init__(self, index, score, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/rerank_request.py b/pinecone/core/openapi/inference/model/rerank_request.py index cb4fd6d4..f9539da4 100644 --- a/pinecone/core/openapi/inference/model/rerank_request.py +++ b/pinecone/core/openapi/inference/model/rerank_request.py @@ -167,6 +167,7 @@ def _from_openapi_data(cls: Type[T], model, query, documents, *args, **kwargs) - """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -185,6 +186,7 @@ def _from_openapi_data(cls: Type[T], model, query, documents, *args, **kwargs) - self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -209,6 +211,7 @@ def _from_openapi_data(cls: Type[T], model, query, documents, *args, **kwargs) - required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -265,6 +268,7 @@ def __init__(self, model, query, documents, *args, **kwargs) -> None: # noqa: E """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -281,6 +285,7 @@ def __init__(self, model, query, documents, *args, **kwargs) -> None: # noqa: E self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/rerank_result.py b/pinecone/core/openapi/inference/model/rerank_result.py index 53f56923..cc7e2b7c 100644 --- a/pinecone/core/openapi/inference/model/rerank_result.py +++ b/pinecone/core/openapi/inference/model/rerank_result.py @@ -157,6 +157,7 @@ def _from_openapi_data(cls: Type[T], model, data, usage, *args, **kwargs) -> T: """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -175,6 +176,7 @@ def _from_openapi_data(cls: Type[T], model, data, usage, *args, **kwargs) -> T: self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -199,6 +201,7 @@ def _from_openapi_data(cls: Type[T], model, data, usage, *args, **kwargs) -> T: required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -251,6 +254,7 @@ def __init__(self, model, data, usage, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -267,6 +271,7 @@ def __init__(self, model, data, usage, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/rerank_result_usage.py b/pinecone/core/openapi/inference/model/rerank_result_usage.py index 4df237ab..02ae6320 100644 --- a/pinecone/core/openapi/inference/model/rerank_result_usage.py +++ b/pinecone/core/openapi/inference/model/rerank_result_usage.py @@ -141,6 +141,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -159,6 +160,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -180,6 +182,7 @@ def _from_openapi_data(cls: Type[T], *args, **kwargs) -> T: # noqa: E501 required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -228,6 +231,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -244,6 +248,7 @@ def __init__(self, *args, **kwargs) -> None: # noqa: E501 self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/core/openapi/inference/model/sparse_embedding.py b/pinecone/core/openapi/inference/model/sparse_embedding.py index 6a570c44..a86574f9 100644 --- a/pinecone/core/openapi/inference/model/sparse_embedding.py +++ b/pinecone/core/openapi/inference/model/sparse_embedding.py @@ -152,6 +152,7 @@ def _from_openapi_data( """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", False) + _enforce_validations = kwargs.pop("_enforce_validations", False) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -170,6 +171,7 @@ def _from_openapi_data( self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item @@ -194,6 +196,7 @@ def _from_openapi_data( required_properties = set( [ "_enforce_allowed_values", + "_enforce_validations", "_data_store", "_check_type", "_spec_property_naming", @@ -247,6 +250,7 @@ def __init__(self, sparse_values, sparse_indices, vector_type, *args, **kwargs) """ _enforce_allowed_values = kwargs.pop("_enforce_allowed_values", True) + _enforce_validations = kwargs.pop("_enforce_validations", True) _check_type = kwargs.pop("_check_type", True) _spec_property_naming = kwargs.pop("_spec_property_naming", False) _path_to_item = kwargs.pop("_path_to_item", ()) @@ -263,6 +267,7 @@ def __init__(self, sparse_values, sparse_indices, vector_type, *args, **kwargs) self._data_store = {} self._enforce_allowed_values = _enforce_allowed_values + self._enforce_validations = _enforce_validations self._check_type = _check_type self._spec_property_naming = _spec_property_naming self._path_to_item = _path_to_item diff --git a/pinecone/openapi_support/model_utils.py b/pinecone/openapi_support/model_utils.py index 37cf1823..54cd9068 100644 --- a/pinecone/openapi_support/model_utils.py +++ b/pinecone/openapi_support/model_utils.py @@ -151,7 +151,10 @@ def set_attribute(self, name, value): # when listing indexes due to validation on the status field against # the allowed values in the enum. check_allowed_values(self.allowed_values, (name,), value) - if (name,) in self.validations: + if (name,) in self.validations and self._enforce_validations: + # Disabling validation on response makes the SDK + # less fragile if unexpected values are returned. In general, + # we want the SDK to display whatever is returned by the API. check_validations(self.validations, (name,), value, self._configuration) self.__dict__["_data_store"][name] = value