tencentcloud-sdk-python-organization 3.0.1482__tar.gz → 3.1.44__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 (22) hide show
  1. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/setup.py +2 -1
  3. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_organization-3.1.44/tencentcloud/organization/v20181225/organization_client_async.py +386 -0
  5. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20210331/errorcodes.py +3 -0
  6. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20210331/models.py +51 -36
  7. tencentcloud_sdk_python_organization-3.1.44/tencentcloud/organization/v20210331/organization_client_async.py +2348 -0
  8. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +2 -2
  9. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +2 -0
  10. tencentcloud_sdk_python_organization-3.1.44/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
  11. tencentcloud_sdk_python_organization-3.0.1482/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
  12. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/README.rst +0 -0
  13. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/setup.cfg +0 -0
  14. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/__init__.py +0 -0
  15. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20181225/__init__.py +0 -0
  16. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20181225/models.py +0 -0
  18. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20181225/organization_client.py +0 -0
  19. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20210331/__init__.py +0 -0
  20. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud/organization/v20210331/organization_client.py +0 -0
  21. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.44}/tencentcloud_sdk_python_organization.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.0.1482
3
+ Version: 3.1.44
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.0.1482
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.44
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ 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.1482,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.44,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Organization SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1482'
17
+ __version__ = '3.1.44'
@@ -0,0 +1,386 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.organization.v20181225 import models
20
+ from typing import Dict
21
+
22
+
23
+ class OrganizationClient(AbstractClient):
24
+ _apiVersion = '2018-12-25'
25
+ _endpoint = 'organization.tencentcloudapi.com'
26
+ _service = 'organization'
27
+
28
+ async def AcceptOrganizationInvitation(
29
+ self,
30
+ request: models.AcceptOrganizationInvitationRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AcceptOrganizationInvitationResponse:
33
+ """
34
+ 接受加入企业组织邀请
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AcceptOrganizationInvitation"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AcceptOrganizationInvitationResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def AddOrganizationNode(
47
+ self,
48
+ request: models.AddOrganizationNodeRequest,
49
+ opts: Dict = None,
50
+ ) -> models.AddOrganizationNodeResponse:
51
+ """
52
+ 添加企业组织单元
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "AddOrganizationNode"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.AddOrganizationNodeResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def CancelOrganizationInvitation(
65
+ self,
66
+ request: models.CancelOrganizationInvitationRequest,
67
+ opts: Dict = None,
68
+ ) -> models.CancelOrganizationInvitationResponse:
69
+ """
70
+ 取消企业组织邀请
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "CancelOrganizationInvitation"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.CancelOrganizationInvitationResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def CreateOrganization(
83
+ self,
84
+ request: models.CreateOrganizationRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CreateOrganizationResponse:
87
+ """
88
+ 创建企业组织
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CreateOrganization"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CreateOrganizationResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def DeleteOrganization(
101
+ self,
102
+ request: models.DeleteOrganizationRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DeleteOrganizationResponse:
105
+ """
106
+ 删除企业组织
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DeleteOrganization"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DeleteOrganizationResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def DeleteOrganizationMemberFromNode(
119
+ self,
120
+ request: models.DeleteOrganizationMemberFromNodeRequest,
121
+ opts: Dict = None,
122
+ ) -> models.DeleteOrganizationMemberFromNodeResponse:
123
+ """
124
+ 删除企业组织成员
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "DeleteOrganizationMemberFromNode"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.DeleteOrganizationMemberFromNodeResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def DeleteOrganizationMembers(
137
+ self,
138
+ request: models.DeleteOrganizationMembersRequest,
139
+ opts: Dict = None,
140
+ ) -> models.DeleteOrganizationMembersResponse:
141
+ """
142
+ 批量删除企业组织成员
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "DeleteOrganizationMembers"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.DeleteOrganizationMembersResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def DeleteOrganizationNodes(
155
+ self,
156
+ request: models.DeleteOrganizationNodesRequest,
157
+ opts: Dict = None,
158
+ ) -> models.DeleteOrganizationNodesResponse:
159
+ """
160
+ 批量删除企业组织单元
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "DeleteOrganizationNodes"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.DeleteOrganizationNodesResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def DenyOrganizationInvitation(
173
+ self,
174
+ request: models.DenyOrganizationInvitationRequest,
175
+ opts: Dict = None,
176
+ ) -> models.DenyOrganizationInvitationResponse:
177
+ """
178
+ 拒绝企业组织邀请
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "DenyOrganizationInvitation"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.DenyOrganizationInvitationResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def GetOrganization(
191
+ self,
192
+ request: models.GetOrganizationRequest,
193
+ opts: Dict = None,
194
+ ) -> models.GetOrganizationResponse:
195
+ """
196
+ 获取企业组织信息
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "GetOrganization"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.GetOrganizationResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def GetOrganizationMember(
209
+ self,
210
+ request: models.GetOrganizationMemberRequest,
211
+ opts: Dict = None,
212
+ ) -> models.GetOrganizationMemberResponse:
213
+ """
214
+ 获取企业组织成员
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "GetOrganizationMember"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.GetOrganizationMemberResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
226
+ async def ListOrganizationInvitations(
227
+ self,
228
+ request: models.ListOrganizationInvitationsRequest,
229
+ opts: Dict = None,
230
+ ) -> models.ListOrganizationInvitationsResponse:
231
+ """
232
+ 获取邀请信息列表
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "ListOrganizationInvitations"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.ListOrganizationInvitationsResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
244
+ async def ListOrganizationMembers(
245
+ self,
246
+ request: models.ListOrganizationMembersRequest,
247
+ opts: Dict = None,
248
+ ) -> models.ListOrganizationMembersResponse:
249
+ """
250
+ 获取企业组织成员列表
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "ListOrganizationMembers"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.ListOrganizationMembersResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
261
+
262
+ async def ListOrganizationNodeMembers(
263
+ self,
264
+ request: models.ListOrganizationNodeMembersRequest,
265
+ opts: Dict = None,
266
+ ) -> models.ListOrganizationNodeMembersResponse:
267
+ """
268
+ 获取企业组织单元成员列表
269
+ """
270
+
271
+ kwargs = {}
272
+ kwargs["action"] = "ListOrganizationNodeMembers"
273
+ kwargs["params"] = request._serialize()
274
+ kwargs["resp_cls"] = models.ListOrganizationNodeMembersResponse
275
+ kwargs["headers"] = request.headers
276
+ kwargs["opts"] = opts or {}
277
+
278
+ return await self.call_and_deserialize(**kwargs)
279
+
280
+ async def ListOrganizationNodes(
281
+ self,
282
+ request: models.ListOrganizationNodesRequest,
283
+ opts: Dict = None,
284
+ ) -> models.ListOrganizationNodesResponse:
285
+ """
286
+ 获取企业组织单元列表
287
+ """
288
+
289
+ kwargs = {}
290
+ kwargs["action"] = "ListOrganizationNodes"
291
+ kwargs["params"] = request._serialize()
292
+ kwargs["resp_cls"] = models.ListOrganizationNodesResponse
293
+ kwargs["headers"] = request.headers
294
+ kwargs["opts"] = opts or {}
295
+
296
+ return await self.call_and_deserialize(**kwargs)
297
+
298
+ async def MoveOrganizationMembersToNode(
299
+ self,
300
+ request: models.MoveOrganizationMembersToNodeRequest,
301
+ opts: Dict = None,
302
+ ) -> models.MoveOrganizationMembersToNodeResponse:
303
+ """
304
+ 移动成员到指定企业组织单元
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "MoveOrganizationMembersToNode"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.MoveOrganizationMembersToNodeResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
316
+ async def QuitOrganization(
317
+ self,
318
+ request: models.QuitOrganizationRequest,
319
+ opts: Dict = None,
320
+ ) -> models.QuitOrganizationResponse:
321
+ """
322
+ 退出企业组织
323
+ """
324
+
325
+ kwargs = {}
326
+ kwargs["action"] = "QuitOrganization"
327
+ kwargs["params"] = request._serialize()
328
+ kwargs["resp_cls"] = models.QuitOrganizationResponse
329
+ kwargs["headers"] = request.headers
330
+ kwargs["opts"] = opts or {}
331
+
332
+ return await self.call_and_deserialize(**kwargs)
333
+
334
+ async def SendOrganizationInvitation(
335
+ self,
336
+ request: models.SendOrganizationInvitationRequest,
337
+ opts: Dict = None,
338
+ ) -> models.SendOrganizationInvitationResponse:
339
+ """
340
+ 发送企业组织邀请
341
+ """
342
+
343
+ kwargs = {}
344
+ kwargs["action"] = "SendOrganizationInvitation"
345
+ kwargs["params"] = request._serialize()
346
+ kwargs["resp_cls"] = models.SendOrganizationInvitationResponse
347
+ kwargs["headers"] = request.headers
348
+ kwargs["opts"] = opts or {}
349
+
350
+ return await self.call_and_deserialize(**kwargs)
351
+
352
+ async def UpdateOrganizationMember(
353
+ self,
354
+ request: models.UpdateOrganizationMemberRequest,
355
+ opts: Dict = None,
356
+ ) -> models.UpdateOrganizationMemberResponse:
357
+ """
358
+ 更新企业成员信息
359
+ """
360
+
361
+ kwargs = {}
362
+ kwargs["action"] = "UpdateOrganizationMember"
363
+ kwargs["params"] = request._serialize()
364
+ kwargs["resp_cls"] = models.UpdateOrganizationMemberResponse
365
+ kwargs["headers"] = request.headers
366
+ kwargs["opts"] = opts or {}
367
+
368
+ return await self.call_and_deserialize(**kwargs)
369
+
370
+ async def UpdateOrganizationNode(
371
+ self,
372
+ request: models.UpdateOrganizationNodeRequest,
373
+ opts: Dict = None,
374
+ ) -> models.UpdateOrganizationNodeResponse:
375
+ """
376
+ 更新企业组织单元
377
+ """
378
+
379
+ kwargs = {}
380
+ kwargs["action"] = "UpdateOrganizationNode"
381
+ kwargs["params"] = request._serialize()
382
+ kwargs["resp_cls"] = models.UpdateOrganizationNodeResponse
383
+ kwargs["headers"] = request.headers
384
+ kwargs["opts"] = opts or {}
385
+
386
+ return await self.call_and_deserialize(**kwargs)
@@ -341,6 +341,9 @@ FAILEDOPERATION_SHAREAREANOTEXIST = 'FailedOperation.ShareAreaNotExist'
341
341
  # 共享成员不存在。
342
342
  FAILEDOPERATION_SHAREMEMBERNOTEXIST = 'FailedOperation.ShareMemberNotExist'
343
343
 
344
+ # 部门在共享单元中。
345
+ FAILEDOPERATION_SHARENODEEXISTED = 'FailedOperation.ShareNodeExisted'
346
+
344
347
  # 成员正在使用共享资源。
345
348
  FAILEDOPERATION_SHARERESOURCEMEMBERINUSE = 'FailedOperation.ShareResourceMemberInUse'
346
349