tencentcloud-sdk-python-bh 3.1.203__tar.gz → 3.1.214__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/setup.py +1 -1
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/v20230418/bh_client.py +46 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/v20230418/bh_client_async.py +36 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/v20230418/models.py +1416 -364
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud_sdk_python_bh.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_bh-3.1.214/tencentcloud_sdk_python_bh.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_bh-3.1.203/tencentcloud_sdk_python_bh.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/README.rst +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/setup.cfg +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/__init__.py +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/v20230418/__init__.py +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud/bh/v20230418/errorcodes.py +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud_sdk_python_bh.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud_sdk_python_bh.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_bh-3.1.203 → tencentcloud_sdk_python_bh-3.1.214}/tencentcloud_sdk_python_bh.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-bh
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.214
|
|
4
4
|
Summary: Tencent Cloud Bh SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.214
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-bh',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.214,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Bh SDK for Python',
|
|
@@ -95,6 +95,29 @@ class BhClient(AbstractClient):
|
|
|
95
95
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
96
|
|
|
97
97
|
|
|
98
|
+
def ApproveTicket(self, request):
|
|
99
|
+
r"""审批工单
|
|
100
|
+
|
|
101
|
+
:param request: Request instance for ApproveTicket.
|
|
102
|
+
:type request: :class:`tencentcloud.bh.v20230418.models.ApproveTicketRequest`
|
|
103
|
+
:rtype: :class:`tencentcloud.bh.v20230418.models.ApproveTicketResponse`
|
|
104
|
+
|
|
105
|
+
"""
|
|
106
|
+
try:
|
|
107
|
+
params = request._serialize()
|
|
108
|
+
headers = request.headers
|
|
109
|
+
body = self.call("ApproveTicket", params, headers=headers)
|
|
110
|
+
response = json.loads(body)
|
|
111
|
+
model = models.ApproveTicketResponse()
|
|
112
|
+
model._deserialize(response["Response"])
|
|
113
|
+
return model
|
|
114
|
+
except Exception as e:
|
|
115
|
+
if isinstance(e, TencentCloudSDKException):
|
|
116
|
+
raise
|
|
117
|
+
else:
|
|
118
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
119
|
+
|
|
120
|
+
|
|
98
121
|
def BindDeviceAccountKubeconfig(self, request):
|
|
99
122
|
r"""绑定容器账号凭据
|
|
100
123
|
|
|
@@ -1360,6 +1383,29 @@ class BhClient(AbstractClient):
|
|
|
1360
1383
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1361
1384
|
|
|
1362
1385
|
|
|
1386
|
+
def DescribeTickets(self, request):
|
|
1387
|
+
r"""查询运维工单列表
|
|
1388
|
+
|
|
1389
|
+
:param request: Request instance for DescribeTickets.
|
|
1390
|
+
:type request: :class:`tencentcloud.bh.v20230418.models.DescribeTicketsRequest`
|
|
1391
|
+
:rtype: :class:`tencentcloud.bh.v20230418.models.DescribeTicketsResponse`
|
|
1392
|
+
|
|
1393
|
+
"""
|
|
1394
|
+
try:
|
|
1395
|
+
params = request._serialize()
|
|
1396
|
+
headers = request.headers
|
|
1397
|
+
body = self.call("DescribeTickets", params, headers=headers)
|
|
1398
|
+
response = json.loads(body)
|
|
1399
|
+
model = models.DescribeTicketsResponse()
|
|
1400
|
+
model._deserialize(response["Response"])
|
|
1401
|
+
return model
|
|
1402
|
+
except Exception as e:
|
|
1403
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1404
|
+
raise
|
|
1405
|
+
else:
|
|
1406
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1407
|
+
|
|
1408
|
+
|
|
1363
1409
|
def DescribeUserDirectory(self, request):
|
|
1364
1410
|
r"""获取用户目录
|
|
1365
1411
|
|
|
@@ -79,6 +79,24 @@ class BhClient(AbstractClient):
|
|
|
79
79
|
|
|
80
80
|
return await self.call_and_deserialize(**kwargs)
|
|
81
81
|
|
|
82
|
+
async def ApproveTicket(
|
|
83
|
+
self,
|
|
84
|
+
request: models.ApproveTicketRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.ApproveTicketResponse:
|
|
87
|
+
"""
|
|
88
|
+
审批工单
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "ApproveTicket"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.ApproveTicketResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
82
100
|
async def BindDeviceAccountKubeconfig(
|
|
83
101
|
self,
|
|
84
102
|
request: models.BindDeviceAccountKubeconfigRequest,
|
|
@@ -1069,6 +1087,24 @@ class BhClient(AbstractClient):
|
|
|
1069
1087
|
|
|
1070
1088
|
return await self.call_and_deserialize(**kwargs)
|
|
1071
1089
|
|
|
1090
|
+
async def DescribeTickets(
|
|
1091
|
+
self,
|
|
1092
|
+
request: models.DescribeTicketsRequest,
|
|
1093
|
+
opts: Dict = None,
|
|
1094
|
+
) -> models.DescribeTicketsResponse:
|
|
1095
|
+
"""
|
|
1096
|
+
查询运维工单列表
|
|
1097
|
+
"""
|
|
1098
|
+
|
|
1099
|
+
kwargs = {}
|
|
1100
|
+
kwargs["action"] = "DescribeTickets"
|
|
1101
|
+
kwargs["params"] = request._serialize()
|
|
1102
|
+
kwargs["resp_cls"] = models.DescribeTicketsResponse
|
|
1103
|
+
kwargs["headers"] = request.headers
|
|
1104
|
+
kwargs["opts"] = opts or {}
|
|
1105
|
+
|
|
1106
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1107
|
+
|
|
1072
1108
|
async def DescribeUserDirectory(
|
|
1073
1109
|
self,
|
|
1074
1110
|
request: models.DescribeUserDirectoryRequest,
|