tencentcloud-sdk-python-organization 3.1.36__tar.gz → 3.1.53__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.1.36 → tencentcloud_sdk_python_organization-3.1.53}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/setup.py +1 -1
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20210331/errorcodes.py +9 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20210331/models.py +388 -20
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20210331/organization_client.py +69 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20210331/organization_client_async.py +54 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_organization-3.1.53/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_organization-3.1.36/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/README.rst +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/setup.cfg +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20181225/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20181225/models.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20181225/organization_client.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20181225/organization_client_async.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud/organization/v20210331/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/tencentcloud_sdk_python_organization.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-organization
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.53
|
|
4
4
|
Summary: Tencent Cloud Organization SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.53
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_organization-3.1.36 → tencentcloud_sdk_python_organization-3.1.53}/setup.py
RENAMED
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.53,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Organization SDK for Python',
|
|
@@ -341,6 +341,12 @@ FAILEDOPERATION_SHAREAREANOTEXIST = 'FailedOperation.ShareAreaNotExist'
|
|
|
341
341
|
# 共享成员不存在。
|
|
342
342
|
FAILEDOPERATION_SHAREMEMBERNOTEXIST = 'FailedOperation.ShareMemberNotExist'
|
|
343
343
|
|
|
344
|
+
# 部门在共享单元中。
|
|
345
|
+
FAILEDOPERATION_SHARENODEEXISTED = 'FailedOperation.ShareNodeExisted'
|
|
346
|
+
|
|
347
|
+
# 共享部门不存在。
|
|
348
|
+
FAILEDOPERATION_SHARENODENOTEXIST = 'FailedOperation.ShareNodeNotExist'
|
|
349
|
+
|
|
344
350
|
# 成员正在使用共享资源。
|
|
345
351
|
FAILEDOPERATION_SHARERESOURCEMEMBERINUSE = 'FailedOperation.ShareResourceMemberInUse'
|
|
346
352
|
|
|
@@ -707,6 +713,9 @@ LIMITEXCEEDED_SENDEMAILWITHINONEHOURLIMIT = 'LimitExceeded.SendEmailWithinOneHou
|
|
|
707
713
|
# 当次操作的共享成员超过上限。
|
|
708
714
|
LIMITEXCEEDED_SHAREUNITMEMBEROVERLIMIT = 'LimitExceeded.ShareUnitMemberOverLimit'
|
|
709
715
|
|
|
716
|
+
# 共享单元部门超过上限。
|
|
717
|
+
LIMITEXCEEDED_SHAREUNITNODEOVERLIMIT = 'LimitExceeded.ShareUnitNodeOverLimit'
|
|
718
|
+
|
|
710
719
|
# 当次操作的共享资源超过上限。
|
|
711
720
|
LIMITEXCEEDED_SHAREUNITRESOURCEOVERLIMIT = 'LimitExceeded.ShareUnitResourceOverLimit'
|
|
712
721
|
|
|
@@ -687,6 +687,85 @@ class AddShareUnitMembersResponse(AbstractModel):
|
|
|
687
687
|
self._RequestId = params.get("RequestId")
|
|
688
688
|
|
|
689
689
|
|
|
690
|
+
class AddShareUnitNodeRequest(AbstractModel):
|
|
691
|
+
r"""AddShareUnitNode请求参数结构体
|
|
692
|
+
|
|
693
|
+
"""
|
|
694
|
+
|
|
695
|
+
def __init__(self):
|
|
696
|
+
r"""
|
|
697
|
+
:param _UnitId: <p>共享单元ID。</p>
|
|
698
|
+
:type UnitId: str
|
|
699
|
+
:param _NodeId: <p>共享部门ID。</p>
|
|
700
|
+
:type NodeId: int
|
|
701
|
+
"""
|
|
702
|
+
self._UnitId = None
|
|
703
|
+
self._NodeId = None
|
|
704
|
+
|
|
705
|
+
@property
|
|
706
|
+
def UnitId(self):
|
|
707
|
+
r"""<p>共享单元ID。</p>
|
|
708
|
+
:rtype: str
|
|
709
|
+
"""
|
|
710
|
+
return self._UnitId
|
|
711
|
+
|
|
712
|
+
@UnitId.setter
|
|
713
|
+
def UnitId(self, UnitId):
|
|
714
|
+
self._UnitId = UnitId
|
|
715
|
+
|
|
716
|
+
@property
|
|
717
|
+
def NodeId(self):
|
|
718
|
+
r"""<p>共享部门ID。</p>
|
|
719
|
+
:rtype: int
|
|
720
|
+
"""
|
|
721
|
+
return self._NodeId
|
|
722
|
+
|
|
723
|
+
@NodeId.setter
|
|
724
|
+
def NodeId(self, NodeId):
|
|
725
|
+
self._NodeId = NodeId
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
def _deserialize(self, params):
|
|
729
|
+
self._UnitId = params.get("UnitId")
|
|
730
|
+
self._NodeId = params.get("NodeId")
|
|
731
|
+
memeber_set = set(params.keys())
|
|
732
|
+
for name, value in vars(self).items():
|
|
733
|
+
property_name = name[1:]
|
|
734
|
+
if property_name in memeber_set:
|
|
735
|
+
memeber_set.remove(property_name)
|
|
736
|
+
if len(memeber_set) > 0:
|
|
737
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
class AddShareUnitNodeResponse(AbstractModel):
|
|
742
|
+
r"""AddShareUnitNode返回参数结构体
|
|
743
|
+
|
|
744
|
+
"""
|
|
745
|
+
|
|
746
|
+
def __init__(self):
|
|
747
|
+
r"""
|
|
748
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
749
|
+
:type RequestId: str
|
|
750
|
+
"""
|
|
751
|
+
self._RequestId = None
|
|
752
|
+
|
|
753
|
+
@property
|
|
754
|
+
def RequestId(self):
|
|
755
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
756
|
+
:rtype: str
|
|
757
|
+
"""
|
|
758
|
+
return self._RequestId
|
|
759
|
+
|
|
760
|
+
@RequestId.setter
|
|
761
|
+
def RequestId(self, RequestId):
|
|
762
|
+
self._RequestId = RequestId
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
def _deserialize(self, params):
|
|
766
|
+
self._RequestId = params.get("RequestId")
|
|
767
|
+
|
|
768
|
+
|
|
690
769
|
class AddShareUnitRequest(AbstractModel):
|
|
691
770
|
r"""AddShareUnit请求参数结构体
|
|
692
771
|
|
|
@@ -4747,6 +4826,85 @@ class DeleteShareUnitMembersResponse(AbstractModel):
|
|
|
4747
4826
|
self._RequestId = params.get("RequestId")
|
|
4748
4827
|
|
|
4749
4828
|
|
|
4829
|
+
class DeleteShareUnitNodeRequest(AbstractModel):
|
|
4830
|
+
r"""DeleteShareUnitNode请求参数结构体
|
|
4831
|
+
|
|
4832
|
+
"""
|
|
4833
|
+
|
|
4834
|
+
def __init__(self):
|
|
4835
|
+
r"""
|
|
4836
|
+
:param _UnitId: <p>共享单元ID。</p>
|
|
4837
|
+
:type UnitId: str
|
|
4838
|
+
:param _NodeId: <p>部门ID。</p>
|
|
4839
|
+
:type NodeId: int
|
|
4840
|
+
"""
|
|
4841
|
+
self._UnitId = None
|
|
4842
|
+
self._NodeId = None
|
|
4843
|
+
|
|
4844
|
+
@property
|
|
4845
|
+
def UnitId(self):
|
|
4846
|
+
r"""<p>共享单元ID。</p>
|
|
4847
|
+
:rtype: str
|
|
4848
|
+
"""
|
|
4849
|
+
return self._UnitId
|
|
4850
|
+
|
|
4851
|
+
@UnitId.setter
|
|
4852
|
+
def UnitId(self, UnitId):
|
|
4853
|
+
self._UnitId = UnitId
|
|
4854
|
+
|
|
4855
|
+
@property
|
|
4856
|
+
def NodeId(self):
|
|
4857
|
+
r"""<p>部门ID。</p>
|
|
4858
|
+
:rtype: int
|
|
4859
|
+
"""
|
|
4860
|
+
return self._NodeId
|
|
4861
|
+
|
|
4862
|
+
@NodeId.setter
|
|
4863
|
+
def NodeId(self, NodeId):
|
|
4864
|
+
self._NodeId = NodeId
|
|
4865
|
+
|
|
4866
|
+
|
|
4867
|
+
def _deserialize(self, params):
|
|
4868
|
+
self._UnitId = params.get("UnitId")
|
|
4869
|
+
self._NodeId = params.get("NodeId")
|
|
4870
|
+
memeber_set = set(params.keys())
|
|
4871
|
+
for name, value in vars(self).items():
|
|
4872
|
+
property_name = name[1:]
|
|
4873
|
+
if property_name in memeber_set:
|
|
4874
|
+
memeber_set.remove(property_name)
|
|
4875
|
+
if len(memeber_set) > 0:
|
|
4876
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
|
|
4880
|
+
class DeleteShareUnitNodeResponse(AbstractModel):
|
|
4881
|
+
r"""DeleteShareUnitNode返回参数结构体
|
|
4882
|
+
|
|
4883
|
+
"""
|
|
4884
|
+
|
|
4885
|
+
def __init__(self):
|
|
4886
|
+
r"""
|
|
4887
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4888
|
+
:type RequestId: str
|
|
4889
|
+
"""
|
|
4890
|
+
self._RequestId = None
|
|
4891
|
+
|
|
4892
|
+
@property
|
|
4893
|
+
def RequestId(self):
|
|
4894
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4895
|
+
:rtype: str
|
|
4896
|
+
"""
|
|
4897
|
+
return self._RequestId
|
|
4898
|
+
|
|
4899
|
+
@RequestId.setter
|
|
4900
|
+
def RequestId(self, RequestId):
|
|
4901
|
+
self._RequestId = RequestId
|
|
4902
|
+
|
|
4903
|
+
|
|
4904
|
+
def _deserialize(self, params):
|
|
4905
|
+
self._RequestId = params.get("RequestId")
|
|
4906
|
+
|
|
4907
|
+
|
|
4750
4908
|
class DeleteShareUnitRequest(AbstractModel):
|
|
4751
4909
|
r"""DeleteShareUnit请求参数结构体
|
|
4752
4910
|
|
|
@@ -8131,6 +8289,150 @@ class DescribeShareUnitMembersResponse(AbstractModel):
|
|
|
8131
8289
|
self._RequestId = params.get("RequestId")
|
|
8132
8290
|
|
|
8133
8291
|
|
|
8292
|
+
class DescribeShareUnitNodesRequest(AbstractModel):
|
|
8293
|
+
r"""DescribeShareUnitNodes请求参数结构体
|
|
8294
|
+
|
|
8295
|
+
"""
|
|
8296
|
+
|
|
8297
|
+
def __init__(self):
|
|
8298
|
+
r"""
|
|
8299
|
+
:param _UnitId: <p>共享单元ID。</p>
|
|
8300
|
+
:type UnitId: str
|
|
8301
|
+
:param _Offset: <p>偏移量。取值是limit的整数倍,默认值 : 0</p>
|
|
8302
|
+
:type Offset: int
|
|
8303
|
+
:param _Limit: <p>限制数目。取值范围:1~50。</p>
|
|
8304
|
+
:type Limit: int
|
|
8305
|
+
:param _SearchKey: <p>搜索关键字。支持部门ID搜索。</p>
|
|
8306
|
+
:type SearchKey: str
|
|
8307
|
+
"""
|
|
8308
|
+
self._UnitId = None
|
|
8309
|
+
self._Offset = None
|
|
8310
|
+
self._Limit = None
|
|
8311
|
+
self._SearchKey = None
|
|
8312
|
+
|
|
8313
|
+
@property
|
|
8314
|
+
def UnitId(self):
|
|
8315
|
+
r"""<p>共享单元ID。</p>
|
|
8316
|
+
:rtype: str
|
|
8317
|
+
"""
|
|
8318
|
+
return self._UnitId
|
|
8319
|
+
|
|
8320
|
+
@UnitId.setter
|
|
8321
|
+
def UnitId(self, UnitId):
|
|
8322
|
+
self._UnitId = UnitId
|
|
8323
|
+
|
|
8324
|
+
@property
|
|
8325
|
+
def Offset(self):
|
|
8326
|
+
r"""<p>偏移量。取值是limit的整数倍,默认值 : 0</p>
|
|
8327
|
+
:rtype: int
|
|
8328
|
+
"""
|
|
8329
|
+
return self._Offset
|
|
8330
|
+
|
|
8331
|
+
@Offset.setter
|
|
8332
|
+
def Offset(self, Offset):
|
|
8333
|
+
self._Offset = Offset
|
|
8334
|
+
|
|
8335
|
+
@property
|
|
8336
|
+
def Limit(self):
|
|
8337
|
+
r"""<p>限制数目。取值范围:1~50。</p>
|
|
8338
|
+
:rtype: int
|
|
8339
|
+
"""
|
|
8340
|
+
return self._Limit
|
|
8341
|
+
|
|
8342
|
+
@Limit.setter
|
|
8343
|
+
def Limit(self, Limit):
|
|
8344
|
+
self._Limit = Limit
|
|
8345
|
+
|
|
8346
|
+
@property
|
|
8347
|
+
def SearchKey(self):
|
|
8348
|
+
r"""<p>搜索关键字。支持部门ID搜索。</p>
|
|
8349
|
+
:rtype: str
|
|
8350
|
+
"""
|
|
8351
|
+
return self._SearchKey
|
|
8352
|
+
|
|
8353
|
+
@SearchKey.setter
|
|
8354
|
+
def SearchKey(self, SearchKey):
|
|
8355
|
+
self._SearchKey = SearchKey
|
|
8356
|
+
|
|
8357
|
+
|
|
8358
|
+
def _deserialize(self, params):
|
|
8359
|
+
self._UnitId = params.get("UnitId")
|
|
8360
|
+
self._Offset = params.get("Offset")
|
|
8361
|
+
self._Limit = params.get("Limit")
|
|
8362
|
+
self._SearchKey = params.get("SearchKey")
|
|
8363
|
+
memeber_set = set(params.keys())
|
|
8364
|
+
for name, value in vars(self).items():
|
|
8365
|
+
property_name = name[1:]
|
|
8366
|
+
if property_name in memeber_set:
|
|
8367
|
+
memeber_set.remove(property_name)
|
|
8368
|
+
if len(memeber_set) > 0:
|
|
8369
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
8370
|
+
|
|
8371
|
+
|
|
8372
|
+
|
|
8373
|
+
class DescribeShareUnitNodesResponse(AbstractModel):
|
|
8374
|
+
r"""DescribeShareUnitNodes返回参数结构体
|
|
8375
|
+
|
|
8376
|
+
"""
|
|
8377
|
+
|
|
8378
|
+
def __init__(self):
|
|
8379
|
+
r"""
|
|
8380
|
+
:param _Total: <p>总数目。</p>
|
|
8381
|
+
:type Total: int
|
|
8382
|
+
:param _Items: <p>共享单元部门列表。</p>
|
|
8383
|
+
:type Items: list of ShareUnitNode
|
|
8384
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8385
|
+
:type RequestId: str
|
|
8386
|
+
"""
|
|
8387
|
+
self._Total = None
|
|
8388
|
+
self._Items = None
|
|
8389
|
+
self._RequestId = None
|
|
8390
|
+
|
|
8391
|
+
@property
|
|
8392
|
+
def Total(self):
|
|
8393
|
+
r"""<p>总数目。</p>
|
|
8394
|
+
:rtype: int
|
|
8395
|
+
"""
|
|
8396
|
+
return self._Total
|
|
8397
|
+
|
|
8398
|
+
@Total.setter
|
|
8399
|
+
def Total(self, Total):
|
|
8400
|
+
self._Total = Total
|
|
8401
|
+
|
|
8402
|
+
@property
|
|
8403
|
+
def Items(self):
|
|
8404
|
+
r"""<p>共享单元部门列表。</p>
|
|
8405
|
+
:rtype: list of ShareUnitNode
|
|
8406
|
+
"""
|
|
8407
|
+
return self._Items
|
|
8408
|
+
|
|
8409
|
+
@Items.setter
|
|
8410
|
+
def Items(self, Items):
|
|
8411
|
+
self._Items = Items
|
|
8412
|
+
|
|
8413
|
+
@property
|
|
8414
|
+
def RequestId(self):
|
|
8415
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8416
|
+
:rtype: str
|
|
8417
|
+
"""
|
|
8418
|
+
return self._RequestId
|
|
8419
|
+
|
|
8420
|
+
@RequestId.setter
|
|
8421
|
+
def RequestId(self, RequestId):
|
|
8422
|
+
self._RequestId = RequestId
|
|
8423
|
+
|
|
8424
|
+
|
|
8425
|
+
def _deserialize(self, params):
|
|
8426
|
+
self._Total = params.get("Total")
|
|
8427
|
+
if params.get("Items") is not None:
|
|
8428
|
+
self._Items = []
|
|
8429
|
+
for item in params.get("Items"):
|
|
8430
|
+
obj = ShareUnitNode()
|
|
8431
|
+
obj._deserialize(item)
|
|
8432
|
+
self._Items.append(obj)
|
|
8433
|
+
self._RequestId = params.get("RequestId")
|
|
8434
|
+
|
|
8435
|
+
|
|
8134
8436
|
class DescribeShareUnitResourcesRequest(AbstractModel):
|
|
8135
8437
|
r"""DescribeShareUnitResources请求参数结构体
|
|
8136
8438
|
|
|
@@ -14488,26 +14790,28 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14488
14790
|
|
|
14489
14791
|
def __init__(self):
|
|
14490
14792
|
r"""
|
|
14491
|
-
:param _UnitId:
|
|
14793
|
+
:param _UnitId: <p>共享单元ID。</p>
|
|
14492
14794
|
:type UnitId: str
|
|
14493
|
-
:param _Name:
|
|
14795
|
+
:param _Name: <p>共享单元名称。</p>
|
|
14494
14796
|
:type Name: str
|
|
14495
|
-
:param _Uin:
|
|
14797
|
+
:param _Uin: <p>共享单元管理员Uin。</p>
|
|
14496
14798
|
:type Uin: int
|
|
14497
|
-
:param _OwnerUin:
|
|
14799
|
+
:param _OwnerUin: <p>共享单元管理员OwnerUin。</p>
|
|
14498
14800
|
:type OwnerUin: int
|
|
14499
|
-
:param _Area:
|
|
14801
|
+
:param _Area: <p>共享单元地域。</p>
|
|
14500
14802
|
:type Area: str
|
|
14501
|
-
:param _Description:
|
|
14803
|
+
:param _Description: <p>描述。</p>
|
|
14502
14804
|
:type Description: str
|
|
14503
|
-
:param _CreateTime:
|
|
14805
|
+
:param _CreateTime: <p>创建时间。</p>
|
|
14504
14806
|
:type CreateTime: str
|
|
14505
|
-
:param _ShareResourceNum:
|
|
14807
|
+
:param _ShareResourceNum: <p>共享单元资源数。</p>
|
|
14506
14808
|
:type ShareResourceNum: int
|
|
14507
|
-
:param _ShareMemberNum:
|
|
14809
|
+
:param _ShareMemberNum: <p>共享单元成员数。</p>
|
|
14508
14810
|
:type ShareMemberNum: int
|
|
14509
|
-
:param _ShareScope:
|
|
14811
|
+
:param _ShareScope: <p>共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号</p>
|
|
14510
14812
|
:type ShareScope: int
|
|
14813
|
+
:param _ShareNodeNum: <p>共享单元部门数。</p>
|
|
14814
|
+
:type ShareNodeNum: int
|
|
14511
14815
|
"""
|
|
14512
14816
|
self._UnitId = None
|
|
14513
14817
|
self._Name = None
|
|
@@ -14519,10 +14823,11 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14519
14823
|
self._ShareResourceNum = None
|
|
14520
14824
|
self._ShareMemberNum = None
|
|
14521
14825
|
self._ShareScope = None
|
|
14826
|
+
self._ShareNodeNum = None
|
|
14522
14827
|
|
|
14523
14828
|
@property
|
|
14524
14829
|
def UnitId(self):
|
|
14525
|
-
r"""
|
|
14830
|
+
r"""<p>共享单元ID。</p>
|
|
14526
14831
|
:rtype: str
|
|
14527
14832
|
"""
|
|
14528
14833
|
return self._UnitId
|
|
@@ -14533,7 +14838,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14533
14838
|
|
|
14534
14839
|
@property
|
|
14535
14840
|
def Name(self):
|
|
14536
|
-
r"""
|
|
14841
|
+
r"""<p>共享单元名称。</p>
|
|
14537
14842
|
:rtype: str
|
|
14538
14843
|
"""
|
|
14539
14844
|
return self._Name
|
|
@@ -14544,7 +14849,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14544
14849
|
|
|
14545
14850
|
@property
|
|
14546
14851
|
def Uin(self):
|
|
14547
|
-
r"""
|
|
14852
|
+
r"""<p>共享单元管理员Uin。</p>
|
|
14548
14853
|
:rtype: int
|
|
14549
14854
|
"""
|
|
14550
14855
|
return self._Uin
|
|
@@ -14555,7 +14860,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14555
14860
|
|
|
14556
14861
|
@property
|
|
14557
14862
|
def OwnerUin(self):
|
|
14558
|
-
r"""
|
|
14863
|
+
r"""<p>共享单元管理员OwnerUin。</p>
|
|
14559
14864
|
:rtype: int
|
|
14560
14865
|
"""
|
|
14561
14866
|
return self._OwnerUin
|
|
@@ -14566,7 +14871,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14566
14871
|
|
|
14567
14872
|
@property
|
|
14568
14873
|
def Area(self):
|
|
14569
|
-
r"""
|
|
14874
|
+
r"""<p>共享单元地域。</p>
|
|
14570
14875
|
:rtype: str
|
|
14571
14876
|
"""
|
|
14572
14877
|
return self._Area
|
|
@@ -14577,7 +14882,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14577
14882
|
|
|
14578
14883
|
@property
|
|
14579
14884
|
def Description(self):
|
|
14580
|
-
r"""
|
|
14885
|
+
r"""<p>描述。</p>
|
|
14581
14886
|
:rtype: str
|
|
14582
14887
|
"""
|
|
14583
14888
|
return self._Description
|
|
@@ -14588,7 +14893,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14588
14893
|
|
|
14589
14894
|
@property
|
|
14590
14895
|
def CreateTime(self):
|
|
14591
|
-
r"""
|
|
14896
|
+
r"""<p>创建时间。</p>
|
|
14592
14897
|
:rtype: str
|
|
14593
14898
|
"""
|
|
14594
14899
|
return self._CreateTime
|
|
@@ -14599,7 +14904,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14599
14904
|
|
|
14600
14905
|
@property
|
|
14601
14906
|
def ShareResourceNum(self):
|
|
14602
|
-
r"""
|
|
14907
|
+
r"""<p>共享单元资源数。</p>
|
|
14603
14908
|
:rtype: int
|
|
14604
14909
|
"""
|
|
14605
14910
|
return self._ShareResourceNum
|
|
@@ -14610,7 +14915,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14610
14915
|
|
|
14611
14916
|
@property
|
|
14612
14917
|
def ShareMemberNum(self):
|
|
14613
|
-
r"""
|
|
14918
|
+
r"""<p>共享单元成员数。</p>
|
|
14614
14919
|
:rtype: int
|
|
14615
14920
|
"""
|
|
14616
14921
|
return self._ShareMemberNum
|
|
@@ -14621,7 +14926,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14621
14926
|
|
|
14622
14927
|
@property
|
|
14623
14928
|
def ShareScope(self):
|
|
14624
|
-
r"""
|
|
14929
|
+
r"""<p>共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号</p>
|
|
14625
14930
|
:rtype: int
|
|
14626
14931
|
"""
|
|
14627
14932
|
return self._ShareScope
|
|
@@ -14630,6 +14935,17 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14630
14935
|
def ShareScope(self, ShareScope):
|
|
14631
14936
|
self._ShareScope = ShareScope
|
|
14632
14937
|
|
|
14938
|
+
@property
|
|
14939
|
+
def ShareNodeNum(self):
|
|
14940
|
+
r"""<p>共享单元部门数。</p>
|
|
14941
|
+
:rtype: int
|
|
14942
|
+
"""
|
|
14943
|
+
return self._ShareNodeNum
|
|
14944
|
+
|
|
14945
|
+
@ShareNodeNum.setter
|
|
14946
|
+
def ShareNodeNum(self, ShareNodeNum):
|
|
14947
|
+
self._ShareNodeNum = ShareNodeNum
|
|
14948
|
+
|
|
14633
14949
|
|
|
14634
14950
|
def _deserialize(self, params):
|
|
14635
14951
|
self._UnitId = params.get("UnitId")
|
|
@@ -14642,6 +14958,7 @@ class ManagerShareUnit(AbstractModel):
|
|
|
14642
14958
|
self._ShareResourceNum = params.get("ShareResourceNum")
|
|
14643
14959
|
self._ShareMemberNum = params.get("ShareMemberNum")
|
|
14644
14960
|
self._ShareScope = params.get("ShareScope")
|
|
14961
|
+
self._ShareNodeNum = params.get("ShareNodeNum")
|
|
14645
14962
|
memeber_set = set(params.keys())
|
|
14646
14963
|
for name, value in vars(self).items():
|
|
14647
14964
|
property_name = name[1:]
|
|
@@ -19634,6 +19951,57 @@ class ShareUnitMember(AbstractModel):
|
|
|
19634
19951
|
|
|
19635
19952
|
|
|
19636
19953
|
|
|
19954
|
+
class ShareUnitNode(AbstractModel):
|
|
19955
|
+
r"""共享单元部门
|
|
19956
|
+
|
|
19957
|
+
"""
|
|
19958
|
+
|
|
19959
|
+
def __init__(self):
|
|
19960
|
+
r"""
|
|
19961
|
+
:param _ShareNodeId: <p>共享部门ID。</p>
|
|
19962
|
+
:type ShareNodeId: int
|
|
19963
|
+
:param _CreateTime: <p>创建时间。</p>
|
|
19964
|
+
:type CreateTime: str
|
|
19965
|
+
"""
|
|
19966
|
+
self._ShareNodeId = None
|
|
19967
|
+
self._CreateTime = None
|
|
19968
|
+
|
|
19969
|
+
@property
|
|
19970
|
+
def ShareNodeId(self):
|
|
19971
|
+
r"""<p>共享部门ID。</p>
|
|
19972
|
+
:rtype: int
|
|
19973
|
+
"""
|
|
19974
|
+
return self._ShareNodeId
|
|
19975
|
+
|
|
19976
|
+
@ShareNodeId.setter
|
|
19977
|
+
def ShareNodeId(self, ShareNodeId):
|
|
19978
|
+
self._ShareNodeId = ShareNodeId
|
|
19979
|
+
|
|
19980
|
+
@property
|
|
19981
|
+
def CreateTime(self):
|
|
19982
|
+
r"""<p>创建时间。</p>
|
|
19983
|
+
:rtype: str
|
|
19984
|
+
"""
|
|
19985
|
+
return self._CreateTime
|
|
19986
|
+
|
|
19987
|
+
@CreateTime.setter
|
|
19988
|
+
def CreateTime(self, CreateTime):
|
|
19989
|
+
self._CreateTime = CreateTime
|
|
19990
|
+
|
|
19991
|
+
|
|
19992
|
+
def _deserialize(self, params):
|
|
19993
|
+
self._ShareNodeId = params.get("ShareNodeId")
|
|
19994
|
+
self._CreateTime = params.get("CreateTime")
|
|
19995
|
+
memeber_set = set(params.keys())
|
|
19996
|
+
for name, value in vars(self).items():
|
|
19997
|
+
property_name = name[1:]
|
|
19998
|
+
if property_name in memeber_set:
|
|
19999
|
+
memeber_set.remove(property_name)
|
|
20000
|
+
if len(memeber_set) > 0:
|
|
20001
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
20002
|
+
|
|
20003
|
+
|
|
20004
|
+
|
|
19637
20005
|
class ShareUnitResource(AbstractModel):
|
|
19638
20006
|
r"""共享单元资源
|
|
19639
20007
|
|
|
@@ -187,6 +187,29 @@ class OrganizationClient(AbstractClient):
|
|
|
187
187
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
188
|
|
|
189
189
|
|
|
190
|
+
def AddShareUnitNode(self, request):
|
|
191
|
+
r"""添加共享单元部门
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for AddShareUnitNode.
|
|
194
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.AddShareUnitNodeRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.AddShareUnitNodeResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("AddShareUnitNode", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.AddShareUnitNodeResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
190
213
|
def AddShareUnitResources(self, request):
|
|
191
214
|
r"""添加共享单元资源
|
|
192
215
|
|
|
@@ -1061,6 +1084,29 @@ class OrganizationClient(AbstractClient):
|
|
|
1061
1084
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1062
1085
|
|
|
1063
1086
|
|
|
1087
|
+
def DeleteShareUnitNode(self, request):
|
|
1088
|
+
r"""删除共享单元部门
|
|
1089
|
+
|
|
1090
|
+
:param request: Request instance for DeleteShareUnitNode.
|
|
1091
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitNodeRequest`
|
|
1092
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.DeleteShareUnitNodeResponse`
|
|
1093
|
+
|
|
1094
|
+
"""
|
|
1095
|
+
try:
|
|
1096
|
+
params = request._serialize()
|
|
1097
|
+
headers = request.headers
|
|
1098
|
+
body = self.call("DeleteShareUnitNode", params, headers=headers)
|
|
1099
|
+
response = json.loads(body)
|
|
1100
|
+
model = models.DeleteShareUnitNodeResponse()
|
|
1101
|
+
model._deserialize(response["Response"])
|
|
1102
|
+
return model
|
|
1103
|
+
except Exception as e:
|
|
1104
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1105
|
+
raise
|
|
1106
|
+
else:
|
|
1107
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1108
|
+
|
|
1109
|
+
|
|
1064
1110
|
def DeleteShareUnitResources(self, request):
|
|
1065
1111
|
r"""删除共享单元资源
|
|
1066
1112
|
|
|
@@ -1567,6 +1613,29 @@ class OrganizationClient(AbstractClient):
|
|
|
1567
1613
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1568
1614
|
|
|
1569
1615
|
|
|
1616
|
+
def DescribeShareUnitNodes(self, request):
|
|
1617
|
+
r"""获取共享单元部门列表。
|
|
1618
|
+
|
|
1619
|
+
:param request: Request instance for DescribeShareUnitNodes.
|
|
1620
|
+
:type request: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitNodesRequest`
|
|
1621
|
+
:rtype: :class:`tencentcloud.organization.v20210331.models.DescribeShareUnitNodesResponse`
|
|
1622
|
+
|
|
1623
|
+
"""
|
|
1624
|
+
try:
|
|
1625
|
+
params = request._serialize()
|
|
1626
|
+
headers = request.headers
|
|
1627
|
+
body = self.call("DescribeShareUnitNodes", params, headers=headers)
|
|
1628
|
+
response = json.loads(body)
|
|
1629
|
+
model = models.DescribeShareUnitNodesResponse()
|
|
1630
|
+
model._deserialize(response["Response"])
|
|
1631
|
+
return model
|
|
1632
|
+
except Exception as e:
|
|
1633
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1634
|
+
raise
|
|
1635
|
+
else:
|
|
1636
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1637
|
+
|
|
1638
|
+
|
|
1570
1639
|
def DescribeShareUnitResources(self, request):
|
|
1571
1640
|
r"""获取共享单元资源列表。
|
|
1572
1641
|
|
|
@@ -151,6 +151,24 @@ class OrganizationClient(AbstractClient):
|
|
|
151
151
|
|
|
152
152
|
return await self.call_and_deserialize(**kwargs)
|
|
153
153
|
|
|
154
|
+
async def AddShareUnitNode(
|
|
155
|
+
self,
|
|
156
|
+
request: models.AddShareUnitNodeRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.AddShareUnitNodeResponse:
|
|
159
|
+
"""
|
|
160
|
+
添加共享单元部门
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "AddShareUnitNode"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.AddShareUnitNodeResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
154
172
|
async def AddShareUnitResources(
|
|
155
173
|
self,
|
|
156
174
|
request: models.AddShareUnitResourcesRequest,
|
|
@@ -835,6 +853,24 @@ class OrganizationClient(AbstractClient):
|
|
|
835
853
|
|
|
836
854
|
return await self.call_and_deserialize(**kwargs)
|
|
837
855
|
|
|
856
|
+
async def DeleteShareUnitNode(
|
|
857
|
+
self,
|
|
858
|
+
request: models.DeleteShareUnitNodeRequest,
|
|
859
|
+
opts: Dict = None,
|
|
860
|
+
) -> models.DeleteShareUnitNodeResponse:
|
|
861
|
+
"""
|
|
862
|
+
删除共享单元部门
|
|
863
|
+
"""
|
|
864
|
+
|
|
865
|
+
kwargs = {}
|
|
866
|
+
kwargs["action"] = "DeleteShareUnitNode"
|
|
867
|
+
kwargs["params"] = request._serialize()
|
|
868
|
+
kwargs["resp_cls"] = models.DeleteShareUnitNodeResponse
|
|
869
|
+
kwargs["headers"] = request.headers
|
|
870
|
+
kwargs["opts"] = opts or {}
|
|
871
|
+
|
|
872
|
+
return await self.call_and_deserialize(**kwargs)
|
|
873
|
+
|
|
838
874
|
async def DeleteShareUnitResources(
|
|
839
875
|
self,
|
|
840
876
|
request: models.DeleteShareUnitResourcesRequest,
|
|
@@ -1231,6 +1267,24 @@ class OrganizationClient(AbstractClient):
|
|
|
1231
1267
|
|
|
1232
1268
|
return await self.call_and_deserialize(**kwargs)
|
|
1233
1269
|
|
|
1270
|
+
async def DescribeShareUnitNodes(
|
|
1271
|
+
self,
|
|
1272
|
+
request: models.DescribeShareUnitNodesRequest,
|
|
1273
|
+
opts: Dict = None,
|
|
1274
|
+
) -> models.DescribeShareUnitNodesResponse:
|
|
1275
|
+
"""
|
|
1276
|
+
获取共享单元部门列表。
|
|
1277
|
+
"""
|
|
1278
|
+
|
|
1279
|
+
kwargs = {}
|
|
1280
|
+
kwargs["action"] = "DescribeShareUnitNodes"
|
|
1281
|
+
kwargs["params"] = request._serialize()
|
|
1282
|
+
kwargs["resp_cls"] = models.DescribeShareUnitNodesResponse
|
|
1283
|
+
kwargs["headers"] = request.headers
|
|
1284
|
+
kwargs["opts"] = opts or {}
|
|
1285
|
+
|
|
1286
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1287
|
+
|
|
1234
1288
|
async def DescribeShareUnitResources(
|
|
1235
1289
|
self,
|
|
1236
1290
|
request: models.DescribeShareUnitResourcesRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-organization
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.53
|
|
4
4
|
Summary: Tencent Cloud Organization SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.53
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.53
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.36
|
|
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
|