tencentcloud-sdk-python-organization 3.0.1482__tar.gz → 3.1.36__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.1482 → tencentcloud_sdk_python_organization-3.1.36}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/setup.py +2 -1
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_organization-3.1.36/tencentcloud/organization/v20181225/organization_client_async.py +386 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20210331/models.py +16 -16
- tencentcloud_sdk_python_organization-3.1.36/tencentcloud/organization/v20210331/organization_client_async.py +2348 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +2 -2
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +2 -0
- tencentcloud_sdk_python_organization-3.1.36/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_organization-3.0.1482/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/README.rst +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/setup.cfg +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20181225/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20181225/models.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20181225/organization_client.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20210331/__init__.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20210331/errorcodes.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud/organization/v20210331/organization_client.py +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_organization-3.0.1482 → tencentcloud_sdk_python_organization-3.1.36}/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.
|
|
3
|
+
Version: 3.1.36
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.36
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.36,<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(),
|
|
@@ -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)
|
|
@@ -1026,13 +1026,13 @@ class AttachPolicyRequest(AbstractModel):
|
|
|
1026
1026
|
|
|
1027
1027
|
def __init__(self):
|
|
1028
1028
|
r"""
|
|
1029
|
-
:param _TargetId:
|
|
1029
|
+
:param _TargetId: <p>绑定策略目标ID。成员Uin或部门ID</p>
|
|
1030
1030
|
:type TargetId: int
|
|
1031
|
-
:param _TargetType:
|
|
1031
|
+
:param _TargetType: <p>目标类型。取值范围:NODE-部门、MEMBER-成员</p>
|
|
1032
1032
|
:type TargetType: str
|
|
1033
|
-
:param _PolicyId:
|
|
1033
|
+
:param _PolicyId: <p>策略Id。可以调用<a href="https://cloud.tencent.com/document/product/850/105311">ListPolicies</a>获取</p>
|
|
1034
1034
|
:type PolicyId: int
|
|
1035
|
-
:param _Type:
|
|
1035
|
+
:param _Type: <p>策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略</p>
|
|
1036
1036
|
:type Type: str
|
|
1037
1037
|
"""
|
|
1038
1038
|
self._TargetId = None
|
|
@@ -1042,7 +1042,7 @@ class AttachPolicyRequest(AbstractModel):
|
|
|
1042
1042
|
|
|
1043
1043
|
@property
|
|
1044
1044
|
def TargetId(self):
|
|
1045
|
-
r"""
|
|
1045
|
+
r"""<p>绑定策略目标ID。成员Uin或部门ID</p>
|
|
1046
1046
|
:rtype: int
|
|
1047
1047
|
"""
|
|
1048
1048
|
return self._TargetId
|
|
@@ -1053,7 +1053,7 @@ class AttachPolicyRequest(AbstractModel):
|
|
|
1053
1053
|
|
|
1054
1054
|
@property
|
|
1055
1055
|
def TargetType(self):
|
|
1056
|
-
r"""
|
|
1056
|
+
r"""<p>目标类型。取值范围:NODE-部门、MEMBER-成员</p>
|
|
1057
1057
|
:rtype: str
|
|
1058
1058
|
"""
|
|
1059
1059
|
return self._TargetType
|
|
@@ -1064,7 +1064,7 @@ class AttachPolicyRequest(AbstractModel):
|
|
|
1064
1064
|
|
|
1065
1065
|
@property
|
|
1066
1066
|
def PolicyId(self):
|
|
1067
|
-
r"""
|
|
1067
|
+
r"""<p>策略Id。可以调用<a href="https://cloud.tencent.com/document/product/850/105311">ListPolicies</a>获取</p>
|
|
1068
1068
|
:rtype: int
|
|
1069
1069
|
"""
|
|
1070
1070
|
return self._PolicyId
|
|
@@ -1075,7 +1075,7 @@ class AttachPolicyRequest(AbstractModel):
|
|
|
1075
1075
|
|
|
1076
1076
|
@property
|
|
1077
1077
|
def Type(self):
|
|
1078
|
-
r"""
|
|
1078
|
+
r"""<p>策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略</p>
|
|
1079
1079
|
:rtype: str
|
|
1080
1080
|
"""
|
|
1081
1081
|
return self._Type
|
|
@@ -8456,13 +8456,13 @@ class DetachPolicyRequest(AbstractModel):
|
|
|
8456
8456
|
|
|
8457
8457
|
def __init__(self):
|
|
8458
8458
|
r"""
|
|
8459
|
-
:param _TargetId:
|
|
8459
|
+
:param _TargetId: <p>解绑策略目标ID。成员Uin或部门ID</p>
|
|
8460
8460
|
:type TargetId: int
|
|
8461
|
-
:param _TargetType:
|
|
8461
|
+
:param _TargetType: <p>目标类型。取值范围:NODE-部门、MEMBER-成员</p>
|
|
8462
8462
|
:type TargetType: str
|
|
8463
|
-
:param _PolicyId:
|
|
8463
|
+
:param _PolicyId: <p>策略Id。可以调用<a href="https://cloud.tencent.com/document/product/850/105311">ListPolicies</a>获取</p>
|
|
8464
8464
|
:type PolicyId: int
|
|
8465
|
-
:param _Type:
|
|
8465
|
+
:param _Type: <p>策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略</p>
|
|
8466
8466
|
:type Type: str
|
|
8467
8467
|
"""
|
|
8468
8468
|
self._TargetId = None
|
|
@@ -8472,7 +8472,7 @@ class DetachPolicyRequest(AbstractModel):
|
|
|
8472
8472
|
|
|
8473
8473
|
@property
|
|
8474
8474
|
def TargetId(self):
|
|
8475
|
-
r"""
|
|
8475
|
+
r"""<p>解绑策略目标ID。成员Uin或部门ID</p>
|
|
8476
8476
|
:rtype: int
|
|
8477
8477
|
"""
|
|
8478
8478
|
return self._TargetId
|
|
@@ -8483,7 +8483,7 @@ class DetachPolicyRequest(AbstractModel):
|
|
|
8483
8483
|
|
|
8484
8484
|
@property
|
|
8485
8485
|
def TargetType(self):
|
|
8486
|
-
r"""
|
|
8486
|
+
r"""<p>目标类型。取值范围:NODE-部门、MEMBER-成员</p>
|
|
8487
8487
|
:rtype: str
|
|
8488
8488
|
"""
|
|
8489
8489
|
return self._TargetType
|
|
@@ -8494,7 +8494,7 @@ class DetachPolicyRequest(AbstractModel):
|
|
|
8494
8494
|
|
|
8495
8495
|
@property
|
|
8496
8496
|
def PolicyId(self):
|
|
8497
|
-
r"""
|
|
8497
|
+
r"""<p>策略Id。可以调用<a href="https://cloud.tencent.com/document/product/850/105311">ListPolicies</a>获取</p>
|
|
8498
8498
|
:rtype: int
|
|
8499
8499
|
"""
|
|
8500
8500
|
return self._PolicyId
|
|
@@ -8505,7 +8505,7 @@ class DetachPolicyRequest(AbstractModel):
|
|
|
8505
8505
|
|
|
8506
8506
|
@property
|
|
8507
8507
|
def Type(self):
|
|
8508
|
-
r"""
|
|
8508
|
+
r"""<p>策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略</p>
|
|
8509
8509
|
:rtype: str
|
|
8510
8510
|
"""
|
|
8511
8511
|
return self._Type
|