tencentcloud-sdk-python-organization 3.0.1333__tar.gz → 3.0.1337__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.1333 → tencentcloud-sdk-python-organization-3.0.1337}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/setup.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20210331/models.py +158 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20210331/organization_client.py +46 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-organization-3.0.1337/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-organization-3.0.1333/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/README.rst +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/setup.cfg +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20181225/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20181225/models.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20181225/organization_client.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20210331/__init__.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud/organization/v20210331/errorcodes.py +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-organization-3.0.1333 → tencentcloud-sdk-python-organization-3.0.1337}/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.1337"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Organization SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1343,6 +1343,85 @@ class BindOrganizationMemberAuthAccountResponse(AbstractModel):
|
|
|
1343
1343
|
self._RequestId = params.get("RequestId")
|
|
1344
1344
|
|
|
1345
1345
|
|
|
1346
|
+
class BindOrganizationPolicySubAccountRequest(AbstractModel):
|
|
1347
|
+
"""BindOrganizationPolicySubAccount请求参数结构体
|
|
1348
|
+
|
|
1349
|
+
"""
|
|
1350
|
+
|
|
1351
|
+
def __init__(self):
|
|
1352
|
+
r"""
|
|
1353
|
+
:param _PolicyId: 策略ID。
|
|
1354
|
+
:type PolicyId: int
|
|
1355
|
+
:param _OrgSubAccountUins: 组织管理员子账号Uin列表。最大5个
|
|
1356
|
+
:type OrgSubAccountUins: list of int
|
|
1357
|
+
"""
|
|
1358
|
+
self._PolicyId = None
|
|
1359
|
+
self._OrgSubAccountUins = None
|
|
1360
|
+
|
|
1361
|
+
@property
|
|
1362
|
+
def PolicyId(self):
|
|
1363
|
+
"""策略ID。
|
|
1364
|
+
:rtype: int
|
|
1365
|
+
"""
|
|
1366
|
+
return self._PolicyId
|
|
1367
|
+
|
|
1368
|
+
@PolicyId.setter
|
|
1369
|
+
def PolicyId(self, PolicyId):
|
|
1370
|
+
self._PolicyId = PolicyId
|
|
1371
|
+
|
|
1372
|
+
@property
|
|
1373
|
+
def OrgSubAccountUins(self):
|
|
1374
|
+
"""组织管理员子账号Uin列表。最大5个
|
|
1375
|
+
:rtype: list of int
|
|
1376
|
+
"""
|
|
1377
|
+
return self._OrgSubAccountUins
|
|
1378
|
+
|
|
1379
|
+
@OrgSubAccountUins.setter
|
|
1380
|
+
def OrgSubAccountUins(self, OrgSubAccountUins):
|
|
1381
|
+
self._OrgSubAccountUins = OrgSubAccountUins
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
def _deserialize(self, params):
|
|
1385
|
+
self._PolicyId = params.get("PolicyId")
|
|
1386
|
+
self._OrgSubAccountUins = params.get("OrgSubAccountUins")
|
|
1387
|
+
memeber_set = set(params.keys())
|
|
1388
|
+
for name, value in vars(self).items():
|
|
1389
|
+
property_name = name[1:]
|
|
1390
|
+
if property_name in memeber_set:
|
|
1391
|
+
memeber_set.remove(property_name)
|
|
1392
|
+
if len(memeber_set) > 0:
|
|
1393
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
class BindOrganizationPolicySubAccountResponse(AbstractModel):
|
|
1398
|
+
"""BindOrganizationPolicySubAccount返回参数结构体
|
|
1399
|
+
|
|
1400
|
+
"""
|
|
1401
|
+
|
|
1402
|
+
def __init__(self):
|
|
1403
|
+
r"""
|
|
1404
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1405
|
+
:type RequestId: str
|
|
1406
|
+
"""
|
|
1407
|
+
self._RequestId = None
|
|
1408
|
+
|
|
1409
|
+
@property
|
|
1410
|
+
def RequestId(self):
|
|
1411
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1412
|
+
:rtype: str
|
|
1413
|
+
"""
|
|
1414
|
+
return self._RequestId
|
|
1415
|
+
|
|
1416
|
+
@RequestId.setter
|
|
1417
|
+
def RequestId(self, RequestId):
|
|
1418
|
+
self._RequestId = RequestId
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
def _deserialize(self, params):
|
|
1422
|
+
self._RequestId = params.get("RequestId")
|
|
1423
|
+
|
|
1424
|
+
|
|
1346
1425
|
class CancelOrganizationMemberAuthAccountRequest(AbstractModel):
|
|
1347
1426
|
"""CancelOrganizationMemberAuthAccount请求参数结构体
|
|
1348
1427
|
|
|
@@ -1437,6 +1516,85 @@ class CancelOrganizationMemberAuthAccountResponse(AbstractModel):
|
|
|
1437
1516
|
self._RequestId = params.get("RequestId")
|
|
1438
1517
|
|
|
1439
1518
|
|
|
1519
|
+
class CancelOrganizationPolicySubAccountRequest(AbstractModel):
|
|
1520
|
+
"""CancelOrganizationPolicySubAccount请求参数结构体
|
|
1521
|
+
|
|
1522
|
+
"""
|
|
1523
|
+
|
|
1524
|
+
def __init__(self):
|
|
1525
|
+
r"""
|
|
1526
|
+
:param _PolicyId: 策略ID。
|
|
1527
|
+
:type PolicyId: int
|
|
1528
|
+
:param _OrgSubAccountUins: 组织管理员子账号Uin列表。最大5个
|
|
1529
|
+
:type OrgSubAccountUins: list of int
|
|
1530
|
+
"""
|
|
1531
|
+
self._PolicyId = None
|
|
1532
|
+
self._OrgSubAccountUins = None
|
|
1533
|
+
|
|
1534
|
+
@property
|
|
1535
|
+
def PolicyId(self):
|
|
1536
|
+
"""策略ID。
|
|
1537
|
+
:rtype: int
|
|
1538
|
+
"""
|
|
1539
|
+
return self._PolicyId
|
|
1540
|
+
|
|
1541
|
+
@PolicyId.setter
|
|
1542
|
+
def PolicyId(self, PolicyId):
|
|
1543
|
+
self._PolicyId = PolicyId
|
|
1544
|
+
|
|
1545
|
+
@property
|
|
1546
|
+
def OrgSubAccountUins(self):
|
|
1547
|
+
"""组织管理员子账号Uin列表。最大5个
|
|
1548
|
+
:rtype: list of int
|
|
1549
|
+
"""
|
|
1550
|
+
return self._OrgSubAccountUins
|
|
1551
|
+
|
|
1552
|
+
@OrgSubAccountUins.setter
|
|
1553
|
+
def OrgSubAccountUins(self, OrgSubAccountUins):
|
|
1554
|
+
self._OrgSubAccountUins = OrgSubAccountUins
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
def _deserialize(self, params):
|
|
1558
|
+
self._PolicyId = params.get("PolicyId")
|
|
1559
|
+
self._OrgSubAccountUins = params.get("OrgSubAccountUins")
|
|
1560
|
+
memeber_set = set(params.keys())
|
|
1561
|
+
for name, value in vars(self).items():
|
|
1562
|
+
property_name = name[1:]
|
|
1563
|
+
if property_name in memeber_set:
|
|
1564
|
+
memeber_set.remove(property_name)
|
|
1565
|
+
if len(memeber_set) > 0:
|
|
1566
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
|
|
1570
|
+
class CancelOrganizationPolicySubAccountResponse(AbstractModel):
|
|
1571
|
+
"""CancelOrganizationPolicySubAccount返回参数结构体
|
|
1572
|
+
|
|
1573
|
+
"""
|
|
1574
|
+
|
|
1575
|
+
def __init__(self):
|
|
1576
|
+
r"""
|
|
1577
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1578
|
+
:type RequestId: str
|
|
1579
|
+
"""
|
|
1580
|
+
self._RequestId = None
|
|
1581
|
+
|
|
1582
|
+
@property
|
|
1583
|
+
def RequestId(self):
|
|
1584
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1585
|
+
:rtype: str
|
|
1586
|
+
"""
|
|
1587
|
+
return self._RequestId
|
|
1588
|
+
|
|
1589
|
+
@RequestId.setter
|
|
1590
|
+
def RequestId(self, RequestId):
|
|
1591
|
+
self._RequestId = RequestId
|
|
1592
|
+
|
|
1593
|
+
|
|
1594
|
+
def _deserialize(self, params):
|
|
1595
|
+
self._RequestId = params.get("RequestId")
|
|
1596
|
+
|
|
1597
|
+
|
|
1440
1598
|
class CheckAccountDeleteRequest(AbstractModel):
|
|
1441
1599
|
"""CheckAccountDelete请求参数结构体
|
|
1442
1600
|
|
|
@@ -279,6 +279,29 @@ class OrganizationClient(AbstractClient):
|
|
|
279
279
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
280
|
|
|
281
281
|
|
|
282
|
+
def BindOrganizationPolicySubAccount(self, request):
|
|
283
|
+
"""绑定成员访问授权策略和组织管理员子账号
|
|
284
|
+
|
|
285
|
+
:param request: Request instance for BindOrganizationPolicySubAccount.
|
|
286
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.BindOrganizationPolicySubAccountRequest`
|
|
287
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.BindOrganizationPolicySubAccountResponse`
|
|
288
|
+
|
|
289
|
+
"""
|
|
290
|
+
try:
|
|
291
|
+
params = request._serialize()
|
|
292
|
+
headers = request.headers
|
|
293
|
+
body = self.call("BindOrganizationPolicySubAccount", params, headers=headers)
|
|
294
|
+
response = json.loads(body)
|
|
295
|
+
model = models.BindOrganizationPolicySubAccountResponse()
|
|
296
|
+
model._deserialize(response["Response"])
|
|
297
|
+
return model
|
|
298
|
+
except Exception as e:
|
|
299
|
+
if isinstance(e, TencentCloudSDKException):
|
|
300
|
+
raise
|
|
301
|
+
else:
|
|
302
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
|
+
|
|
304
|
+
|
|
282
305
|
def CancelOrganizationMemberAuthAccount(self, request):
|
|
283
306
|
"""取消组织成员和组织管理员子账号的授权关系
|
|
284
307
|
|
|
@@ -302,6 +325,29 @@ class OrganizationClient(AbstractClient):
|
|
|
302
325
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
326
|
|
|
304
327
|
|
|
328
|
+
def CancelOrganizationPolicySubAccount(self, request):
|
|
329
|
+
"""解绑成员访问授权策略和组织管理员子账号
|
|
330
|
+
|
|
331
|
+
:param request: Request instance for CancelOrganizationPolicySubAccount.
|
|
332
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.CancelOrganizationPolicySubAccountRequest`
|
|
333
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.CancelOrganizationPolicySubAccountResponse`
|
|
334
|
+
|
|
335
|
+
"""
|
|
336
|
+
try:
|
|
337
|
+
params = request._serialize()
|
|
338
|
+
headers = request.headers
|
|
339
|
+
body = self.call("CancelOrganizationPolicySubAccount", params, headers=headers)
|
|
340
|
+
response = json.loads(body)
|
|
341
|
+
model = models.CancelOrganizationPolicySubAccountResponse()
|
|
342
|
+
model._deserialize(response["Response"])
|
|
343
|
+
return model
|
|
344
|
+
except Exception as e:
|
|
345
|
+
if isinstance(e, TencentCloudSDKException):
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
|
+
|
|
350
|
+
|
|
305
351
|
def CheckAccountDelete(self, request):
|
|
306
352
|
"""成员账号删除检查
|
|
307
353
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1337
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1333
|
|
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
|
|
File without changes
|