tencentcloud-sdk-python-organization 3.0.977__tar.gz → 3.0.991__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.
Files changed (20) hide show
  1. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/setup.py +1 -1
  3. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20210331/errorcodes.py +24 -0
  5. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20210331/models.py +241 -7
  6. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20210331/organization_client.py +70 -1
  7. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-organization-3.0.991/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-organization-3.0.977/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/README.rst +0 -0
  11. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/__init__.py +0 -0
  13. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20181225/__init__.py +0 -0
  14. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20181225/models.py +0 -0
  16. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20181225/organization_client.py +0 -0
  17. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud/organization/v20210331/__init__.py +0 -0
  18. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-organization-3.0.977 → tencentcloud-sdk-python-organization-3.0.991}/tencentcloud_sdk_python_organization.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.0.977
3
+ Version: 3.0.991
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
@@ -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.977"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.991"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Organization SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.977'
17
+ __version__ = '3.0.991'
@@ -116,6 +116,9 @@ FAILEDOPERATION_OPERATEPOLICY = 'FailedOperation.OperatePolicy'
116
116
  # 成员是主体管理账号不允许删除。
117
117
  FAILEDOPERATION_ORGANIZATIONAUTHMANAGENOTALLOWDELETE = 'FailedOperation.OrganizationAuthManageNotAllowDelete'
118
118
 
119
+ # 企业组织已经存在。
120
+ FAILEDOPERATION_ORGANIZATIONEXISTALREADY = 'FailedOperation.OrganizationExistAlready'
121
+
119
122
  # 组织身份策略不合法。
120
123
  FAILEDOPERATION_ORGANIZATIONIDENTITYPOLICYERROR = 'FailedOperation.OrganizationIdentityPolicyError'
121
124
 
@@ -134,21 +137,36 @@ FAILEDOPERATION_ORGANIZATIONNODENOTEMPTY = 'FailedOperation.OrganizationNodeNotE
134
137
  # 组织节点不存在。
135
138
  FAILEDOPERATION_ORGANIZATIONNODENOTEXIST = 'FailedOperation.OrganizationNodeNotExist'
136
139
 
140
+ # 企业组织成员不为空。
141
+ FAILEDOPERATION_ORGANIZATIONNOTEMPTY = 'FailedOperation.OrganizationNotEmpty'
142
+
137
143
  # 组织权限不合法。
138
144
  FAILEDOPERATION_ORGANIZATIONPERMISSIONILLEGAL = 'FailedOperation.OrganizationPermissionIllegal'
139
145
 
140
146
  # 组织策略不合法。
141
147
  FAILEDOPERATION_ORGANIZATIONPOLICYILLEGAL = 'FailedOperation.OrganizationPolicyIllegal'
142
148
 
149
+ # 集团策略不是禁用状态。
150
+ FAILEDOPERATION_ORGANIZATIONPOLICYISNOTDISABLED = 'FailedOperation.OrganizationPolicyIsNotDisabled'
151
+
143
152
  # 代付者不合法。
144
153
  FAILEDOPERATION_PAYUINILLEGAL = 'FailedOperation.PayUinIllegal'
145
154
 
155
+ # 退出共享单元失败。
156
+ FAILEDOPERATION_QUITSHAREUINT = 'FailedOperation.QuitShareUint'
157
+
146
158
  # 退出共享单元错误。
147
159
  FAILEDOPERATION_QUITSHAREUINTERROR = 'FailedOperation.QuitShareUintError'
148
160
 
161
+ # 退出共享单元失败。
162
+ FAILEDOPERATION_QUITESHAREUNIT = 'FailedOperation.QuiteShareUnit'
163
+
149
164
  # 成员正在使用共享资源。
150
165
  FAILEDOPERATION_SHARERESOURCEMEMBERINUSE = 'FailedOperation.ShareResourceMemberInUse'
151
166
 
167
+ # 共享单元不为空。
168
+ FAILEDOPERATION_SHAREUNITNOTEMPTY = 'FailedOperation.ShareUnitNotEmpty'
169
+
152
170
  # 存在不属于当前组织的uin。
153
171
  FAILEDOPERATION_SOMEUINSNOTINORGANIZATION = 'FailedOperation.SomeUinsNotInOrganization'
154
172
 
@@ -242,9 +260,15 @@ UNSUPPORTEDOPERATION_ADDDELEGATEPAYERNOTALLOW = 'UnsupportedOperation.AddDelegat
242
260
  # 不允许添加优惠继承关系。
243
261
  UNSUPPORTEDOPERATION_ADDDISCOUNTINHERITNOTALLOW = 'UnsupportedOperation.AddDiscountInheritNotAllow'
244
262
 
263
+ # 创建的成员不允许创建组织。
264
+ UNSUPPORTEDOPERATION_CREATEMEMBERNOTALLOWCREATEORGANIZATION = 'UnsupportedOperation.CreateMemberNotAllowCreateOrganization'
265
+
245
266
  # 创建的成员不允许删除。
246
267
  UNSUPPORTEDOPERATION_CREATEMEMBERNOTALLOWDELETE = 'UnsupportedOperation.CreateMemberNotAllowDelete'
247
268
 
269
+ # 创建的成员不允许退出。
270
+ UNSUPPORTEDOPERATION_CREATEMEMBERNOTALLOWQUIT = 'UnsupportedOperation.CreateMemberNotAllowQuit'
271
+
248
272
  # 不允许删除代付关系。
249
273
  UNSUPPORTEDOPERATION_DELETEDELEGATEPAYERNOTALLOW = 'UnsupportedOperation.DeleteDelegatePayerNotAllow'
250
274
 
@@ -94,11 +94,23 @@ class AddOrganizationMemberEmailResponse(AbstractModel):
94
94
 
95
95
  def __init__(self):
96
96
  r"""
97
+ :param _BindId: 绑定Id
98
+ 注意:此字段可能返回 null,表示取不到有效值。
99
+ :type BindId: int
97
100
  :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
98
101
  :type RequestId: str
99
102
  """
103
+ self._BindId = None
100
104
  self._RequestId = None
101
105
 
106
+ @property
107
+ def BindId(self):
108
+ return self._BindId
109
+
110
+ @BindId.setter
111
+ def BindId(self, BindId):
112
+ self._BindId = BindId
113
+
102
114
  @property
103
115
  def RequestId(self):
104
116
  return self._RequestId
@@ -109,6 +121,7 @@ class AddOrganizationMemberEmailResponse(AbstractModel):
109
121
 
110
122
 
111
123
  def _deserialize(self, params):
124
+ self._BindId = params.get("BindId")
112
125
  self._RequestId = params.get("RequestId")
113
126
 
114
127
 
@@ -788,6 +801,61 @@ class CreateOrganizationMemberResponse(AbstractModel):
788
801
  self._RequestId = params.get("RequestId")
789
802
 
790
803
 
804
+ class CreateOrganizationRequest(AbstractModel):
805
+ """CreateOrganization请求参数结构体
806
+
807
+ """
808
+
809
+
810
+ class CreateOrganizationResponse(AbstractModel):
811
+ """CreateOrganization返回参数结构体
812
+
813
+ """
814
+
815
+ def __init__(self):
816
+ r"""
817
+ :param _OrgId: 企业组织ID
818
+ :type OrgId: int
819
+ :param _NickName: 创建者昵称
820
+ :type NickName: str
821
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
822
+ :type RequestId: str
823
+ """
824
+ self._OrgId = None
825
+ self._NickName = None
826
+ self._RequestId = None
827
+
828
+ @property
829
+ def OrgId(self):
830
+ return self._OrgId
831
+
832
+ @OrgId.setter
833
+ def OrgId(self, OrgId):
834
+ self._OrgId = OrgId
835
+
836
+ @property
837
+ def NickName(self):
838
+ return self._NickName
839
+
840
+ @NickName.setter
841
+ def NickName(self, NickName):
842
+ self._NickName = NickName
843
+
844
+ @property
845
+ def RequestId(self):
846
+ return self._RequestId
847
+
848
+ @RequestId.setter
849
+ def RequestId(self, RequestId):
850
+ self._RequestId = RequestId
851
+
852
+
853
+ def _deserialize(self, params):
854
+ self._OrgId = params.get("OrgId")
855
+ self._NickName = params.get("NickName")
856
+ self._RequestId = params.get("RequestId")
857
+
858
+
791
859
  class DeleteOrganizationMemberAuthIdentityRequest(AbstractModel):
792
860
  """DeleteOrganizationMemberAuthIdentity请求参数结构体
793
861
 
@@ -1032,6 +1100,37 @@ class DeleteOrganizationNodesResponse(AbstractModel):
1032
1100
  self._RequestId = params.get("RequestId")
1033
1101
 
1034
1102
 
1103
+ class DeleteOrganizationRequest(AbstractModel):
1104
+ """DeleteOrganization请求参数结构体
1105
+
1106
+ """
1107
+
1108
+
1109
+ class DeleteOrganizationResponse(AbstractModel):
1110
+ """DeleteOrganization返回参数结构体
1111
+
1112
+ """
1113
+
1114
+ def __init__(self):
1115
+ r"""
1116
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1117
+ :type RequestId: str
1118
+ """
1119
+ self._RequestId = None
1120
+
1121
+ @property
1122
+ def RequestId(self):
1123
+ return self._RequestId
1124
+
1125
+ @RequestId.setter
1126
+ def RequestId(self, RequestId):
1127
+ self._RequestId = RequestId
1128
+
1129
+
1130
+ def _deserialize(self, params):
1131
+ self._RequestId = params.get("RequestId")
1132
+
1133
+
1035
1134
  class DescribeOrganizationAuthNodeRequest(AbstractModel):
1036
1135
  """DescribeOrganizationAuthNode请求参数结构体
1037
1136
 
@@ -1717,12 +1816,15 @@ class DescribeOrganizationMemberAuthIdentitiesRequest(AbstractModel):
1717
1816
  :type Offset: int
1718
1817
  :param _Limit: 限制数目。取值范围:1~50,默认值:10
1719
1818
  :type Limit: int
1720
- :param _MemberUin: 组织成员Uin。
1819
+ :param _MemberUin: 组织成员Uin。入参MemberUin与IdentityId至少填写一个
1721
1820
  :type MemberUin: int
1821
+ :param _IdentityId: 身份ID。入参MemberUin与IdentityId至少填写一个
1822
+ :type IdentityId: int
1722
1823
  """
1723
1824
  self._Offset = None
1724
1825
  self._Limit = None
1725
1826
  self._MemberUin = None
1827
+ self._IdentityId = None
1726
1828
 
1727
1829
  @property
1728
1830
  def Offset(self):
@@ -1748,11 +1850,20 @@ class DescribeOrganizationMemberAuthIdentitiesRequest(AbstractModel):
1748
1850
  def MemberUin(self, MemberUin):
1749
1851
  self._MemberUin = MemberUin
1750
1852
 
1853
+ @property
1854
+ def IdentityId(self):
1855
+ return self._IdentityId
1856
+
1857
+ @IdentityId.setter
1858
+ def IdentityId(self, IdentityId):
1859
+ self._IdentityId = IdentityId
1860
+
1751
1861
 
1752
1862
  def _deserialize(self, params):
1753
1863
  self._Offset = params.get("Offset")
1754
1864
  self._Limit = params.get("Limit")
1755
1865
  self._MemberUin = params.get("MemberUin")
1866
+ self._IdentityId = params.get("IdentityId")
1756
1867
  memeber_set = set(params.keys())
1757
1868
  for name, value in vars(self).items():
1758
1869
  property_name = name[1:]
@@ -2657,13 +2768,21 @@ class IdentityPolicy(AbstractModel):
2657
2768
 
2658
2769
  def __init__(self):
2659
2770
  r"""
2660
- :param _PolicyId: 策略ID
2771
+ :param _PolicyId: CAM预设策略ID。PolicyType 为预设策略时有效且必选
2661
2772
  :type PolicyId: int
2662
- :param _PolicyName: 策略名称
2773
+ :param _PolicyName: CAM预设策略名称。PolicyType 为预设策略时有效且必选
2663
2774
  :type PolicyName: str
2775
+ :param _PolicyType: 策略类型。取值 1-自定义策略 2-预设策略;默认值2
2776
+ 注意:此字段可能返回 null,表示取不到有效值。
2777
+ :type PolicyType: int
2778
+ :param _PolicyDocument: 自定义策略内容,遵循CAM策略语法。PolicyType 为自定义策略时有效且必选
2779
+ 注意:此字段可能返回 null,表示取不到有效值。
2780
+ :type PolicyDocument: str
2664
2781
  """
2665
2782
  self._PolicyId = None
2666
2783
  self._PolicyName = None
2784
+ self._PolicyType = None
2785
+ self._PolicyDocument = None
2667
2786
 
2668
2787
  @property
2669
2788
  def PolicyId(self):
@@ -2681,10 +2800,28 @@ class IdentityPolicy(AbstractModel):
2681
2800
  def PolicyName(self, PolicyName):
2682
2801
  self._PolicyName = PolicyName
2683
2802
 
2803
+ @property
2804
+ def PolicyType(self):
2805
+ return self._PolicyType
2806
+
2807
+ @PolicyType.setter
2808
+ def PolicyType(self, PolicyType):
2809
+ self._PolicyType = PolicyType
2810
+
2811
+ @property
2812
+ def PolicyDocument(self):
2813
+ return self._PolicyDocument
2814
+
2815
+ @PolicyDocument.setter
2816
+ def PolicyDocument(self, PolicyDocument):
2817
+ self._PolicyDocument = PolicyDocument
2818
+
2684
2819
 
2685
2820
  def _deserialize(self, params):
2686
2821
  self._PolicyId = params.get("PolicyId")
2687
2822
  self._PolicyName = params.get("PolicyName")
2823
+ self._PolicyType = params.get("PolicyType")
2824
+ self._PolicyDocument = params.get("PolicyDocument")
2688
2825
  memeber_set = set(params.keys())
2689
2826
  for name, value in vars(self).items():
2690
2827
  property_name = name[1:]
@@ -3579,18 +3716,27 @@ class OrgMemberAuthIdentity(AbstractModel):
3579
3716
  :param _IdentityRoleAliasName: 身份的角色别名。
3580
3717
  注意:此字段可能返回 null,表示取不到有效值。
3581
3718
  :type IdentityRoleAliasName: str
3582
- :param _Description: 描述。
3719
+ :param _Description: 身份描述。
3583
3720
  注意:此字段可能返回 null,表示取不到有效值。
3584
3721
  :type Description: str
3585
- :param _CreateTime: 创建时间。
3722
+ :param _CreateTime: 首次配置成功的时间。
3586
3723
  注意:此字段可能返回 null,表示取不到有效值。
3587
3724
  :type CreateTime: str
3588
- :param _UpdateTime: 更新时间。
3725
+ :param _UpdateTime: 最后一次配置成功的时间。
3589
3726
  注意:此字段可能返回 null,表示取不到有效值。
3590
3727
  :type UpdateTime: str
3591
- :param _IdentityType: 身份类型。取值: 1-预设 2-自定义
3728
+ :param _IdentityType: 身份类型。取值: 1-预设身份 2-自定义身份
3592
3729
  注意:此字段可能返回 null,表示取不到有效值。
3593
3730
  :type IdentityType: int
3731
+ :param _Status: 配置状态。取值:1-配置完成 2-需重新配置
3732
+ 注意:此字段可能返回 null,表示取不到有效值。
3733
+ :type Status: int
3734
+ :param _MemberUin: 成员Uin。
3735
+ 注意:此字段可能返回 null,表示取不到有效值。
3736
+ :type MemberUin: int
3737
+ :param _MemberName: 成员名称。
3738
+ 注意:此字段可能返回 null,表示取不到有效值。
3739
+ :type MemberName: str
3594
3740
  """
3595
3741
  self._IdentityId = None
3596
3742
  self._IdentityRoleName = None
@@ -3599,6 +3745,9 @@ class OrgMemberAuthIdentity(AbstractModel):
3599
3745
  self._CreateTime = None
3600
3746
  self._UpdateTime = None
3601
3747
  self._IdentityType = None
3748
+ self._Status = None
3749
+ self._MemberUin = None
3750
+ self._MemberName = None
3602
3751
 
3603
3752
  @property
3604
3753
  def IdentityId(self):
@@ -3656,6 +3805,30 @@ class OrgMemberAuthIdentity(AbstractModel):
3656
3805
  def IdentityType(self, IdentityType):
3657
3806
  self._IdentityType = IdentityType
3658
3807
 
3808
+ @property
3809
+ def Status(self):
3810
+ return self._Status
3811
+
3812
+ @Status.setter
3813
+ def Status(self, Status):
3814
+ self._Status = Status
3815
+
3816
+ @property
3817
+ def MemberUin(self):
3818
+ return self._MemberUin
3819
+
3820
+ @MemberUin.setter
3821
+ def MemberUin(self, MemberUin):
3822
+ self._MemberUin = MemberUin
3823
+
3824
+ @property
3825
+ def MemberName(self):
3826
+ return self._MemberName
3827
+
3828
+ @MemberName.setter
3829
+ def MemberName(self, MemberName):
3830
+ self._MemberName = MemberName
3831
+
3659
3832
 
3660
3833
  def _deserialize(self, params):
3661
3834
  self._IdentityId = params.get("IdentityId")
@@ -3665,6 +3838,9 @@ class OrgMemberAuthIdentity(AbstractModel):
3665
3838
  self._CreateTime = params.get("CreateTime")
3666
3839
  self._UpdateTime = params.get("UpdateTime")
3667
3840
  self._IdentityType = params.get("IdentityType")
3841
+ self._Status = params.get("Status")
3842
+ self._MemberUin = params.get("MemberUin")
3843
+ self._MemberName = params.get("MemberName")
3668
3844
  memeber_set = set(params.keys())
3669
3845
  for name, value in vars(self).items():
3670
3846
  property_name = name[1:]
@@ -4090,6 +4266,64 @@ class OrgProductFinancial(AbstractModel):
4090
4266
 
4091
4267
 
4092
4268
 
4269
+ class QuitOrganizationRequest(AbstractModel):
4270
+ """QuitOrganization请求参数结构体
4271
+
4272
+ """
4273
+
4274
+ def __init__(self):
4275
+ r"""
4276
+ :param _OrgId: 企业组织ID
4277
+ :type OrgId: int
4278
+ """
4279
+ self._OrgId = None
4280
+
4281
+ @property
4282
+ def OrgId(self):
4283
+ return self._OrgId
4284
+
4285
+ @OrgId.setter
4286
+ def OrgId(self, OrgId):
4287
+ self._OrgId = OrgId
4288
+
4289
+
4290
+ def _deserialize(self, params):
4291
+ self._OrgId = params.get("OrgId")
4292
+ memeber_set = set(params.keys())
4293
+ for name, value in vars(self).items():
4294
+ property_name = name[1:]
4295
+ if property_name in memeber_set:
4296
+ memeber_set.remove(property_name)
4297
+ if len(memeber_set) > 0:
4298
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4299
+
4300
+
4301
+
4302
+ class QuitOrganizationResponse(AbstractModel):
4303
+ """QuitOrganization返回参数结构体
4304
+
4305
+ """
4306
+
4307
+ def __init__(self):
4308
+ r"""
4309
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4310
+ :type RequestId: str
4311
+ """
4312
+ self._RequestId = None
4313
+
4314
+ @property
4315
+ def RequestId(self):
4316
+ return self._RequestId
4317
+
4318
+ @RequestId.setter
4319
+ def RequestId(self, RequestId):
4320
+ self._RequestId = RequestId
4321
+
4322
+
4323
+ def _deserialize(self, params):
4324
+ self._RequestId = params.get("RequestId")
4325
+
4326
+
4093
4327
  class UpdateOrganizationMemberEmailBindRequest(AbstractModel):
4094
4328
  """UpdateOrganizationMemberEmailBind请求参数结构体
4095
4329
 
@@ -118,6 +118,29 @@ class OrganizationClient(AbstractClient):
118
118
  raise TencentCloudSDKException(type(e).__name__, str(e))
119
119
 
120
120
 
121
+ def CreateOrganization(self, request):
122
+ """创建企业组织
123
+
124
+ :param request: Request instance for CreateOrganization.
125
+ :type request: :class:`tencentcloud.organization.v20210331.models.CreateOrganizationRequest`
126
+ :rtype: :class:`tencentcloud.organization.v20210331.models.CreateOrganizationResponse`
127
+
128
+ """
129
+ try:
130
+ params = request._serialize()
131
+ headers = request.headers
132
+ body = self.call("CreateOrganization", params, headers=headers)
133
+ response = json.loads(body)
134
+ model = models.CreateOrganizationResponse()
135
+ model._deserialize(response["Response"])
136
+ return model
137
+ except Exception as e:
138
+ if isinstance(e, TencentCloudSDKException):
139
+ raise
140
+ else:
141
+ raise TencentCloudSDKException(type(e).__name__, str(e))
142
+
143
+
121
144
  def CreateOrganizationMember(self, request):
122
145
  """创建组织成员
123
146
 
@@ -187,6 +210,29 @@ class OrganizationClient(AbstractClient):
187
210
  raise TencentCloudSDKException(type(e).__name__, str(e))
188
211
 
189
212
 
213
+ def DeleteOrganization(self, request):
214
+ """删除企业组织
215
+
216
+ :param request: Request instance for DeleteOrganization.
217
+ :type request: :class:`tencentcloud.organization.v20210331.models.DeleteOrganizationRequest`
218
+ :rtype: :class:`tencentcloud.organization.v20210331.models.DeleteOrganizationResponse`
219
+
220
+ """
221
+ try:
222
+ params = request._serialize()
223
+ headers = request.headers
224
+ body = self.call("DeleteOrganization", params, headers=headers)
225
+ response = json.loads(body)
226
+ model = models.DeleteOrganizationResponse()
227
+ model._deserialize(response["Response"])
228
+ return model
229
+ except Exception as e:
230
+ if isinstance(e, TencentCloudSDKException):
231
+ raise
232
+ else:
233
+ raise TencentCloudSDKException(type(e).__name__, str(e))
234
+
235
+
190
236
  def DeleteOrganizationMemberAuthIdentity(self, request):
191
237
  """删除组织成员访问授权
192
238
 
@@ -418,7 +464,7 @@ class OrganizationClient(AbstractClient):
418
464
 
419
465
 
420
466
  def DescribeOrganizationMemberAuthIdentities(self, request):
421
- """获取组织成员可被管理的身份列表
467
+ """获取组织成员访问授权列表
422
468
 
423
469
  :param request: Request instance for DescribeOrganizationMemberAuthIdentities.
424
470
  :type request: :class:`tencentcloud.organization.v20210331.models.DescribeOrganizationMemberAuthIdentitiesRequest`
@@ -578,6 +624,29 @@ class OrganizationClient(AbstractClient):
578
624
  raise TencentCloudSDKException(type(e).__name__, str(e))
579
625
 
580
626
 
627
+ def QuitOrganization(self, request):
628
+ """退出企业组织
629
+
630
+ :param request: Request instance for QuitOrganization.
631
+ :type request: :class:`tencentcloud.organization.v20210331.models.QuitOrganizationRequest`
632
+ :rtype: :class:`tencentcloud.organization.v20210331.models.QuitOrganizationResponse`
633
+
634
+ """
635
+ try:
636
+ params = request._serialize()
637
+ headers = request.headers
638
+ body = self.call("QuitOrganization", params, headers=headers)
639
+ response = json.loads(body)
640
+ model = models.QuitOrganizationResponse()
641
+ model._deserialize(response["Response"])
642
+ return model
643
+ except Exception as e:
644
+ if isinstance(e, TencentCloudSDKException):
645
+ raise
646
+ else:
647
+ raise TencentCloudSDKException(type(e).__name__, str(e))
648
+
649
+
581
650
  def UpdateOrganizationMember(self, request):
582
651
  """更新组织成员信息
583
652
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.0.977
3
+ Version: 3.0.991
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
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.977