From c7289afffced3cda5be26c7cf81e89e24b9d3bca Mon Sep 17 00:00:00 2001 From: Timmy Date: Wed, 27 Mar 2024 10:18:48 +0800 Subject: [PATCH] update: bkapi-component-open 2.1.0 (#157) --- sdks/bkapi-component-open/CHANGE.md | 3 + .../bkapi_component/open/client.py | 563 ++++++++++++++++++ .../bkapi_component/open/client.pyi | 280 +++++++++ sdks/bkapi-component-open/setup.py | 2 +- 4 files changed, 847 insertions(+), 1 deletion(-) diff --git a/sdks/bkapi-component-open/CHANGE.md b/sdks/bkapi-component-open/CHANGE.md index c4e42b48..ade0c37f 100644 --- a/sdks/bkapi-component-open/CHANGE.md +++ b/sdks/bkapi-component-open/CHANGE.md @@ -1,5 +1,8 @@ ## Change logs +### 2.1.0 +- 添加 cc, cmsi, jobv3, monitor_v3 组件 API + ### 2.0.0 - 添加 cc, itsm, monitor_v3, sops 组件 API - 删除 monitor_v3 以下组件 API diff --git a/sdks/bkapi-component-open/bkapi_component/open/client.py b/sdks/bkapi-component-open/bkapi_component/open/client.py index 0a0523cc..91e85593 100644 --- a/sdks/bkapi-component-open/bkapi_component/open/client.py +++ b/sdks/bkapi-component-open/bkapi_component/open/client.py @@ -20,6 +20,14 @@ class BkLoginGroup(OperationGroup): path="/api/c/compapi{bk_api_ver}/bk_login/get_user/", ) + # 用户登录态验证 + is_login = bind_property( + Operation, + name="is_login", + method="GET", + path="/api/c/compapi{bk_api_ver}/bk_login/is_login/", + ) + class CcGroup(OperationGroup): # 新加主机锁 @@ -1262,6 +1270,176 @@ class CcGroup(OperationGroup): path="/api/c/compapi{bk_api_ver}/cc/update_set_template/", ) + # 批量创建被引用的模型的实例 + batch_create_quoted_inst = bind_property( + Operation, + name="batch_create_quoted_inst", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/batch_create_quoted_inst/", + ) + + # 批量删除被引用的模型的实例 + batch_delete_quoted_inst = bind_property( + Operation, + name="batch_delete_quoted_inst", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/batch_delete_quoted_inst/", + ) + + # 批量更新被引用的模型的实例 + batch_update_quoted_inst = bind_property( + Operation, + name="batch_update_quoted_inst", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/batch_update_quoted_inst/", + ) + + # 查询容器集群 + list_kube_cluster = bind_property( + Operation, + name="list_kube_cluster", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_cluster/", + ) + + # 查询Container列表 + list_kube_container = bind_property( + Operation, + name="list_kube_container", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_container/", + ) + + # 查询namespace + list_kube_namespace = bind_property( + Operation, + name="list_kube_namespace", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_namespace/", + ) + + # 查询容器节点 + list_kube_node = bind_property( + Operation, + name="list_kube_node", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_node/", + ) + + # 查询Pod列表 + list_kube_pod = bind_property( + Operation, + name="list_kube_pod", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_pod/", + ) + + # 查询workload + list_kube_workload = bind_property( + Operation, + name="list_kube_workload", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_kube_workload/", + ) + + # 查询被引用的模型的实例列表 + list_quoted_inst = bind_property( + Operation, + name="list_quoted_inst", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/list_quoted_inst/", + ) + + # --- 以下api只在te上云版可用 --- + # 批量查询业务敏感信息 + find_biz_sensitive_batch = bind_property( + Operation, + name="find_biz_sensitive_batch", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/find_biz_sensitive_batch/", + ) + + # 批量查询主机快照 + find_host_snapshot_batch = bind_property( + Operation, + name="find_host_snapshot_batch", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/find_host_snapshot_batch/", + ) + + # 查询业务在cc1.0还是在cc3.0 + get_biz_location = bind_property( + Operation, + name="get_biz_location", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/get_biz_location/", + ) + + # 根据主机IP及云区域ID查询该主机所属业务是在cc1.0还是在cc3.0 + get_host_location = bind_property( + Operation, + name="get_host_location", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/get_host_location/", + ) + + # 查询业务、obs产品和规划产品三者之间的关系 + search_cost_info_relation = bind_property( + Operation, + name="search_cost_info_relation", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/search_cost_info_relation/", + ) + + # 根据条件查询业务下的进程实例详情 + search_process_instances = bind_property( + Operation, + name="search_process_instances", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/search_process_instances/", + ) + + # 查询订阅 + search_subscription = bind_property( + Operation, + name="search_subscription", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/search_subscription/", + ) + + # 订阅事件 + subscribe_event = bind_property( + Operation, + name="subscribe_event", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/subscribe_event/", + ) + + # 退订事件 + unsubcribe_event = bind_property( + Operation, + name="unsubcribe_event", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/unsubcribe_event/", + ) + + # 更新业务敏感信息 + update_biz_sensitive = bind_property( + Operation, + name="update_biz_sensitive", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/update_biz_sensitive/", + ) + + # 修改订阅 + update_event_subscribe = bind_property( + Operation, + name="update_event_subscribe", + method="POST", + path="/api/c/compapi{bk_api_ver}/cc/update_event_subscribe/", + ) + # --- 以上api只在te上云版可用 --- + class CmsiGroup(OperationGroup): # 查询消息发送类型 @@ -1312,6 +1490,47 @@ class CmsiGroup(OperationGroup): path="/api/c/compapi{bk_api_ver}/cmsi/send_weixin/", ) + # --- 以下api只在te上云版可用 --- + # 添加企业微信发件人 + new_wecom_sender = bind_property( + Operation, + name="new_wecom_sender", + method="POST", + path="/api/c/compapi{bk_api_ver}/cmsi/new_wecom_sender/", + ) + + # 查询企业微信发件人 + query_wecom_sender = bind_property( + Operation, + name="query_wecom_sender", + method="GET", + path="/api/c/compapi{bk_api_ver}/cmsi/query_wecom_sender/", + ) + + # 发送企业微信 + send_rtx = bind_property( + Operation, + name="send_rtx", + method="POST", + path="/api/c/compapi{bk_api_ver}/cmsi/send_rtx/", + ) + + # 发送企业微信应用号消息 + send_wecom_app = bind_property( + Operation, + name="send_wecom_app", + method="POST", + path="/api/c/compapi{bk_api_ver}/cmsi/send_wecom_app/", + ) + + # 发送企业微信机器人消息 + send_wecom_robot = bind_property( + Operation, + name="send_wecom_robot", + method="POST", + path="/api/c/compapi{bk_api_ver}/cmsi/send_wecom_robot/", + ) + # --- 以上api只在te上云版可用 --- class GseGroup(OperationGroup): # Agent心跳信息查询 @@ -1686,6 +1905,214 @@ class Jobv3Group(OperationGroup): path="/api/c/compapi{bk_api_ver}/jobv3/update_cron_status/", ) + # 作业类回调报文描述 + callback_protocol = bind_property( + Operation, + name="callback_protocol", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/callback_protocol/", + ) + + # 高危脚本检测 + check_script = bind_property( + Operation, + name="check_script", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/check_script/", + ) + + # 创建账号 + create_account = bind_property( + Operation, + name="create_account", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_account/", + ) + + # 创建高危语句规则 + create_dangerous_rule = bind_property( + Operation, + name="create_dangerous_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_dangerous_rule/", + ) + + # 创建公共脚本 + create_public_script = bind_property( + Operation, + name="create_public_script", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_public_script/", + ) + + # 新建公共脚本版本 + create_public_script_version = bind_property( + Operation, + name="create_public_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_public_script_version/", + ) + + # 创建脚本 + create_script = bind_property( + Operation, + name="create_script", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_script/", + ) + + # 新建脚本版本 + create_script_version = bind_property( + Operation, + name="create_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/create_script_version/", + ) + + # 删除账号 + delete_account = bind_property( + Operation, + name="delete_account", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_account/", + ) + + # 删除高危语句规则 + delete_dangerous_rule = bind_property( + Operation, + name="delete_dangerous_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_dangerous_rule/", + ) + + # 删除公共脚本 + delete_public_script = bind_property( + Operation, + name="delete_public_script", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_public_script/", + ) + + # 删除公共脚本版本 + delete_public_script_version = bind_property( + Operation, + name="delete_public_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_public_script_version/", + ) + + # 删除脚本 + delete_script = bind_property( + Operation, + name="delete_script", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_script/", + ) + + # 删除脚本版本 + delete_script_version = bind_property( + Operation, + name="delete_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/delete_script_version/", + ) + + # 停用高危语句规则 + disable_dangerous_rule = bind_property( + Operation, + name="disable_dangerous_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/disable_dangerous_rule/", + ) + + # 禁用公共脚本版本 + disable_public_script_version = bind_property( + Operation, + name="disable_public_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/disable_public_script_version/", + ) + + # 禁用脚本版本 + disable_script_version = bind_property( + Operation, + name="disable_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/disable_script_version/", + ) + + # 启用高危语句规则 + enable_dangerous_rule = bind_property( + Operation, + name="enable_dangerous_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/enable_dangerous_rule/", + ) + + # 查看高危语句规则列表 + get_dangerous_rule_list = bind_property( + Operation, + name="get_dangerous_rule_list", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/get_dangerous_rule_list/", + ) + + # 发布公共脚本版本 + publish_public_script_version = bind_property( + Operation, + name="publish_public_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/publish_public_script_version/", + ) + + # 发布脚本版本 + publish_script_version = bind_property( + Operation, + name="publish_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/publish_script_version/", + ) + + # 修改高危语句规则 + update_dangerous_rule = bind_property( + Operation, + name="update_dangerous_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/update_dangerous_rule/", + ) + + # 更新公共脚本基础信息 + update_public_script_basic = bind_property( + Operation, + name="update_public_script_basic", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/update_public_script_basic/", + ) + + # 修改公共脚本版本 + update_public_script_version = bind_property( + Operation, + name="update_public_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/update_public_script_version/", + ) + + # 更新脚本基础信息 + update_script_basic = bind_property( + Operation, + name="update_script_basic", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/update_script_basic/", + ) + + # 修改脚本版本信息 + update_script_version = bind_property( + Operation, + name="update_script_version", + method="POST", + path="/api/c/compapi{bk_api_ver}/jobv3/update_script_version/", + ) + class MonitorV3Group(OperationGroup): # 新增告警屏蔽 @@ -2224,6 +2651,142 @@ class MonitorV3Group(OperationGroup): path="/api/c/compapi{bk_api_ver}/monitor_v3/update_partial_strategy_v3/", ) + # 批量删除轮值规则 + delete_duty_rules = bind_property( + Operation, + name="delete_duty_rules", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/delete_duty_rules/", + ) + + # 删除分派组 + delete_rule_group = bind_property( + Operation, + name="delete_rule_group", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/delete_rule_group/", + ) + + # 批量删除用户组 + delete_user_groups = bind_property( + Operation, + name="delete_user_groups", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/delete_user_groups/", + ) + + # 指标通用查询 + get_metric_list = bind_property( + Operation, + name="get_metric_list", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/get_metric_list/", + ) + + # 事件检索 + grafana_log_query = bind_property( + Operation, + name="grafana_log_query", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/grafana_log_query/", + ) + + # 判断结果表中是否存在指定data_label + metadata_is_data_label_exist = bind_property( + Operation, + name="metadata_is_data_label_exist", + method="GET", + path="/api/c/compapi{bk_api_ver}/monitor_v3/metadata_is_data_label_exist/", + ) + + # 根据space_uid查询data_source + metadata_query_data_source_by_space_uid = bind_property( + Operation, + name="metadata_query_data_source_by_space_uid", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/metadata_query_data_source_by_space_uid/", + ) + + # 预览轮值规则 + preview_duty_rule = bind_property( + Operation, + name="preview_duty_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/preview_duty_rule/", + ) + + # 预览一个组的轮值规则 + preview_user_group = bind_property( + Operation, + name="preview_user_group", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/preview_user_group/", + ) + + # 保存轮值规则 + save_duty_rule = bind_property( + Operation, + name="save_duty_rule", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/save_duty_rule/", + ) + + # 保存分派组 + save_rule_group = bind_property( + Operation, + name="save_rule_group", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/save_rule_group/", + ) + + # 保存用户组 + save_user_group = bind_property( + Operation, + name="save_user_group", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/save_user_group/", + ) + + # 查询轮值规则组 + search_duty_rules = bind_property( + Operation, + name="search_duty_rules", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/search_duty_rules/", + ) + + # 查询单个轮值规则的详情 + search_duty_rule_detail = bind_property( + Operation, + name="search_duty_rule_detail", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/search_duty_rule_detail/", + ) + + # 查询分派组 + search_rule_groups = bind_property( + Operation, + name="search_rule_groups", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/search_rule_groups/", + ) + + # 查询用户组(新版) + search_user_groups = bind_property( + Operation, + name="search_user_groups", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/search_user_groups/", + ) + + # 查询单个用户组详情 + search_user_group_detail = bind_property( + Operation, + name="search_user_group_detail", + method="POST", + path="/api/c/compapi{bk_api_ver}/monitor_v3/search_user_group_detail/", + ) + class SopsGroup(OperationGroup): # 认领职能化任务 diff --git a/sdks/bkapi-component-open/bkapi_component/open/client.pyi b/sdks/bkapi-component-open/bkapi_component/open/client.pyi index e7c42d63..b9a210f0 100644 --- a/sdks/bkapi-component-open/bkapi_component/open/client.pyi +++ b/sdks/bkapi-component-open/bkapi_component/open/client.pyi @@ -17,6 +17,10 @@ class BkLoginGroup(OperationGroup): def get_user(self) -> Operation: """获取用户信息""" + @property + def is_login(self) -> Operation: + """用户登录态验证""" + class CcGroup(OperationGroup): @@ -640,6 +644,90 @@ class CcGroup(OperationGroup): def update_set_template(self) -> Operation: """编辑集群模板""" + @property + def batch_create_quoted_inst(self) -> Operation: + """批量创建被引用的模型的实例""" + + @property + def batch_delete_quoted_inst(self) -> Operation: + """批量删除被引用的模型的实例""" + + @property + def batch_update_quoted_inst(self) -> Operation: + """批量更新被引用的模型的实例""" + + @property + def find_biz_sensitive_batch(self) -> Operation: + """批量查询业务敏感信息""" + + @property + def find_host_snapshot_batch(self) -> Operation: + """批量查询主机快照""" + + @property + def get_biz_location(self) -> Operation: + """查询业务在cc1.0还是在cc3.0""" + + @property + def get_host_location(self) -> Operation: + """根据主机IP及云区域ID查询该主机所属业务是在cc1.0还是在cc3.0""" + + @property + def list_kube_cluster(self) -> Operation: + """查询容器集群""" + + @property + def list_kube_container(self) -> Operation: + """查询Container列表""" + + @property + def list_kube_namespace(self) -> Operation: + """查询namespace""" + + @property + def list_kube_node(self) -> Operation: + """查询容器节点""" + + @property + def list_kube_pod(self) -> Operation: + """查询Pod列表""" + + @property + def list_kube_workload(self) -> Operation: + """查询workload""" + + @property + def list_quoted_inst(self) -> Operation: + """查询被引用的模型的实例列表""" + + @property + def search_cost_info_relation(self) -> Operation: + """查询业务、obs产品和规划产品三者之间的关系""" + + @property + def search_process_instances(self) -> Operation: + """根据条件查询业务下的进程实例详情""" + + @property + def search_subscription(self) -> Operation: + """查询订阅""" + + @property + def subscribe_event(self) -> Operation: + """订阅事件""" + + @property + def unsubcribe_event(self) -> Operation: + """退订事件""" + + @property + def update_biz_sensitive(self) -> Operation: + """更新业务敏感信息""" + + @property + def update_event_subscribe(self) -> Operation: + """修改订阅""" + class CmsiGroup(OperationGroup): @@ -667,6 +755,26 @@ class CmsiGroup(OperationGroup): def send_weixin(self) -> Operation: """发送微信消息""" + @property + def new_wecom_sender(self) -> Operation: + """添加企业微信发件人""" + + @property + def query_wecom_sender(self) -> Operation: + """查询企业微信发件人""" + + @property + def send_rtx(self) -> Operation: + """发送企业微信""" + + @property + def send_wecom_app(self) -> Operation: + """发送企业微信应用号消息""" + + @property + def send_wecom_robot(self) -> Operation: + """发送企业微信机器人消息""" + class GseGroup(OperationGroup): @@ -860,6 +968,110 @@ class Jobv3Group(OperationGroup): def update_cron_status(self) -> Operation: """更新定时作业状态,如启动或暂停""" + @property + def callback_protocol(self) -> Operation: + """作业类回调报文描述""" + + @property + def check_script(self) -> Operation: + """高危脚本检测""" + + @property + def create_account(self) -> Operation: + """创建账号""" + + @property + def create_dangerous_rule(self) -> Operation: + """创建高危语句规则""" + + @property + def create_public_script(self) -> Operation: + """创建公共脚本""" + + @property + def create_public_script_version(self) -> Operation: + """新建公共脚本版本""" + + @property + def create_script(self) -> Operation: + """创建脚本""" + + @property + def create_script_version(self) -> Operation: + """新建脚本版本""" + + @property + def delete_account(self) -> Operation: + """删除账号""" + + @property + def delete_dangerous_rule(self) -> Operation: + """删除高危语句规则""" + + @property + def delete_public_script(self) -> Operation: + """删除公共脚本""" + + @property + def delete_public_script_version(self) -> Operation: + """删除公共脚本版本""" + + @property + def delete_script(self) -> Operation: + """删除脚本""" + + @property + def delete_script_version(self) -> Operation: + """删除脚本版本""" + + @property + def disable_dangerous_rule(self) -> Operation: + """停用高危语句规则""" + + @property + def disable_public_script_version(self) -> Operation: + """禁用公共脚本版本""" + + @property + def disable_script_version(self) -> Operation: + """禁用脚本版本""" + + @property + def enable_dangerous_rule(self) -> Operation: + """启用高危语句规则""" + + @property + def get_dangerous_rule_list(self) -> Operation: + """查看高危语句规则列表""" + + @property + def publish_public_script_version(self) -> Operation: + """发布公共脚本版本""" + + @property + def publish_script_version(self) -> Operation: + """发布脚本版本""" + + @property + def update_dangerous_rule(self) -> Operation: + """修改高危语句规则""" + + @property + def update_public_script_basic(self) -> Operation: + """更新公共脚本基础信息""" + + @property + def update_public_script_version(self) -> Operation: + """修改公共脚本版本""" + + @property + def update_script_basic(self) -> Operation: + """更新脚本基础信息""" + + @property + def update_script_version(self) -> Operation: + """修改脚本版本信息""" + class MonitorV3Group(OperationGroup): @@ -1131,6 +1343,74 @@ class MonitorV3Group(OperationGroup): def update_partial_strategy_v3(self) -> Operation: """批量更新策略局部配置""" + @property + def delete_duty_rules(self) -> Operation: + """批量删除轮值规则""" + + @property + def delete_rule_group(self) -> Operation: + """删除分派组""" + + @property + def delete_user_groups(self) -> Operation: + """批量删除用户组""" + + @property + def get_metric_list(self) -> Operation: + """指标通用查询""" + + @property + def grafana_log_query(self) -> Operation: + """事件检索""" + + @property + def metadata_is_data_label_exist(self) -> Operation: + """判断结果表中是否存在指定data_label""" + + @property + def metadata_query_data_source_by_space_uid(self) -> Operation: + """根据space_uid查询data_source""" + + @property + def preview_duty_rule(self) -> Operation: + """预览轮值规则""" + + @property + def preview_user_group(self) -> Operation: + """预览一个组的轮值规则""" + + @property + def save_duty_rule(self) -> Operation: + """保存轮值规则""" + + @property + def save_rule_group(self) -> Operation: + """保存分派组""" + + @property + def save_user_group(self) -> Operation: + """保存用户组""" + + @property + def search_duty_rules(self) -> Operation: + """查询轮值规则组""" + + @property + def search_duty_rule_detail(self) -> Operation: + """查询单个轮值规则的详情""" + + @property + def search_rule_groups(self) -> Operation: + """查询分派组""" + + @property + def search_user_groups(self) -> Operation: + """查询用户组(新版)""" + + @property + def search_user_group_detail(self) -> Operation: + """查询单个用户组详情""" + class SopsGroup(OperationGroup): diff --git a/sdks/bkapi-component-open/setup.py b/sdks/bkapi-component-open/setup.py index 3183b375..555c3a2d 100644 --- a/sdks/bkapi-component-open/setup.py +++ b/sdks/bkapi-component-open/setup.py @@ -16,7 +16,7 @@ description='', long_description=readme, name='bkapi-component-open', - version='2.0.0', + version='2.1.0', python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*', author='blueking', license='MIT',