tencentcloud-sdk-python-dbdc 3.1.151__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 (17) hide show
  1. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/v20201029/dbdc_client.py +23 -0
  5. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/v20201029/dbdc_client_async.py +18 -0
  6. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/v20201029/models.py +94 -0
  7. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud_sdk_python_dbdc.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dbdc-3.1.163/tencentcloud_sdk_python_dbdc.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dbdc-3.1.151/tencentcloud_sdk_python_dbdc.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/v20201029/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud/dbdc/v20201029/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud_sdk_python_dbdc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud_sdk_python_dbdc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_dbdc-3.1.151 → tencentcloud_sdk_python_dbdc-3.1.163}/tencentcloud_sdk_python_dbdc.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbdc
3
- Version: 3.1.151
3
+ Version: 3.1.163
4
4
  Summary: Tencent Cloud Dbdc 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.151
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-dbdc',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.151,<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 Dbdc SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.151'
17
+ __version__ = '3.1.163'
@@ -624,6 +624,29 @@ class DbdcClient(AbstractClient):
624
624
  raise TencentCloudSDKException(type(e).__name__, str(e))
625
625
 
626
626
 
627
+ def ModifyDBCustomClusterAttributes(self, request):
628
+ r"""该接口(ModifyDBCustomClusterAttributes)用于修改 DB Custom 集群的属性。
629
+
630
+ :param request: Request instance for ModifyDBCustomClusterAttributes.
631
+ :type request: :class:`tencentcloud.dbdc.v20201029.models.ModifyDBCustomClusterAttributesRequest`
632
+ :rtype: :class:`tencentcloud.dbdc.v20201029.models.ModifyDBCustomClusterAttributesResponse`
633
+
634
+ """
635
+ try:
636
+ params = request._serialize()
637
+ headers = request.headers
638
+ body = self.call("ModifyDBCustomClusterAttributes", params, headers=headers)
639
+ response = json.loads(body)
640
+ model = models.ModifyDBCustomClusterAttributesResponse()
641
+ model._deserialize(response["Response"])
642
+ return model
643
+ except Exception as e:
644
+ if isinstance(e, TencentCloudSDKException):
645
+ raise
646
+ else:
647
+ raise TencentCloudSDKException(type(e).__name__, str(e))
648
+
649
+
627
650
  def ModifyDBCustomClusterNodeConfig(self, request):
628
651
  r"""该接口(ModifyDBCustomClusterNodeConfig)用于修改 DB Custom 集群中节点的配置。
629
652
 
@@ -493,6 +493,24 @@ class DbdcClient(AbstractClient):
493
493
 
494
494
  return await self.call_and_deserialize(**kwargs)
495
495
 
496
+ async def ModifyDBCustomClusterAttributes(
497
+ self,
498
+ request: models.ModifyDBCustomClusterAttributesRequest,
499
+ opts: Dict = None,
500
+ ) -> models.ModifyDBCustomClusterAttributesResponse:
501
+ """
502
+ 该接口(ModifyDBCustomClusterAttributes)用于修改 DB Custom 集群的属性。
503
+ """
504
+
505
+ kwargs = {}
506
+ kwargs["action"] = "ModifyDBCustomClusterAttributes"
507
+ kwargs["params"] = request._serialize()
508
+ kwargs["resp_cls"] = models.ModifyDBCustomClusterAttributesResponse
509
+ kwargs["headers"] = request.headers
510
+ kwargs["opts"] = opts or {}
511
+
512
+ return await self.call_and_deserialize(**kwargs)
513
+
496
514
  async def ModifyDBCustomClusterNodeConfig(
497
515
  self,
498
516
  request: models.ModifyDBCustomClusterNodeConfigRequest,
@@ -7677,6 +7677,85 @@ class MetaResource(AbstractModel):
7677
7677
 
7678
7678
 
7679
7679
 
7680
+ class ModifyDBCustomClusterAttributesRequest(AbstractModel):
7681
+ r"""ModifyDBCustomClusterAttributes请求参数结构体
7682
+
7683
+ """
7684
+
7685
+ def __init__(self):
7686
+ r"""
7687
+ :param _ClusterId: <p>集群ID</p><p>参数格式:dbcc-hj7gab15</p>
7688
+ :type ClusterId: str
7689
+ :param _DeletionProtection: <p>是否启用集群删除保护</p><p>枚举值:</p><ul><li>true: 启用</li><li>false: 不启用</li></ul>
7690
+ :type DeletionProtection: bool
7691
+ """
7692
+ self._ClusterId = None
7693
+ self._DeletionProtection = None
7694
+
7695
+ @property
7696
+ def ClusterId(self):
7697
+ r"""<p>集群ID</p><p>参数格式:dbcc-hj7gab15</p>
7698
+ :rtype: str
7699
+ """
7700
+ return self._ClusterId
7701
+
7702
+ @ClusterId.setter
7703
+ def ClusterId(self, ClusterId):
7704
+ self._ClusterId = ClusterId
7705
+
7706
+ @property
7707
+ def DeletionProtection(self):
7708
+ r"""<p>是否启用集群删除保护</p><p>枚举值:</p><ul><li>true: 启用</li><li>false: 不启用</li></ul>
7709
+ :rtype: bool
7710
+ """
7711
+ return self._DeletionProtection
7712
+
7713
+ @DeletionProtection.setter
7714
+ def DeletionProtection(self, DeletionProtection):
7715
+ self._DeletionProtection = DeletionProtection
7716
+
7717
+
7718
+ def _deserialize(self, params):
7719
+ self._ClusterId = params.get("ClusterId")
7720
+ self._DeletionProtection = params.get("DeletionProtection")
7721
+ memeber_set = set(params.keys())
7722
+ for name, value in vars(self).items():
7723
+ property_name = name[1:]
7724
+ if property_name in memeber_set:
7725
+ memeber_set.remove(property_name)
7726
+ if len(memeber_set) > 0:
7727
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7728
+
7729
+
7730
+
7731
+ class ModifyDBCustomClusterAttributesResponse(AbstractModel):
7732
+ r"""ModifyDBCustomClusterAttributes返回参数结构体
7733
+
7734
+ """
7735
+
7736
+ def __init__(self):
7737
+ r"""
7738
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7739
+ :type RequestId: str
7740
+ """
7741
+ self._RequestId = None
7742
+
7743
+ @property
7744
+ def RequestId(self):
7745
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7746
+ :rtype: str
7747
+ """
7748
+ return self._RequestId
7749
+
7750
+ @RequestId.setter
7751
+ def RequestId(self, RequestId):
7752
+ self._RequestId = RequestId
7753
+
7754
+
7755
+ def _deserialize(self, params):
7756
+ self._RequestId = params.get("RequestId")
7757
+
7758
+
7680
7759
  class ModifyDBCustomClusterNodeConfigRequest(AbstractModel):
7681
7760
  r"""ModifyDBCustomClusterNodeConfig请求参数结构体
7682
7761
 
@@ -8533,10 +8612,13 @@ class RemoveNodesFromDBCustomClusterRequest(AbstractModel):
8533
8612
  :type NodeIds: list of str
8534
8613
  :param _LoginSettings: <p>节点的登录参数</p>
8535
8614
  :type LoginSettings: :class:`tencentcloud.dbdc.v20201029.models.LoginSettings`
8615
+ :param _Force: <p>当节点中还有业务 Pod 在运行,默认会拦截从集群中移除节点的操作。如果该参数为 true,表示强制执行此操作。</p><p>枚举值:</p><ul><li>true: 是</li><li>false: 否</li></ul><p>默认值:false</p>
8616
+ :type Force: bool
8536
8617
  """
8537
8618
  self._ClusterId = None
8538
8619
  self._NodeIds = None
8539
8620
  self._LoginSettings = None
8621
+ self._Force = None
8540
8622
 
8541
8623
  @property
8542
8624
  def ClusterId(self):
@@ -8571,6 +8653,17 @@ class RemoveNodesFromDBCustomClusterRequest(AbstractModel):
8571
8653
  def LoginSettings(self, LoginSettings):
8572
8654
  self._LoginSettings = LoginSettings
8573
8655
 
8656
+ @property
8657
+ def Force(self):
8658
+ r"""<p>当节点中还有业务 Pod 在运行,默认会拦截从集群中移除节点的操作。如果该参数为 true,表示强制执行此操作。</p><p>枚举值:</p><ul><li>true: 是</li><li>false: 否</li></ul><p>默认值:false</p>
8659
+ :rtype: bool
8660
+ """
8661
+ return self._Force
8662
+
8663
+ @Force.setter
8664
+ def Force(self, Force):
8665
+ self._Force = Force
8666
+
8574
8667
 
8575
8668
  def _deserialize(self, params):
8576
8669
  self._ClusterId = params.get("ClusterId")
@@ -8578,6 +8671,7 @@ class RemoveNodesFromDBCustomClusterRequest(AbstractModel):
8578
8671
  if params.get("LoginSettings") is not None:
8579
8672
  self._LoginSettings = LoginSettings()
8580
8673
  self._LoginSettings._deserialize(params.get("LoginSettings"))
8674
+ self._Force = params.get("Force")
8581
8675
  memeber_set = set(params.keys())
8582
8676
  for name, value in vars(self).items():
8583
8677
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbdc
3
- Version: 3.1.151
3
+ Version: 3.1.163
4
4
  Summary: Tencent Cloud Dbdc 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.151
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.151