Skip to content

Commit

Permalink
Merge pull request #664 from alex-smile/esb_update_apis_20211202
Browse files Browse the repository at this point in the history
esb update data/iam confapis
  • Loading branch information
MrLYC authored Dec 2, 2021
2 parents f77aed4 + 53d9293 commit 49412d3
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
2 changes: 1 addition & 1 deletion paas2/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.12.31
2.12.32
36 changes: 36 additions & 0 deletions paas2/esb/components/bk/apisv2/iam/iam_delete_component.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS
Community Edition) available.
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
"""

from common.constants import API_TYPE_OP
from components.component import ConfComponent
from .toolkit import configs


class IamDeleteComponent(ConfComponent):

sys_name = configs.SYSTEM_NAME
api_type = API_TYPE_OP

def handle(self):
request_info = self.get_request_info()

response = self.outgoing.http_client.request(
self.dest_http_method,
host=configs.host,
path=request_info["path"],
params=request_info["data"],
with_jwt_header=True,
headers=request_info["headers"],
response_encoding="utf-8",
allow_non_200=True,
)
self.response.payload = response
9 changes: 9 additions & 0 deletions paas2/esb/components/confapis/data/v3_datalab.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,15 @@
dest_http_method: GET
is_hidden: true

- path: /data/v3/datalab/queries/{query_id}/info/
name: v3_datalab_queries__query_id__info_get
label: 查看查询详情
method: GET
comp_codename: generic.data.datav3_component
dest_path: /v3/datalab/queries/{query_id}/info/
dest_http_method: GET
is_hidden: true

- path: /data/v3/datalab/es_query/{result_table_id}/query/
name: v3_datalab_es_query__result_table_id__query
label: es查询
Expand Down
6 changes: 3 additions & 3 deletions paas2/esb/components/confapis/iam/mgmt_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
label_en: mgmt api delete grade manager member
method: DELETE
api_type: operate
comp_codename: generic.v2.iam.iam_component
comp_codename: generic.v2.iam.iam_delete_component
dest_path: /o/bk_iam/api/v1/open/management/grade_managers/{grade_manager_id}/members/
dest_http_method: DELETE
is_hidden: true
Expand Down Expand Up @@ -83,7 +83,7 @@
label_en: mgmt api delete group
method: DELETE
api_type: operate
comp_codename: generic.v2.iam.iam_component
comp_codename: generic.v2.iam.iam_delete_component
dest_path: /o/bk_iam/api/v1/open/management/groups/{group_id}/
dest_http_method: DELETE
is_hidden: true
Expand Down Expand Up @@ -116,7 +116,7 @@
label_en: mgmt api delete group member
method: DELETE
api_type: operate
comp_codename: generic.v2.iam.iam_component
comp_codename: generic.v2.iam.iam_delete_component
dest_path: /o/bk_iam/api/v1/open/management/groups/{group_id}/members/
dest_http_method: DELETE
is_hidden: true
Expand Down
3 changes: 3 additions & 0 deletions paas2/release.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Release Log
===============================
# 2.12.32
- update: esb update data/iam confapis

# 2.12.31
- update: esb update data confapis

Expand Down

0 comments on commit 49412d3

Please sign in to comment.