Working on all the routes, methods, and models.
This commit is contained in:
@@ -36,6 +36,8 @@ def create_hosted_file_obj(hosted_file_obj_new:Hosted_File_Base):
|
||||
def load_hosted_file_obj(
|
||||
hosted_file_id: int|str,
|
||||
limit: int = 1000,
|
||||
by_alias: bool = True,
|
||||
exclude_unset: bool = True,
|
||||
model_as_dict: bool = False,
|
||||
enabled: str = 'enabled', # enabled, disabled, all
|
||||
inc_hosted_file_link_list: bool = False,
|
||||
@@ -68,7 +70,7 @@ def load_hosted_file_obj(
|
||||
# else: hosted_file_obj.x = None
|
||||
|
||||
if model_as_dict:
|
||||
return hosted_file_obj.dict(by_alias=True, exclude_unset=True) # pylint: disable=no-member
|
||||
return hosted_file_obj.dict(by_alias=by_alias, exclude_unset=exclude_unset) # pylint: disable=no-member
|
||||
else:
|
||||
return hosted_file_obj
|
||||
# ### END ### API Hosted File Methods ### load_hosted_file_obj() ###
|
||||
|
||||
Reference in New Issue
Block a user