tencentcloud-sdk-python-cdwch 3.1.33__tar.gz → 3.1.47__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 (17) hide show
  1. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/v20200915/cdwch_client.py +23 -0
  5. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/v20200915/cdwch_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/v20200915/models.py +124 -0
  7. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud_sdk_python_cdwch.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cdwch-3.1.47/tencentcloud_sdk_python_cdwch.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cdwch-3.1.33/tencentcloud_sdk_python_cdwch.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/v20200915/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud/cdwch/v20200915/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud_sdk_python_cdwch.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud_sdk_python_cdwch.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cdwch-3.1.33 → tencentcloud_sdk_python_cdwch-3.1.47}/tencentcloud_sdk_python_cdwch.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cdwch
3
- Version: 3.1.33
3
+ Version: 3.1.47
4
4
  Summary: Tencent Cloud Cdwch 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.33
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.47
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-cdwch',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.33,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.47,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cdwch SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.33'
17
+ __version__ = '3.1.47'
@@ -647,6 +647,29 @@ class CdwchClient(AbstractClient):
647
647
  raise TencentCloudSDKException(type(e).__name__, str(e))
648
648
 
649
649
 
650
+ def RestartInstance(self, request):
651
+ r"""重启实例,可以按节点类型和节点进行重启,可选滚动重启
652
+
653
+ :param request: Request instance for RestartInstance.
654
+ :type request: :class:`tencentcloud.cdwch.v20200915.models.RestartInstanceRequest`
655
+ :rtype: :class:`tencentcloud.cdwch.v20200915.models.RestartInstanceResponse`
656
+
657
+ """
658
+ try:
659
+ params = request._serialize()
660
+ headers = request.headers
661
+ body = self.call("RestartInstance", params, headers=headers)
662
+ response = json.loads(body)
663
+ model = models.RestartInstanceResponse()
664
+ model._deserialize(response["Response"])
665
+ return model
666
+ except Exception as e:
667
+ if isinstance(e, TencentCloudSDKException):
668
+ raise
669
+ else:
670
+ raise TencentCloudSDKException(type(e).__name__, str(e))
671
+
672
+
650
673
  def ScaleCNOutUpInstance(self, request):
651
674
  r"""open-api接口提供弹性伸缩云原生集群能力
652
675
 
@@ -511,6 +511,24 @@ class CdwchClient(AbstractClient):
511
511
 
512
512
  return await self.call_and_deserialize(**kwargs)
513
513
 
514
+ async def RestartInstance(
515
+ self,
516
+ request: models.RestartInstanceRequest,
517
+ opts: Dict = None,
518
+ ) -> models.RestartInstanceResponse:
519
+ """
520
+ 重启实例,可以按节点类型和节点进行重启,可选滚动重启
521
+ """
522
+
523
+ kwargs = {}
524
+ kwargs["action"] = "RestartInstance"
525
+ kwargs["params"] = request._serialize()
526
+ kwargs["resp_cls"] = models.RestartInstanceResponse
527
+ kwargs["headers"] = request.headers
528
+ kwargs["opts"] = opts or {}
529
+
530
+ return await self.call_and_deserialize(**kwargs)
531
+
514
532
  async def ScaleCNOutUpInstance(
515
533
  self,
516
534
  request: models.ScaleCNOutUpInstanceRequest,
@@ -7946,6 +7946,130 @@ class ResourceSpec(AbstractModel):
7946
7946
 
7947
7947
 
7948
7948
 
7949
+ class RestartInstanceRequest(AbstractModel):
7950
+ r"""RestartInstance请求参数结构体
7951
+
7952
+ """
7953
+
7954
+ def __init__(self):
7955
+ r"""
7956
+ :param _InstanceId: 实例id
7957
+ :type InstanceId: str
7958
+ :param _NodeType: 节点类型,可选值:CK / ZK / CHPROXY
7959
+ :type NodeType: str
7960
+ :param _NodeIpList: 符合节点类型的要重启的节点ip列表
7961
+ :type NodeIpList: list of str
7962
+ :param _RollingRestart: 是否滚动重启,默认为true
7963
+ :type RollingRestart: bool
7964
+ """
7965
+ self._InstanceId = None
7966
+ self._NodeType = None
7967
+ self._NodeIpList = None
7968
+ self._RollingRestart = None
7969
+
7970
+ @property
7971
+ def InstanceId(self):
7972
+ r"""实例id
7973
+ :rtype: str
7974
+ """
7975
+ return self._InstanceId
7976
+
7977
+ @InstanceId.setter
7978
+ def InstanceId(self, InstanceId):
7979
+ self._InstanceId = InstanceId
7980
+
7981
+ @property
7982
+ def NodeType(self):
7983
+ r"""节点类型,可选值:CK / ZK / CHPROXY
7984
+ :rtype: str
7985
+ """
7986
+ return self._NodeType
7987
+
7988
+ @NodeType.setter
7989
+ def NodeType(self, NodeType):
7990
+ self._NodeType = NodeType
7991
+
7992
+ @property
7993
+ def NodeIpList(self):
7994
+ r"""符合节点类型的要重启的节点ip列表
7995
+ :rtype: list of str
7996
+ """
7997
+ return self._NodeIpList
7998
+
7999
+ @NodeIpList.setter
8000
+ def NodeIpList(self, NodeIpList):
8001
+ self._NodeIpList = NodeIpList
8002
+
8003
+ @property
8004
+ def RollingRestart(self):
8005
+ r"""是否滚动重启,默认为true
8006
+ :rtype: bool
8007
+ """
8008
+ return self._RollingRestart
8009
+
8010
+ @RollingRestart.setter
8011
+ def RollingRestart(self, RollingRestart):
8012
+ self._RollingRestart = RollingRestart
8013
+
8014
+
8015
+ def _deserialize(self, params):
8016
+ self._InstanceId = params.get("InstanceId")
8017
+ self._NodeType = params.get("NodeType")
8018
+ self._NodeIpList = params.get("NodeIpList")
8019
+ self._RollingRestart = params.get("RollingRestart")
8020
+ memeber_set = set(params.keys())
8021
+ for name, value in vars(self).items():
8022
+ property_name = name[1:]
8023
+ if property_name in memeber_set:
8024
+ memeber_set.remove(property_name)
8025
+ if len(memeber_set) > 0:
8026
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8027
+
8028
+
8029
+
8030
+ class RestartInstanceResponse(AbstractModel):
8031
+ r"""RestartInstance返回参数结构体
8032
+
8033
+ """
8034
+
8035
+ def __init__(self):
8036
+ r"""
8037
+ :param _FlowId: 任务id
8038
+ :type FlowId: int
8039
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8040
+ :type RequestId: str
8041
+ """
8042
+ self._FlowId = None
8043
+ self._RequestId = None
8044
+
8045
+ @property
8046
+ def FlowId(self):
8047
+ r"""任务id
8048
+ :rtype: int
8049
+ """
8050
+ return self._FlowId
8051
+
8052
+ @FlowId.setter
8053
+ def FlowId(self, FlowId):
8054
+ self._FlowId = FlowId
8055
+
8056
+ @property
8057
+ def RequestId(self):
8058
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8059
+ :rtype: str
8060
+ """
8061
+ return self._RequestId
8062
+
8063
+ @RequestId.setter
8064
+ def RequestId(self, RequestId):
8065
+ self._RequestId = RequestId
8066
+
8067
+
8068
+ def _deserialize(self, params):
8069
+ self._FlowId = params.get("FlowId")
8070
+ self._RequestId = params.get("RequestId")
8071
+
8072
+
7949
8073
  class ScaleCNOutUpInstanceRequest(AbstractModel):
7950
8074
  r"""ScaleCNOutUpInstance请求参数结构体
7951
8075
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cdwch
3
- Version: 3.1.33
3
+ Version: 3.1.47
4
4
  Summary: Tencent Cloud Cdwch 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.33
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.47
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.47
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.33