tencentcloud-sdk-python-organization 3.1.74__tar.gz → 3.1.78__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.1.74 → tencentcloud_sdk_python_organization-3.1.78}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/setup.py +1 -1
  3. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20210331/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20210331/models.py +94 -0
  6. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20210331/organization_client.py +23 -0
  7. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20210331/organization_client_async.py +18 -0
  8. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_organization-3.1.78/tencentcloud_sdk_python_organization.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_organization-3.1.74/tencentcloud_sdk_python_organization.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/README.rst +0 -0
  12. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/__init__.py +0 -0
  14. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20181225/__init__.py +0 -0
  15. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20181225/models.py +0 -0
  17. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20181225/organization_client.py +0 -0
  18. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20181225/organization_client_async.py +0 -0
  19. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud/organization/v20210331/__init__.py +0 -0
  20. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/tencentcloud_sdk_python_organization.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.78}/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.1.74
3
+ Version: 3.1.78
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.74
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.78
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -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.74,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.78,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Organization SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.74'
17
+ __version__ = '3.1.78'
@@ -284,6 +284,9 @@ FAILEDOPERATION_PARTNERMANAGEMENTERR = 'FailedOperation.PartnerManagementErr'
284
284
  # 代付者不合法。
285
285
  FAILEDOPERATION_PAYUINILLEGAL = 'FailedOperation.PayUinIllegal'
286
286
 
287
+ # 操作权限被拒绝,OwnerUin不一致
288
+ FAILEDOPERATION_PERMISSIONDENIED = 'FailedOperation.PermissionDenied'
289
+
287
290
  # 存在成员账号已经开启标签策略,不支持开启集团标签策略
288
291
  FAILEDOPERATION_POLICYENABLEINVALID = 'FailedOperation.PolicyEnableInvalid'
289
292
 
@@ -20795,6 +20795,100 @@ class UpdateGroupResponse(AbstractModel):
20795
20795
  self._RequestId = params.get("RequestId")
20796
20796
 
20797
20797
 
20798
+ class UpdateIPWhitelistRequest(AbstractModel):
20799
+ r"""UpdateIPWhitelist请求参数结构体
20800
+
20801
+ """
20802
+
20803
+ def __init__(self):
20804
+ r"""
20805
+ :param _ZoneId: 空间ID
20806
+ :type ZoneId: str
20807
+ :param _IpWhitelist: ip白名单(上限100个)
20808
+ :type IpWhitelist: list of str
20809
+ """
20810
+ self._ZoneId = None
20811
+ self._IpWhitelist = None
20812
+
20813
+ @property
20814
+ def ZoneId(self):
20815
+ r"""空间ID
20816
+ :rtype: str
20817
+ """
20818
+ return self._ZoneId
20819
+
20820
+ @ZoneId.setter
20821
+ def ZoneId(self, ZoneId):
20822
+ self._ZoneId = ZoneId
20823
+
20824
+ @property
20825
+ def IpWhitelist(self):
20826
+ r"""ip白名单(上限100个)
20827
+ :rtype: list of str
20828
+ """
20829
+ return self._IpWhitelist
20830
+
20831
+ @IpWhitelist.setter
20832
+ def IpWhitelist(self, IpWhitelist):
20833
+ self._IpWhitelist = IpWhitelist
20834
+
20835
+
20836
+ def _deserialize(self, params):
20837
+ self._ZoneId = params.get("ZoneId")
20838
+ self._IpWhitelist = params.get("IpWhitelist")
20839
+ memeber_set = set(params.keys())
20840
+ for name, value in vars(self).items():
20841
+ property_name = name[1:]
20842
+ if property_name in memeber_set:
20843
+ memeber_set.remove(property_name)
20844
+ if len(memeber_set) > 0:
20845
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20846
+
20847
+
20848
+
20849
+ class UpdateIPWhitelistResponse(AbstractModel):
20850
+ r"""UpdateIPWhitelist返回参数结构体
20851
+
20852
+ """
20853
+
20854
+ def __init__(self):
20855
+ r"""
20856
+ :param _Success: 成功返回
20857
+ :type Success: bool
20858
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20859
+ :type RequestId: str
20860
+ """
20861
+ self._Success = None
20862
+ self._RequestId = None
20863
+
20864
+ @property
20865
+ def Success(self):
20866
+ r"""成功返回
20867
+ :rtype: bool
20868
+ """
20869
+ return self._Success
20870
+
20871
+ @Success.setter
20872
+ def Success(self, Success):
20873
+ self._Success = Success
20874
+
20875
+ @property
20876
+ def RequestId(self):
20877
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20878
+ :rtype: str
20879
+ """
20880
+ return self._RequestId
20881
+
20882
+ @RequestId.setter
20883
+ def RequestId(self, RequestId):
20884
+ self._RequestId = RequestId
20885
+
20886
+
20887
+ def _deserialize(self, params):
20888
+ self._Success = params.get("Success")
20889
+ self._RequestId = params.get("RequestId")
20890
+
20891
+
20798
20892
  class UpdateOrganizationIdentityRequest(AbstractModel):
20799
20893
  r"""UpdateOrganizationIdentity请求参数结构体
20800
20894
 
@@ -2740,6 +2740,29 @@ class OrganizationClient(AbstractClient):
2740
2740
  raise TencentCloudSDKException(type(e).__name__, str(e))
2741
2741
 
2742
2742
 
2743
+ def UpdateIPWhitelist(self, request):
2744
+ r"""更新新建ip白名单
2745
+
2746
+ :param request: Request instance for UpdateIPWhitelist.
2747
+ :type request: :class:`tencentcloud.organization.v20210331.models.UpdateIPWhitelistRequest`
2748
+ :rtype: :class:`tencentcloud.organization.v20210331.models.UpdateIPWhitelistResponse`
2749
+
2750
+ """
2751
+ try:
2752
+ params = request._serialize()
2753
+ headers = request.headers
2754
+ body = self.call("UpdateIPWhitelist", params, headers=headers)
2755
+ response = json.loads(body)
2756
+ model = models.UpdateIPWhitelistResponse()
2757
+ model._deserialize(response["Response"])
2758
+ return model
2759
+ except Exception as e:
2760
+ if isinstance(e, TencentCloudSDKException):
2761
+ raise
2762
+ else:
2763
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2764
+
2765
+
2743
2766
  def UpdateOrganizationIdentity(self, request):
2744
2767
  r"""更新组织身份
2745
2768
 
@@ -2149,6 +2149,24 @@ class OrganizationClient(AbstractClient):
2149
2149
 
2150
2150
  return await self.call_and_deserialize(**kwargs)
2151
2151
 
2152
+ async def UpdateIPWhitelist(
2153
+ self,
2154
+ request: models.UpdateIPWhitelistRequest,
2155
+ opts: Dict = None,
2156
+ ) -> models.UpdateIPWhitelistResponse:
2157
+ """
2158
+ 更新新建ip白名单
2159
+ """
2160
+
2161
+ kwargs = {}
2162
+ kwargs["action"] = "UpdateIPWhitelist"
2163
+ kwargs["params"] = request._serialize()
2164
+ kwargs["resp_cls"] = models.UpdateIPWhitelistResponse
2165
+ kwargs["headers"] = request.headers
2166
+ kwargs["opts"] = opts or {}
2167
+
2168
+ return await self.call_and_deserialize(**kwargs)
2169
+
2152
2170
  async def UpdateOrganizationIdentity(
2153
2171
  self,
2154
2172
  request: models.UpdateOrganizationIdentityRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-organization
3
- Version: 3.1.74
3
+ Version: 3.1.78
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.74
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.78
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.78
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.74