tencentcloud-sdk-python 3.0.1269__py2.py3-none-any.whl → 3.0.1270__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.
Files changed (32) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/af/v20200226/af_client.py +3 -1
  3. tencentcloud/billing/v20180709/models.py +2 -2
  4. tencentcloud/ckafka/v20190819/models.py +2 -2
  5. tencentcloud/cwp/v20180228/models.py +16 -0
  6. tencentcloud/ess/v20201111/models.py +27 -0
  7. tencentcloud/essbasic/v20210526/models.py +27 -0
  8. tencentcloud/faceid/v20180301/models.py +4 -0
  9. tencentcloud/iai/v20180301/models.py +12 -12
  10. tencentcloud/iap/__init__.py +0 -0
  11. tencentcloud/iap/v20240713/__init__.py +0 -0
  12. tencentcloud/iap/v20240713/errorcodes.py +48 -0
  13. tencentcloud/iap/v20240713/iap_client.py +164 -0
  14. tencentcloud/iap/v20240713/models.py +762 -0
  15. tencentcloud/lcic/v20220817/models.py +12 -6
  16. tencentcloud/live/v20180801/errorcodes.py +15 -0
  17. tencentcloud/live/v20180801/live_client.py +185 -0
  18. tencentcloud/live/v20180801/models.py +3372 -1460
  19. tencentcloud/mps/v20190612/models.py +32 -0
  20. tencentcloud/redis/v20180412/models.py +314 -216
  21. tencentcloud/redis/v20180412/redis_client.py +47 -47
  22. tencentcloud/tat/v20201028/models.py +10 -10
  23. tencentcloud/tke/v20220501/tke_client.py +2 -2
  24. tencentcloud/tse/v20201207/models.py +311 -6
  25. tencentcloud/vpc/v20170312/errorcodes.py +3 -0
  26. tencentcloud/vpc/v20170312/models.py +769 -32
  27. tencentcloud/vpc/v20170312/vpc_client.py +93 -1
  28. {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1270.dist-info}/METADATA +1 -1
  29. {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1270.dist-info}/RECORD +32 -27
  30. {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1270.dist-info}/LICENSE +0 -0
  31. {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1270.dist-info}/WHEEL +0 -0
  32. {tencentcloud_sdk_python-3.0.1269.dist-info → tencentcloud_sdk_python-3.0.1270.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1269'
17
+ __version__ = '3.0.1270'
@@ -27,7 +27,9 @@ class AfClient(AbstractClient):
27
27
 
28
28
 
29
29
  def DescribeAntiFraud(self, request):
30
- """天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
30
+ """该接口未在使用,后端地址已无法访问,经查近60天日志无正常业务访问记录,申请预下线。
31
+
32
+ 天御反欺诈服务,主要应用于银行、证券、保险、消费金融等金融行业客户,通过腾讯的大数据风控能力,
31
33
  可以准确识别恶意用户信息,解决客户在支付、活动、理财,风控等业务环节遇到的欺诈威胁,降低企业
32
34
  的损失。
33
35
 
@@ -20796,7 +20796,7 @@ class DescribeCostSummaryByProductResponse(AbstractModel):
20796
20796
  :param _Data: 消耗按产品汇总详情
20797
20797
  注意:此字段可能返回 null,表示取不到有效值。
20798
20798
  :type Data: list of ConsumptionBusinessSummaryDataItem
20799
- :param _RecordNum: 记录数量,NeedRecordNum为0是返回null
20799
+ :param _RecordNum: 记录数量,NeedRecordNum为0时返回null
20800
20800
  注意:此字段可能返回 null,表示取不到有效值。
20801
20801
  :type RecordNum: int
20802
20802
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -20844,7 +20844,7 @@ class DescribeCostSummaryByProductResponse(AbstractModel):
20844
20844
 
20845
20845
  @property
20846
20846
  def RecordNum(self):
20847
- """记录数量,NeedRecordNum为0是返回null
20847
+ """记录数量,NeedRecordNum为0时返回null
20848
20848
  注意:此字段可能返回 null,表示取不到有效值。
20849
20849
  :rtype: int
20850
20850
  """
@@ -24232,7 +24232,7 @@ class ModifyInstancePreRequest(AbstractModel):
24232
24232
 
24233
24233
  def __init__(self):
24234
24234
  r"""
24235
- :param _InstanceId: 实例名称
24235
+ :param _InstanceId: ckafka集群实例Id
24236
24236
  :type InstanceId: str
24237
24237
  :param _DiskSize: 预计磁盘,根据磁盘步长,规格向上调整。
24238
24238
  :type DiskSize: int
@@ -24248,7 +24248,7 @@ class ModifyInstancePreRequest(AbstractModel):
24248
24248
 
24249
24249
  @property
24250
24250
  def InstanceId(self):
24251
- """实例名称
24251
+ """ckafka集群实例Id
24252
24252
  :rtype: str
24253
24253
  """
24254
24254
  return self._InstanceId
@@ -105251,6 +105251,14 @@ class VulInfoList(AbstractModel):
105251
105251
  :param _CvssScore: CVSS评分
105252
105252
  :type CvssScore: float
105253
105253
  :param _Labels: 漏洞标签 多个逗号分割
105254
+
105255
+ 存在EXP:EXP
105256
+ 在野攻击:KNOWN_EXPLOITED
105257
+ 本地利用:LOCAL
105258
+ 必修漏洞:NEED_FIX
105259
+ 远程利用:NETWORK
105260
+ 存在POC:POC
105261
+ 系统重启:RESTART
105254
105262
  :type Labels: str
105255
105263
  :param _FixSwitch: 是否能自动修复且包含能自动修复的主机, 0=否 1=是
105256
105264
  :type FixSwitch: int
@@ -105480,6 +105488,14 @@ class VulInfoList(AbstractModel):
105480
105488
  @property
105481
105489
  def Labels(self):
105482
105490
  """漏洞标签 多个逗号分割
105491
+
105492
+ 存在EXP:EXP
105493
+ 在野攻击:KNOWN_EXPLOITED
105494
+ 本地利用:LOCAL
105495
+ 必修漏洞:NEED_FIX
105496
+ 远程利用:NETWORK
105497
+ 存在POC:POC
105498
+ 系统重启:RESTART
105483
105499
  :rtype: str
105484
105500
  """
105485
105501
  return self._Labels
@@ -4878,6 +4878,14 @@ class CreateBatchSignUrlRequest(AbstractModel):
4878
4878
  :type JumpToDetail: bool
4879
4879
  :param _FlowBatchUrlInfo: 批量签署合同相关信息,指定合同和签署方的信息,用于补充动态签署人。
4880
4880
  :type FlowBatchUrlInfo: :class:`tencentcloud.ess.v20201111.models.FlowBatchUrlInfo`
4881
+ :param _AutoJumpBack: 签署完成后是否自动回跳
4882
+ <ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>
4883
+
4884
+ 注:
4885
+ 1. 该参数<font color="red">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效
4886
+ 2. <font color="red">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)
4887
+ 3. <font color="red">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font>
4888
+ :type AutoJumpBack: bool
4881
4889
  """
4882
4890
  self._Operator = None
4883
4891
  self._Name = None
@@ -4890,6 +4898,7 @@ class CreateBatchSignUrlRequest(AbstractModel):
4890
4898
  self._OrganizationName = None
4891
4899
  self._JumpToDetail = None
4892
4900
  self._FlowBatchUrlInfo = None
4901
+ self._AutoJumpBack = None
4893
4902
 
4894
4903
  @property
4895
4904
  def Operator(self):
@@ -5046,6 +5055,23 @@ class CreateBatchSignUrlRequest(AbstractModel):
5046
5055
  def FlowBatchUrlInfo(self, FlowBatchUrlInfo):
5047
5056
  self._FlowBatchUrlInfo = FlowBatchUrlInfo
5048
5057
 
5058
+ @property
5059
+ def AutoJumpBack(self):
5060
+ """签署完成后是否自动回跳
5061
+ <ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>
5062
+
5063
+ 注:
5064
+ 1. 该参数<font color="red">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效
5065
+ 2. <font color="red">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)
5066
+ 3. <font color="red">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font>
5067
+ :rtype: bool
5068
+ """
5069
+ return self._AutoJumpBack
5070
+
5071
+ @AutoJumpBack.setter
5072
+ def AutoJumpBack(self, AutoJumpBack):
5073
+ self._AutoJumpBack = AutoJumpBack
5074
+
5049
5075
 
5050
5076
  def _deserialize(self, params):
5051
5077
  if params.get("Operator") is not None:
@@ -5065,6 +5091,7 @@ class CreateBatchSignUrlRequest(AbstractModel):
5065
5091
  if params.get("FlowBatchUrlInfo") is not None:
5066
5092
  self._FlowBatchUrlInfo = FlowBatchUrlInfo()
5067
5093
  self._FlowBatchUrlInfo._deserialize(params.get("FlowBatchUrlInfo"))
5094
+ self._AutoJumpBack = params.get("AutoJumpBack")
5068
5095
  memeber_set = set(params.keys())
5069
5096
  for name, value in vars(self).items():
5070
5097
  property_name = name[1:]
@@ -2742,6 +2742,14 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
2742
2742
  :type OpenId: str
2743
2743
  :param _OrganizationOpenId: 第三方平台子客企业的企业的标识, 即OrganizationOpenId,批签合同经办人为子客企业员工是为必填。
2744
2744
  :type OrganizationOpenId: str
2745
+ :param _AutoJumpBack: 签署完成后是否自动回跳
2746
+ <ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>
2747
+
2748
+ 注:
2749
+ 1. 该参数<font color="red">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效
2750
+ 2. <font color="red">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)
2751
+ 3. <font color="red">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font>
2752
+ :type AutoJumpBack: bool
2745
2753
  """
2746
2754
  self._Agent = None
2747
2755
  self._Name = None
@@ -2756,6 +2764,7 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
2756
2764
  self._FlowBatchUrlInfo = None
2757
2765
  self._OpenId = None
2758
2766
  self._OrganizationOpenId = None
2767
+ self._AutoJumpBack = None
2759
2768
 
2760
2769
  @property
2761
2770
  def Agent(self):
@@ -2948,6 +2957,23 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
2948
2957
  def OrganizationOpenId(self, OrganizationOpenId):
2949
2958
  self._OrganizationOpenId = OrganizationOpenId
2950
2959
 
2960
+ @property
2961
+ def AutoJumpBack(self):
2962
+ """签署完成后是否自动回跳
2963
+ <ul><li>false:否, 签署完成不会自动跳转回来(默认)</li><li>true:是, 签署完成会自动跳转回来</li></ul>
2964
+
2965
+ 注:
2966
+ 1. 该参数<font color="red">只针对APP类型(电子签小程序跳转贵方小程序)场景</font> 的签署链接有效
2967
+ 2. <font color="red">手机应用APP 或 微信小程序需要监控界面的返回走后序逻辑</font>, 微信小程序的文档可以参考[这个](https://developers.weixin.qq.com/miniprogram/dev/reference/api/App.html#onShow-Object-object)
2968
+ 3. <font color="red">电子签小程序跳转贵方APP,不支持自动跳转,必需用户手动点击完成按钮(微信的限制)</font>
2969
+ :rtype: bool
2970
+ """
2971
+ return self._AutoJumpBack
2972
+
2973
+ @AutoJumpBack.setter
2974
+ def AutoJumpBack(self, AutoJumpBack):
2975
+ self._AutoJumpBack = AutoJumpBack
2976
+
2951
2977
 
2952
2978
  def _deserialize(self, params):
2953
2979
  if params.get("Agent") is not None:
@@ -2969,6 +2995,7 @@ class ChannelCreateBatchSignUrlRequest(AbstractModel):
2969
2995
  self._FlowBatchUrlInfo._deserialize(params.get("FlowBatchUrlInfo"))
2970
2996
  self._OpenId = params.get("OpenId")
2971
2997
  self._OrganizationOpenId = params.get("OrganizationOpenId")
2998
+ self._AutoJumpBack = params.get("AutoJumpBack")
2972
2999
  memeber_set = set(params.keys())
2973
3000
  for name, value in vars(self).items():
2974
3001
  property_name = name[1:]
@@ -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))