tencentcloud-sdk-python-organization 3.0.1158__tar.gz → 3.0.1173__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-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/setup.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20210331/errorcodes.py +6 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20210331/models.py +153 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20210331/organization_client.py +46 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-organization-3.0.1173/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-organization-3.0.1158/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/README.rst +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/setup.cfg +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20181225/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20181225/models.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20181225/organization_client.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud/organization/v20210331/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1158 → tencentcloud-sdk-python-organization-3.0.1173}/tencentcloud_sdk_python_organization.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-organization',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1173"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Organization SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -77,6 +77,9 @@ FAILEDOPERATION_EMAILALREADYUSED = 'FailedOperation.EmailAlreadyUsed'
|
|
|
77
77
|
# 邮箱绑定已经失效。
|
|
78
78
|
FAILEDOPERATION_EMAILBINDRECORDINVALID = 'FailedOperation.EmailBindRecordInvalid'
|
|
79
79
|
|
|
80
|
+
# 存在不在组织内的共享成员。
|
|
81
|
+
FAILEDOPERATION_EXISTSHAREMEMBERNOTINORGANIZATION = 'FailedOperation.ExistShareMemberNotInOrganization'
|
|
82
|
+
|
|
80
83
|
# 查询实名信息出错。
|
|
81
84
|
FAILEDOPERATION_GETAUTHINFO = 'FailedOperation.GetAuthInfo'
|
|
82
85
|
|
|
@@ -206,6 +209,9 @@ FAILEDOPERATION_RESOURCEOVERLIMIT = 'FailedOperation.ResourceOverLimit'
|
|
|
206
209
|
# 共享地域不存在。
|
|
207
210
|
FAILEDOPERATION_SHAREAREANOTEXIST = 'FailedOperation.ShareAreaNotExist'
|
|
208
211
|
|
|
212
|
+
# 共享成员不存在。
|
|
213
|
+
FAILEDOPERATION_SHAREMEMBERNOTEXIST = 'FailedOperation.ShareMemberNotExist'
|
|
214
|
+
|
|
209
215
|
# 成员正在使用共享资源。
|
|
210
216
|
FAILEDOPERATION_SHARERESOURCEMEMBERINUSE = 'FailedOperation.ShareResourceMemberInUse'
|
|
211
217
|
|
|
@@ -18,6 +18,64 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class AcceptJoinShareUnitInvitationRequest(AbstractModel):
|
|
22
|
+
"""AcceptJoinShareUnitInvitation请求参数结构体
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _UnitId: 共享单元ID。
|
|
29
|
+
:type UnitId: str
|
|
30
|
+
"""
|
|
31
|
+
self._UnitId = None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def UnitId(self):
|
|
35
|
+
return self._UnitId
|
|
36
|
+
|
|
37
|
+
@UnitId.setter
|
|
38
|
+
def UnitId(self, UnitId):
|
|
39
|
+
self._UnitId = UnitId
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def _deserialize(self, params):
|
|
43
|
+
self._UnitId = params.get("UnitId")
|
|
44
|
+
memeber_set = set(params.keys())
|
|
45
|
+
for name, value in vars(self).items():
|
|
46
|
+
property_name = name[1:]
|
|
47
|
+
if property_name in memeber_set:
|
|
48
|
+
memeber_set.remove(property_name)
|
|
49
|
+
if len(memeber_set) > 0:
|
|
50
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class AcceptJoinShareUnitInvitationResponse(AbstractModel):
|
|
55
|
+
"""AcceptJoinShareUnitInvitation返回参数结构体
|
|
56
|
+
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def __init__(self):
|
|
60
|
+
r"""
|
|
61
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
62
|
+
:type RequestId: str
|
|
63
|
+
"""
|
|
64
|
+
self._RequestId = None
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def RequestId(self):
|
|
68
|
+
return self._RequestId
|
|
69
|
+
|
|
70
|
+
@RequestId.setter
|
|
71
|
+
def RequestId(self, RequestId):
|
|
72
|
+
self._RequestId = RequestId
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def _deserialize(self, params):
|
|
76
|
+
self._RequestId = params.get("RequestId")
|
|
77
|
+
|
|
78
|
+
|
|
21
79
|
class AddOrganizationMemberEmailRequest(AbstractModel):
|
|
22
80
|
"""AddOrganizationMemberEmail请求参数结构体
|
|
23
81
|
|
|
@@ -319,10 +377,13 @@ class AddShareUnitRequest(AbstractModel):
|
|
|
319
377
|
:type Area: str
|
|
320
378
|
:param _Description: 共享单元描述。最大128个字符。
|
|
321
379
|
:type Description: str
|
|
380
|
+
:param _ShareScope: 共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号,默认值:1
|
|
381
|
+
:type ShareScope: int
|
|
322
382
|
"""
|
|
323
383
|
self._Name = None
|
|
324
384
|
self._Area = None
|
|
325
385
|
self._Description = None
|
|
386
|
+
self._ShareScope = None
|
|
326
387
|
|
|
327
388
|
@property
|
|
328
389
|
def Name(self):
|
|
@@ -348,11 +409,20 @@ class AddShareUnitRequest(AbstractModel):
|
|
|
348
409
|
def Description(self, Description):
|
|
349
410
|
self._Description = Description
|
|
350
411
|
|
|
412
|
+
@property
|
|
413
|
+
def ShareScope(self):
|
|
414
|
+
return self._ShareScope
|
|
415
|
+
|
|
416
|
+
@ShareScope.setter
|
|
417
|
+
def ShareScope(self, ShareScope):
|
|
418
|
+
self._ShareScope = ShareScope
|
|
419
|
+
|
|
351
420
|
|
|
352
421
|
def _deserialize(self, params):
|
|
353
422
|
self._Name = params.get("Name")
|
|
354
423
|
self._Area = params.get("Area")
|
|
355
424
|
self._Description = params.get("Description")
|
|
425
|
+
self._ShareScope = params.get("ShareScope")
|
|
356
426
|
memeber_set = set(params.keys())
|
|
357
427
|
for name, value in vars(self).items():
|
|
358
428
|
property_name = name[1:]
|
|
@@ -6164,6 +6234,9 @@ class ManagerShareUnit(AbstractModel):
|
|
|
6164
6234
|
:param _ShareMemberNum: 共享单元成员数。
|
|
6165
6235
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6166
6236
|
:type ShareMemberNum: int
|
|
6237
|
+
:param _ShareScope: 共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号
|
|
6238
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6239
|
+
:type ShareScope: int
|
|
6167
6240
|
"""
|
|
6168
6241
|
self._UnitId = None
|
|
6169
6242
|
self._Name = None
|
|
@@ -6174,6 +6247,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
6174
6247
|
self._CreateTime = None
|
|
6175
6248
|
self._ShareResourceNum = None
|
|
6176
6249
|
self._ShareMemberNum = None
|
|
6250
|
+
self._ShareScope = None
|
|
6177
6251
|
|
|
6178
6252
|
@property
|
|
6179
6253
|
def UnitId(self):
|
|
@@ -6247,6 +6321,14 @@ class ManagerShareUnit(AbstractModel):
|
|
|
6247
6321
|
def ShareMemberNum(self, ShareMemberNum):
|
|
6248
6322
|
self._ShareMemberNum = ShareMemberNum
|
|
6249
6323
|
|
|
6324
|
+
@property
|
|
6325
|
+
def ShareScope(self):
|
|
6326
|
+
return self._ShareScope
|
|
6327
|
+
|
|
6328
|
+
@ShareScope.setter
|
|
6329
|
+
def ShareScope(self, ShareScope):
|
|
6330
|
+
self._ShareScope = ShareScope
|
|
6331
|
+
|
|
6250
6332
|
|
|
6251
6333
|
def _deserialize(self, params):
|
|
6252
6334
|
self._UnitId = params.get("UnitId")
|
|
@@ -6258,6 +6340,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
6258
6340
|
self._CreateTime = params.get("CreateTime")
|
|
6259
6341
|
self._ShareResourceNum = params.get("ShareResourceNum")
|
|
6260
6342
|
self._ShareMemberNum = params.get("ShareMemberNum")
|
|
6343
|
+
self._ShareScope = params.get("ShareScope")
|
|
6261
6344
|
memeber_set = set(params.keys())
|
|
6262
6345
|
for name, value in vars(self).items():
|
|
6263
6346
|
property_name = name[1:]
|
|
@@ -7810,6 +7893,64 @@ class QuitOrganizationResponse(AbstractModel):
|
|
|
7810
7893
|
self._RequestId = params.get("RequestId")
|
|
7811
7894
|
|
|
7812
7895
|
|
|
7896
|
+
class RejectJoinShareUnitInvitationRequest(AbstractModel):
|
|
7897
|
+
"""RejectJoinShareUnitInvitation请求参数结构体
|
|
7898
|
+
|
|
7899
|
+
"""
|
|
7900
|
+
|
|
7901
|
+
def __init__(self):
|
|
7902
|
+
r"""
|
|
7903
|
+
:param _UnitId: 共享单元ID。
|
|
7904
|
+
:type UnitId: str
|
|
7905
|
+
"""
|
|
7906
|
+
self._UnitId = None
|
|
7907
|
+
|
|
7908
|
+
@property
|
|
7909
|
+
def UnitId(self):
|
|
7910
|
+
return self._UnitId
|
|
7911
|
+
|
|
7912
|
+
@UnitId.setter
|
|
7913
|
+
def UnitId(self, UnitId):
|
|
7914
|
+
self._UnitId = UnitId
|
|
7915
|
+
|
|
7916
|
+
|
|
7917
|
+
def _deserialize(self, params):
|
|
7918
|
+
self._UnitId = params.get("UnitId")
|
|
7919
|
+
memeber_set = set(params.keys())
|
|
7920
|
+
for name, value in vars(self).items():
|
|
7921
|
+
property_name = name[1:]
|
|
7922
|
+
if property_name in memeber_set:
|
|
7923
|
+
memeber_set.remove(property_name)
|
|
7924
|
+
if len(memeber_set) > 0:
|
|
7925
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7926
|
+
|
|
7927
|
+
|
|
7928
|
+
|
|
7929
|
+
class RejectJoinShareUnitInvitationResponse(AbstractModel):
|
|
7930
|
+
"""RejectJoinShareUnitInvitation返回参数结构体
|
|
7931
|
+
|
|
7932
|
+
"""
|
|
7933
|
+
|
|
7934
|
+
def __init__(self):
|
|
7935
|
+
r"""
|
|
7936
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7937
|
+
:type RequestId: str
|
|
7938
|
+
"""
|
|
7939
|
+
self._RequestId = None
|
|
7940
|
+
|
|
7941
|
+
@property
|
|
7942
|
+
def RequestId(self):
|
|
7943
|
+
return self._RequestId
|
|
7944
|
+
|
|
7945
|
+
@RequestId.setter
|
|
7946
|
+
def RequestId(self, RequestId):
|
|
7947
|
+
self._RequestId = RequestId
|
|
7948
|
+
|
|
7949
|
+
|
|
7950
|
+
def _deserialize(self, params):
|
|
7951
|
+
self._RequestId = params.get("RequestId")
|
|
7952
|
+
|
|
7953
|
+
|
|
7813
7954
|
class ResourceTagMapping(AbstractModel):
|
|
7814
7955
|
"""资源及关联的标签
|
|
7815
7956
|
|
|
@@ -8805,10 +8946,13 @@ class UpdateShareUnitRequest(AbstractModel):
|
|
|
8805
8946
|
:type Name: str
|
|
8806
8947
|
:param _Description: 共享单元描述。最大128个字符。
|
|
8807
8948
|
:type Description: str
|
|
8949
|
+
:param _ShareScope: 共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号,默认值:1
|
|
8950
|
+
:type ShareScope: int
|
|
8808
8951
|
"""
|
|
8809
8952
|
self._UnitId = None
|
|
8810
8953
|
self._Name = None
|
|
8811
8954
|
self._Description = None
|
|
8955
|
+
self._ShareScope = None
|
|
8812
8956
|
|
|
8813
8957
|
@property
|
|
8814
8958
|
def UnitId(self):
|
|
@@ -8834,11 +8978,20 @@ class UpdateShareUnitRequest(AbstractModel):
|
|
|
8834
8978
|
def Description(self, Description):
|
|
8835
8979
|
self._Description = Description
|
|
8836
8980
|
|
|
8981
|
+
@property
|
|
8982
|
+
def ShareScope(self):
|
|
8983
|
+
return self._ShareScope
|
|
8984
|
+
|
|
8985
|
+
@ShareScope.setter
|
|
8986
|
+
def ShareScope(self, ShareScope):
|
|
8987
|
+
self._ShareScope = ShareScope
|
|
8988
|
+
|
|
8837
8989
|
|
|
8838
8990
|
def _deserialize(self, params):
|
|
8839
8991
|
self._UnitId = params.get("UnitId")
|
|
8840
8992
|
self._Name = params.get("Name")
|
|
8841
8993
|
self._Description = params.get("Description")
|
|
8994
|
+
self._ShareScope = params.get("ShareScope")
|
|
8842
8995
|
memeber_set = set(params.keys())
|
|
8843
8996
|
for name, value in vars(self).items():
|
|
8844
8997
|
property_name = name[1:]
|
|
@@ -26,6 +26,29 @@ class OrganizationClient(AbstractClient):
|
|
|
26
26
|
_service = 'organization'
|
|
27
27
|
|
|
28
28
|
|
|
29
|
+
def AcceptJoinShareUnitInvitation(self, request):
|
|
30
|
+
"""接受加入共享单元邀请。
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for AcceptJoinShareUnitInvitation.
|
|
33
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.AcceptJoinShareUnitInvitationRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.AcceptJoinShareUnitInvitationResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("AcceptJoinShareUnitInvitation", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.AcceptJoinShareUnitInvitationResponse()
|
|
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
|
+
|
|
29
52
|
def AddOrganizationMemberEmail(self, request):
|
|
30
53
|
"""添加组织成员邮箱
|
|
31
54
|
|
|
@@ -1291,6 +1314,29 @@ class OrganizationClient(AbstractClient):
|
|
|
1291
1314
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1292
1315
|
|
|
1293
1316
|
|
|
1317
|
+
def RejectJoinShareUnitInvitation(self, request):
|
|
1318
|
+
"""拒绝加入共享单元邀请。
|
|
1319
|
+
|
|
1320
|
+
:param request: Request instance for RejectJoinShareUnitInvitation.
|
|
1321
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.RejectJoinShareUnitInvitationRequest`
|
|
1322
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.RejectJoinShareUnitInvitationResponse`
|
|
1323
|
+
|
|
1324
|
+
"""
|
|
1325
|
+
try:
|
|
1326
|
+
params = request._serialize()
|
|
1327
|
+
headers = request.headers
|
|
1328
|
+
body = self.call("RejectJoinShareUnitInvitation", params, headers=headers)
|
|
1329
|
+
response = json.loads(body)
|
|
1330
|
+
model = models.RejectJoinShareUnitInvitationResponse()
|
|
1331
|
+
model._deserialize(response["Response"])
|
|
1332
|
+
return model
|
|
1333
|
+
except Exception as e:
|
|
1334
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1335
|
+
raise
|
|
1336
|
+
else:
|
|
1337
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1338
|
+
|
|
1339
|
+
|
|
1294
1340
|
def UpdateOrganizationIdentity(self, request):
|
|
1295
1341
|
"""更新组织身份
|
|
1296
1342
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1173
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1158
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|