tencentcloud-sdk-python-cam 3.0.1265__tar.gz → 3.0.1280__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-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/PKG-INFO +3 -3
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/setup.cfg +0 -1
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/setup.py +1 -1
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/cam/v20190116/cam_client.py +23 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/cam/v20190116/errorcodes.py +3 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/cam/v20190116/models.py +121 -10
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud_sdk_python_cam.egg-info/PKG-INFO +3 -3
- tencentcloud-sdk-python-cam-3.0.1280/tencentcloud_sdk_python_cam.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cam-3.0.1265/tencentcloud_sdk_python_cam.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/README.rst +0 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/cam/__init__.py +0 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud/cam/v20190116/__init__.py +0 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud_sdk_python_cam.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud_sdk_python_cam.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cam-3.0.1265 → tencentcloud-sdk-python-cam-3.0.1280}/tencentcloud_sdk_python_cam.egg-info/top_level.txt +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-cam
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1280
|
|
4
4
|
Summary: Tencent Cloud Cam SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
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-cam',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1280"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Cam SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -2006,6 +2006,29 @@ class CamClient(AbstractClient):
|
|
|
2006
2006
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2007
2007
|
|
|
2008
2008
|
|
|
2009
|
+
def UpdateRoleSessionDuration(self, request):
|
|
2010
|
+
"""修改角色会话时长
|
|
2011
|
+
|
|
2012
|
+
:param request: Request instance for UpdateRoleSessionDuration.
|
|
2013
|
+
:type request: :class:`tencentcloud.cam.v20190116.models.UpdateRoleSessionDurationRequest`
|
|
2014
|
+
:rtype: :class:`tencentcloud.cam.v20190116.models.UpdateRoleSessionDurationResponse`
|
|
2015
|
+
|
|
2016
|
+
"""
|
|
2017
|
+
try:
|
|
2018
|
+
params = request._serialize()
|
|
2019
|
+
headers = request.headers
|
|
2020
|
+
body = self.call("UpdateRoleSessionDuration", params, headers=headers)
|
|
2021
|
+
response = json.loads(body)
|
|
2022
|
+
model = models.UpdateRoleSessionDurationResponse()
|
|
2023
|
+
model._deserialize(response["Response"])
|
|
2024
|
+
return model
|
|
2025
|
+
except Exception as e:
|
|
2026
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2027
|
+
raise
|
|
2028
|
+
else:
|
|
2029
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2030
|
+
|
|
2031
|
+
|
|
2009
2032
|
def UpdateSAMLProvider(self, request):
|
|
2010
2033
|
"""更新SAML身份提供商信息
|
|
2011
2034
|
|
|
@@ -32,6 +32,9 @@ FAILEDOPERATION_CICIDENTITYFORBIDDEN = 'FailedOperation.CICIdentityForbidden'
|
|
|
32
32
|
# 凭据操作失败。
|
|
33
33
|
FAILEDOPERATION_FLOWAUTHILLEGAL = 'FailedOperation.FlowAuthIllegal'
|
|
34
34
|
|
|
35
|
+
# 获取用户地域信息失败
|
|
36
|
+
FAILEDOPERATION_GETUSERAREAERROR = 'FailedOperation.GetUserAreaError'
|
|
37
|
+
|
|
35
38
|
# 集团策略不允许操作。
|
|
36
39
|
FAILEDOPERATION_ORGANIZATIONPOLICYOPERATEERROR = 'FailedOperation.OrganizationPolicyOperateError'
|
|
37
40
|
|
|
@@ -738,10 +738,10 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
738
738
|
:param _AddTime: 创建时间
|
|
739
739
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
740
740
|
:type AddTime: str
|
|
741
|
-
:param _CreateMode: 创建来源,1 通过控制台创建, 2
|
|
741
|
+
:param _CreateMode: 创建来源,1 通过控制台创建, 2 通过策略语法创建
|
|
742
742
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
743
743
|
:type CreateMode: int
|
|
744
|
-
:param _PolicyType: 取值为
|
|
744
|
+
:param _PolicyType: 取值为User和QCS。User代表自定义策略,QCS代表系统策略
|
|
745
745
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
746
746
|
:type PolicyType: str
|
|
747
747
|
:param _Remark: 策略备注
|
|
@@ -753,10 +753,10 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
753
753
|
:param _OperateUin: 策略关联操作者ID,如果UinType为0表示子账号Uin,如果UinType为1表示角色ID
|
|
754
754
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
755
755
|
:type OperateUin: str
|
|
756
|
-
:param _OperateUinType:
|
|
756
|
+
:param _OperateUinType: 取值为0和1。OperateUinType为0表示OperateUin字段是子账号Uin。如果OperateUinType为1表示OperateUin字段是角色ID
|
|
757
757
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
758
758
|
:type OperateUinType: int
|
|
759
|
-
:param _Deactived:
|
|
759
|
+
:param _Deactived: 是否已下线,1代表已下线,0代表未下线
|
|
760
760
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
761
761
|
:type Deactived: int
|
|
762
762
|
:param _DeactivedDetail: 已下线的产品列表
|
|
@@ -812,7 +812,7 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
812
812
|
|
|
813
813
|
@property
|
|
814
814
|
def CreateMode(self):
|
|
815
|
-
"""创建来源,1 通过控制台创建, 2
|
|
815
|
+
"""创建来源,1 通过控制台创建, 2 通过策略语法创建
|
|
816
816
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
817
817
|
:rtype: int
|
|
818
818
|
"""
|
|
@@ -824,7 +824,7 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
824
824
|
|
|
825
825
|
@property
|
|
826
826
|
def PolicyType(self):
|
|
827
|
-
"""取值为
|
|
827
|
+
"""取值为User和QCS。User代表自定义策略,QCS代表系统策略
|
|
828
828
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
829
829
|
:rtype: str
|
|
830
830
|
"""
|
|
@@ -872,7 +872,7 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
872
872
|
|
|
873
873
|
@property
|
|
874
874
|
def OperateUinType(self):
|
|
875
|
-
"""
|
|
875
|
+
"""取值为0和1。OperateUinType为0表示OperateUin字段是子账号Uin。如果OperateUinType为1表示OperateUin字段是角色ID
|
|
876
876
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
877
877
|
:rtype: int
|
|
878
878
|
"""
|
|
@@ -884,7 +884,7 @@ class AttachPolicyInfo(AbstractModel):
|
|
|
884
884
|
|
|
885
885
|
@property
|
|
886
886
|
def Deactived(self):
|
|
887
|
-
"""
|
|
887
|
+
"""是否已下线,1代表已下线,0代表未下线
|
|
888
888
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
889
889
|
:rtype: int
|
|
890
890
|
"""
|
|
@@ -4511,7 +4511,7 @@ class DescribeSafeAuthFlagResponse(AbstractModel):
|
|
|
4511
4511
|
:type ActionFlag: :class:`tencentcloud.cam.v20190116.models.LoginActionFlag`
|
|
4512
4512
|
:param _OffsiteFlag: 异地登录保护设置
|
|
4513
4513
|
:type OffsiteFlag: :class:`tencentcloud.cam.v20190116.models.OffsiteFlag`
|
|
4514
|
-
:param _PromptTrust: 1: 提示
|
|
4514
|
+
:param _PromptTrust: 是否提示信任设备:1: 提示 0: 不提示
|
|
4515
4515
|
:type PromptTrust: int
|
|
4516
4516
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4517
4517
|
:type RequestId: str
|
|
@@ -4557,7 +4557,7 @@ class DescribeSafeAuthFlagResponse(AbstractModel):
|
|
|
4557
4557
|
|
|
4558
4558
|
@property
|
|
4559
4559
|
def PromptTrust(self):
|
|
4560
|
-
"""1: 提示
|
|
4560
|
+
"""是否提示信任设备:1: 提示 0: 不提示
|
|
4561
4561
|
:rtype: int
|
|
4562
4562
|
"""
|
|
4563
4563
|
return self._PromptTrust
|
|
@@ -7154,6 +7154,9 @@ class GroupMemberInfo(AbstractModel):
|
|
|
7154
7154
|
:type CreateTime: str
|
|
7155
7155
|
:param _IsReceiverOwner: 是否为主消息接收人。0-否 1-是
|
|
7156
7156
|
:type IsReceiverOwner: int
|
|
7157
|
+
:param _Remark: 昵称
|
|
7158
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7159
|
+
:type Remark: str
|
|
7157
7160
|
"""
|
|
7158
7161
|
self._Uid = None
|
|
7159
7162
|
self._Uin = None
|
|
@@ -7166,6 +7169,7 @@ class GroupMemberInfo(AbstractModel):
|
|
|
7166
7169
|
self._UserType = None
|
|
7167
7170
|
self._CreateTime = None
|
|
7168
7171
|
self._IsReceiverOwner = None
|
|
7172
|
+
self._Remark = None
|
|
7169
7173
|
|
|
7170
7174
|
@property
|
|
7171
7175
|
def Uid(self):
|
|
@@ -7288,6 +7292,18 @@ class GroupMemberInfo(AbstractModel):
|
|
|
7288
7292
|
def IsReceiverOwner(self, IsReceiverOwner):
|
|
7289
7293
|
self._IsReceiverOwner = IsReceiverOwner
|
|
7290
7294
|
|
|
7295
|
+
@property
|
|
7296
|
+
def Remark(self):
|
|
7297
|
+
"""昵称
|
|
7298
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7299
|
+
:rtype: str
|
|
7300
|
+
"""
|
|
7301
|
+
return self._Remark
|
|
7302
|
+
|
|
7303
|
+
@Remark.setter
|
|
7304
|
+
def Remark(self, Remark):
|
|
7305
|
+
self._Remark = Remark
|
|
7306
|
+
|
|
7291
7307
|
|
|
7292
7308
|
def _deserialize(self, params):
|
|
7293
7309
|
self._Uid = params.get("Uid")
|
|
@@ -7301,6 +7317,7 @@ class GroupMemberInfo(AbstractModel):
|
|
|
7301
7317
|
self._UserType = params.get("UserType")
|
|
7302
7318
|
self._CreateTime = params.get("CreateTime")
|
|
7303
7319
|
self._IsReceiverOwner = params.get("IsReceiverOwner")
|
|
7320
|
+
self._Remark = params.get("Remark")
|
|
7304
7321
|
memeber_set = set(params.keys())
|
|
7305
7322
|
for name, value in vars(self).items():
|
|
7306
7323
|
property_name = name[1:]
|
|
@@ -12795,6 +12812,100 @@ class UpdateRoleDescriptionResponse(AbstractModel):
|
|
|
12795
12812
|
self._RequestId = params.get("RequestId")
|
|
12796
12813
|
|
|
12797
12814
|
|
|
12815
|
+
class UpdateRoleSessionDurationRequest(AbstractModel):
|
|
12816
|
+
"""UpdateRoleSessionDuration请求参数结构体
|
|
12817
|
+
|
|
12818
|
+
"""
|
|
12819
|
+
|
|
12820
|
+
def __init__(self):
|
|
12821
|
+
r"""
|
|
12822
|
+
:param _SessionDuration: 时长(秒)
|
|
12823
|
+
:type SessionDuration: int
|
|
12824
|
+
:param _RoleName: 角色名(与角色ID必填一个)
|
|
12825
|
+
:type RoleName: str
|
|
12826
|
+
:param _RoleId: 角色ID(与角色名必填一个)
|
|
12827
|
+
:type RoleId: int
|
|
12828
|
+
"""
|
|
12829
|
+
self._SessionDuration = None
|
|
12830
|
+
self._RoleName = None
|
|
12831
|
+
self._RoleId = None
|
|
12832
|
+
|
|
12833
|
+
@property
|
|
12834
|
+
def SessionDuration(self):
|
|
12835
|
+
"""时长(秒)
|
|
12836
|
+
:rtype: int
|
|
12837
|
+
"""
|
|
12838
|
+
return self._SessionDuration
|
|
12839
|
+
|
|
12840
|
+
@SessionDuration.setter
|
|
12841
|
+
def SessionDuration(self, SessionDuration):
|
|
12842
|
+
self._SessionDuration = SessionDuration
|
|
12843
|
+
|
|
12844
|
+
@property
|
|
12845
|
+
def RoleName(self):
|
|
12846
|
+
"""角色名(与角色ID必填一个)
|
|
12847
|
+
:rtype: str
|
|
12848
|
+
"""
|
|
12849
|
+
return self._RoleName
|
|
12850
|
+
|
|
12851
|
+
@RoleName.setter
|
|
12852
|
+
def RoleName(self, RoleName):
|
|
12853
|
+
self._RoleName = RoleName
|
|
12854
|
+
|
|
12855
|
+
@property
|
|
12856
|
+
def RoleId(self):
|
|
12857
|
+
"""角色ID(与角色名必填一个)
|
|
12858
|
+
:rtype: int
|
|
12859
|
+
"""
|
|
12860
|
+
return self._RoleId
|
|
12861
|
+
|
|
12862
|
+
@RoleId.setter
|
|
12863
|
+
def RoleId(self, RoleId):
|
|
12864
|
+
self._RoleId = RoleId
|
|
12865
|
+
|
|
12866
|
+
|
|
12867
|
+
def _deserialize(self, params):
|
|
12868
|
+
self._SessionDuration = params.get("SessionDuration")
|
|
12869
|
+
self._RoleName = params.get("RoleName")
|
|
12870
|
+
self._RoleId = params.get("RoleId")
|
|
12871
|
+
memeber_set = set(params.keys())
|
|
12872
|
+
for name, value in vars(self).items():
|
|
12873
|
+
property_name = name[1:]
|
|
12874
|
+
if property_name in memeber_set:
|
|
12875
|
+
memeber_set.remove(property_name)
|
|
12876
|
+
if len(memeber_set) > 0:
|
|
12877
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12878
|
+
|
|
12879
|
+
|
|
12880
|
+
|
|
12881
|
+
class UpdateRoleSessionDurationResponse(AbstractModel):
|
|
12882
|
+
"""UpdateRoleSessionDuration返回参数结构体
|
|
12883
|
+
|
|
12884
|
+
"""
|
|
12885
|
+
|
|
12886
|
+
def __init__(self):
|
|
12887
|
+
r"""
|
|
12888
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12889
|
+
:type RequestId: str
|
|
12890
|
+
"""
|
|
12891
|
+
self._RequestId = None
|
|
12892
|
+
|
|
12893
|
+
@property
|
|
12894
|
+
def RequestId(self):
|
|
12895
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12896
|
+
:rtype: str
|
|
12897
|
+
"""
|
|
12898
|
+
return self._RequestId
|
|
12899
|
+
|
|
12900
|
+
@RequestId.setter
|
|
12901
|
+
def RequestId(self, RequestId):
|
|
12902
|
+
self._RequestId = RequestId
|
|
12903
|
+
|
|
12904
|
+
|
|
12905
|
+
def _deserialize(self, params):
|
|
12906
|
+
self._RequestId = params.get("RequestId")
|
|
12907
|
+
|
|
12908
|
+
|
|
12798
12909
|
class UpdateSAMLProviderRequest(AbstractModel):
|
|
12799
12910
|
"""UpdateSAMLProvider请求参数结构体
|
|
12800
12911
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
Metadata-Version: 1.
|
|
1
|
+
Metadata-Version: 1.2
|
|
2
2
|
Name: tencentcloud-sdk-python-cam
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.1280
|
|
4
4
|
Summary: Tencent Cloud Cam SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
7
|
-
|
|
7
|
+
Maintainer-email: tencentcloudapi@tencent.com
|
|
8
8
|
License: Apache License 2.0
|
|
9
9
|
Description: ============================
|
|
10
10
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1280
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1265
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|