tencentcloud-sdk-python 3.0.1269__py2.py3-none-any.whl → 3.0.1271__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/af/v20200226/af_client.py +3 -1
- tencentcloud/autoscaling/v20180419/models.py +6 -2
- tencentcloud/billing/v20180709/models.py +2 -2
- tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
- tencentcloud/cdwch/v20200915/models.py +175 -0
- tencentcloud/ckafka/v20190819/models.py +2 -2
- tencentcloud/cwp/v20180228/models.py +16 -0
- tencentcloud/cynosdb/v20190107/models.py +17 -2
- tencentcloud/ess/v20201111/models.py +60 -4
- tencentcloud/essbasic/v20210526/models.py +75 -4
- tencentcloud/faceid/v20180301/models.py +4 -0
- tencentcloud/iai/v20180301/models.py +12 -12
- tencentcloud/iap/__init__.py +0 -0
- tencentcloud/iap/v20240713/__init__.py +0 -0
- tencentcloud/iap/v20240713/errorcodes.py +48 -0
- tencentcloud/iap/v20240713/iap_client.py +164 -0
- tencentcloud/iap/v20240713/models.py +762 -0
- tencentcloud/lcic/v20220817/models.py +12 -6
- tencentcloud/live/v20180801/errorcodes.py +15 -0
- tencentcloud/live/v20180801/live_client.py +185 -0
- tencentcloud/live/v20180801/models.py +3372 -1460
- tencentcloud/market/v20191010/models.py +0 -2
- tencentcloud/mps/v20190612/models.py +316 -0
- tencentcloud/mps/v20190612/mps_client.py +25 -0
- tencentcloud/redis/v20180412/models.py +314 -216
- tencentcloud/redis/v20180412/redis_client.py +47 -47
- tencentcloud/tat/v20201028/models.py +10 -10
- tencentcloud/tke/v20220501/tke_client.py +2 -2
- tencentcloud/tse/v20201207/models.py +311 -6
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +769 -32
- tencentcloud/vpc/v20170312/vpc_client.py +93 -1
- tencentcloud/wedata/v20210820/models.py +79 -4
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/RECORD +39 -34
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1271.dist-info}/top_level.txt +0 -0
@@ -7403,6 +7403,7 @@ class IntentionActionResult(AbstractModel):
|
|
7403
7403
|
-801: "用户未授权摄像头和麦克风权限"
|
7404
7404
|
-802: "核验流程异常中断,请勿切屏或进行其他操作"
|
7405
7405
|
-803: "用户主动关闭链接/异常断开链接"
|
7406
|
+
-804: "用户当前网络不稳定,请重试"
|
7406
7407
|
-998: "系统数据异常"
|
7407
7408
|
-999: "系统未知错误,请联系人工核实"
|
7408
7409
|
若在人脸核身过程失败、未进入意愿确认过程,则该参数返回为空,请参考人脸核身错误码结果(DetectInfoText.ErrCode)
|
@@ -7439,6 +7440,7 @@ class IntentionActionResult(AbstractModel):
|
|
7439
7440
|
-801: "用户未授权摄像头和麦克风权限"
|
7440
7441
|
-802: "核验流程异常中断,请勿切屏或进行其他操作"
|
7441
7442
|
-803: "用户主动关闭链接/异常断开链接"
|
7443
|
+
-804: "用户当前网络不稳定,请重试"
|
7442
7444
|
-998: "系统数据异常"
|
7443
7445
|
-999: "系统未知错误,请联系人工核实"
|
7444
7446
|
若在人脸核身过程失败、未进入意愿确认过程,则该参数返回为空,请参考人脸核身错误码结果(DetectInfoText.ErrCode)
|
@@ -7634,6 +7636,7 @@ class IntentionQuestionResult(AbstractModel):
|
|
7634
7636
|
-801: "用户未授权摄像头和麦克风权限"
|
7635
7637
|
-802: "核验流程异常中断,请勿切屏或进行其他操作"
|
7636
7638
|
-803: "用户主动关闭链接/异常断开链接"
|
7639
|
+
-804: "用户当前网络不稳定,请重试"
|
7637
7640
|
-998: "系统数据异常"
|
7638
7641
|
-999: "系统未知错误,请联系人工核实"
|
7639
7642
|
- 若在人脸核身过程失败、未进入意愿确认过程,则该参数返回为空,请参考人脸核身错误码结果(DetectInfoText.ErrCode)
|
@@ -7699,6 +7702,7 @@ class IntentionQuestionResult(AbstractModel):
|
|
7699
7702
|
-801: "用户未授权摄像头和麦克风权限"
|
7700
7703
|
-802: "核验流程异常中断,请勿切屏或进行其他操作"
|
7701
7704
|
-803: "用户主动关闭链接/异常断开链接"
|
7705
|
+
-804: "用户当前网络不稳定,请重试"
|
7702
7706
|
-998: "系统数据异常"
|
7703
7707
|
-999: "系统未知错误,请联系人工核实"
|
7704
7708
|
- 若在人脸核身过程失败、未进入意愿确认过程,则该参数返回为空,请参考人脸核身错误码结果(DetectInfoText.ErrCode)
|
@@ -4343,16 +4343,16 @@ class FaceRect(AbstractModel):
|
|
4343
4343
|
def __init__(self):
|
4344
4344
|
r"""
|
4345
4345
|
:param _X: 人脸框左上角横坐标。
|
4346
|
-
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4347
|
-
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4346
|
+
- 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4347
|
+
- 若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4348
4348
|
:type X: int
|
4349
4349
|
:param _Y: 人脸框左上角纵坐标。
|
4350
|
-
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4351
|
-
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4350
|
+
- 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4351
|
+
- 若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4352
4352
|
:type Y: int
|
4353
|
-
:param _Width:
|
4353
|
+
:param _Width: 人脸宽度。
|
4354
4354
|
:type Width: int
|
4355
|
-
:param _Height:
|
4355
|
+
:param _Height: 人脸高度。
|
4356
4356
|
:type Height: int
|
4357
4357
|
"""
|
4358
4358
|
self._X = None
|
@@ -4363,8 +4363,8 @@ class FaceRect(AbstractModel):
|
|
4363
4363
|
@property
|
4364
4364
|
def X(self):
|
4365
4365
|
"""人脸框左上角横坐标。
|
4366
|
-
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4367
|
-
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4366
|
+
- 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4367
|
+
- 若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4368
4368
|
:rtype: int
|
4369
4369
|
"""
|
4370
4370
|
return self._X
|
@@ -4376,8 +4376,8 @@ class FaceRect(AbstractModel):
|
|
4376
4376
|
@property
|
4377
4377
|
def Y(self):
|
4378
4378
|
"""人脸框左上角纵坐标。
|
4379
|
-
人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4380
|
-
若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4379
|
+
- 人脸框包含人脸五官位置并在此基础上进行一定的扩展,若人脸框超出图片范围,会导致坐标负值。
|
4380
|
+
- 若需截取完整人脸,可以在完整分completess满足需求的情况下,将负值坐标取0。
|
4381
4381
|
:rtype: int
|
4382
4382
|
"""
|
4383
4383
|
return self._Y
|
@@ -4388,7 +4388,7 @@ class FaceRect(AbstractModel):
|
|
4388
4388
|
|
4389
4389
|
@property
|
4390
4390
|
def Width(self):
|
4391
|
-
"""
|
4391
|
+
"""人脸宽度。
|
4392
4392
|
:rtype: int
|
4393
4393
|
"""
|
4394
4394
|
return self._Width
|
@@ -4399,7 +4399,7 @@ class FaceRect(AbstractModel):
|
|
4399
4399
|
|
4400
4400
|
@property
|
4401
4401
|
def Height(self):
|
4402
|
-
"""
|
4402
|
+
"""人脸高度。
|
4403
4403
|
:rtype: int
|
4404
4404
|
"""
|
4405
4405
|
return self._Height
|
File without changes
|
File without changes
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
|
17
|
+
# 操作失败。
|
18
|
+
FAILEDOPERATION = 'FailedOperation'
|
19
|
+
|
20
|
+
# 参数错误。
|
21
|
+
INVALIDPARAMETER = 'InvalidParameter'
|
22
|
+
|
23
|
+
# 身份提供商名称已经使用。
|
24
|
+
INVALIDPARAMETER_IDENTITYNAMEINUSE = 'InvalidParameter.IdentityNameInUse'
|
25
|
+
|
26
|
+
# 身份提供商元数据文档错误。
|
27
|
+
INVALIDPARAMETER_METADATAERROR = 'InvalidParameter.MetadataError'
|
28
|
+
|
29
|
+
# 参数错误
|
30
|
+
INVALIDPARAMETER_PARAMERROR = 'InvalidParameter.ParamError'
|
31
|
+
|
32
|
+
# OIDC签名公钥错误。
|
33
|
+
INVALIDPARAMETERVALUE_IDENTITYKEYERROR = 'InvalidParameterValue.IdentityKeyError'
|
34
|
+
|
35
|
+
# 身份提供商URL错误。
|
36
|
+
INVALIDPARAMETERVALUE_IDENTITYURLERROR = 'InvalidParameterValue.IdentityUrlError'
|
37
|
+
|
38
|
+
# 身份提供商名称错误。
|
39
|
+
INVALIDPARAMETERVALUE_NAMEERROR = 'InvalidParameterValue.NameError'
|
40
|
+
|
41
|
+
# 身份提供商已达到上限。
|
42
|
+
LIMITEXCEEDED_IDENTITYFULL = 'LimitExceeded.IdentityFull'
|
43
|
+
|
44
|
+
# 身份提供商不存在。
|
45
|
+
RESOURCENOTFOUND_IDENTITYNOTEXIST = 'ResourceNotFound.IdentityNotExist'
|
46
|
+
|
47
|
+
# 没有数据
|
48
|
+
RESOURCENOTFOUND_RECORDNOTEXISTS = 'ResourceNotFound.RecordNotExists'
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# -*- coding: utf8 -*-
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
3
|
+
#
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5
|
+
# you may not use this file except in compliance with the License.
|
6
|
+
# You may obtain a copy of the License at
|
7
|
+
#
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
#
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13
|
+
# See the License for the specific language governing permissions and
|
14
|
+
# limitations under the License.
|
15
|
+
|
16
|
+
import json
|
17
|
+
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
20
|
+
from tencentcloud.iap.v20240713 import models
|
21
|
+
|
22
|
+
|
23
|
+
class IapClient(AbstractClient):
|
24
|
+
_apiVersion = '2024-07-13'
|
25
|
+
_endpoint = 'iap.tencentcloudapi.com'
|
26
|
+
_service = 'iap'
|
27
|
+
|
28
|
+
|
29
|
+
def CreateIAPUserOIDCConfig(self, request):
|
30
|
+
"""创建用户OIDC配置。只能创建一个用户OIDC身份提供商,并且创建用户OIDC配置之后会自动关闭用户SAML SSO身份提供商。
|
31
|
+
|
32
|
+
:param request: Request instance for CreateIAPUserOIDCConfig.
|
33
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.CreateIAPUserOIDCConfigRequest`
|
34
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.CreateIAPUserOIDCConfigResponse`
|
35
|
+
|
36
|
+
"""
|
37
|
+
try:
|
38
|
+
params = request._serialize()
|
39
|
+
headers = request.headers
|
40
|
+
body = self.call("CreateIAPUserOIDCConfig", params, headers=headers)
|
41
|
+
response = json.loads(body)
|
42
|
+
model = models.CreateIAPUserOIDCConfigResponse()
|
43
|
+
model._deserialize(response["Response"])
|
44
|
+
return model
|
45
|
+
except Exception as e:
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
47
|
+
raise
|
48
|
+
else:
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
50
|
+
|
51
|
+
|
52
|
+
def DescribeIAPLoginSessionDuration(self, request):
|
53
|
+
"""查询登录会话时长
|
54
|
+
|
55
|
+
:param request: Request instance for DescribeIAPLoginSessionDuration.
|
56
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.DescribeIAPLoginSessionDurationRequest`
|
57
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.DescribeIAPLoginSessionDurationResponse`
|
58
|
+
|
59
|
+
"""
|
60
|
+
try:
|
61
|
+
params = request._serialize()
|
62
|
+
headers = request.headers
|
63
|
+
body = self.call("DescribeIAPLoginSessionDuration", params, headers=headers)
|
64
|
+
response = json.loads(body)
|
65
|
+
model = models.DescribeIAPLoginSessionDurationResponse()
|
66
|
+
model._deserialize(response["Response"])
|
67
|
+
return model
|
68
|
+
except Exception as e:
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
70
|
+
raise
|
71
|
+
else:
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
73
|
+
|
74
|
+
|
75
|
+
def DescribeIAPUserOIDCConfig(self, request):
|
76
|
+
"""查询用户OIDC配置
|
77
|
+
|
78
|
+
:param request: Request instance for DescribeIAPUserOIDCConfig.
|
79
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.DescribeIAPUserOIDCConfigRequest`
|
80
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.DescribeIAPUserOIDCConfigResponse`
|
81
|
+
|
82
|
+
"""
|
83
|
+
try:
|
84
|
+
params = request._serialize()
|
85
|
+
headers = request.headers
|
86
|
+
body = self.call("DescribeIAPUserOIDCConfig", params, headers=headers)
|
87
|
+
response = json.loads(body)
|
88
|
+
model = models.DescribeIAPUserOIDCConfigResponse()
|
89
|
+
model._deserialize(response["Response"])
|
90
|
+
return model
|
91
|
+
except Exception as e:
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
93
|
+
raise
|
94
|
+
else:
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
96
|
+
|
97
|
+
|
98
|
+
def DisableIAPUserSSO(self, request):
|
99
|
+
"""禁用用户SSO
|
100
|
+
|
101
|
+
:param request: Request instance for DisableIAPUserSSO.
|
102
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.DisableIAPUserSSORequest`
|
103
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.DisableIAPUserSSOResponse`
|
104
|
+
|
105
|
+
"""
|
106
|
+
try:
|
107
|
+
params = request._serialize()
|
108
|
+
headers = request.headers
|
109
|
+
body = self.call("DisableIAPUserSSO", params, headers=headers)
|
110
|
+
response = json.loads(body)
|
111
|
+
model = models.DisableIAPUserSSOResponse()
|
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
|
+
|
121
|
+
def ModifyIAPLoginSessionDuration(self, request):
|
122
|
+
"""修改登录会话时长
|
123
|
+
|
124
|
+
:param request: Request instance for ModifyIAPLoginSessionDuration.
|
125
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.ModifyIAPLoginSessionDurationRequest`
|
126
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.ModifyIAPLoginSessionDurationResponse`
|
127
|
+
|
128
|
+
"""
|
129
|
+
try:
|
130
|
+
params = request._serialize()
|
131
|
+
headers = request.headers
|
132
|
+
body = self.call("ModifyIAPLoginSessionDuration", params, headers=headers)
|
133
|
+
response = json.loads(body)
|
134
|
+
model = models.ModifyIAPLoginSessionDurationResponse()
|
135
|
+
model._deserialize(response["Response"])
|
136
|
+
return model
|
137
|
+
except Exception as e:
|
138
|
+
if isinstance(e, TencentCloudSDKException):
|
139
|
+
raise
|
140
|
+
else:
|
141
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
142
|
+
|
143
|
+
|
144
|
+
def UpdateIAPUserOIDCConfig(self, request):
|
145
|
+
"""修改用户OIDC配置
|
146
|
+
|
147
|
+
:param request: Request instance for UpdateIAPUserOIDCConfig.
|
148
|
+
:type request: :class:`tencentcloud.iap.v20240713.models.UpdateIAPUserOIDCConfigRequest`
|
149
|
+
:rtype: :class:`tencentcloud.iap.v20240713.models.UpdateIAPUserOIDCConfigResponse`
|
150
|
+
|
151
|
+
"""
|
152
|
+
try:
|
153
|
+
params = request._serialize()
|
154
|
+
headers = request.headers
|
155
|
+
body = self.call("UpdateIAPUserOIDCConfig", params, headers=headers)
|
156
|
+
response = json.loads(body)
|
157
|
+
model = models.UpdateIAPUserOIDCConfigResponse()
|
158
|
+
model._deserialize(response["Response"])
|
159
|
+
return model
|
160
|
+
except Exception as e:
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
162
|
+
raise
|
163
|
+
else:
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|