Skip to content

Commit

Permalink
2024年7月9日 添加云原生任务下发接口
Browse files Browse the repository at this point in the history
  • Loading branch information
ss1917 committed Jul 9, 2024
1 parent 6dabd0b commit b724c31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
from distutils.core import setup

VERSION = '1.0.0'
VERSION = '1.0.1'

if sys.version_info < (2, 7) or (3, 0) <= sys.version_info < (3, 6):
print('This program requires at least Python 2.7 or 3.6 to run.')
Expand Down
13 changes: 11 additions & 2 deletions websdk2/apis/agent_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class AgentAPIS:
get_agent_work_url = f'{route_prefix}/v1/manager/agent/get_running_task'
batch_add_task_url = f'{route_prefix}/v1/agent/task/batch'
sync_files_url = f'{route_prefix}/v1/manager/agent/share_file/register'
cloud_native_url = f'{route_prefix}/v1/manager/agent/task/cloud_native'

get_agent_list = dict(method='GET',
url=agent_list_url,
Expand All @@ -33,12 +34,20 @@ class AgentAPIS:
},
field_help={
},
description='批量下发任务')
description='批量脚本任务下发')

sync_files_task = dict(method='POST',
url=sync_files_url,
body={
},
field_help={
},
description='批量分发文件')
description='批量分发文件下发')

cloud_native_task = dict(method='POST',
url=cloud_native_url,
body={
},
field_help={
},
description='云原生任务下发')

0 comments on commit b724c31

Please sign in to comment.