tencentcloud-sdk-python-tke 3.1.162__tar.gz → 3.1.163__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_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20220501/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20220501/models.py +79 -0
  6. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20220501/tke_client.py +23 -0
  7. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20220501/tke_client_async.py +18 -0
  8. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud_sdk_python_tke.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tke-3.1.163/tencentcloud_sdk_python_tke.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tke-3.1.162/tencentcloud_sdk_python_tke.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20180525/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20180525/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20180525/models.py +0 -0
  17. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20180525/tke_client.py +0 -0
  18. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20180525/tke_client_async.py +0 -0
  19. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud/tke/v20220501/__init__.py +0 -0
  20. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud_sdk_python_tke.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud_sdk_python_tke.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_tke-3.1.162 → tencentcloud_sdk_python_tke-3.1.163}/tencentcloud_sdk_python_tke.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.162
3
+ Version: 3.1.163
4
4
  Summary: Tencent Cloud Tke 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.162
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.163
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-tke',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.162,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.163,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tke SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.162'
17
+ __version__ = '3.1.163'
@@ -17,6 +17,9 @@
17
17
  # 操作失败。
18
18
  FAILEDOPERATION = 'FailedOperation'
19
19
 
20
+ # 无该接口CAM权限。
21
+ FAILEDOPERATION_CAMNOAUTH = 'FailedOperation.CamNoAuth'
22
+
20
23
  # 内部错误。
21
24
  INTERNALERROR = 'InternalError'
22
25
 
@@ -3033,6 +3033,85 @@ class DescribeZoneInstanceConfigInfosResponse(AbstractModel):
3033
3033
  self._RequestId = params.get("RequestId")
3034
3034
 
3035
3035
 
3036
+ class DetachApplicationRoleRequest(AbstractModel):
3037
+ r"""DetachApplicationRole请求参数结构体
3038
+
3039
+ """
3040
+
3041
+ def __init__(self):
3042
+ r"""
3043
+ :param _ClusterId: <p>集群 ID</p>
3044
+ :type ClusterId: str
3045
+ :param _Instances: <p>解绑的 CVM 实例列表</p>
3046
+ :type Instances: list of str
3047
+ """
3048
+ self._ClusterId = None
3049
+ self._Instances = None
3050
+
3051
+ @property
3052
+ def ClusterId(self):
3053
+ r"""<p>集群 ID</p>
3054
+ :rtype: str
3055
+ """
3056
+ return self._ClusterId
3057
+
3058
+ @ClusterId.setter
3059
+ def ClusterId(self, ClusterId):
3060
+ self._ClusterId = ClusterId
3061
+
3062
+ @property
3063
+ def Instances(self):
3064
+ r"""<p>解绑的 CVM 实例列表</p>
3065
+ :rtype: list of str
3066
+ """
3067
+ return self._Instances
3068
+
3069
+ @Instances.setter
3070
+ def Instances(self, Instances):
3071
+ self._Instances = Instances
3072
+
3073
+
3074
+ def _deserialize(self, params):
3075
+ self._ClusterId = params.get("ClusterId")
3076
+ self._Instances = params.get("Instances")
3077
+ memeber_set = set(params.keys())
3078
+ for name, value in vars(self).items():
3079
+ property_name = name[1:]
3080
+ if property_name in memeber_set:
3081
+ memeber_set.remove(property_name)
3082
+ if len(memeber_set) > 0:
3083
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3084
+
3085
+
3086
+
3087
+ class DetachApplicationRoleResponse(AbstractModel):
3088
+ r"""DetachApplicationRole返回参数结构体
3089
+
3090
+ """
3091
+
3092
+ def __init__(self):
3093
+ r"""
3094
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3095
+ :type RequestId: str
3096
+ """
3097
+ self._RequestId = None
3098
+
3099
+ @property
3100
+ def RequestId(self):
3101
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3102
+ :rtype: str
3103
+ """
3104
+ return self._RequestId
3105
+
3106
+ @RequestId.setter
3107
+ def RequestId(self, RequestId):
3108
+ self._RequestId = RequestId
3109
+
3110
+
3111
+ def _deserialize(self, params):
3112
+ self._RequestId = params.get("RequestId")
3113
+
3114
+
3036
3115
  class Disk(AbstractModel):
3037
3116
  r"""节点系统盘和数据盘配置
3038
3117
 
@@ -460,6 +460,29 @@ class TkeClient(AbstractClient):
460
460
  raise TencentCloudSDKException(type(e).__name__, str(e))
461
461
 
462
462
 
463
+ def DetachApplicationRole(self, request):
464
+ r"""解绑原生节点 Application Role
465
+
466
+ :param request: Request instance for DetachApplicationRole.
467
+ :type request: :class:`tencentcloud.tke.v20220501.models.DetachApplicationRoleRequest`
468
+ :rtype: :class:`tencentcloud.tke.v20220501.models.DetachApplicationRoleResponse`
469
+
470
+ """
471
+ try:
472
+ params = request._serialize()
473
+ headers = request.headers
474
+ body = self.call("DetachApplicationRole", params, headers=headers)
475
+ response = json.loads(body)
476
+ model = models.DetachApplicationRoleResponse()
477
+ model._deserialize(response["Response"])
478
+ return model
479
+ except Exception as e:
480
+ if isinstance(e, TencentCloudSDKException):
481
+ raise
482
+ else:
483
+ raise TencentCloudSDKException(type(e).__name__, str(e))
484
+
485
+
463
486
  def ModifyClusterMachine(self, request):
464
487
  r"""修改原生节点
465
488
 
@@ -384,6 +384,24 @@ class TkeClient(AbstractClient):
384
384
 
385
385
  return await self.call_and_deserialize(**kwargs)
386
386
 
387
+ async def DetachApplicationRole(
388
+ self,
389
+ request: models.DetachApplicationRoleRequest,
390
+ opts: Dict = None,
391
+ ) -> models.DetachApplicationRoleResponse:
392
+ """
393
+ 解绑原生节点 Application Role
394
+ """
395
+
396
+ kwargs = {}
397
+ kwargs["action"] = "DetachApplicationRole"
398
+ kwargs["params"] = request._serialize()
399
+ kwargs["resp_cls"] = models.DetachApplicationRoleResponse
400
+ kwargs["headers"] = request.headers
401
+ kwargs["opts"] = opts or {}
402
+
403
+ return await self.call_and_deserialize(**kwargs)
404
+
387
405
  async def ModifyClusterMachine(
388
406
  self,
389
407
  request: models.ModifyClusterMachineRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tke
3
- Version: 3.1.162
3
+ Version: 3.1.163
4
4
  Summary: Tencent Cloud Tke 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.162
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.163
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.163
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.162