@@ -6082,8 +6082,9 @@ def delete_representation(
60826082 )
60836083
60846084
6085- def get_workfiles_info (
6085+ def get_workfile_entities (
60866086 project_name : str ,
6087+ * ,
60876088 workfile_ids : Optional [Iterable [str ]] = None ,
60886089 task_ids : Optional [Iterable [str ]] = None ,
60896090 paths : Optional [Iterable [str ]] = None ,
@@ -6092,7 +6093,6 @@ def get_workfiles_info(
60926093 tags : Optional [Iterable [str ]] = None ,
60936094 has_links : Optional [str ] = None ,
60946095 fields : Optional [Iterable [str ]] = None ,
6095- own_attributes = _PLACEHOLDER ,
60966096) -> Generator [WorkfileInfoDict , None , None ]:
60976097 """Workfile info entities by passed filters.
60986098
@@ -6111,16 +6111,14 @@ def get_workfiles_info(
61116111 fields (Optional[Iterable[str]]): Fields to be queried for
61126112 representation. All possible fields are returned if 'None' is
61136113 passed.
6114- own_attributes (Optional[bool]): DEPRECATED: Not supported for
6115- workfiles.
61166114
61176115 Returns:
61186116 Generator[WorkfileInfoDict, None, None]: Queried workfile info
61196117 entites.
61206118
61216119 """
61226120 con = get_server_api_connection ()
6123- return con .get_workfiles_info (
6121+ return con .get_workfile_entities (
61246122 project_name = project_name ,
61256123 workfile_ids = workfile_ids ,
61266124 task_ids = task_ids ,
@@ -6130,16 +6128,15 @@ def get_workfiles_info(
61306128 tags = tags ,
61316129 has_links = has_links ,
61326130 fields = fields ,
6133- own_attributes = own_attributes ,
61346131 )
61356132
61366133
6137- def get_workfile_info (
6134+ def get_workfile_entity (
61386135 project_name : str ,
61396136 task_id : str ,
61406137 path : str ,
6138+ * ,
61416139 fields : Optional [Iterable [str ]] = None ,
6142- own_attributes = _PLACEHOLDER ,
61436140) -> Optional [WorkfileInfoDict ]:
61446141 """Workfile info entity by task id and workfile path.
61456142
@@ -6150,28 +6147,25 @@ def get_workfile_info(
61506147 fields (Optional[Iterable[str]]): Fields to be queried for
61516148 representation. All possible fields are returned if 'None' is
61526149 passed.
6153- own_attributes (Optional[bool]): DEPRECATED: Not supported for
6154- workfiles.
61556150
61566151 Returns:
61576152 Optional[WorkfileInfoDict]: Workfile info entity or None.
61586153
61596154 """
61606155 con = get_server_api_connection ()
6161- return con .get_workfile_info (
6156+ return con .get_workfile_entity (
61626157 project_name = project_name ,
61636158 task_id = task_id ,
61646159 path = path ,
61656160 fields = fields ,
6166- own_attributes = own_attributes ,
61676161 )
61686162
61696163
6170- def get_workfile_info_by_id (
6164+ def get_workfile_entity_by_id (
61716165 project_name : str ,
61726166 workfile_id : str ,
6167+ * ,
61736168 fields : Optional [Iterable [str ]] = None ,
6174- own_attributes = _PLACEHOLDER ,
61756169) -> Optional [WorkfileInfoDict ]:
61766170 """Workfile info entity by id.
61776171
@@ -6181,19 +6175,16 @@ def get_workfile_info_by_id(
61816175 fields (Optional[Iterable[str]]): Fields to be queried for
61826176 representation. All possible fields are returned if 'None' is
61836177 passed.
6184- own_attributes (Optional[bool]): DEPRECATED: Not supported for
6185- workfiles.
61866178
61876179 Returns:
61886180 Optional[WorkfileInfoDict]: Workfile info entity or None.
61896181
61906182 """
61916183 con = get_server_api_connection ()
6192- return con .get_workfile_info_by_id (
6184+ return con .get_workfile_entity_by_id (
61936185 project_name = project_name ,
61946186 workfile_id = workfile_id ,
61956187 fields = fields ,
6196- own_attributes = own_attributes ,
61976188 )
61986189
61996190
@@ -6244,7 +6235,59 @@ def create_workfile_entity(
62446235 )
62456236
62466237
6247- def delete_workfile_info (
6238+ def update_workfile_entity (
6239+ project_name : str ,
6240+ workfile_id : str ,
6241+ * ,
6242+ path : Optional [str ] = None ,
6243+ task_id : Optional [str ] = None ,
6244+ attrib : Optional [dict [str , Any ]] = None ,
6245+ data : Optional [dict [str , Any ]] = None ,
6246+ tags : Optional [Iterable [str ]] = None ,
6247+ status : Optional [str ] = None ,
6248+ active : Optional [bool ] = None ,
6249+ thumbnail_id : Optional [str ] = NOT_SET ,
6250+ created_by : Optional [str ] = None ,
6251+ updated_by : Optional [str ] = None ,
6252+ ) -> None :
6253+ """Update workfile entity on server.
6254+
6255+ Update of ``attrib`` does change only passed attributes. If you want
6256+ to unset value, use ``None``.
6257+
6258+ Args:
6259+ project_name (str): Project name.
6260+ workfile_id (str): Workfile id.
6261+ path (Optional[str]): New rootless workfile path..
6262+ task_id (Optional[str]): New parent task id.
6263+ attrib (Optional[dict[str, Any]]): New attributes.
6264+ data (Optional[dict[str, Any]]): New data.
6265+ tags (Optional[Iterable[str]]): New tags.
6266+ status (Optional[str]): New status.
6267+ active (Optional[bool]): New active state.
6268+ thumbnail_id (Optional[str]): New thumbnail id.
6269+ created_by (Optional[str]): New created by username.
6270+ updated_by (Optional[str]): New updated by username.
6271+
6272+ """
6273+ con = get_server_api_connection ()
6274+ return con .update_workfile_entity (
6275+ project_name = project_name ,
6276+ workfile_id = workfile_id ,
6277+ path = path ,
6278+ task_id = task_id ,
6279+ attrib = attrib ,
6280+ data = data ,
6281+ tags = tags ,
6282+ status = status ,
6283+ active = active ,
6284+ thumbnail_id = thumbnail_id ,
6285+ created_by = created_by ,
6286+ updated_by = updated_by ,
6287+ )
6288+
6289+
6290+ def delete_workfile_entity (
62486291 project_name : str ,
62496292 workfile_id : str ,
62506293) -> None :
@@ -6256,12 +6299,127 @@ def delete_workfile_info(
62566299
62576300 """
62586301 con = get_server_api_connection ()
6259- return con .delete_workfile_info (
6302+ return con .delete_workfile_entity (
62606303 project_name = project_name ,
62616304 workfile_id = workfile_id ,
62626305 )
62636306
62646307
6308+ def get_workfiles_info (
6309+ project_name : str ,
6310+ workfile_ids : Optional [Iterable [str ]] = None ,
6311+ task_ids : Optional [Iterable [str ]] = None ,
6312+ paths : Optional [Iterable [str ]] = None ,
6313+ path_regex : Optional [str ] = None ,
6314+ statuses : Optional [Iterable [str ]] = None ,
6315+ tags : Optional [Iterable [str ]] = None ,
6316+ has_links : Optional [str ] = None ,
6317+ fields : Optional [Iterable [str ]] = None ,
6318+ own_attributes = _PLACEHOLDER ,
6319+ ) -> Generator [WorkfileInfoDict , None , None ]:
6320+ """DEPRECATED Workfile info entities by passed filters.
6321+
6322+ Args:
6323+ project_name (str): Project under which the entity is located.
6324+ workfile_ids (Optional[Iterable[str]]): Workfile ids.
6325+ task_ids (Optional[Iterable[str]]): Task ids.
6326+ paths (Optional[Iterable[str]]): Rootless workfiles paths.
6327+ path_regex (Optional[str]): Regex filter for workfile path.
6328+ statuses (Optional[Iterable[str]]): Workfile info statuses used
6329+ for filtering.
6330+ tags (Optional[Iterable[str]]): Workfile info tags used
6331+ for filtering.
6332+ has_links (Optional[Literal[IN, OUT, ANY]]): Filter
6333+ representations with IN/OUT/ANY links.
6334+ fields (Optional[Iterable[str]]): Fields to be queried for
6335+ representation. All possible fields are returned if 'None' is
6336+ passed.
6337+ own_attributes (Optional[bool]): DEPRECATED: Not supported for
6338+ workfiles.
6339+
6340+ Returns:
6341+ Generator[WorkfileInfoDict, None, None]: Queried workfile info
6342+ entites.
6343+
6344+ """
6345+ con = get_server_api_connection ()
6346+ return con .get_workfiles_info (
6347+ project_name = project_name ,
6348+ workfile_ids = workfile_ids ,
6349+ task_ids = task_ids ,
6350+ paths = paths ,
6351+ path_regex = path_regex ,
6352+ statuses = statuses ,
6353+ tags = tags ,
6354+ has_links = has_links ,
6355+ fields = fields ,
6356+ own_attributes = own_attributes ,
6357+ )
6358+
6359+
6360+ def get_workfile_info (
6361+ project_name : str ,
6362+ task_id : str ,
6363+ path : str ,
6364+ fields : Optional [Iterable [str ]] = None ,
6365+ own_attributes = _PLACEHOLDER ,
6366+ ) -> Optional [WorkfileInfoDict ]:
6367+ """DEPRECATED Workfile info entity by task id and workfile path.
6368+
6369+ Args:
6370+ project_name (str): Project under which the entity is located.
6371+ task_id (str): Task id.
6372+ path (str): Rootless workfile path.
6373+ fields (Optional[Iterable[str]]): Fields to be queried for
6374+ representation. All possible fields are returned if 'None' is
6375+ passed.
6376+ own_attributes (Optional[bool]): DEPRECATED: Not supported for
6377+ workfiles.
6378+
6379+ Returns:
6380+ Optional[WorkfileInfoDict]: Workfile info entity or None.
6381+
6382+ """
6383+ con = get_server_api_connection ()
6384+ return con .get_workfile_info (
6385+ project_name = project_name ,
6386+ task_id = task_id ,
6387+ path = path ,
6388+ fields = fields ,
6389+ own_attributes = own_attributes ,
6390+ )
6391+
6392+
6393+ def get_workfile_info_by_id (
6394+ project_name : str ,
6395+ workfile_id : str ,
6396+ fields : Optional [Iterable [str ]] = None ,
6397+ own_attributes = _PLACEHOLDER ,
6398+ ) -> Optional [WorkfileInfoDict ]:
6399+ """DEPRECATED Workfile info entity by id.
6400+
6401+ Args:
6402+ project_name (str): Project under which the entity is located.
6403+ workfile_id (str): Workfile info id.
6404+ fields (Optional[Iterable[str]]): Fields to be queried for
6405+ representation. All possible fields are returned if 'None' is
6406+ passed.
6407+ own_attributes (Optional[bool]): DEPRECATED: Not supported for
6408+ workfiles.
6409+
6410+ Returns:
6411+ Optional[WorkfileInfoDict]: Workfile info entity or None.
6412+
6413+ """
6414+ con = get_server_api_connection ()
6415+ return con .get_workfile_info_by_id (
6416+ project_name = project_name ,
6417+ workfile_id = workfile_id ,
6418+ fields = fields ,
6419+ own_attributes = own_attributes ,
6420+ )
6421+
6422+
62656423def update_workfile_info (
62666424 project_name : str ,
62676425 workfile_id : str ,
@@ -6276,7 +6434,7 @@ def update_workfile_info(
62766434 created_by : Optional [str ] = None ,
62776435 updated_by : Optional [str ] = None ,
62786436) -> None :
6279- """Update workfile entity on server.
6437+ """DEPRECATED Update workfile entity on server.
62806438
62816439 Update of ``attrib`` does change only passed attributes. If you want
62826440 to unset value, use ``None``.
@@ -6313,6 +6471,24 @@ def update_workfile_info(
63136471 )
63146472
63156473
6474+ def delete_workfile_info (
6475+ project_name : str ,
6476+ workfile_id : str ,
6477+ ) -> None :
6478+ """DEPRECATED Delete workfile entity on server.
6479+
6480+ Args:
6481+ project_name (str): Project name.
6482+ workfile_id (str): Workfile id to delete.
6483+
6484+ """
6485+ con = get_server_api_connection ()
6486+ return con .delete_workfile_info (
6487+ project_name = project_name ,
6488+ workfile_id = workfile_id ,
6489+ )
6490+
6491+
63166492def get_full_link_type_name (
63176493 link_type_name : str ,
63186494 input_type : str ,
0 commit comments