From b724c316ee3311527b41cd9cba09777eafd1181b Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Tue, 9 Jul 2024 14:38:53 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B47=E6=9C=889=E6=97=A5=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=91=E5=8E=9F=E7=94=9F=E4=BB=BB=E5=8A=A1=E4=B8=8B?= =?UTF-8?q?=E5=8F=91=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 2 +- websdk2/apis/agent_apis.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 8126c9a..b8e06d6 100644 --- a/setup.py +++ b/setup.py @@ -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.') diff --git a/websdk2/apis/agent_apis.py b/websdk2/apis/agent_apis.py index 2e3d353..c04eccd 100644 --- a/websdk2/apis/agent_apis.py +++ b/websdk2/apis/agent_apis.py @@ -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, @@ -33,7 +34,7 @@ class AgentAPIS: }, field_help={ }, - description='批量下发任务') + description='批量脚本任务下发') sync_files_task = dict(method='POST', url=sync_files_url, @@ -41,4 +42,12 @@ class AgentAPIS: }, field_help={ }, - description='批量分发文件') + description='批量分发文件下发') + + cloud_native_task = dict(method='POST', + url=cloud_native_url, + body={ + }, + field_help={ + }, + description='云原生任务下发')