diff --git a/algoliasearch/abtesting/models/ab_test.py b/algoliasearch/abtesting/models/ab_test.py index 3bf7c567b..ba5557d3e 100644 --- a/algoliasearch/abtesting/models/ab_test.py +++ b/algoliasearch/abtesting/models/ab_test.py @@ -91,6 +91,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.variants: diff --git a/algoliasearch/abtesting/models/ab_test_configuration.py b/algoliasearch/abtesting/models/ab_test_configuration.py index a28f8f8e4..669366f31 100644 --- a/algoliasearch/abtesting/models/ab_test_configuration.py +++ b/algoliasearch/abtesting/models/ab_test_configuration.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.outliers: _dict["outliers"] = self.outliers.to_dict() diff --git a/algoliasearch/abtesting/models/ab_test_response.py b/algoliasearch/abtesting/models/ab_test_response.py index db32ea877..28015747b 100644 --- a/algoliasearch/abtesting/models/ab_test_response.py +++ b/algoliasearch/abtesting/models/ab_test_response.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/ab_tests_variant.py b/algoliasearch/abtesting/models/ab_tests_variant.py index 5f1057217..39f6c766b 100644 --- a/algoliasearch/abtesting/models/ab_tests_variant.py +++ b/algoliasearch/abtesting/models/ab_tests_variant.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/ab_tests_variant_search_params.py b/algoliasearch/abtesting/models/ab_tests_variant_search_params.py index 170ab583c..b8fedb253 100644 --- a/algoliasearch/abtesting/models/ab_tests_variant_search_params.py +++ b/algoliasearch/abtesting/models/ab_tests_variant_search_params.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/add_ab_tests_request.py b/algoliasearch/abtesting/models/add_ab_tests_request.py index 1974711b2..ac0668055 100644 --- a/algoliasearch/abtesting/models/add_ab_tests_request.py +++ b/algoliasearch/abtesting/models/add_ab_tests_request.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.variants: diff --git a/algoliasearch/abtesting/models/currency.py b/algoliasearch/abtesting/models/currency.py index 03581e7e5..95ae88f65 100644 --- a/algoliasearch/abtesting/models/currency.py +++ b/algoliasearch/abtesting/models/currency.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/empty_search.py b/algoliasearch/abtesting/models/empty_search.py index 7f0f1f575..336f866c5 100644 --- a/algoliasearch/abtesting/models/empty_search.py +++ b/algoliasearch/abtesting/models/empty_search.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/empty_search_filter.py b/algoliasearch/abtesting/models/empty_search_filter.py index 29b2a3040..2c005f40f 100644 --- a/algoliasearch/abtesting/models/empty_search_filter.py +++ b/algoliasearch/abtesting/models/empty_search_filter.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/error_base.py b/algoliasearch/abtesting/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/abtesting/models/error_base.py +++ b/algoliasearch/abtesting/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/abtesting/models/filter_effects.py b/algoliasearch/abtesting/models/filter_effects.py index 30e38eaaf..a8e0d3a79 100644 --- a/algoliasearch/abtesting/models/filter_effects.py +++ b/algoliasearch/abtesting/models/filter_effects.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.outliers: _dict["outliers"] = self.outliers.to_dict() diff --git a/algoliasearch/abtesting/models/list_ab_tests_response.py b/algoliasearch/abtesting/models/list_ab_tests_response.py index 5c2481b07..372678dce 100644 --- a/algoliasearch/abtesting/models/list_ab_tests_response.py +++ b/algoliasearch/abtesting/models/list_ab_tests_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.abtests: diff --git a/algoliasearch/abtesting/models/minimum_detectable_effect.py b/algoliasearch/abtesting/models/minimum_detectable_effect.py index 35f7e2037..29f35ad52 100644 --- a/algoliasearch/abtesting/models/minimum_detectable_effect.py +++ b/algoliasearch/abtesting/models/minimum_detectable_effect.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/outliers.py b/algoliasearch/abtesting/models/outliers.py index e368406ed..db2df2756 100644 --- a/algoliasearch/abtesting/models/outliers.py +++ b/algoliasearch/abtesting/models/outliers.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/outliers_filter.py b/algoliasearch/abtesting/models/outliers_filter.py index e764ecccf..3f47d9b86 100644 --- a/algoliasearch/abtesting/models/outliers_filter.py +++ b/algoliasearch/abtesting/models/outliers_filter.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/schedule_ab_test_response.py b/algoliasearch/abtesting/models/schedule_ab_test_response.py index cf32a4403..53383d8be 100644 --- a/algoliasearch/abtesting/models/schedule_ab_test_response.py +++ b/algoliasearch/abtesting/models/schedule_ab_test_response.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/abtesting/models/schedule_ab_tests_request.py b/algoliasearch/abtesting/models/schedule_ab_tests_request.py index 72afbf820..e3ef5edac 100644 --- a/algoliasearch/abtesting/models/schedule_ab_tests_request.py +++ b/algoliasearch/abtesting/models/schedule_ab_tests_request.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.variants: diff --git a/algoliasearch/abtesting/models/variant.py b/algoliasearch/abtesting/models/variant.py index 691140419..1f12eee8e 100644 --- a/algoliasearch/abtesting/models/variant.py +++ b/algoliasearch/abtesting/models/variant.py @@ -129,6 +129,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.currencies: diff --git a/algoliasearch/analytics/models/click_position.py b/algoliasearch/analytics/models/click_position.py index 191dd3f0b..641e30e03 100644 --- a/algoliasearch/analytics/models/click_position.py +++ b/algoliasearch/analytics/models/click_position.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/currency_code.py b/algoliasearch/analytics/models/currency_code.py index 765ba7ca2..c719464f4 100644 --- a/algoliasearch/analytics/models/currency_code.py +++ b/algoliasearch/analytics/models/currency_code.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_add_to_cart_rates.py b/algoliasearch/analytics/models/daily_add_to_cart_rates.py index f1b46ff66..0a0281059 100644 --- a/algoliasearch/analytics/models/daily_add_to_cart_rates.py +++ b/algoliasearch/analytics/models/daily_add_to_cart_rates.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_average_clicks.py b/algoliasearch/analytics/models/daily_average_clicks.py index 499db531f..2a4555ab5 100644 --- a/algoliasearch/analytics/models/daily_average_clicks.py +++ b/algoliasearch/analytics/models/daily_average_clicks.py @@ -64,6 +64,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_click_through_rates.py b/algoliasearch/analytics/models/daily_click_through_rates.py index 2e128a0be..c058811f9 100644 --- a/algoliasearch/analytics/models/daily_click_through_rates.py +++ b/algoliasearch/analytics/models/daily_click_through_rates.py @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_conversion_rates.py b/algoliasearch/analytics/models/daily_conversion_rates.py index bcb3e09ea..c40d388ba 100644 --- a/algoliasearch/analytics/models/daily_conversion_rates.py +++ b/algoliasearch/analytics/models/daily_conversion_rates.py @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_no_click_rates.py b/algoliasearch/analytics/models/daily_no_click_rates.py index 596539608..6ea5cdbe6 100644 --- a/algoliasearch/analytics/models/daily_no_click_rates.py +++ b/algoliasearch/analytics/models/daily_no_click_rates.py @@ -66,6 +66,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_no_results_rates.py b/algoliasearch/analytics/models/daily_no_results_rates.py index 91410a9d2..e80708849 100644 --- a/algoliasearch/analytics/models/daily_no_results_rates.py +++ b/algoliasearch/analytics/models/daily_no_results_rates.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_purchase_rates.py b/algoliasearch/analytics/models/daily_purchase_rates.py index e164b72b5..f2e5ec1bf 100644 --- a/algoliasearch/analytics/models/daily_purchase_rates.py +++ b/algoliasearch/analytics/models/daily_purchase_rates.py @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_revenue.py b/algoliasearch/analytics/models/daily_revenue.py index 7bbb90f43..8b527f5ba 100644 --- a/algoliasearch/analytics/models/daily_revenue.py +++ b/algoliasearch/analytics/models/daily_revenue.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.currencies: diff --git a/algoliasearch/analytics/models/daily_searches.py b/algoliasearch/analytics/models/daily_searches.py index 20099707e..13ed323b5 100644 --- a/algoliasearch/analytics/models/daily_searches.py +++ b/algoliasearch/analytics/models/daily_searches.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_searches_no_clicks.py b/algoliasearch/analytics/models/daily_searches_no_clicks.py index 38d55a311..fcea06a5c 100644 --- a/algoliasearch/analytics/models/daily_searches_no_clicks.py +++ b/algoliasearch/analytics/models/daily_searches_no_clicks.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_searches_no_results.py b/algoliasearch/analytics/models/daily_searches_no_results.py index dc37391ac..ae9bb3dfd 100644 --- a/algoliasearch/analytics/models/daily_searches_no_results.py +++ b/algoliasearch/analytics/models/daily_searches_no_results.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/daily_users.py b/algoliasearch/analytics/models/daily_users.py index 132144935..8b6448efb 100644 --- a/algoliasearch/analytics/models/daily_users.py +++ b/algoliasearch/analytics/models/daily_users.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/error_base.py b/algoliasearch/analytics/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/analytics/models/error_base.py +++ b/algoliasearch/analytics/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/analytics/models/get_add_to_cart_rate_response.py b/algoliasearch/analytics/models/get_add_to_cart_rate_response.py index f29bef8f4..c49a05328 100644 --- a/algoliasearch/analytics/models/get_add_to_cart_rate_response.py +++ b/algoliasearch/analytics/models/get_add_to_cart_rate_response.py @@ -70,6 +70,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_average_click_position_response.py b/algoliasearch/analytics/models/get_average_click_position_response.py index 5712bb8fe..cda7ee594 100644 --- a/algoliasearch/analytics/models/get_average_click_position_response.py +++ b/algoliasearch/analytics/models/get_average_click_position_response.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_click_positions_response.py b/algoliasearch/analytics/models/get_click_positions_response.py index 21d193672..5c2f16292 100644 --- a/algoliasearch/analytics/models/get_click_positions_response.py +++ b/algoliasearch/analytics/models/get_click_positions_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.positions: diff --git a/algoliasearch/analytics/models/get_click_through_rate_response.py b/algoliasearch/analytics/models/get_click_through_rate_response.py index eb51832dd..dec368f79 100644 --- a/algoliasearch/analytics/models/get_click_through_rate_response.py +++ b/algoliasearch/analytics/models/get_click_through_rate_response.py @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_conversion_rate_response.py b/algoliasearch/analytics/models/get_conversion_rate_response.py index d0fb94a6a..f43b898eb 100644 --- a/algoliasearch/analytics/models/get_conversion_rate_response.py +++ b/algoliasearch/analytics/models/get_conversion_rate_response.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_no_click_rate_response.py b/algoliasearch/analytics/models/get_no_click_rate_response.py index 7485e75de..beab6085a 100644 --- a/algoliasearch/analytics/models/get_no_click_rate_response.py +++ b/algoliasearch/analytics/models/get_no_click_rate_response.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_no_results_rate_response.py b/algoliasearch/analytics/models/get_no_results_rate_response.py index 774a37905..253c12400 100644 --- a/algoliasearch/analytics/models/get_no_results_rate_response.py +++ b/algoliasearch/analytics/models/get_no_results_rate_response.py @@ -64,6 +64,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_purchase_rate_response.py b/algoliasearch/analytics/models/get_purchase_rate_response.py index f8c8e84aa..666b57762 100644 --- a/algoliasearch/analytics/models/get_purchase_rate_response.py +++ b/algoliasearch/analytics/models/get_purchase_rate_response.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_revenue.py b/algoliasearch/analytics/models/get_revenue.py index a209ee9b6..9a37afda6 100644 --- a/algoliasearch/analytics/models/get_revenue.py +++ b/algoliasearch/analytics/models/get_revenue.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.currencies: diff --git a/algoliasearch/analytics/models/get_searches_count_response.py b/algoliasearch/analytics/models/get_searches_count_response.py index 06c557851..22e29a468 100644 --- a/algoliasearch/analytics/models/get_searches_count_response.py +++ b/algoliasearch/analytics/models/get_searches_count_response.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/get_searches_no_clicks_response.py b/algoliasearch/analytics/models/get_searches_no_clicks_response.py index ab4938066..68cb00ea8 100644 --- a/algoliasearch/analytics/models/get_searches_no_clicks_response.py +++ b/algoliasearch/analytics/models/get_searches_no_clicks_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.searches: diff --git a/algoliasearch/analytics/models/get_searches_no_results_response.py b/algoliasearch/analytics/models/get_searches_no_results_response.py index 9ad286f19..5455c0e27 100644 --- a/algoliasearch/analytics/models/get_searches_no_results_response.py +++ b/algoliasearch/analytics/models/get_searches_no_results_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.searches: diff --git a/algoliasearch/analytics/models/get_status_response.py b/algoliasearch/analytics/models/get_status_response.py index adbe14504..423350ee6 100644 --- a/algoliasearch/analytics/models/get_status_response.py +++ b/algoliasearch/analytics/models/get_status_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/get_top_countries_response.py b/algoliasearch/analytics/models/get_top_countries_response.py index 8ce35a2f9..b09b8a559 100644 --- a/algoliasearch/analytics/models/get_top_countries_response.py +++ b/algoliasearch/analytics/models/get_top_countries_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.countries: diff --git a/algoliasearch/analytics/models/get_top_filter_attribute.py b/algoliasearch/analytics/models/get_top_filter_attribute.py index b9e7b2839..4e7a69ac7 100644 --- a/algoliasearch/analytics/models/get_top_filter_attribute.py +++ b/algoliasearch/analytics/models/get_top_filter_attribute.py @@ -52,6 +52,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/get_top_filter_attributes_response.py b/algoliasearch/analytics/models/get_top_filter_attributes_response.py index 4575f7b7e..c61f7e5dd 100644 --- a/algoliasearch/analytics/models/get_top_filter_attributes_response.py +++ b/algoliasearch/analytics/models/get_top_filter_attributes_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.attributes: diff --git a/algoliasearch/analytics/models/get_top_filter_for_attribute.py b/algoliasearch/analytics/models/get_top_filter_for_attribute.py index 9f29e35f8..99ea61056 100644 --- a/algoliasearch/analytics/models/get_top_filter_for_attribute.py +++ b/algoliasearch/analytics/models/get_top_filter_for_attribute.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/get_top_filter_for_attribute_response.py b/algoliasearch/analytics/models/get_top_filter_for_attribute_response.py index de99508a4..d72220d1a 100644 --- a/algoliasearch/analytics/models/get_top_filter_for_attribute_response.py +++ b/algoliasearch/analytics/models/get_top_filter_for_attribute_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.values: diff --git a/algoliasearch/analytics/models/get_top_filters_no_results_response.py b/algoliasearch/analytics/models/get_top_filters_no_results_response.py index 749ca0418..2c313b33d 100644 --- a/algoliasearch/analytics/models/get_top_filters_no_results_response.py +++ b/algoliasearch/analytics/models/get_top_filters_no_results_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.values: diff --git a/algoliasearch/analytics/models/get_top_filters_no_results_value.py b/algoliasearch/analytics/models/get_top_filters_no_results_value.py index 2235e647e..2eb2baf1f 100644 --- a/algoliasearch/analytics/models/get_top_filters_no_results_value.py +++ b/algoliasearch/analytics/models/get_top_filters_no_results_value.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/get_top_filters_no_results_values.py b/algoliasearch/analytics/models/get_top_filters_no_results_values.py index 638072b08..66c7a8ae4 100644 --- a/algoliasearch/analytics/models/get_top_filters_no_results_values.py +++ b/algoliasearch/analytics/models/get_top_filters_no_results_values.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.values: diff --git a/algoliasearch/analytics/models/get_users_count_response.py b/algoliasearch/analytics/models/get_users_count_response.py index faedf1161..c6c469f0b 100644 --- a/algoliasearch/analytics/models/get_users_count_response.py +++ b/algoliasearch/analytics/models/get_users_count_response.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.dates: diff --git a/algoliasearch/analytics/models/top_country.py b/algoliasearch/analytics/models/top_country.py index 336c018e3..8f63734f2 100644 --- a/algoliasearch/analytics/models/top_country.py +++ b/algoliasearch/analytics/models/top_country.py @@ -52,6 +52,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/top_hit.py b/algoliasearch/analytics/models/top_hit.py index c720a75d0..e190637b0 100644 --- a/algoliasearch/analytics/models/top_hit.py +++ b/algoliasearch/analytics/models/top_hit.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/top_hit_with_analytics.py b/algoliasearch/analytics/models/top_hit_with_analytics.py index 802817a39..582c4ddc1 100644 --- a/algoliasearch/analytics/models/top_hit_with_analytics.py +++ b/algoliasearch/analytics/models/top_hit_with_analytics.py @@ -82,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/top_hit_with_revenue_analytics.py b/algoliasearch/analytics/models/top_hit_with_revenue_analytics.py index 5a10f0f6f..8841ff2f7 100644 --- a/algoliasearch/analytics/models/top_hit_with_revenue_analytics.py +++ b/algoliasearch/analytics/models/top_hit_with_revenue_analytics.py @@ -113,6 +113,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.currencies: diff --git a/algoliasearch/analytics/models/top_hits_response.py b/algoliasearch/analytics/models/top_hits_response.py index 9e6c4175a..bf680e2d2 100644 --- a/algoliasearch/analytics/models/top_hits_response.py +++ b/algoliasearch/analytics/models/top_hits_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/analytics/models/top_hits_response_with_analytics.py b/algoliasearch/analytics/models/top_hits_response_with_analytics.py index 5a2009698..092b572bc 100644 --- a/algoliasearch/analytics/models/top_hits_response_with_analytics.py +++ b/algoliasearch/analytics/models/top_hits_response_with_analytics.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/analytics/models/top_hits_response_with_revenue_analytics.py b/algoliasearch/analytics/models/top_hits_response_with_revenue_analytics.py index 7f691cfbb..393b0076f 100644 --- a/algoliasearch/analytics/models/top_hits_response_with_revenue_analytics.py +++ b/algoliasearch/analytics/models/top_hits_response_with_revenue_analytics.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/analytics/models/top_search.py b/algoliasearch/analytics/models/top_search.py index cdacc4f35..87ea26806 100644 --- a/algoliasearch/analytics/models/top_search.py +++ b/algoliasearch/analytics/models/top_search.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/analytics/models/top_search_with_analytics.py b/algoliasearch/analytics/models/top_search_with_analytics.py index 05ef4d13a..8007f20b7 100644 --- a/algoliasearch/analytics/models/top_search_with_analytics.py +++ b/algoliasearch/analytics/models/top_search_with_analytics.py @@ -99,6 +99,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.click_positions: diff --git a/algoliasearch/analytics/models/top_search_with_revenue_analytics.py b/algoliasearch/analytics/models/top_search_with_revenue_analytics.py index 1ab0dfcd1..db35fc4dc 100644 --- a/algoliasearch/analytics/models/top_search_with_revenue_analytics.py +++ b/algoliasearch/analytics/models/top_search_with_revenue_analytics.py @@ -128,6 +128,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.click_positions: diff --git a/algoliasearch/analytics/models/top_searches_response.py b/algoliasearch/analytics/models/top_searches_response.py index 0add43054..6d4961c23 100644 --- a/algoliasearch/analytics/models/top_searches_response.py +++ b/algoliasearch/analytics/models/top_searches_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.searches: diff --git a/algoliasearch/analytics/models/top_searches_response_with_analytics.py b/algoliasearch/analytics/models/top_searches_response_with_analytics.py index f2ea13999..d47f13e6e 100644 --- a/algoliasearch/analytics/models/top_searches_response_with_analytics.py +++ b/algoliasearch/analytics/models/top_searches_response_with_analytics.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.searches: diff --git a/algoliasearch/analytics/models/top_searches_response_with_revenue_analytics.py b/algoliasearch/analytics/models/top_searches_response_with_revenue_analytics.py index 6b41cc6bc..2864ee175 100644 --- a/algoliasearch/analytics/models/top_searches_response_with_revenue_analytics.py +++ b/algoliasearch/analytics/models/top_searches_response_with_revenue_analytics.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.searches: diff --git a/algoliasearch/ingestion/models/auth_algolia.py b/algoliasearch/ingestion/models/auth_algolia.py index 57e5bad1e..d698ca6b0 100644 --- a/algoliasearch/ingestion/models/auth_algolia.py +++ b/algoliasearch/ingestion/models/auth_algolia.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_algolia_insights.py b/algoliasearch/ingestion/models/auth_algolia_insights.py index 831d7d2d9..b40458fcf 100644 --- a/algoliasearch/ingestion/models/auth_algolia_insights.py +++ b/algoliasearch/ingestion/models/auth_algolia_insights.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_algolia_insights_partial.py b/algoliasearch/ingestion/models/auth_algolia_insights_partial.py index 6ff94d858..146864087 100644 --- a/algoliasearch/ingestion/models/auth_algolia_insights_partial.py +++ b/algoliasearch/ingestion/models/auth_algolia_insights_partial.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_algolia_partial.py b/algoliasearch/ingestion/models/auth_algolia_partial.py index b2df8a4eb..28c95778e 100644 --- a/algoliasearch/ingestion/models/auth_algolia_partial.py +++ b/algoliasearch/ingestion/models/auth_algolia_partial.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_api_key.py b/algoliasearch/ingestion/models/auth_api_key.py index c6af7e5ec..99369a701 100644 --- a/algoliasearch/ingestion/models/auth_api_key.py +++ b/algoliasearch/ingestion/models/auth_api_key.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_api_key_partial.py b/algoliasearch/ingestion/models/auth_api_key_partial.py index 63699e14c..ccb80c088 100644 --- a/algoliasearch/ingestion/models/auth_api_key_partial.py +++ b/algoliasearch/ingestion/models/auth_api_key_partial.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_basic.py b/algoliasearch/ingestion/models/auth_basic.py index fd6126b3a..c8b0809f9 100644 --- a/algoliasearch/ingestion/models/auth_basic.py +++ b/algoliasearch/ingestion/models/auth_basic.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_basic_partial.py b/algoliasearch/ingestion/models/auth_basic_partial.py index e1ff4daaf..0e390fa26 100644 --- a/algoliasearch/ingestion/models/auth_basic_partial.py +++ b/algoliasearch/ingestion/models/auth_basic_partial.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_google_service_account.py b/algoliasearch/ingestion/models/auth_google_service_account.py index 97a6d364e..4a779ecdc 100644 --- a/algoliasearch/ingestion/models/auth_google_service_account.py +++ b/algoliasearch/ingestion/models/auth_google_service_account.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_google_service_account_partial.py b/algoliasearch/ingestion/models/auth_google_service_account_partial.py index 14224b99f..b29e489ea 100644 --- a/algoliasearch/ingestion/models/auth_google_service_account_partial.py +++ b/algoliasearch/ingestion/models/auth_google_service_account_partial.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_o_auth.py b/algoliasearch/ingestion/models/auth_o_auth.py index 749697140..7d0f5b2f8 100644 --- a/algoliasearch/ingestion/models/auth_o_auth.py +++ b/algoliasearch/ingestion/models/auth_o_auth.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/auth_o_auth_partial.py b/algoliasearch/ingestion/models/auth_o_auth_partial.py index 53e0dc426..ad07fac0a 100644 --- a/algoliasearch/ingestion/models/auth_o_auth_partial.py +++ b/algoliasearch/ingestion/models/auth_o_auth_partial.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/authentication.py b/algoliasearch/ingestion/models/authentication.py index f713dfd2a..4085c1fba 100644 --- a/algoliasearch/ingestion/models/authentication.py +++ b/algoliasearch/ingestion/models/authentication.py @@ -71,6 +71,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/authentication_create.py b/algoliasearch/ingestion/models/authentication_create.py index 6bcff0d01..1b4c46ab2 100644 --- a/algoliasearch/ingestion/models/authentication_create.py +++ b/algoliasearch/ingestion/models/authentication_create.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/authentication_create_response.py b/algoliasearch/ingestion/models/authentication_create_response.py index 9a15b585c..e87fb30a5 100644 --- a/algoliasearch/ingestion/models/authentication_create_response.py +++ b/algoliasearch/ingestion/models/authentication_create_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/authentication_search.py b/algoliasearch/ingestion/models/authentication_search.py index 8d4600fba..27ee6259f 100644 --- a/algoliasearch/ingestion/models/authentication_search.py +++ b/algoliasearch/ingestion/models/authentication_search.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/authentication_update.py b/algoliasearch/ingestion/models/authentication_update.py index 8e91e1b80..1ded7395b 100644 --- a/algoliasearch/ingestion/models/authentication_update.py +++ b/algoliasearch/ingestion/models/authentication_update.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/authentication_update_response.py b/algoliasearch/ingestion/models/authentication_update_response.py index 41b84f5fd..9ac21f63e 100644 --- a/algoliasearch/ingestion/models/authentication_update_response.py +++ b/algoliasearch/ingestion/models/authentication_update_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/big_commerce_channel.py b/algoliasearch/ingestion/models/big_commerce_channel.py index 2a0fa77d7..64854e201 100644 --- a/algoliasearch/ingestion/models/big_commerce_channel.py +++ b/algoliasearch/ingestion/models/big_commerce_channel.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/big_commerce_metafield.py b/algoliasearch/ingestion/models/big_commerce_metafield.py index 0dd0685e0..014fb9895 100644 --- a/algoliasearch/ingestion/models/big_commerce_metafield.py +++ b/algoliasearch/ingestion/models/big_commerce_metafield.py @@ -52,6 +52,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/commercetools_custom_fields.py b/algoliasearch/ingestion/models/commercetools_custom_fields.py index a5fce7221..f875a8682 100644 --- a/algoliasearch/ingestion/models/commercetools_custom_fields.py +++ b/algoliasearch/ingestion/models/commercetools_custom_fields.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/delete_response.py b/algoliasearch/ingestion/models/delete_response.py index 3924aa183..ff9fb366a 100644 --- a/algoliasearch/ingestion/models/delete_response.py +++ b/algoliasearch/ingestion/models/delete_response.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/destination.py b/algoliasearch/ingestion/models/destination.py index 4c5f38134..7ffaf0c1e 100644 --- a/algoliasearch/ingestion/models/destination.py +++ b/algoliasearch/ingestion/models/destination.py @@ -77,6 +77,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/destination_create.py b/algoliasearch/ingestion/models/destination_create.py index 1d5b4f352..b8516743f 100644 --- a/algoliasearch/ingestion/models/destination_create.py +++ b/algoliasearch/ingestion/models/destination_create.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/destination_create_response.py b/algoliasearch/ingestion/models/destination_create_response.py index ce9098d3e..fe4fb8cb6 100644 --- a/algoliasearch/ingestion/models/destination_create_response.py +++ b/algoliasearch/ingestion/models/destination_create_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/destination_index_name.py b/algoliasearch/ingestion/models/destination_index_name.py index cb21828a3..333d611bd 100644 --- a/algoliasearch/ingestion/models/destination_index_name.py +++ b/algoliasearch/ingestion/models/destination_index_name.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/destination_search.py b/algoliasearch/ingestion/models/destination_search.py index f62dc4e0d..ae4cf425b 100644 --- a/algoliasearch/ingestion/models/destination_search.py +++ b/algoliasearch/ingestion/models/destination_search.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/destination_update.py b/algoliasearch/ingestion/models/destination_update.py index 1180e6afe..32366569d 100644 --- a/algoliasearch/ingestion/models/destination_update.py +++ b/algoliasearch/ingestion/models/destination_update.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/destination_update_response.py b/algoliasearch/ingestion/models/destination_update_response.py index 1e03f7831..aa0d77f5a 100644 --- a/algoliasearch/ingestion/models/destination_update_response.py +++ b/algoliasearch/ingestion/models/destination_update_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/docker_streams.py b/algoliasearch/ingestion/models/docker_streams.py index ec2326e74..e9794e6bd 100644 --- a/algoliasearch/ingestion/models/docker_streams.py +++ b/algoliasearch/ingestion/models/docker_streams.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/docker_streams_input.py b/algoliasearch/ingestion/models/docker_streams_input.py index 88b00f72b..02903d875 100644 --- a/algoliasearch/ingestion/models/docker_streams_input.py +++ b/algoliasearch/ingestion/models/docker_streams_input.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.streams: diff --git a/algoliasearch/ingestion/models/error_base.py b/algoliasearch/ingestion/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/ingestion/models/error_base.py +++ b/algoliasearch/ingestion/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/ingestion/models/event.py b/algoliasearch/ingestion/models/event.py index da37981aa..3268e5ca4 100644 --- a/algoliasearch/ingestion/models/event.py +++ b/algoliasearch/ingestion/models/event.py @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/list_authentications_response.py b/algoliasearch/ingestion/models/list_authentications_response.py index aad1af3a1..b726e1527 100644 --- a/algoliasearch/ingestion/models/list_authentications_response.py +++ b/algoliasearch/ingestion/models/list_authentications_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.authentications: diff --git a/algoliasearch/ingestion/models/list_destinations_response.py b/algoliasearch/ingestion/models/list_destinations_response.py index 126f64a7a..81c011660 100644 --- a/algoliasearch/ingestion/models/list_destinations_response.py +++ b/algoliasearch/ingestion/models/list_destinations_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.destinations: diff --git a/algoliasearch/ingestion/models/list_events_response.py b/algoliasearch/ingestion/models/list_events_response.py index e74436e06..3cddb8c4b 100644 --- a/algoliasearch/ingestion/models/list_events_response.py +++ b/algoliasearch/ingestion/models/list_events_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.events: diff --git a/algoliasearch/ingestion/models/list_sources_response.py b/algoliasearch/ingestion/models/list_sources_response.py index c29067078..9b6edaf3b 100644 --- a/algoliasearch/ingestion/models/list_sources_response.py +++ b/algoliasearch/ingestion/models/list_sources_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.sources: diff --git a/algoliasearch/ingestion/models/list_tasks_response.py b/algoliasearch/ingestion/models/list_tasks_response.py index 3a3ee05af..922461a25 100644 --- a/algoliasearch/ingestion/models/list_tasks_response.py +++ b/algoliasearch/ingestion/models/list_tasks_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.tasks: diff --git a/algoliasearch/ingestion/models/list_tasks_response_v1.py b/algoliasearch/ingestion/models/list_tasks_response_v1.py index e08593db9..995780241 100644 --- a/algoliasearch/ingestion/models/list_tasks_response_v1.py +++ b/algoliasearch/ingestion/models/list_tasks_response_v1.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.tasks: diff --git a/algoliasearch/ingestion/models/list_transformations_response.py b/algoliasearch/ingestion/models/list_transformations_response.py index 42070e115..28fb12713 100644 --- a/algoliasearch/ingestion/models/list_transformations_response.py +++ b/algoliasearch/ingestion/models/list_transformations_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.transformations: diff --git a/algoliasearch/ingestion/models/mapping_field_directive.py b/algoliasearch/ingestion/models/mapping_field_directive.py index 86dd5a323..f8f7ee87e 100644 --- a/algoliasearch/ingestion/models/mapping_field_directive.py +++ b/algoliasearch/ingestion/models/mapping_field_directive.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/mapping_input.py b/algoliasearch/ingestion/models/mapping_input.py index 4106d4456..8648453d8 100644 --- a/algoliasearch/ingestion/models/mapping_input.py +++ b/algoliasearch/ingestion/models/mapping_input.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.actions: diff --git a/algoliasearch/ingestion/models/mapping_kit_action.py b/algoliasearch/ingestion/models/mapping_kit_action.py index 5ceb88d32..b66ef8a90 100644 --- a/algoliasearch/ingestion/models/mapping_kit_action.py +++ b/algoliasearch/ingestion/models/mapping_kit_action.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.field_directives: diff --git a/algoliasearch/ingestion/models/on_demand_trigger.py b/algoliasearch/ingestion/models/on_demand_trigger.py index ccda0f504..c724431d9 100644 --- a/algoliasearch/ingestion/models/on_demand_trigger.py +++ b/algoliasearch/ingestion/models/on_demand_trigger.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/on_demand_trigger_input.py b/algoliasearch/ingestion/models/on_demand_trigger_input.py index f41d2a5bd..e1ce90b13 100644 --- a/algoliasearch/ingestion/models/on_demand_trigger_input.py +++ b/algoliasearch/ingestion/models/on_demand_trigger_input.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/pagination.py b/algoliasearch/ingestion/models/pagination.py index 193d8241a..83d82eb20 100644 --- a/algoliasearch/ingestion/models/pagination.py +++ b/algoliasearch/ingestion/models/pagination.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/push_task_payload.py b/algoliasearch/ingestion/models/push_task_payload.py index ed3df3d86..e28ed097c 100644 --- a/algoliasearch/ingestion/models/push_task_payload.py +++ b/algoliasearch/ingestion/models/push_task_payload.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.records: diff --git a/algoliasearch/ingestion/models/push_task_records.py b/algoliasearch/ingestion/models/push_task_records.py index 4a511c600..8c772c6d9 100644 --- a/algoliasearch/ingestion/models/push_task_records.py +++ b/algoliasearch/ingestion/models/push_task_records.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/ingestion/models/run.py b/algoliasearch/ingestion/models/run.py index 904085260..b5244a4c0 100644 --- a/algoliasearch/ingestion/models/run.py +++ b/algoliasearch/ingestion/models/run.py @@ -90,6 +90,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.progress: _dict["progress"] = self.progress.to_dict() diff --git a/algoliasearch/ingestion/models/run_list_response.py b/algoliasearch/ingestion/models/run_list_response.py index 582bea2fd..8a6e04b91 100644 --- a/algoliasearch/ingestion/models/run_list_response.py +++ b/algoliasearch/ingestion/models/run_list_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.runs: diff --git a/algoliasearch/ingestion/models/run_progress.py b/algoliasearch/ingestion/models/run_progress.py index 5ed669e8d..8074c4b54 100644 --- a/algoliasearch/ingestion/models/run_progress.py +++ b/algoliasearch/ingestion/models/run_progress.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/run_response.py b/algoliasearch/ingestion/models/run_response.py index 977d8b5f4..95718e94e 100644 --- a/algoliasearch/ingestion/models/run_response.py +++ b/algoliasearch/ingestion/models/run_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/run_source_payload.py b/algoliasearch/ingestion/models/run_source_payload.py index da14fa39a..768a051f3 100644 --- a/algoliasearch/ingestion/models/run_source_payload.py +++ b/algoliasearch/ingestion/models/run_source_payload.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/run_source_response.py b/algoliasearch/ingestion/models/run_source_response.py index d132da453..c65026044 100644 --- a/algoliasearch/ingestion/models/run_source_response.py +++ b/algoliasearch/ingestion/models/run_source_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/schedule_trigger.py b/algoliasearch/ingestion/models/schedule_trigger.py index 33e317f54..3a4134f5e 100644 --- a/algoliasearch/ingestion/models/schedule_trigger.py +++ b/algoliasearch/ingestion/models/schedule_trigger.py @@ -64,6 +64,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/schedule_trigger_input.py b/algoliasearch/ingestion/models/schedule_trigger_input.py index 023c1c771..d8a6c7d80 100644 --- a/algoliasearch/ingestion/models/schedule_trigger_input.py +++ b/algoliasearch/ingestion/models/schedule_trigger_input.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/shopify_input.py b/algoliasearch/ingestion/models/shopify_input.py index 7d46cd60d..c40d8fe1c 100644 --- a/algoliasearch/ingestion/models/shopify_input.py +++ b/algoliasearch/ingestion/models/shopify_input.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.metafields: diff --git a/algoliasearch/ingestion/models/shopify_market.py b/algoliasearch/ingestion/models/shopify_market.py index 19151a12d..8d6c70be3 100644 --- a/algoliasearch/ingestion/models/shopify_market.py +++ b/algoliasearch/ingestion/models/shopify_market.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/shopify_metafield.py b/algoliasearch/ingestion/models/shopify_metafield.py index 409086d83..0426a2fea 100644 --- a/algoliasearch/ingestion/models/shopify_metafield.py +++ b/algoliasearch/ingestion/models/shopify_metafield.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source.py b/algoliasearch/ingestion/models/source.py index d4a42c791..ef8bf8012 100644 --- a/algoliasearch/ingestion/models/source.py +++ b/algoliasearch/ingestion/models/source.py @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/source_big_commerce.py b/algoliasearch/ingestion/models/source_big_commerce.py index 57731622d..23ae6651d 100644 --- a/algoliasearch/ingestion/models/source_big_commerce.py +++ b/algoliasearch/ingestion/models/source_big_commerce.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.channel: _dict["channel"] = self.channel.to_dict() diff --git a/algoliasearch/ingestion/models/source_big_query.py b/algoliasearch/ingestion/models/source_big_query.py index fa4c84dcf..1c9e6f067 100644 --- a/algoliasearch/ingestion/models/source_big_query.py +++ b/algoliasearch/ingestion/models/source_big_query.py @@ -78,6 +78,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_commercetools.py b/algoliasearch/ingestion/models/source_commercetools.py index 30e0c7a29..e13b55b5b 100644 --- a/algoliasearch/ingestion/models/source_commercetools.py +++ b/algoliasearch/ingestion/models/source_commercetools.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.custom_fields: _dict["customFields"] = self.custom_fields.to_dict() diff --git a/algoliasearch/ingestion/models/source_create.py b/algoliasearch/ingestion/models/source_create.py index 8ae17fe40..cf363fe41 100644 --- a/algoliasearch/ingestion/models/source_create.py +++ b/algoliasearch/ingestion/models/source_create.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/source_create_response.py b/algoliasearch/ingestion/models/source_create_response.py index ae353147d..93be5a0c4 100644 --- a/algoliasearch/ingestion/models/source_create_response.py +++ b/algoliasearch/ingestion/models/source_create_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_csv.py b/algoliasearch/ingestion/models/source_csv.py index 0008de940..11fc6131e 100644 --- a/algoliasearch/ingestion/models/source_csv.py +++ b/algoliasearch/ingestion/models/source_csv.py @@ -71,6 +71,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_docker.py b/algoliasearch/ingestion/models/source_docker.py index e6e4cb05c..b0875484b 100644 --- a/algoliasearch/ingestion/models/source_docker.py +++ b/algoliasearch/ingestion/models/source_docker.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_ga4_big_query_export.py b/algoliasearch/ingestion/models/source_ga4_big_query_export.py index 2e26f56bc..33350db36 100644 --- a/algoliasearch/ingestion/models/source_ga4_big_query_export.py +++ b/algoliasearch/ingestion/models/source_ga4_big_query_export.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_json.py b/algoliasearch/ingestion/models/source_json.py index b3afd8eac..c77c9ec52 100644 --- a/algoliasearch/ingestion/models/source_json.py +++ b/algoliasearch/ingestion/models/source_json.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_search.py b/algoliasearch/ingestion/models/source_search.py index 80835d9c7..3c7f9b041 100644 --- a/algoliasearch/ingestion/models/source_search.py +++ b/algoliasearch/ingestion/models/source_search.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_shopify.py b/algoliasearch/ingestion/models/source_shopify.py index e61137112..12b102c4a 100644 --- a/algoliasearch/ingestion/models/source_shopify.py +++ b/algoliasearch/ingestion/models/source_shopify.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_update.py b/algoliasearch/ingestion/models/source_update.py index 22bed726f..ccf97855b 100644 --- a/algoliasearch/ingestion/models/source_update.py +++ b/algoliasearch/ingestion/models/source_update.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/source_update_commercetools.py b/algoliasearch/ingestion/models/source_update_commercetools.py index c0df33672..9261a76da 100644 --- a/algoliasearch/ingestion/models/source_update_commercetools.py +++ b/algoliasearch/ingestion/models/source_update_commercetools.py @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.custom_fields: _dict["customFields"] = self.custom_fields.to_dict() diff --git a/algoliasearch/ingestion/models/source_update_docker.py b/algoliasearch/ingestion/models/source_update_docker.py index 05355ca70..a194992fe 100644 --- a/algoliasearch/ingestion/models/source_update_docker.py +++ b/algoliasearch/ingestion/models/source_update_docker.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_update_response.py b/algoliasearch/ingestion/models/source_update_response.py index af2d28dd6..3766a29a3 100644 --- a/algoliasearch/ingestion/models/source_update_response.py +++ b/algoliasearch/ingestion/models/source_update_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_update_shopify.py b/algoliasearch/ingestion/models/source_update_shopify.py index 5e4c8c0d4..52b0377c8 100644 --- a/algoliasearch/ingestion/models/source_update_shopify.py +++ b/algoliasearch/ingestion/models/source_update_shopify.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/source_watch_response.py b/algoliasearch/ingestion/models/source_watch_response.py index 7fc1fb270..5c8342bc6 100644 --- a/algoliasearch/ingestion/models/source_watch_response.py +++ b/algoliasearch/ingestion/models/source_watch_response.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.events: diff --git a/algoliasearch/ingestion/models/streaming_input.py b/algoliasearch/ingestion/models/streaming_input.py index a78bdb55b..f8a10c11f 100644 --- a/algoliasearch/ingestion/models/streaming_input.py +++ b/algoliasearch/ingestion/models/streaming_input.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.mapping: _dict["mapping"] = self.mapping.to_dict() diff --git a/algoliasearch/ingestion/models/streaming_trigger.py b/algoliasearch/ingestion/models/streaming_trigger.py index a40c7b2ae..a71e8a8b2 100644 --- a/algoliasearch/ingestion/models/streaming_trigger.py +++ b/algoliasearch/ingestion/models/streaming_trigger.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/subscription_trigger.py b/algoliasearch/ingestion/models/subscription_trigger.py index d4f99c019..9f4ddeb03 100644 --- a/algoliasearch/ingestion/models/subscription_trigger.py +++ b/algoliasearch/ingestion/models/subscription_trigger.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/task.py b/algoliasearch/ingestion/models/task.py index a3bf136a2..1e15734d2 100644 --- a/algoliasearch/ingestion/models/task.py +++ b/algoliasearch/ingestion/models/task.py @@ -99,6 +99,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/task_create.py b/algoliasearch/ingestion/models/task_create.py index caa2446bb..83b4aa0af 100644 --- a/algoliasearch/ingestion/models/task_create.py +++ b/algoliasearch/ingestion/models/task_create.py @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/task_create_response.py b/algoliasearch/ingestion/models/task_create_response.py index 7da99cb88..ed64967dc 100644 --- a/algoliasearch/ingestion/models/task_create_response.py +++ b/algoliasearch/ingestion/models/task_create_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/task_create_v1.py b/algoliasearch/ingestion/models/task_create_v1.py index 6a8c17bef..94a4c394d 100644 --- a/algoliasearch/ingestion/models/task_create_v1.py +++ b/algoliasearch/ingestion/models/task_create_v1.py @@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.trigger: _dict["trigger"] = self.trigger.to_dict() diff --git a/algoliasearch/ingestion/models/task_search.py b/algoliasearch/ingestion/models/task_search.py index f8cf4c007..c0ee53d46 100644 --- a/algoliasearch/ingestion/models/task_search.py +++ b/algoliasearch/ingestion/models/task_search.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/task_update.py b/algoliasearch/ingestion/models/task_update.py index e74dab58e..744ee2a6d 100644 --- a/algoliasearch/ingestion/models/task_update.py +++ b/algoliasearch/ingestion/models/task_update.py @@ -72,6 +72,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.input: _dict["input"] = self.input.to_dict() diff --git a/algoliasearch/ingestion/models/task_update_response.py b/algoliasearch/ingestion/models/task_update_response.py index 09be899dd..0b351918b 100644 --- a/algoliasearch/ingestion/models/task_update_response.py +++ b/algoliasearch/ingestion/models/task_update_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/task_update_v1.py b/algoliasearch/ingestion/models/task_update_v1.py index fdb84d456..c7bd3b1ef 100644 --- a/algoliasearch/ingestion/models/task_update_v1.py +++ b/algoliasearch/ingestion/models/task_update_v1.py @@ -71,6 +71,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.trigger: _dict["trigger"] = self.trigger.to_dict() diff --git a/algoliasearch/ingestion/models/task_v1.py b/algoliasearch/ingestion/models/task_v1.py index ac433b6c5..3ec6c5ea2 100644 --- a/algoliasearch/ingestion/models/task_v1.py +++ b/algoliasearch/ingestion/models/task_v1.py @@ -88,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.trigger: _dict["trigger"] = self.trigger.to_dict() diff --git a/algoliasearch/ingestion/models/transformation.py b/algoliasearch/ingestion/models/transformation.py index b0d52ab4c..d48cf8a40 100644 --- a/algoliasearch/ingestion/models/transformation.py +++ b/algoliasearch/ingestion/models/transformation.py @@ -75,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/transformation_create.py b/algoliasearch/ingestion/models/transformation_create.py index 1e64ed664..42c1be353 100644 --- a/algoliasearch/ingestion/models/transformation_create.py +++ b/algoliasearch/ingestion/models/transformation_create.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/transformation_create_response.py b/algoliasearch/ingestion/models/transformation_create_response.py index ef284e1a0..973d14228 100644 --- a/algoliasearch/ingestion/models/transformation_create_response.py +++ b/algoliasearch/ingestion/models/transformation_create_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/transformation_error.py b/algoliasearch/ingestion/models/transformation_error.py index 695c81236..9f51acc65 100644 --- a/algoliasearch/ingestion/models/transformation_error.py +++ b/algoliasearch/ingestion/models/transformation_error.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/transformation_search.py b/algoliasearch/ingestion/models/transformation_search.py index ec9651025..59289ac5f 100644 --- a/algoliasearch/ingestion/models/transformation_search.py +++ b/algoliasearch/ingestion/models/transformation_search.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/transformation_try.py b/algoliasearch/ingestion/models/transformation_try.py index 097a0bab7..031ed4e08 100644 --- a/algoliasearch/ingestion/models/transformation_try.py +++ b/algoliasearch/ingestion/models/transformation_try.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.authentications: diff --git a/algoliasearch/ingestion/models/transformation_try_response.py b/algoliasearch/ingestion/models/transformation_try_response.py index fe71b5e3f..7b83571e7 100644 --- a/algoliasearch/ingestion/models/transformation_try_response.py +++ b/algoliasearch/ingestion/models/transformation_try_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.error: _dict["error"] = self.error.to_dict() diff --git a/algoliasearch/ingestion/models/transformation_update_response.py b/algoliasearch/ingestion/models/transformation_update_response.py index f442222e3..b78eec565 100644 --- a/algoliasearch/ingestion/models/transformation_update_response.py +++ b/algoliasearch/ingestion/models/transformation_update_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/trigger_update_input.py b/algoliasearch/ingestion/models/trigger_update_input.py index f7c544bb5..4cdf52c17 100644 --- a/algoliasearch/ingestion/models/trigger_update_input.py +++ b/algoliasearch/ingestion/models/trigger_update_input.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/ingestion/models/window.py b/algoliasearch/ingestion/models/window.py index db6b37fc7..cf6b131b9 100644 --- a/algoliasearch/ingestion/models/window.py +++ b/algoliasearch/ingestion/models/window.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/added_to_cart_object_ids.py b/algoliasearch/insights/models/added_to_cart_object_ids.py index cc536833b..aa2e2d018 100644 --- a/algoliasearch/insights/models/added_to_cart_object_ids.py +++ b/algoliasearch/insights/models/added_to_cart_object_ids.py @@ -129,6 +129,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.object_data: diff --git a/algoliasearch/insights/models/added_to_cart_object_ids_after_search.py b/algoliasearch/insights/models/added_to_cart_object_ids_after_search.py index e36055e26..0b3a990ad 100644 --- a/algoliasearch/insights/models/added_to_cart_object_ids_after_search.py +++ b/algoliasearch/insights/models/added_to_cart_object_ids_after_search.py @@ -140,6 +140,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.object_data: diff --git a/algoliasearch/insights/models/clicked_filters.py b/algoliasearch/insights/models/clicked_filters.py index 0b7e2cf44..8d591ad19 100644 --- a/algoliasearch/insights/models/clicked_filters.py +++ b/algoliasearch/insights/models/clicked_filters.py @@ -112,6 +112,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/clicked_object_ids.py b/algoliasearch/insights/models/clicked_object_ids.py index 493bc0721..fc10fc4ee 100644 --- a/algoliasearch/insights/models/clicked_object_ids.py +++ b/algoliasearch/insights/models/clicked_object_ids.py @@ -113,6 +113,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/clicked_object_ids_after_search.py b/algoliasearch/insights/models/clicked_object_ids_after_search.py index 104a5bf8f..a2fa0782c 100644 --- a/algoliasearch/insights/models/clicked_object_ids_after_search.py +++ b/algoliasearch/insights/models/clicked_object_ids_after_search.py @@ -127,6 +127,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/converted_filters.py b/algoliasearch/insights/models/converted_filters.py index 82aa03e32..d915126d8 100644 --- a/algoliasearch/insights/models/converted_filters.py +++ b/algoliasearch/insights/models/converted_filters.py @@ -112,6 +112,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/converted_object_ids.py b/algoliasearch/insights/models/converted_object_ids.py index 3d851b078..2142c1ceb 100644 --- a/algoliasearch/insights/models/converted_object_ids.py +++ b/algoliasearch/insights/models/converted_object_ids.py @@ -113,6 +113,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/converted_object_ids_after_search.py b/algoliasearch/insights/models/converted_object_ids_after_search.py index 028a6ad94..88e1506be 100644 --- a/algoliasearch/insights/models/converted_object_ids_after_search.py +++ b/algoliasearch/insights/models/converted_object_ids_after_search.py @@ -124,6 +124,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/error_base.py b/algoliasearch/insights/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/insights/models/error_base.py +++ b/algoliasearch/insights/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/insights/models/events_response.py b/algoliasearch/insights/models/events_response.py index 71f9287a3..c442faf2f 100644 --- a/algoliasearch/insights/models/events_response.py +++ b/algoliasearch/insights/models/events_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/insights_events.py b/algoliasearch/insights/models/insights_events.py index d60addb81..2ff093620 100644 --- a/algoliasearch/insights/models/insights_events.py +++ b/algoliasearch/insights/models/insights_events.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.events: diff --git a/algoliasearch/insights/models/object_data.py b/algoliasearch/insights/models/object_data.py index 648850929..a9beaee19 100644 --- a/algoliasearch/insights/models/object_data.py +++ b/algoliasearch/insights/models/object_data.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.price: _dict["price"] = self.price.to_dict() diff --git a/algoliasearch/insights/models/object_data_after_search.py b/algoliasearch/insights/models/object_data_after_search.py index 6b92e0c93..09a1a5dee 100644 --- a/algoliasearch/insights/models/object_data_after_search.py +++ b/algoliasearch/insights/models/object_data_after_search.py @@ -78,6 +78,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.price: _dict["price"] = self.price.to_dict() diff --git a/algoliasearch/insights/models/purchased_object_ids.py b/algoliasearch/insights/models/purchased_object_ids.py index 7f5d90069..9de857788 100644 --- a/algoliasearch/insights/models/purchased_object_ids.py +++ b/algoliasearch/insights/models/purchased_object_ids.py @@ -129,6 +129,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.object_data: diff --git a/algoliasearch/insights/models/purchased_object_ids_after_search.py b/algoliasearch/insights/models/purchased_object_ids_after_search.py index 8000a3021..04ed8ca54 100644 --- a/algoliasearch/insights/models/purchased_object_ids_after_search.py +++ b/algoliasearch/insights/models/purchased_object_ids_after_search.py @@ -128,6 +128,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.object_data: diff --git a/algoliasearch/insights/models/viewed_filters.py b/algoliasearch/insights/models/viewed_filters.py index f4d4b99cb..c2de36f2f 100644 --- a/algoliasearch/insights/models/viewed_filters.py +++ b/algoliasearch/insights/models/viewed_filters.py @@ -112,6 +112,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/insights/models/viewed_object_ids.py b/algoliasearch/insights/models/viewed_object_ids.py index 62a8bb8f8..acbedc457 100644 --- a/algoliasearch/insights/models/viewed_object_ids.py +++ b/algoliasearch/insights/models/viewed_object_ids.py @@ -113,6 +113,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/monitoring/models/error_base.py b/algoliasearch/monitoring/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/monitoring/models/error_base.py +++ b/algoliasearch/monitoring/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/monitoring/models/incident.py b/algoliasearch/monitoring/models/incident.py index 010886c4e..5fb7dd488 100644 --- a/algoliasearch/monitoring/models/incident.py +++ b/algoliasearch/monitoring/models/incident.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/monitoring/models/incident_entry.py b/algoliasearch/monitoring/models/incident_entry.py index 0afcd6afa..9df250c23 100644 --- a/algoliasearch/monitoring/models/incident_entry.py +++ b/algoliasearch/monitoring/models/incident_entry.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.v: _dict["v"] = self.v.to_dict() diff --git a/algoliasearch/monitoring/models/incidents_response.py b/algoliasearch/monitoring/models/incidents_response.py index 7571142de..96e90e7ab 100644 --- a/algoliasearch/monitoring/models/incidents_response.py +++ b/algoliasearch/monitoring/models/incidents_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict_of_array = {} if self.incidents: diff --git a/algoliasearch/monitoring/models/indexing_metric.py b/algoliasearch/monitoring/models/indexing_metric.py index b393dfaaa..661994240 100644 --- a/algoliasearch/monitoring/models/indexing_metric.py +++ b/algoliasearch/monitoring/models/indexing_metric.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict_of_array = {} if self.indexing: diff --git a/algoliasearch/monitoring/models/indexing_time_response.py b/algoliasearch/monitoring/models/indexing_time_response.py index 8df403206..d76adbe92 100644 --- a/algoliasearch/monitoring/models/indexing_time_response.py +++ b/algoliasearch/monitoring/models/indexing_time_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.metrics: _dict["metrics"] = self.metrics.to_dict() diff --git a/algoliasearch/monitoring/models/infrastructure_response.py b/algoliasearch/monitoring/models/infrastructure_response.py index bb8b00e40..59be547d1 100644 --- a/algoliasearch/monitoring/models/infrastructure_response.py +++ b/algoliasearch/monitoring/models/infrastructure_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.metrics: _dict["metrics"] = self.metrics.to_dict() diff --git a/algoliasearch/monitoring/models/inventory_response.py b/algoliasearch/monitoring/models/inventory_response.py index 666f4b776..1fabaa9ab 100644 --- a/algoliasearch/monitoring/models/inventory_response.py +++ b/algoliasearch/monitoring/models/inventory_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.inventory: diff --git a/algoliasearch/monitoring/models/latency_metric.py b/algoliasearch/monitoring/models/latency_metric.py index a2e4aabe0..fceb239ec 100644 --- a/algoliasearch/monitoring/models/latency_metric.py +++ b/algoliasearch/monitoring/models/latency_metric.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict_of_array = {} if self.latency: diff --git a/algoliasearch/monitoring/models/latency_response.py b/algoliasearch/monitoring/models/latency_response.py index c06306a9c..17fdf3b5f 100644 --- a/algoliasearch/monitoring/models/latency_response.py +++ b/algoliasearch/monitoring/models/latency_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.metrics: _dict["metrics"] = self.metrics.to_dict() diff --git a/algoliasearch/monitoring/models/metrics.py b/algoliasearch/monitoring/models/metrics.py index 6f5aaf16b..d523b6758 100644 --- a/algoliasearch/monitoring/models/metrics.py +++ b/algoliasearch/monitoring/models/metrics.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _field_dict_of_array = {} if self.cpu_usage: diff --git a/algoliasearch/monitoring/models/probes_metric.py b/algoliasearch/monitoring/models/probes_metric.py index d14cc8bed..d6dce4219 100644 --- a/algoliasearch/monitoring/models/probes_metric.py +++ b/algoliasearch/monitoring/models/probes_metric.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/monitoring/models/server.py b/algoliasearch/monitoring/models/server.py index 5ccc73a7c..7a4bf878f 100644 --- a/algoliasearch/monitoring/models/server.py +++ b/algoliasearch/monitoring/models/server.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/monitoring/models/status_response.py b/algoliasearch/monitoring/models/status_response.py index 6f11978ad..519e6e262 100644 --- a/algoliasearch/monitoring/models/status_response.py +++ b/algoliasearch/monitoring/models/status_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/monitoring/models/time_entry.py b/algoliasearch/monitoring/models/time_entry.py index c7b04db30..26676a883 100644 --- a/algoliasearch/monitoring/models/time_entry.py +++ b/algoliasearch/monitoring/models/time_entry.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/personalization/models/delete_user_profile_response.py b/algoliasearch/personalization/models/delete_user_profile_response.py index 64de549ea..f6f0de675 100644 --- a/algoliasearch/personalization/models/delete_user_profile_response.py +++ b/algoliasearch/personalization/models/delete_user_profile_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/personalization/models/error_base.py b/algoliasearch/personalization/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/personalization/models/error_base.py +++ b/algoliasearch/personalization/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/personalization/models/event_scoring.py b/algoliasearch/personalization/models/event_scoring.py index 99e69cb16..ff877593e 100644 --- a/algoliasearch/personalization/models/event_scoring.py +++ b/algoliasearch/personalization/models/event_scoring.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/personalization/models/facet_scoring.py b/algoliasearch/personalization/models/facet_scoring.py index 3e2974d73..1b144edec 100644 --- a/algoliasearch/personalization/models/facet_scoring.py +++ b/algoliasearch/personalization/models/facet_scoring.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/personalization/models/get_user_token_response.py b/algoliasearch/personalization/models/get_user_token_response.py index 5c54be485..7f219d6a3 100644 --- a/algoliasearch/personalization/models/get_user_token_response.py +++ b/algoliasearch/personalization/models/get_user_token_response.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/personalization/models/personalization_strategy_params.py b/algoliasearch/personalization/models/personalization_strategy_params.py index 91929a484..0c5c460e3 100644 --- a/algoliasearch/personalization/models/personalization_strategy_params.py +++ b/algoliasearch/personalization/models/personalization_strategy_params.py @@ -66,6 +66,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.event_scoring: diff --git a/algoliasearch/personalization/models/set_personalization_strategy_response.py b/algoliasearch/personalization/models/set_personalization_strategy_response.py index ec445d619..9474a0a82 100644 --- a/algoliasearch/personalization/models/set_personalization_strategy_response.py +++ b/algoliasearch/personalization/models/set_personalization_strategy_response.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/query_suggestions/models/base_response.py b/algoliasearch/query_suggestions/models/base_response.py index 0f4112152..b9059e459 100644 --- a/algoliasearch/query_suggestions/models/base_response.py +++ b/algoliasearch/query_suggestions/models/base_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/query_suggestions/models/config_status.py b/algoliasearch/query_suggestions/models/config_status.py index 12257aee2..7b85d405c 100644 --- a/algoliasearch/query_suggestions/models/config_status.py +++ b/algoliasearch/query_suggestions/models/config_status.py @@ -75,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/query_suggestions/models/configuration.py b/algoliasearch/query_suggestions/models/configuration.py index 370224936..e82df1405 100644 --- a/algoliasearch/query_suggestions/models/configuration.py +++ b/algoliasearch/query_suggestions/models/configuration.py @@ -70,6 +70,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.source_indices: diff --git a/algoliasearch/query_suggestions/models/configuration_response.py b/algoliasearch/query_suggestions/models/configuration_response.py index 7c1e21e71..8402956ef 100644 --- a/algoliasearch/query_suggestions/models/configuration_response.py +++ b/algoliasearch/query_suggestions/models/configuration_response.py @@ -76,6 +76,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.source_indices: diff --git a/algoliasearch/query_suggestions/models/configuration_with_index.py b/algoliasearch/query_suggestions/models/configuration_with_index.py index 0d50111ce..2752581d5 100644 --- a/algoliasearch/query_suggestions/models/configuration_with_index.py +++ b/algoliasearch/query_suggestions/models/configuration_with_index.py @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.source_indices: diff --git a/algoliasearch/query_suggestions/models/error_base.py b/algoliasearch/query_suggestions/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/query_suggestions/models/error_base.py +++ b/algoliasearch/query_suggestions/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/query_suggestions/models/facet.py b/algoliasearch/query_suggestions/models/facet.py index b547ef7e0..392a15b54 100644 --- a/algoliasearch/query_suggestions/models/facet.py +++ b/algoliasearch/query_suggestions/models/facet.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/query_suggestions/models/log_file.py b/algoliasearch/query_suggestions/models/log_file.py index ce126c723..bd143cc17 100644 --- a/algoliasearch/query_suggestions/models/log_file.py +++ b/algoliasearch/query_suggestions/models/log_file.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/query_suggestions/models/source_index.py b/algoliasearch/query_suggestions/models/source_index.py index 10212a00c..01bbe8e36 100644 --- a/algoliasearch/query_suggestions/models/source_index.py +++ b/algoliasearch/query_suggestions/models/source_index.py @@ -77,6 +77,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.facets: diff --git a/algoliasearch/recommend/models/auto_facet_filter.py b/algoliasearch/recommend/models/auto_facet_filter.py index 83c7ee78c..8afd954a4 100644 --- a/algoliasearch/recommend/models/auto_facet_filter.py +++ b/algoliasearch/recommend/models/auto_facet_filter.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/bought_together_query.py b/algoliasearch/recommend/models/bought_together_query.py index 18004c20e..8e2e99b84 100644 --- a/algoliasearch/recommend/models/bought_together_query.py +++ b/algoliasearch/recommend/models/bought_together_query.py @@ -77,6 +77,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/condition.py b/algoliasearch/recommend/models/condition.py index 7b32b5c5d..a8e85ed88 100644 --- a/algoliasearch/recommend/models/condition.py +++ b/algoliasearch/recommend/models/condition.py @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/consequence.py b/algoliasearch/recommend/models/consequence.py index 4fb4b0cee..362601375 100644 --- a/algoliasearch/recommend/models/consequence.py +++ b/algoliasearch/recommend/models/consequence.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hide: diff --git a/algoliasearch/recommend/models/deleted_at_response.py b/algoliasearch/recommend/models/deleted_at_response.py index 4b7d1198f..90f192f86 100644 --- a/algoliasearch/recommend/models/deleted_at_response.py +++ b/algoliasearch/recommend/models/deleted_at_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/error_base.py b/algoliasearch/recommend/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/recommend/models/error_base.py +++ b/algoliasearch/recommend/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/recommend/models/exhaustive.py b/algoliasearch/recommend/models/exhaustive.py index e5526d7c2..008f6f857 100644 --- a/algoliasearch/recommend/models/exhaustive.py +++ b/algoliasearch/recommend/models/exhaustive.py @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/facet_ordering.py b/algoliasearch/recommend/models/facet_ordering.py index 02badd690..a1ddeaa13 100644 --- a/algoliasearch/recommend/models/facet_ordering.py +++ b/algoliasearch/recommend/models/facet_ordering.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facets: _dict["facets"] = self.facets.to_dict() diff --git a/algoliasearch/recommend/models/facet_stats.py b/algoliasearch/recommend/models/facet_stats.py index 3a44ead8f..2747ff786 100644 --- a/algoliasearch/recommend/models/facet_stats.py +++ b/algoliasearch/recommend/models/facet_stats.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/fallback_params.py b/algoliasearch/recommend/models/fallback_params.py index 1f2eea077..135634fbe 100644 --- a/algoliasearch/recommend/models/fallback_params.py +++ b/algoliasearch/recommend/models/fallback_params.py @@ -469,6 +469,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/recommend/models/get_recommend_task_response.py b/algoliasearch/recommend/models/get_recommend_task_response.py index b4e695ecb..752dcb9bb 100644 --- a/algoliasearch/recommend/models/get_recommend_task_response.py +++ b/algoliasearch/recommend/models/get_recommend_task_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/get_recommendations_params.py b/algoliasearch/recommend/models/get_recommendations_params.py index e250b6760..21bad2e31 100644 --- a/algoliasearch/recommend/models/get_recommendations_params.py +++ b/algoliasearch/recommend/models/get_recommendations_params.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/recommend/models/get_recommendations_response.py b/algoliasearch/recommend/models/get_recommendations_response.py index 019dbfa0b..aa07d4ee6 100644 --- a/algoliasearch/recommend/models/get_recommendations_response.py +++ b/algoliasearch/recommend/models/get_recommendations_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.results: diff --git a/algoliasearch/recommend/models/hide_consequence_object.py b/algoliasearch/recommend/models/hide_consequence_object.py index 0b69d6525..af1695adc 100644 --- a/algoliasearch/recommend/models/hide_consequence_object.py +++ b/algoliasearch/recommend/models/hide_consequence_object.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/highlight_result_option.py b/algoliasearch/recommend/models/highlight_result_option.py index 03a337f15..068bcd271 100644 --- a/algoliasearch/recommend/models/highlight_result_option.py +++ b/algoliasearch/recommend/models/highlight_result_option.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/index_settings_facets.py b/algoliasearch/recommend/models/index_settings_facets.py index 6229ef008..36a7a4390 100644 --- a/algoliasearch/recommend/models/index_settings_facets.py +++ b/algoliasearch/recommend/models/index_settings_facets.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/looking_similar_query.py b/algoliasearch/recommend/models/looking_similar_query.py index 2c79b8901..faae3a3ca 100644 --- a/algoliasearch/recommend/models/looking_similar_query.py +++ b/algoliasearch/recommend/models/looking_similar_query.py @@ -81,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/matched_geo_location.py b/algoliasearch/recommend/models/matched_geo_location.py index 2a9712b57..94c88ca7e 100644 --- a/algoliasearch/recommend/models/matched_geo_location.py +++ b/algoliasearch/recommend/models/matched_geo_location.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/params_consequence.py b/algoliasearch/recommend/models/params_consequence.py index 34fc82ced..ff2920e86 100644 --- a/algoliasearch/recommend/models/params_consequence.py +++ b/algoliasearch/recommend/models/params_consequence.py @@ -67,6 +67,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.automatic_facet_filters: diff --git a/algoliasearch/recommend/models/personalization.py b/algoliasearch/recommend/models/personalization.py index 93d8e8183..81aafb7ca 100644 --- a/algoliasearch/recommend/models/personalization.py +++ b/algoliasearch/recommend/models/personalization.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/promote_consequence_object.py b/algoliasearch/recommend/models/promote_consequence_object.py index 008816efc..05942e6e9 100644 --- a/algoliasearch/recommend/models/promote_consequence_object.py +++ b/algoliasearch/recommend/models/promote_consequence_object.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/range.py b/algoliasearch/recommend/models/range.py index c8ed5ff6e..14f3b0086 100644 --- a/algoliasearch/recommend/models/range.py +++ b/algoliasearch/recommend/models/range.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/ranking_info.py b/algoliasearch/recommend/models/ranking_info.py index 05a8947b8..4c45b6781 100644 --- a/algoliasearch/recommend/models/ranking_info.py +++ b/algoliasearch/recommend/models/ranking_info.py @@ -101,6 +101,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.matched_geo_location: _dict["matchedGeoLocation"] = self.matched_geo_location.to_dict() diff --git a/algoliasearch/recommend/models/recommend_hit.py b/algoliasearch/recommend/models/recommend_hit.py index 3193386d2..6b45893c7 100644 --- a/algoliasearch/recommend/models/recommend_hit.py +++ b/algoliasearch/recommend/models/recommend_hit.py @@ -86,6 +86,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.highlight_result: diff --git a/algoliasearch/recommend/models/recommend_rule.py b/algoliasearch/recommend/models/recommend_rule.py index dbf671e69..5bca4b0de 100644 --- a/algoliasearch/recommend/models/recommend_rule.py +++ b/algoliasearch/recommend/models/recommend_rule.py @@ -71,6 +71,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.metadata: _dict["_metadata"] = self.metadata.to_dict() diff --git a/algoliasearch/recommend/models/recommend_search_params.py b/algoliasearch/recommend/models/recommend_search_params.py index 6c55e9ade..49aea2fd0 100644 --- a/algoliasearch/recommend/models/recommend_search_params.py +++ b/algoliasearch/recommend/models/recommend_search_params.py @@ -469,6 +469,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/recommend/models/recommendations_results.py b/algoliasearch/recommend/models/recommendations_results.py index b5ed604ea..488037c2b 100644 --- a/algoliasearch/recommend/models/recommendations_results.py +++ b/algoliasearch/recommend/models/recommendations_results.py @@ -197,6 +197,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.exhaustive: _dict["exhaustive"] = self.exhaustive.to_dict() diff --git a/algoliasearch/recommend/models/recommended_for_you_query.py b/algoliasearch/recommend/models/recommended_for_you_query.py index 20571aec7..c8984ffdf 100644 --- a/algoliasearch/recommend/models/recommended_for_you_query.py +++ b/algoliasearch/recommend/models/recommended_for_you_query.py @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/redirect.py b/algoliasearch/recommend/models/redirect.py index a3dbaaa27..a262033f5 100644 --- a/algoliasearch/recommend/models/redirect.py +++ b/algoliasearch/recommend/models/redirect.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.index: diff --git a/algoliasearch/recommend/models/redirect_rule_index_data.py b/algoliasearch/recommend/models/redirect_rule_index_data.py index 57c1cab8d..799354cc7 100644 --- a/algoliasearch/recommend/models/redirect_rule_index_data.py +++ b/algoliasearch/recommend/models/redirect_rule_index_data.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/redirect_rule_index_metadata.py b/algoliasearch/recommend/models/redirect_rule_index_metadata.py index 17110d488..b9cd13da5 100644 --- a/algoliasearch/recommend/models/redirect_rule_index_metadata.py +++ b/algoliasearch/recommend/models/redirect_rule_index_metadata.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.data: _dict["data"] = self.data.to_dict() diff --git a/algoliasearch/recommend/models/redirect_url.py b/algoliasearch/recommend/models/redirect_url.py index e529660d6..8adefe638 100644 --- a/algoliasearch/recommend/models/redirect_url.py +++ b/algoliasearch/recommend/models/redirect_url.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/related_query.py b/algoliasearch/recommend/models/related_query.py index 90e7f8066..76b447d91 100644 --- a/algoliasearch/recommend/models/related_query.py +++ b/algoliasearch/recommend/models/related_query.py @@ -81,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/rendering_content.py b/algoliasearch/recommend/models/rendering_content.py index addc4a319..7d9be7d7c 100644 --- a/algoliasearch/recommend/models/rendering_content.py +++ b/algoliasearch/recommend/models/rendering_content.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_ordering: _dict["facetOrdering"] = self.facet_ordering.to_dict() diff --git a/algoliasearch/recommend/models/rule_metadata.py b/algoliasearch/recommend/models/rule_metadata.py index 0d7adca98..4c631a965 100644 --- a/algoliasearch/recommend/models/rule_metadata.py +++ b/algoliasearch/recommend/models/rule_metadata.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/search_recommend_rules_params.py b/algoliasearch/recommend/models/search_recommend_rules_params.py index 39e78d7da..e0e0754ff 100644 --- a/algoliasearch/recommend/models/search_recommend_rules_params.py +++ b/algoliasearch/recommend/models/search_recommend_rules_params.py @@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/search_recommend_rules_response.py b/algoliasearch/recommend/models/search_recommend_rules_response.py index ee9423a73..aa1059403 100644 --- a/algoliasearch/recommend/models/search_recommend_rules_response.py +++ b/algoliasearch/recommend/models/search_recommend_rules_response.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/recommend/models/snippet_result_option.py b/algoliasearch/recommend/models/snippet_result_option.py index b8ca8981d..82bcf53ff 100644 --- a/algoliasearch/recommend/models/snippet_result_option.py +++ b/algoliasearch/recommend/models/snippet_result_option.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/trending_facet_hit.py b/algoliasearch/recommend/models/trending_facet_hit.py index 674f8a691..e96f9bf9a 100644 --- a/algoliasearch/recommend/models/trending_facet_hit.py +++ b/algoliasearch/recommend/models/trending_facet_hit.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/recommend/models/trending_facets_query.py b/algoliasearch/recommend/models/trending_facets_query.py index d5db82f1d..d5ed90065 100644 --- a/algoliasearch/recommend/models/trending_facets_query.py +++ b/algoliasearch/recommend/models/trending_facets_query.py @@ -82,6 +82,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/trending_items_query.py b/algoliasearch/recommend/models/trending_items_query.py index 30ace3e2c..9193a1372 100644 --- a/algoliasearch/recommend/models/trending_items_query.py +++ b/algoliasearch/recommend/models/trending_items_query.py @@ -88,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.query_parameters: _dict["queryParameters"] = self.query_parameters.to_dict() diff --git a/algoliasearch/recommend/models/value.py b/algoliasearch/recommend/models/value.py index 4d4ee7768..6a796454a 100644 --- a/algoliasearch/recommend/models/value.py +++ b/algoliasearch/recommend/models/value.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/add_api_key_response.py b/algoliasearch/search/models/add_api_key_response.py index 205af97b5..abe827891 100644 --- a/algoliasearch/search/models/add_api_key_response.py +++ b/algoliasearch/search/models/add_api_key_response.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/api_key.py b/algoliasearch/search/models/api_key.py index af0a15d68..4b0d89fbe 100644 --- a/algoliasearch/search/models/api_key.py +++ b/algoliasearch/search/models/api_key.py @@ -87,6 +87,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/assign_user_id_params.py b/algoliasearch/search/models/assign_user_id_params.py index 2c0f2d4c8..67421acc4 100644 --- a/algoliasearch/search/models/assign_user_id_params.py +++ b/algoliasearch/search/models/assign_user_id_params.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/automatic_facet_filter.py b/algoliasearch/search/models/automatic_facet_filter.py index d8a246449..c0c1120d5 100644 --- a/algoliasearch/search/models/automatic_facet_filter.py +++ b/algoliasearch/search/models/automatic_facet_filter.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/batch_assign_user_ids_params.py b/algoliasearch/search/models/batch_assign_user_ids_params.py index cb6b08f74..4d79fafdd 100644 --- a/algoliasearch/search/models/batch_assign_user_ids_params.py +++ b/algoliasearch/search/models/batch_assign_user_ids_params.py @@ -52,6 +52,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/batch_dictionary_entries_params.py b/algoliasearch/search/models/batch_dictionary_entries_params.py index 9b7531191..32ddcad45 100644 --- a/algoliasearch/search/models/batch_dictionary_entries_params.py +++ b/algoliasearch/search/models/batch_dictionary_entries_params.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/search/models/batch_dictionary_entries_request.py b/algoliasearch/search/models/batch_dictionary_entries_request.py index 223d82a42..00679db65 100644 --- a/algoliasearch/search/models/batch_dictionary_entries_request.py +++ b/algoliasearch/search/models/batch_dictionary_entries_request.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.body: _dict["body"] = self.body.to_dict() diff --git a/algoliasearch/search/models/batch_params.py b/algoliasearch/search/models/batch_params.py index d261cd8e5..90cca9fef 100644 --- a/algoliasearch/search/models/batch_params.py +++ b/algoliasearch/search/models/batch_params.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/search/models/batch_request.py b/algoliasearch/search/models/batch_request.py index d51b997fe..2093e9840 100644 --- a/algoliasearch/search/models/batch_request.py +++ b/algoliasearch/search/models/batch_request.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/batch_response.py b/algoliasearch/search/models/batch_response.py index ec3145c37..e6ae58d88 100644 --- a/algoliasearch/search/models/batch_response.py +++ b/algoliasearch/search/models/batch_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/batch_write_params.py b/algoliasearch/search/models/batch_write_params.py index 82575d6a1..b82912b73 100644 --- a/algoliasearch/search/models/batch_write_params.py +++ b/algoliasearch/search/models/batch_write_params.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/search/models/browse_params_object.py b/algoliasearch/search/models/browse_params_object.py index c08174990..f46a8687d 100644 --- a/algoliasearch/search/models/browse_params_object.py +++ b/algoliasearch/search/models/browse_params_object.py @@ -414,6 +414,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/browse_response.py b/algoliasearch/search/models/browse_response.py index 49e9ca37c..3d7f40ad3 100644 --- a/algoliasearch/search/models/browse_response.py +++ b/algoliasearch/search/models/browse_response.py @@ -207,6 +207,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.exhaustive: _dict["exhaustive"] = self.exhaustive.to_dict() diff --git a/algoliasearch/search/models/built_in_operation.py b/algoliasearch/search/models/built_in_operation.py index 8b4af0c66..60fbf6d43 100644 --- a/algoliasearch/search/models/built_in_operation.py +++ b/algoliasearch/search/models/built_in_operation.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.value: _dict["value"] = self.value.to_dict() diff --git a/algoliasearch/search/models/condition.py b/algoliasearch/search/models/condition.py index 901305148..aae410955 100644 --- a/algoliasearch/search/models/condition.py +++ b/algoliasearch/search/models/condition.py @@ -88,6 +88,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/consequence.py b/algoliasearch/search/models/consequence.py index 074ef72c9..660b7c6e3 100644 --- a/algoliasearch/search/models/consequence.py +++ b/algoliasearch/search/models/consequence.py @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.params: _dict["params"] = self.params.to_dict() diff --git a/algoliasearch/search/models/consequence_hide.py b/algoliasearch/search/models/consequence_hide.py index 53f5f9bee..0f81da9f4 100644 --- a/algoliasearch/search/models/consequence_hide.py +++ b/algoliasearch/search/models/consequence_hide.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/consequence_params.py b/algoliasearch/search/models/consequence_params.py index 0fd28d99b..d04ae8ce3 100644 --- a/algoliasearch/search/models/consequence_params.py +++ b/algoliasearch/search/models/consequence_params.py @@ -418,6 +418,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/consequence_query_object.py b/algoliasearch/search/models/consequence_query_object.py index d98331f87..2d3d3dfcf 100644 --- a/algoliasearch/search/models/consequence_query_object.py +++ b/algoliasearch/search/models/consequence_query_object.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.edits: diff --git a/algoliasearch/search/models/created_at_response.py b/algoliasearch/search/models/created_at_response.py index 7434b4b0a..5eb22e51d 100644 --- a/algoliasearch/search/models/created_at_response.py +++ b/algoliasearch/search/models/created_at_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/delete_api_key_response.py b/algoliasearch/search/models/delete_api_key_response.py index 26fe4a767..73eafbf67 100644 --- a/algoliasearch/search/models/delete_api_key_response.py +++ b/algoliasearch/search/models/delete_api_key_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/delete_by_params.py b/algoliasearch/search/models/delete_by_params.py index 146886b9e..b720074eb 100644 --- a/algoliasearch/search/models/delete_by_params.py +++ b/algoliasearch/search/models/delete_by_params.py @@ -94,6 +94,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/delete_source_response.py b/algoliasearch/search/models/delete_source_response.py index 38c6846cb..f3444ce8a 100644 --- a/algoliasearch/search/models/delete_source_response.py +++ b/algoliasearch/search/models/delete_source_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/deleted_at_response.py b/algoliasearch/search/models/deleted_at_response.py index 4b7d1198f..90f192f86 100644 --- a/algoliasearch/search/models/deleted_at_response.py +++ b/algoliasearch/search/models/deleted_at_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/dictionary_entry.py b/algoliasearch/search/models/dictionary_entry.py index c5e7338d8..d234fe55a 100644 --- a/algoliasearch/search/models/dictionary_entry.py +++ b/algoliasearch/search/models/dictionary_entry.py @@ -86,6 +86,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/search/models/dictionary_language.py b/algoliasearch/search/models/dictionary_language.py index 7598b2a05..007d456e1 100644 --- a/algoliasearch/search/models/dictionary_language.py +++ b/algoliasearch/search/models/dictionary_language.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/dictionary_settings_params.py b/algoliasearch/search/models/dictionary_settings_params.py index d2b1c0a92..451b80f49 100644 --- a/algoliasearch/search/models/dictionary_settings_params.py +++ b/algoliasearch/search/models/dictionary_settings_params.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.disable_standard_entries: _dict["disableStandardEntries"] = self.disable_standard_entries.to_dict() diff --git a/algoliasearch/search/models/edit.py b/algoliasearch/search/models/edit.py index 31fa60cc1..18f70e1fb 100644 --- a/algoliasearch/search/models/edit.py +++ b/algoliasearch/search/models/edit.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/error_base.py b/algoliasearch/search/models/error_base.py index c06b0dc41..4317b330d 100644 --- a/algoliasearch/search/models/error_base.py +++ b/algoliasearch/search/models/error_base.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) # puts key-value pairs in additional_properties in the top level if self.additional_properties is not None: diff --git a/algoliasearch/search/models/exhaustive.py b/algoliasearch/search/models/exhaustive.py index e5526d7c2..008f6f857 100644 --- a/algoliasearch/search/models/exhaustive.py +++ b/algoliasearch/search/models/exhaustive.py @@ -74,6 +74,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/facet_hits.py b/algoliasearch/search/models/facet_hits.py index 087f16226..b5dcdb0bd 100644 --- a/algoliasearch/search/models/facet_hits.py +++ b/algoliasearch/search/models/facet_hits.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/facet_ordering.py b/algoliasearch/search/models/facet_ordering.py index c226be237..939fb7a1b 100644 --- a/algoliasearch/search/models/facet_ordering.py +++ b/algoliasearch/search/models/facet_ordering.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facets: _dict["facets"] = self.facets.to_dict() diff --git a/algoliasearch/search/models/facet_stats.py b/algoliasearch/search/models/facet_stats.py index 3a44ead8f..2747ff786 100644 --- a/algoliasearch/search/models/facet_stats.py +++ b/algoliasearch/search/models/facet_stats.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/facets.py b/algoliasearch/search/models/facets.py index 3e47bb2db..a284da9b6 100644 --- a/algoliasearch/search/models/facets.py +++ b/algoliasearch/search/models/facets.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/fetched_index.py b/algoliasearch/search/models/fetched_index.py index 843f84bb7..a92822bdc 100644 --- a/algoliasearch/search/models/fetched_index.py +++ b/algoliasearch/search/models/fetched_index.py @@ -89,6 +89,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/get_api_key_response.py b/algoliasearch/search/models/get_api_key_response.py index 8bd1d44ff..6112c53df 100644 --- a/algoliasearch/search/models/get_api_key_response.py +++ b/algoliasearch/search/models/get_api_key_response.py @@ -92,6 +92,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/get_dictionary_settings_response.py b/algoliasearch/search/models/get_dictionary_settings_response.py index 44c0ccb04..68bbd9ef7 100644 --- a/algoliasearch/search/models/get_dictionary_settings_response.py +++ b/algoliasearch/search/models/get_dictionary_settings_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.disable_standard_entries: _dict["disableStandardEntries"] = self.disable_standard_entries.to_dict() diff --git a/algoliasearch/search/models/get_logs_response.py b/algoliasearch/search/models/get_logs_response.py index af3bba935..1adab9845 100644 --- a/algoliasearch/search/models/get_logs_response.py +++ b/algoliasearch/search/models/get_logs_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.logs: diff --git a/algoliasearch/search/models/get_objects_params.py b/algoliasearch/search/models/get_objects_params.py index 55cec8fb4..0527b3945 100644 --- a/algoliasearch/search/models/get_objects_params.py +++ b/algoliasearch/search/models/get_objects_params.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/search/models/get_objects_request.py b/algoliasearch/search/models/get_objects_request.py index cead1415d..5d010038b 100644 --- a/algoliasearch/search/models/get_objects_request.py +++ b/algoliasearch/search/models/get_objects_request.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/get_objects_response.py b/algoliasearch/search/models/get_objects_response.py index 4826ad553..6e55f54f9 100644 --- a/algoliasearch/search/models/get_objects_response.py +++ b/algoliasearch/search/models/get_objects_response.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/get_task_response.py b/algoliasearch/search/models/get_task_response.py index 38cce806b..900cb2007 100644 --- a/algoliasearch/search/models/get_task_response.py +++ b/algoliasearch/search/models/get_task_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/get_top_user_ids_response.py b/algoliasearch/search/models/get_top_user_ids_response.py index dca66cd8d..5f6822952 100644 --- a/algoliasearch/search/models/get_top_user_ids_response.py +++ b/algoliasearch/search/models/get_top_user_ids_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/has_pending_mappings_response.py b/algoliasearch/search/models/has_pending_mappings_response.py index eea7fcc33..0507e12d1 100644 --- a/algoliasearch/search/models/has_pending_mappings_response.py +++ b/algoliasearch/search/models/has_pending_mappings_response.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/highlight_result_option.py b/algoliasearch/search/models/highlight_result_option.py index bcc8484d4..32e833ede 100644 --- a/algoliasearch/search/models/highlight_result_option.py +++ b/algoliasearch/search/models/highlight_result_option.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/hit.py b/algoliasearch/search/models/hit.py index 1311d8a4d..c11ddda31 100644 --- a/algoliasearch/search/models/hit.py +++ b/algoliasearch/search/models/hit.py @@ -81,6 +81,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) _field_dict = {} if self.highlight_result: diff --git a/algoliasearch/search/models/index_settings.py b/algoliasearch/search/models/index_settings.py index 497c80589..08d4bf4fe 100644 --- a/algoliasearch/search/models/index_settings.py +++ b/algoliasearch/search/models/index_settings.py @@ -339,6 +339,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.typo_tolerance: _dict["typoTolerance"] = self.typo_tolerance.to_dict() diff --git a/algoliasearch/search/models/languages.py b/algoliasearch/search/models/languages.py index fb5663338..679ec6966 100644 --- a/algoliasearch/search/models/languages.py +++ b/algoliasearch/search/models/languages.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.plurals: _dict["plurals"] = self.plurals.to_dict() diff --git a/algoliasearch/search/models/list_api_keys_response.py b/algoliasearch/search/models/list_api_keys_response.py index abafe3df9..c26f776da 100644 --- a/algoliasearch/search/models/list_api_keys_response.py +++ b/algoliasearch/search/models/list_api_keys_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.keys: diff --git a/algoliasearch/search/models/list_clusters_response.py b/algoliasearch/search/models/list_clusters_response.py index e3968778d..9e3a3e7fb 100644 --- a/algoliasearch/search/models/list_clusters_response.py +++ b/algoliasearch/search/models/list_clusters_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/list_indices_response.py b/algoliasearch/search/models/list_indices_response.py index 7c7b9459c..f12b8d8f2 100644 --- a/algoliasearch/search/models/list_indices_response.py +++ b/algoliasearch/search/models/list_indices_response.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.items: diff --git a/algoliasearch/search/models/list_user_ids_response.py b/algoliasearch/search/models/list_user_ids_response.py index 0ae20f4fd..d1c7fbc15 100644 --- a/algoliasearch/search/models/list_user_ids_response.py +++ b/algoliasearch/search/models/list_user_ids_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.user_ids: diff --git a/algoliasearch/search/models/log.py b/algoliasearch/search/models/log.py index f5638aa4b..fcd103e1e 100644 --- a/algoliasearch/search/models/log.py +++ b/algoliasearch/search/models/log.py @@ -91,6 +91,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.inner_queries: diff --git a/algoliasearch/search/models/log_query.py b/algoliasearch/search/models/log_query.py index ffddf8026..c78ed0c83 100644 --- a/algoliasearch/search/models/log_query.py +++ b/algoliasearch/search/models/log_query.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/matched_geo_location.py b/algoliasearch/search/models/matched_geo_location.py index 2a9712b57..94c88ca7e 100644 --- a/algoliasearch/search/models/matched_geo_location.py +++ b/algoliasearch/search/models/matched_geo_location.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/multiple_batch_request.py b/algoliasearch/search/models/multiple_batch_request.py index 5e9ed2614..3d24319dd 100644 --- a/algoliasearch/search/models/multiple_batch_request.py +++ b/algoliasearch/search/models/multiple_batch_request.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/multiple_batch_response.py b/algoliasearch/search/models/multiple_batch_response.py index c26880ece..a4d35195a 100644 --- a/algoliasearch/search/models/multiple_batch_response.py +++ b/algoliasearch/search/models/multiple_batch_response.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/operation_index_params.py b/algoliasearch/search/models/operation_index_params.py index 747d7b9b1..4b1ee094f 100644 --- a/algoliasearch/search/models/operation_index_params.py +++ b/algoliasearch/search/models/operation_index_params.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/personalization.py b/algoliasearch/search/models/personalization.py index 93d8e8183..81aafb7ca 100644 --- a/algoliasearch/search/models/personalization.py +++ b/algoliasearch/search/models/personalization.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/promote_object_id.py b/algoliasearch/search/models/promote_object_id.py index 003bb1c3b..c8655d9c7 100644 --- a/algoliasearch/search/models/promote_object_id.py +++ b/algoliasearch/search/models/promote_object_id.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/promote_object_ids.py b/algoliasearch/search/models/promote_object_ids.py index b050fa05b..a784e5c09 100644 --- a/algoliasearch/search/models/promote_object_ids.py +++ b/algoliasearch/search/models/promote_object_ids.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/range.py b/algoliasearch/search/models/range.py index c8ed5ff6e..14f3b0086 100644 --- a/algoliasearch/search/models/range.py +++ b/algoliasearch/search/models/range.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/ranking_info.py b/algoliasearch/search/models/ranking_info.py index e0ece6a71..4e33b8b00 100644 --- a/algoliasearch/search/models/ranking_info.py +++ b/algoliasearch/search/models/ranking_info.py @@ -101,6 +101,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.matched_geo_location: _dict["matchedGeoLocation"] = self.matched_geo_location.to_dict() diff --git a/algoliasearch/search/models/redirect.py b/algoliasearch/search/models/redirect.py index bb86baeb9..16a754450 100644 --- a/algoliasearch/search/models/redirect.py +++ b/algoliasearch/search/models/redirect.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.index: diff --git a/algoliasearch/search/models/redirect_rule_index_data.py b/algoliasearch/search/models/redirect_rule_index_data.py index 57c1cab8d..799354cc7 100644 --- a/algoliasearch/search/models/redirect_rule_index_data.py +++ b/algoliasearch/search/models/redirect_rule_index_data.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/redirect_rule_index_metadata.py b/algoliasearch/search/models/redirect_rule_index_metadata.py index 516e22297..2a2e80a1d 100644 --- a/algoliasearch/search/models/redirect_rule_index_metadata.py +++ b/algoliasearch/search/models/redirect_rule_index_metadata.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.data: _dict["data"] = self.data.to_dict() diff --git a/algoliasearch/search/models/redirect_url.py b/algoliasearch/search/models/redirect_url.py index e529660d6..8adefe638 100644 --- a/algoliasearch/search/models/redirect_url.py +++ b/algoliasearch/search/models/redirect_url.py @@ -51,6 +51,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/remove_user_id_response.py b/algoliasearch/search/models/remove_user_id_response.py index 420ca60e0..fe40d2b79 100644 --- a/algoliasearch/search/models/remove_user_id_response.py +++ b/algoliasearch/search/models/remove_user_id_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/rendering_content.py b/algoliasearch/search/models/rendering_content.py index 4211d3c06..1c76d413a 100644 --- a/algoliasearch/search/models/rendering_content.py +++ b/algoliasearch/search/models/rendering_content.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_ordering: _dict["facetOrdering"] = self.facet_ordering.to_dict() diff --git a/algoliasearch/search/models/replace_all_objects_response.py b/algoliasearch/search/models/replace_all_objects_response.py index 7827acda2..7b2a82905 100644 --- a/algoliasearch/search/models/replace_all_objects_response.py +++ b/algoliasearch/search/models/replace_all_objects_response.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.copy_operation_response: _dict["copyOperationResponse"] = self.copy_operation_response.to_dict() diff --git a/algoliasearch/search/models/replace_source_response.py b/algoliasearch/search/models/replace_source_response.py index 99e203762..27ae85ad8 100644 --- a/algoliasearch/search/models/replace_source_response.py +++ b/algoliasearch/search/models/replace_source_response.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/rule.py b/algoliasearch/search/models/rule.py index 2ba03141a..87f448cb5 100644 --- a/algoliasearch/search/models/rule.py +++ b/algoliasearch/search/models/rule.py @@ -75,6 +75,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.conditions: diff --git a/algoliasearch/search/models/save_object_response.py b/algoliasearch/search/models/save_object_response.py index 58394e5f4..2ba06b852 100644 --- a/algoliasearch/search/models/save_object_response.py +++ b/algoliasearch/search/models/save_object_response.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/save_synonym_response.py b/algoliasearch/search/models/save_synonym_response.py index 683957f4a..4bba0f73a 100644 --- a/algoliasearch/search/models/save_synonym_response.py +++ b/algoliasearch/search/models/save_synonym_response.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_dictionary_entries_params.py b/algoliasearch/search/models/search_dictionary_entries_params.py index b01c1cdf7..0641fa468 100644 --- a/algoliasearch/search/models/search_dictionary_entries_params.py +++ b/algoliasearch/search/models/search_dictionary_entries_params.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_dictionary_entries_response.py b/algoliasearch/search/models/search_dictionary_entries_response.py index 30b6898f2..d048f8e42 100644 --- a/algoliasearch/search/models/search_dictionary_entries_response.py +++ b/algoliasearch/search/models/search_dictionary_entries_response.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/search/models/search_for_facet_values_request.py b/algoliasearch/search/models/search_for_facet_values_request.py index bb57015a6..7f6ab57fd 100644 --- a/algoliasearch/search/models/search_for_facet_values_request.py +++ b/algoliasearch/search/models/search_for_facet_values_request.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_for_facet_values_response.py b/algoliasearch/search/models/search_for_facet_values_response.py index b20dbae78..32c49e73c 100644 --- a/algoliasearch/search/models/search_for_facet_values_response.py +++ b/algoliasearch/search/models/search_for_facet_values_response.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.facet_hits: diff --git a/algoliasearch/search/models/search_for_facets.py b/algoliasearch/search/models/search_for_facets.py index 4d4f393c5..a32ea27ba 100644 --- a/algoliasearch/search/models/search_for_facets.py +++ b/algoliasearch/search/models/search_for_facets.py @@ -424,6 +424,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/search_for_hits.py b/algoliasearch/search/models/search_for_hits.py index 91176d047..d454eab52 100644 --- a/algoliasearch/search/models/search_for_hits.py +++ b/algoliasearch/search/models/search_for_hits.py @@ -418,6 +418,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/search_method_params.py b/algoliasearch/search/models/search_method_params.py index 3a499f46c..d184f8928 100644 --- a/algoliasearch/search/models/search_method_params.py +++ b/algoliasearch/search/models/search_method_params.py @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.requests: diff --git a/algoliasearch/search/models/search_params_object.py b/algoliasearch/search/models/search_params_object.py index cf1320be6..4cffcbeb8 100644 --- a/algoliasearch/search/models/search_params_object.py +++ b/algoliasearch/search/models/search_params_object.py @@ -410,6 +410,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.facet_filters: _dict["facetFilters"] = self.facet_filters.to_dict() diff --git a/algoliasearch/search/models/search_params_string.py b/algoliasearch/search/models/search_params_string.py index d7925f94e..f9554400c 100644 --- a/algoliasearch/search/models/search_params_string.py +++ b/algoliasearch/search/models/search_params_string.py @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_response.py b/algoliasearch/search/models/search_response.py index c599262b8..caa0a1494 100644 --- a/algoliasearch/search/models/search_response.py +++ b/algoliasearch/search/models/search_response.py @@ -241,6 +241,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) if self.exhaustive: _dict["exhaustive"] = self.exhaustive.to_dict() diff --git a/algoliasearch/search/models/search_responses.py b/algoliasearch/search/models/search_responses.py index d484b8b0f..746f30292 100644 --- a/algoliasearch/search/models/search_responses.py +++ b/algoliasearch/search/models/search_responses.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.results: diff --git a/algoliasearch/search/models/search_rules_params.py b/algoliasearch/search/models/search_rules_params.py index 93a9060b3..2e4dc6b2e 100644 --- a/algoliasearch/search/models/search_rules_params.py +++ b/algoliasearch/search/models/search_rules_params.py @@ -71,6 +71,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_rules_response.py b/algoliasearch/search/models/search_rules_response.py index 990f5ddcb..2593e1804 100644 --- a/algoliasearch/search/models/search_rules_response.py +++ b/algoliasearch/search/models/search_rules_response.py @@ -59,6 +59,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/search/models/search_synonyms_params.py b/algoliasearch/search/models/search_synonyms_params.py index dd8783e36..b8516a234 100644 --- a/algoliasearch/search/models/search_synonyms_params.py +++ b/algoliasearch/search/models/search_synonyms_params.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_synonyms_response.py b/algoliasearch/search/models/search_synonyms_response.py index a3aebc9aa..e4f0c4f5b 100644 --- a/algoliasearch/search/models/search_synonyms_response.py +++ b/algoliasearch/search/models/search_synonyms_response.py @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]: "additional_properties", }, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/search/models/search_user_ids_params.py b/algoliasearch/search/models/search_user_ids_params.py index 567e94405..5a81b4307 100644 --- a/algoliasearch/search/models/search_user_ids_params.py +++ b/algoliasearch/search/models/search_user_ids_params.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/search_user_ids_response.py b/algoliasearch/search/models/search_user_ids_response.py index c0ec24e49..d4dd54026 100644 --- a/algoliasearch/search/models/search_user_ids_response.py +++ b/algoliasearch/search/models/search_user_ids_response.py @@ -65,6 +65,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) _items = [] if self.hits: diff --git a/algoliasearch/search/models/secured_api_key_restrictions.py b/algoliasearch/search/models/secured_api_key_restrictions.py index 06a0f0e32..2e33a2f8f 100644 --- a/algoliasearch/search/models/secured_api_key_restrictions.py +++ b/algoliasearch/search/models/secured_api_key_restrictions.py @@ -80,6 +80,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.search_params: _dict["searchParams"] = self.search_params.to_dict() diff --git a/algoliasearch/search/models/semantic_search.py b/algoliasearch/search/models/semantic_search.py index 6d67755d9..8a91b3662 100644 --- a/algoliasearch/search/models/semantic_search.py +++ b/algoliasearch/search/models/semantic_search.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/settings_response.py b/algoliasearch/search/models/settings_response.py index 98a0ec9b6..66f6eeebe 100644 --- a/algoliasearch/search/models/settings_response.py +++ b/algoliasearch/search/models/settings_response.py @@ -343,6 +343,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.typo_tolerance: _dict["typoTolerance"] = self.typo_tolerance.to_dict() diff --git a/algoliasearch/search/models/snippet_result_option.py b/algoliasearch/search/models/snippet_result_option.py index 210568f9b..580984d30 100644 --- a/algoliasearch/search/models/snippet_result_option.py +++ b/algoliasearch/search/models/snippet_result_option.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/source.py b/algoliasearch/search/models/source.py index 1aecfaa66..ddf446d11 100644 --- a/algoliasearch/search/models/source.py +++ b/algoliasearch/search/models/source.py @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/standard_entries.py b/algoliasearch/search/models/standard_entries.py index 4c51ed189..5e25c5944 100644 --- a/algoliasearch/search/models/standard_entries.py +++ b/algoliasearch/search/models/standard_entries.py @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/synonym_hit.py b/algoliasearch/search/models/synonym_hit.py index 22f8ed16c..b7d253592 100644 --- a/algoliasearch/search/models/synonym_hit.py +++ b/algoliasearch/search/models/synonym_hit.py @@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/time_range.py b/algoliasearch/search/models/time_range.py index f7f32f6b4..f6c5643cb 100644 --- a/algoliasearch/search/models/time_range.py +++ b/algoliasearch/search/models/time_range.py @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/update_api_key_response.py b/algoliasearch/search/models/update_api_key_response.py index ae2fb45be..fc0f05f51 100644 --- a/algoliasearch/search/models/update_api_key_response.py +++ b/algoliasearch/search/models/update_api_key_response.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/updated_at_response.py b/algoliasearch/search/models/updated_at_response.py index 215e2272d..eb53f329c 100644 --- a/algoliasearch/search/models/updated_at_response.py +++ b/algoliasearch/search/models/updated_at_response.py @@ -58,6 +58,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/updated_at_with_object_id_response.py b/algoliasearch/search/models/updated_at_with_object_id_response.py index 7ae8f7b5c..51ffde629 100644 --- a/algoliasearch/search/models/updated_at_with_object_id_response.py +++ b/algoliasearch/search/models/updated_at_with_object_id_response.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/updated_rule_response.py b/algoliasearch/search/models/updated_rule_response.py index a006fce4d..afc339110 100644 --- a/algoliasearch/search/models/updated_rule_response.py +++ b/algoliasearch/search/models/updated_rule_response.py @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/user_highlight_result.py b/algoliasearch/search/models/user_highlight_result.py index 49ca90296..a699d4373 100644 --- a/algoliasearch/search/models/user_highlight_result.py +++ b/algoliasearch/search/models/user_highlight_result.py @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.user_id: _dict["userID"] = self.user_id.to_dict() diff --git a/algoliasearch/search/models/user_hit.py b/algoliasearch/search/models/user_hit.py index a85672a1c..d612e223b 100644 --- a/algoliasearch/search/models/user_hit.py +++ b/algoliasearch/search/models/user_hit.py @@ -79,6 +79,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) if self.highlight_result: _dict["_highlightResult"] = self.highlight_result.to_dict() diff --git a/algoliasearch/search/models/user_id.py b/algoliasearch/search/models/user_id.py index 18c4f4d55..5631d8a57 100644 --- a/algoliasearch/search/models/user_id.py +++ b/algoliasearch/search/models/user_id.py @@ -73,6 +73,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict diff --git a/algoliasearch/search/models/value.py b/algoliasearch/search/models/value.py index 7fe826f75..0c214a8fb 100644 --- a/algoliasearch/search/models/value.py +++ b/algoliasearch/search/models/value.py @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]: by_alias=True, exclude={}, exclude_none=True, + exclude_unset=True, ) return _dict