-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #664 from alex-smile/esb_update_apis_20211202
esb update data/iam confapis
- Loading branch information
Showing
5 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.12.31 | ||
2.12.32 |
36 changes: 36 additions & 0 deletions
36
paas2/esb/components/bk/apisv2/iam/iam_delete_component.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters