tencentcloud-sdk-python-organization 3.0.1337__tar.gz → 3.0.1338__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.1337 → tencentcloud-sdk-python-organization-3.0.1338}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/setup.py +1 -1
  3. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20210331/models.py +109 -0
  5. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20210331/organization_client.py +23 -0
  6. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-organization-3.0.1338/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-organization-3.0.1337/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/README.rst +0 -0
  10. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/__init__.py +0 -0
  12. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20181225/__init__.py +0 -0
  13. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20181225/models.py +0 -0
  15. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20181225/organization_client.py +0 -0
  16. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20210331/__init__.py +0 -0
  17. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud/organization/v20210331/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-organization-3.0.1337 → tencentcloud-sdk-python-organization-3.0.1338}/tencentcloud_sdk_python_organization.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.0.1337
3
+ Version: 3.0.1338
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.1337"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1338"],
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.1337'
17
+ __version__ = '3.0.1338'
@@ -20143,6 +20143,115 @@ class UpdateOrganizationMemberResponse(AbstractModel):
20143
20143
  self._RequestId = params.get("RequestId")
20144
20144
 
20145
20145
 
20146
+ class UpdateOrganizationMembersPolicyRequest(AbstractModel):
20147
+ """UpdateOrganizationMembersPolicy请求参数结构体
20148
+
20149
+ """
20150
+
20151
+ def __init__(self):
20152
+ r"""
20153
+ :param _MemberUins: 成员Uin列表。最多10个
20154
+ :type MemberUins: list of int
20155
+ :param _PolicyId: 成员访问策略Id。可通过DescribeOrganizationMemberPolicies获取
20156
+ :type PolicyId: int
20157
+ :param _IdentityId: 成员访问身份ID。可通过ListOrganizationIdentity获取
20158
+ :type IdentityId: int
20159
+ :param _Description: 策略描述。最大长度为128个字符
20160
+ :type Description: str
20161
+ """
20162
+ self._MemberUins = None
20163
+ self._PolicyId = None
20164
+ self._IdentityId = None
20165
+ self._Description = None
20166
+
20167
+ @property
20168
+ def MemberUins(self):
20169
+ """成员Uin列表。最多10个
20170
+ :rtype: list of int
20171
+ """
20172
+ return self._MemberUins
20173
+
20174
+ @MemberUins.setter
20175
+ def MemberUins(self, MemberUins):
20176
+ self._MemberUins = MemberUins
20177
+
20178
+ @property
20179
+ def PolicyId(self):
20180
+ """成员访问策略Id。可通过DescribeOrganizationMemberPolicies获取
20181
+ :rtype: int
20182
+ """
20183
+ return self._PolicyId
20184
+
20185
+ @PolicyId.setter
20186
+ def PolicyId(self, PolicyId):
20187
+ self._PolicyId = PolicyId
20188
+
20189
+ @property
20190
+ def IdentityId(self):
20191
+ """成员访问身份ID。可通过ListOrganizationIdentity获取
20192
+ :rtype: int
20193
+ """
20194
+ return self._IdentityId
20195
+
20196
+ @IdentityId.setter
20197
+ def IdentityId(self, IdentityId):
20198
+ self._IdentityId = IdentityId
20199
+
20200
+ @property
20201
+ def Description(self):
20202
+ """策略描述。最大长度为128个字符
20203
+ :rtype: str
20204
+ """
20205
+ return self._Description
20206
+
20207
+ @Description.setter
20208
+ def Description(self, Description):
20209
+ self._Description = Description
20210
+
20211
+
20212
+ def _deserialize(self, params):
20213
+ self._MemberUins = params.get("MemberUins")
20214
+ self._PolicyId = params.get("PolicyId")
20215
+ self._IdentityId = params.get("IdentityId")
20216
+ self._Description = params.get("Description")
20217
+ memeber_set = set(params.keys())
20218
+ for name, value in vars(self).items():
20219
+ property_name = name[1:]
20220
+ if property_name in memeber_set:
20221
+ memeber_set.remove(property_name)
20222
+ if len(memeber_set) > 0:
20223
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20224
+
20225
+
20226
+
20227
+ class UpdateOrganizationMembersPolicyResponse(AbstractModel):
20228
+ """UpdateOrganizationMembersPolicy返回参数结构体
20229
+
20230
+ """
20231
+
20232
+ def __init__(self):
20233
+ r"""
20234
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20235
+ :type RequestId: str
20236
+ """
20237
+ self._RequestId = None
20238
+
20239
+ @property
20240
+ def RequestId(self):
20241
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20242
+ :rtype: str
20243
+ """
20244
+ return self._RequestId
20245
+
20246
+ @RequestId.setter
20247
+ def RequestId(self, RequestId):
20248
+ self._RequestId = RequestId
20249
+
20250
+
20251
+ def _deserialize(self, params):
20252
+ self._RequestId = params.get("RequestId")
20253
+
20254
+
20146
20255
  class UpdateOrganizationNodeRequest(AbstractModel):
20147
20256
  """UpdateOrganizationNode请求参数结构体
20148
20257
 
@@ -2694,6 +2694,29 @@ class OrganizationClient(AbstractClient):
2694
2694
  raise TencentCloudSDKException(type(e).__name__, str(e))
2695
2695
 
2696
2696
 
2697
+ def UpdateOrganizationMembersPolicy(self, request):
2698
+ """修改组织成员访问策略
2699
+
2700
+ :param request: Request instance for UpdateOrganizationMembersPolicy.
2701
+ :type request: :class:`tencentcloud.organization.v20210331.models.UpdateOrganizationMembersPolicyRequest`
2702
+ :rtype: :class:`tencentcloud.organization.v20210331.models.UpdateOrganizationMembersPolicyResponse`
2703
+
2704
+ """
2705
+ try:
2706
+ params = request._serialize()
2707
+ headers = request.headers
2708
+ body = self.call("UpdateOrganizationMembersPolicy", params, headers=headers)
2709
+ response = json.loads(body)
2710
+ model = models.UpdateOrganizationMembersPolicyResponse()
2711
+ model._deserialize(response["Response"])
2712
+ return model
2713
+ except Exception as e:
2714
+ if isinstance(e, TencentCloudSDKException):
2715
+ raise
2716
+ else:
2717
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2718
+
2719
+
2697
2720
  def UpdateOrganizationNode(self, request):
2698
2721
  """更新企业组织节点
2699
2722
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.0.1337
3
+ Version: 3.0.1338
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.1337