Skip to content

Commit

Permalink
fix(python): exclude unset API values on model dump (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3777

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
  • Loading branch information
algolia-bot and shortcuts committed Sep 19, 2024
1 parent 50939c2 commit 812fbc0
Show file tree
Hide file tree
Showing 364 changed files with 364 additions and 0 deletions.
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/ab_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/ab_test_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/ab_test_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/ab_tests_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/add_ab_tests_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/currency.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/empty_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/empty_search_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/error_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/filter_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/list_ab_tests_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/outliers_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/abtesting/models/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/click_position.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/currency_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_add_to_cart_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_average_clicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_conversion_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_no_click_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_no_results_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_purchase_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_searches.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_searches_no_clicks.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/daily_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/error_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/get_revenue.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/get_status_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions algoliasearch/analytics/models/get_top_filter_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def to_dict(self) -> Dict[str, Any]:
by_alias=True,
exclude={},
exclude_none=True,
exclude_unset=True,
)
return _dict

Expand Down
Loading

0 comments on commit 812fbc0

Please sign in to comment.