tencentcloud-sdk-python-cam 3.0.1278__tar.gz → 3.0.1289__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.1278 → tencentcloud-sdk-python-cam-3.0.1289}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/setup.py +1 -1
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/cam/v20190116/cam_client.py +23 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/cam/v20190116/errorcodes.py +3 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/cam/v20190116/models.py +111 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud_sdk_python_cam.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-cam-3.0.1289/tencentcloud_sdk_python_cam.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-cam-3.0.1278/tencentcloud_sdk_python_cam.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/README.rst +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/setup.cfg +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/cam/__init__.py +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud/cam/v20190116/__init__.py +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud_sdk_python_cam.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud_sdk_python_cam.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-cam-3.0.1278 → tencentcloud-sdk-python-cam-3.0.1289}/tencentcloud_sdk_python_cam.egg-info/top_level.txt +0 -0
|
@@ -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.1289"],
|
|
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
|
|
|
@@ -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
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1289
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1278
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|