任务自定义标记(Tag)

API operation on tags.

class rayvision_api.operators.tag.TagOperator(connect)

基类:object

Task tag settings.

add_label(new_name, status=1)

Add a custom label.

参数:
  • new_name (str) -- Label name.

  • status (int, optional) -- Label status,0 or 1,default is 1.

add_task_tag(tag, task_ids)

Add a custom task tag. :param tag: Label name. :type tag: str :param task_ids: task id list. :type task_ids: list[int], optional

delete_label(del_name)

Delete custom label.

参数:

del_name (str) -- The name of the label to be deleted.

delete_task_tag(tag_ids)

del custom task label. :param label_ids: lable id list. :type label_ids: list[int], optional

get_label_list()

Get custom labels.

返回:

Label list info.
e.g.:
{
"projectNameList": [
{

"projectId": 3671, "projectName": "myLabel"

}

]

}

返回类型:

dict

get_list(flag=0)

Get the project name based on the flag.

参数:

flag (int) --

  1. Query items under this account;

  2. Query items under this account and under the master account;

  3. Query all items associated with (all items under the same master account)

get_project_list()

Get custom labels.

返回:

Label list info.
e.g.:
[
{

"projectId": 3671, "projectName": "myLabel"

}

]

返回类型:

list