tencentcloud-sdk-python-organization 3.1.74__tar.gz → 3.1.88__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.88}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/setup.py +1 -1
  3. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20210331/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20210331/models.py +173 -0
  6. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20210331/organization_client.py +46 -0
  7. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20210331/organization_client_async.py +36 -0
  8. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud_sdk_python_organization.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_organization-3.1.88/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.88}/README.rst +0 -0
  12. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/__init__.py +0 -0
  14. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20181225/__init__.py +0 -0
  15. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20181225/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20181225/models.py +0 -0
  17. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20181225/organization_client.py +0 -0
  18. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20181225/organization_client_async.py +0 -0
  19. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud/organization/v20210331/__init__.py +0 -0
  20. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/tencentcloud_sdk_python_organization.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_organization-3.1.74 → tencentcloud_sdk_python_organization-3.1.88}/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.88}/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.88
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.88
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.88,<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.88'
@@ -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
 
@@ -9387,6 +9387,85 @@ class GetGroupResponse(AbstractModel):
9387
9387
  self._RequestId = params.get("RequestId")
9388
9388
 
9389
9389
 
9390
+ class GetIPWhitelistRequest(AbstractModel):
9391
+ r"""GetIPWhitelist请求参数结构体
9392
+
9393
+ """
9394
+
9395
+ def __init__(self):
9396
+ r"""
9397
+ :param _ZoneId: 空间ID
9398
+ :type ZoneId: str
9399
+ """
9400
+ self._ZoneId = None
9401
+
9402
+ @property
9403
+ def ZoneId(self):
9404
+ r"""空间ID
9405
+ :rtype: str
9406
+ """
9407
+ return self._ZoneId
9408
+
9409
+ @ZoneId.setter
9410
+ def ZoneId(self, ZoneId):
9411
+ self._ZoneId = ZoneId
9412
+
9413
+
9414
+ def _deserialize(self, params):
9415
+ self._ZoneId = params.get("ZoneId")
9416
+ memeber_set = set(params.keys())
9417
+ for name, value in vars(self).items():
9418
+ property_name = name[1:]
9419
+ if property_name in memeber_set:
9420
+ memeber_set.remove(property_name)
9421
+ if len(memeber_set) > 0:
9422
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9423
+
9424
+
9425
+
9426
+ class GetIPWhitelistResponse(AbstractModel):
9427
+ r"""GetIPWhitelist返回参数结构体
9428
+
9429
+ """
9430
+
9431
+ def __init__(self):
9432
+ r"""
9433
+ :param _IpWhitelist: ip白名单
9434
+ :type IpWhitelist: list of str
9435
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9436
+ :type RequestId: str
9437
+ """
9438
+ self._IpWhitelist = None
9439
+ self._RequestId = None
9440
+
9441
+ @property
9442
+ def IpWhitelist(self):
9443
+ r"""ip白名单
9444
+ :rtype: list of str
9445
+ """
9446
+ return self._IpWhitelist
9447
+
9448
+ @IpWhitelist.setter
9449
+ def IpWhitelist(self, IpWhitelist):
9450
+ self._IpWhitelist = IpWhitelist
9451
+
9452
+ @property
9453
+ def RequestId(self):
9454
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9455
+ :rtype: str
9456
+ """
9457
+ return self._RequestId
9458
+
9459
+ @RequestId.setter
9460
+ def RequestId(self, RequestId):
9461
+ self._RequestId = RequestId
9462
+
9463
+
9464
+ def _deserialize(self, params):
9465
+ self._IpWhitelist = params.get("IpWhitelist")
9466
+ self._RequestId = params.get("RequestId")
9467
+
9468
+
9390
9469
  class GetProvisioningTaskStatusRequest(AbstractModel):
9391
9470
  r"""GetProvisioningTaskStatus请求参数结构体
9392
9471
 
@@ -20795,6 +20874,100 @@ class UpdateGroupResponse(AbstractModel):
20795
20874
  self._RequestId = params.get("RequestId")
20796
20875
 
20797
20876
 
20877
+ class UpdateIPWhitelistRequest(AbstractModel):
20878
+ r"""UpdateIPWhitelist请求参数结构体
20879
+
20880
+ """
20881
+
20882
+ def __init__(self):
20883
+ r"""
20884
+ :param _ZoneId: 空间ID
20885
+ :type ZoneId: str
20886
+ :param _IpWhitelist: ip白名单(上限100个)
20887
+ :type IpWhitelist: list of str
20888
+ """
20889
+ self._ZoneId = None
20890
+ self._IpWhitelist = None
20891
+
20892
+ @property
20893
+ def ZoneId(self):
20894
+ r"""空间ID
20895
+ :rtype: str
20896
+ """
20897
+ return self._ZoneId
20898
+
20899
+ @ZoneId.setter
20900
+ def ZoneId(self, ZoneId):
20901
+ self._ZoneId = ZoneId
20902
+
20903
+ @property
20904
+ def IpWhitelist(self):
20905
+ r"""ip白名单(上限100个)
20906
+ :rtype: list of str
20907
+ """
20908
+ return self._IpWhitelist
20909
+
20910
+ @IpWhitelist.setter
20911
+ def IpWhitelist(self, IpWhitelist):
20912
+ self._IpWhitelist = IpWhitelist
20913
+
20914
+
20915
+ def _deserialize(self, params):
20916
+ self._ZoneId = params.get("ZoneId")
20917
+ self._IpWhitelist = params.get("IpWhitelist")
20918
+ memeber_set = set(params.keys())
20919
+ for name, value in vars(self).items():
20920
+ property_name = name[1:]
20921
+ if property_name in memeber_set:
20922
+ memeber_set.remove(property_name)
20923
+ if len(memeber_set) > 0:
20924
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
20925
+
20926
+
20927
+
20928
+ class UpdateIPWhitelistResponse(AbstractModel):
20929
+ r"""UpdateIPWhitelist返回参数结构体
20930
+
20931
+ """
20932
+
20933
+ def __init__(self):
20934
+ r"""
20935
+ :param _Success: 成功返回
20936
+ :type Success: bool
20937
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20938
+ :type RequestId: str
20939
+ """
20940
+ self._Success = None
20941
+ self._RequestId = None
20942
+
20943
+ @property
20944
+ def Success(self):
20945
+ r"""成功返回
20946
+ :rtype: bool
20947
+ """
20948
+ return self._Success
20949
+
20950
+ @Success.setter
20951
+ def Success(self, Success):
20952
+ self._Success = Success
20953
+
20954
+ @property
20955
+ def RequestId(self):
20956
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
20957
+ :rtype: str
20958
+ """
20959
+ return self._RequestId
20960
+
20961
+ @RequestId.setter
20962
+ def RequestId(self, RequestId):
20963
+ self._RequestId = RequestId
20964
+
20965
+
20966
+ def _deserialize(self, params):
20967
+ self._Success = params.get("Success")
20968
+ self._RequestId = params.get("RequestId")
20969
+
20970
+
20798
20971
  class UpdateOrganizationIdentityRequest(AbstractModel):
20799
20972
  r"""UpdateOrganizationIdentity请求参数结构体
20800
20973
 
@@ -1820,6 +1820,29 @@ class OrganizationClient(AbstractClient):
1820
1820
  raise TencentCloudSDKException(type(e).__name__, str(e))
1821
1821
 
1822
1822
 
1823
+ def GetIPWhitelist(self, request):
1824
+ r"""获取CIC的ip白名单
1825
+
1826
+ :param request: Request instance for GetIPWhitelist.
1827
+ :type request: :class:`tencentcloud.organization.v20210331.models.GetIPWhitelistRequest`
1828
+ :rtype: :class:`tencentcloud.organization.v20210331.models.GetIPWhitelistResponse`
1829
+
1830
+ """
1831
+ try:
1832
+ params = request._serialize()
1833
+ headers = request.headers
1834
+ body = self.call("GetIPWhitelist", params, headers=headers)
1835
+ response = json.loads(body)
1836
+ model = models.GetIPWhitelistResponse()
1837
+ model._deserialize(response["Response"])
1838
+ return model
1839
+ except Exception as e:
1840
+ if isinstance(e, TencentCloudSDKException):
1841
+ raise
1842
+ else:
1843
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1844
+
1845
+
1823
1846
  def GetProvisioningTaskStatus(self, request):
1824
1847
  r"""查询用户同步异步任务的状态
1825
1848
 
@@ -2740,6 +2763,29 @@ class OrganizationClient(AbstractClient):
2740
2763
  raise TencentCloudSDKException(type(e).__name__, str(e))
2741
2764
 
2742
2765
 
2766
+ def UpdateIPWhitelist(self, request):
2767
+ r"""更新新建ip白名单
2768
+
2769
+ :param request: Request instance for UpdateIPWhitelist.
2770
+ :type request: :class:`tencentcloud.organization.v20210331.models.UpdateIPWhitelistRequest`
2771
+ :rtype: :class:`tencentcloud.organization.v20210331.models.UpdateIPWhitelistResponse`
2772
+
2773
+ """
2774
+ try:
2775
+ params = request._serialize()
2776
+ headers = request.headers
2777
+ body = self.call("UpdateIPWhitelist", params, headers=headers)
2778
+ response = json.loads(body)
2779
+ model = models.UpdateIPWhitelistResponse()
2780
+ model._deserialize(response["Response"])
2781
+ return model
2782
+ except Exception as e:
2783
+ if isinstance(e, TencentCloudSDKException):
2784
+ raise
2785
+ else:
2786
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2787
+
2788
+
2743
2789
  def UpdateOrganizationIdentity(self, request):
2744
2790
  r"""更新组织身份
2745
2791
 
@@ -1429,6 +1429,24 @@ class OrganizationClient(AbstractClient):
1429
1429
 
1430
1430
  return await self.call_and_deserialize(**kwargs)
1431
1431
 
1432
+ async def GetIPWhitelist(
1433
+ self,
1434
+ request: models.GetIPWhitelistRequest,
1435
+ opts: Dict = None,
1436
+ ) -> models.GetIPWhitelistResponse:
1437
+ """
1438
+ 获取CIC的ip白名单
1439
+ """
1440
+
1441
+ kwargs = {}
1442
+ kwargs["action"] = "GetIPWhitelist"
1443
+ kwargs["params"] = request._serialize()
1444
+ kwargs["resp_cls"] = models.GetIPWhitelistResponse
1445
+ kwargs["headers"] = request.headers
1446
+ kwargs["opts"] = opts or {}
1447
+
1448
+ return await self.call_and_deserialize(**kwargs)
1449
+
1432
1450
  async def GetProvisioningTaskStatus(
1433
1451
  self,
1434
1452
  request: models.GetProvisioningTaskStatusRequest,
@@ -2149,6 +2167,24 @@ class OrganizationClient(AbstractClient):
2149
2167
 
2150
2168
  return await self.call_and_deserialize(**kwargs)
2151
2169
 
2170
+ async def UpdateIPWhitelist(
2171
+ self,
2172
+ request: models.UpdateIPWhitelistRequest,
2173
+ opts: Dict = None,
2174
+ ) -> models.UpdateIPWhitelistResponse:
2175
+ """
2176
+ 更新新建ip白名单
2177
+ """
2178
+
2179
+ kwargs = {}
2180
+ kwargs["action"] = "UpdateIPWhitelist"
2181
+ kwargs["params"] = request._serialize()
2182
+ kwargs["resp_cls"] = models.UpdateIPWhitelistResponse
2183
+ kwargs["headers"] = request.headers
2184
+ kwargs["opts"] = opts or {}
2185
+
2186
+ return await self.call_and_deserialize(**kwargs)
2187
+
2152
2188
  async def UpdateOrganizationIdentity(
2153
2189
  self,
2154
2190
  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.88
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.88
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.88
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.74