tencentcloud-sdk-python-dbdc 3.1.145__tar.gz → 3.1.148__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.145 → tencentcloud_sdk_python_dbdc-3.1.148}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/v20201029/dbdc_client.py +23 -0
  5. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/v20201029/dbdc_client_async.py +18 -0
  6. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/v20201029/models.py +128 -2
  7. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud_sdk_python_dbdc.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dbdc-3.1.148/tencentcloud_sdk_python_dbdc.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dbdc-3.1.145/tencentcloud_sdk_python_dbdc.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/v20201029/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud/dbdc/v20201029/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud_sdk_python_dbdc.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/tencentcloud_sdk_python_dbdc.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_dbdc-3.1.145 → tencentcloud_sdk_python_dbdc-3.1.148}/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.145
3
+ Version: 3.1.148
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.145
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.148
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.145,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.148,<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.145'
17
+ __version__ = '3.1.148'
@@ -670,6 +670,29 @@ class DbdcClient(AbstractClient):
670
670
  raise TencentCloudSDKException(type(e).__name__, str(e))
671
671
 
672
672
 
673
+ def ModifyDBCustomNodeAttributes(self, request):
674
+ r"""该接口(ModifyDBCustomNodeAttributes)用于修改 DB Custom 节点的属性。
675
+
676
+ :param request: Request instance for ModifyDBCustomNodeAttributes.
677
+ :type request: :class:`tencentcloud.dbdc.v20201029.models.ModifyDBCustomNodeAttributesRequest`
678
+ :rtype: :class:`tencentcloud.dbdc.v20201029.models.ModifyDBCustomNodeAttributesResponse`
679
+
680
+ """
681
+ try:
682
+ params = request._serialize()
683
+ headers = request.headers
684
+ body = self.call("ModifyDBCustomNodeAttributes", params, headers=headers)
685
+ response = json.loads(body)
686
+ model = models.ModifyDBCustomNodeAttributesResponse()
687
+ model._deserialize(response["Response"])
688
+ return model
689
+ except Exception as e:
690
+ if isinstance(e, TencentCloudSDKException):
691
+ raise
692
+ else:
693
+ raise TencentCloudSDKException(type(e).__name__, str(e))
694
+
695
+
673
696
  def ModifyDBCustomNodeSecurityGroups(self, request):
674
697
  r"""该接口(ModifyDBCustomNodeSecurityGroups)用于修改 DB Custom 节点安全组。
675
698
 
@@ -529,6 +529,24 @@ class DbdcClient(AbstractClient):
529
529
 
530
530
  return await self.call_and_deserialize(**kwargs)
531
531
 
532
+ async def ModifyDBCustomNodeAttributes(
533
+ self,
534
+ request: models.ModifyDBCustomNodeAttributesRequest,
535
+ opts: Dict = None,
536
+ ) -> models.ModifyDBCustomNodeAttributesResponse:
537
+ """
538
+ 该接口(ModifyDBCustomNodeAttributes)用于修改 DB Custom 节点的属性。
539
+ """
540
+
541
+ kwargs = {}
542
+ kwargs["action"] = "ModifyDBCustomNodeAttributes"
543
+ kwargs["params"] = request._serialize()
544
+ kwargs["resp_cls"] = models.ModifyDBCustomNodeAttributesResponse
545
+ kwargs["headers"] = request.headers
546
+ kwargs["opts"] = opts or {}
547
+
548
+ return await self.call_and_deserialize(**kwargs)
549
+
532
550
  async def ModifyDBCustomNodeSecurityGroups(
533
551
  self,
534
552
  request: models.ModifyDBCustomNodeSecurityGroupsRequest,
@@ -7866,6 +7866,132 @@ class ModifyDBCustomClusterTagsResponse(AbstractModel):
7866
7866
  self._RequestId = params.get("RequestId")
7867
7867
 
7868
7868
 
7869
+ class ModifyDBCustomNodeAttributesRequest(AbstractModel):
7870
+ r"""ModifyDBCustomNodeAttributes请求参数结构体
7871
+
7872
+ """
7873
+
7874
+ def __init__(self):
7875
+ r"""
7876
+ :param _NodeId: <p>节点ID</p><p>参数格式:dbcn-hq98qjym</p>
7877
+ :type NodeId: str
7878
+ :param _HostName: <p>主机 HostName</p><p>入参限制:参数设置规则参见:<a href="https://cloud.tencent.com/document/api/1322/132929">创建 DB Custom 节点接口</a>的 HostName 参数说明。</p><p>注意:节点在没有加入到集群之前才支持修改主机 HostName。</p>
7879
+ :type HostName: str
7880
+ :param _NodeName: <p>节点名称</p><p>入参限制:参数设置规则参见:<a href="https://cloud.tencent.com/document/api/1322/132929">创建 DB Custom 节点接口</a>的 NodeName 参数说明。</p>
7881
+ :type NodeName: str
7882
+ :param _AutoReboot: <p>修改实例 HostName 是否自动重启实例,不传默认自动重启。</p><p>枚举值:</p><ul><li>true: 修改主机 HostName,并自动重启主机</li><li>false: 修改主机 HostName,不自动重启主机,需要手动重启使新主机 HostName 生效</li></ul><p>默认值:true</p>
7883
+ :type AutoReboot: bool
7884
+ """
7885
+ self._NodeId = None
7886
+ self._HostName = None
7887
+ self._NodeName = None
7888
+ self._AutoReboot = None
7889
+
7890
+ @property
7891
+ def NodeId(self):
7892
+ r"""<p>节点ID</p><p>参数格式:dbcn-hq98qjym</p>
7893
+ :rtype: str
7894
+ """
7895
+ return self._NodeId
7896
+
7897
+ @NodeId.setter
7898
+ def NodeId(self, NodeId):
7899
+ self._NodeId = NodeId
7900
+
7901
+ @property
7902
+ def HostName(self):
7903
+ r"""<p>主机 HostName</p><p>入参限制:参数设置规则参见:<a href="https://cloud.tencent.com/document/api/1322/132929">创建 DB Custom 节点接口</a>的 HostName 参数说明。</p><p>注意:节点在没有加入到集群之前才支持修改主机 HostName。</p>
7904
+ :rtype: str
7905
+ """
7906
+ return self._HostName
7907
+
7908
+ @HostName.setter
7909
+ def HostName(self, HostName):
7910
+ self._HostName = HostName
7911
+
7912
+ @property
7913
+ def NodeName(self):
7914
+ r"""<p>节点名称</p><p>入参限制:参数设置规则参见:<a href="https://cloud.tencent.com/document/api/1322/132929">创建 DB Custom 节点接口</a>的 NodeName 参数说明。</p>
7915
+ :rtype: str
7916
+ """
7917
+ return self._NodeName
7918
+
7919
+ @NodeName.setter
7920
+ def NodeName(self, NodeName):
7921
+ self._NodeName = NodeName
7922
+
7923
+ @property
7924
+ def AutoReboot(self):
7925
+ r"""<p>修改实例 HostName 是否自动重启实例,不传默认自动重启。</p><p>枚举值:</p><ul><li>true: 修改主机 HostName,并自动重启主机</li><li>false: 修改主机 HostName,不自动重启主机,需要手动重启使新主机 HostName 生效</li></ul><p>默认值:true</p>
7926
+ :rtype: bool
7927
+ """
7928
+ return self._AutoReboot
7929
+
7930
+ @AutoReboot.setter
7931
+ def AutoReboot(self, AutoReboot):
7932
+ self._AutoReboot = AutoReboot
7933
+
7934
+
7935
+ def _deserialize(self, params):
7936
+ self._NodeId = params.get("NodeId")
7937
+ self._HostName = params.get("HostName")
7938
+ self._NodeName = params.get("NodeName")
7939
+ self._AutoReboot = params.get("AutoReboot")
7940
+ memeber_set = set(params.keys())
7941
+ for name, value in vars(self).items():
7942
+ property_name = name[1:]
7943
+ if property_name in memeber_set:
7944
+ memeber_set.remove(property_name)
7945
+ if len(memeber_set) > 0:
7946
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7947
+
7948
+
7949
+
7950
+ class ModifyDBCustomNodeAttributesResponse(AbstractModel):
7951
+ r"""ModifyDBCustomNodeAttributes返回参数结构体
7952
+
7953
+ """
7954
+
7955
+ def __init__(self):
7956
+ r"""
7957
+ :param _TaskId: <p>上架节点的任务ID</p>
7958
+ 注意:此字段可能返回 null,表示取不到有效值。
7959
+ :type TaskId: int
7960
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7961
+ :type RequestId: str
7962
+ """
7963
+ self._TaskId = None
7964
+ self._RequestId = None
7965
+
7966
+ @property
7967
+ def TaskId(self):
7968
+ r"""<p>上架节点的任务ID</p>
7969
+ 注意:此字段可能返回 null,表示取不到有效值。
7970
+ :rtype: int
7971
+ """
7972
+ return self._TaskId
7973
+
7974
+ @TaskId.setter
7975
+ def TaskId(self, TaskId):
7976
+ self._TaskId = TaskId
7977
+
7978
+ @property
7979
+ def RequestId(self):
7980
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7981
+ :rtype: str
7982
+ """
7983
+ return self._RequestId
7984
+
7985
+ @RequestId.setter
7986
+ def RequestId(self, RequestId):
7987
+ self._RequestId = RequestId
7988
+
7989
+
7990
+ def _deserialize(self, params):
7991
+ self._TaskId = params.get("TaskId")
7992
+ self._RequestId = params.get("RequestId")
7993
+
7994
+
7869
7995
  class ModifyDBCustomNodeSecurityGroupsRequest(AbstractModel):
7870
7996
  r"""ModifyDBCustomNodeSecurityGroups请求参数结构体
7871
7997
 
@@ -8142,7 +8268,7 @@ class PolicyRule(AbstractModel):
8142
8268
  :type ServiceModule: str
8143
8269
  :param _AddressModule: <p>IP 地址模板 ID</p>
8144
8270
  :type AddressModule: str
8145
- :param _Id: <p>规则 ID</p>
8271
+ :param _Id: <p>安全组 ID</p>
8146
8272
  :type Id: str
8147
8273
  :param _Desc: <p>规则备注描述</p>
8148
8274
  :type Desc: str
@@ -8224,7 +8350,7 @@ class PolicyRule(AbstractModel):
8224
8350
 
8225
8351
  @property
8226
8352
  def Id(self):
8227
- r"""<p>规则 ID</p>
8353
+ r"""<p>安全组 ID</p>
8228
8354
  :rtype: str
8229
8355
  """
8230
8356
  return self._Id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbdc
3
- Version: 3.1.145
3
+ Version: 3.1.148
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.145
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.148
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.148
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.145