tencentcloud-sdk-python-tdmysql 3.1.205__tar.gz → 3.1.221__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_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/v20211122/errorcodes.py +30 -0
  5. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/v20211122/models.py +408 -10
  6. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/v20211122/tdmysql_client.py +46 -0
  7. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/v20211122/tdmysql_client_async.py +36 -0
  8. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud_sdk_python_tdmysql.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tdmysql-3.1.221/tencentcloud_sdk_python_tdmysql.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tdmysql-3.1.205/tencentcloud_sdk_python_tdmysql.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud/tdmysql/v20211122/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud_sdk_python_tdmysql.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud_sdk_python_tdmysql.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tdmysql-3.1.205 → tencentcloud_sdk_python_tdmysql-3.1.221}/tencentcloud_sdk_python_tdmysql.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tdmysql
3
- Version: 3.1.205
3
+ Version: 3.1.221
4
4
  Summary: Tencent Cloud Tdmysql 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.205
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.221
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-tdmysql',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.205,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.221,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Tdmysql SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.205'
17
+ __version__ = '3.1.221'
@@ -95,6 +95,9 @@ FAILEDOPERATION_EXPANDINSTANCEERROR = 'FailedOperation.ExpandInstanceError'
95
95
  # FailedOperation.GetSecurityGroupDetailFailed
96
96
  FAILEDOPERATION_GETSECURITYGROUPDETAILFAILED = 'FailedOperation.GetSecurityGroupDetailFailed'
97
97
 
98
+ # 实例暂时无法查询该信息,请稍后重试。
99
+ FAILEDOPERATION_HYBRIDQUERYUNAVAILABLEERROR = 'FailedOperation.HybridQueryUnavailableError'
100
+
98
101
  # 实例隔离失败。
99
102
  FAILEDOPERATION_ISOLATEINSTANCEERROR = 'FailedOperation.IsolateInstanceError'
100
103
 
@@ -113,12 +116,18 @@ FAILEDOPERATION_OSSGETVARIABLESERROR = 'FailedOperation.OssGetVariablesError'
113
116
  # oss修改参数错误。
114
117
  FAILEDOPERATION_OSSMODIFYVARIABLESERROR = 'FailedOperation.OssModifyVariablesError'
115
118
 
119
+ # 更新密码复杂度配置失败。
120
+ FAILEDOPERATION_PASSWORDCOMPLEXITYPERSISTERROR = 'FailedOperation.PasswordComplexityPersistError'
121
+
116
122
  # 查询数据库错误。
117
123
  FAILEDOPERATION_QUERYDBERROR = 'FailedOperation.QueryDBError'
118
124
 
119
125
  # 查询用户失败。
120
126
  FAILEDOPERATION_QUERYUSERERROR = 'FailedOperation.QueryUserError'
121
127
 
128
+ # 当前实例不支持调整SSL
129
+ FAILEDOPERATION_SSLNOTSUPPORTEDERROR = 'FailedOperation.SSLNotSupportedError'
130
+
122
131
  # FailedOperation.SetRuleLocationFailed
123
132
  FAILEDOPERATION_SETRULELOCATIONFAILED = 'FailedOperation.SetRuleLocationFailed'
124
133
 
@@ -128,6 +137,9 @@ FAILEDOPERATION_STANDBYRELATIONCHECKERROR = 'FailedOperation.StandbyRelationChec
128
137
  # 灾备参数错误
129
138
  FAILEDOPERATION_STANDBYRELATIONPARAMERROR = 'FailedOperation.StandbyRelationParamError'
130
139
 
140
+ # 查询 KMS 开通状态失败
141
+ FAILEDOPERATION_TDEKMSSERVICESTATUSUNAVAILABLEERROR = 'FailedOperation.TDEKmsServiceStatusUnavailableError'
142
+
131
143
  # table数量超出限制。
132
144
  FAILEDOPERATION_TABLECOUNTLIMITERROR = 'FailedOperation.TableCountLimitError'
133
145
 
@@ -200,6 +212,9 @@ INVALIDPARAMETER = 'InvalidParameter'
200
212
  # 创建实例参数错误。
201
213
  INVALIDPARAMETER_CREATEINSTANCEPARAMERROR = 'InvalidParameter.CreateInstanceParamError'
202
214
 
215
+ # 获取网络信息错误
216
+ INVALIDPARAMETER_GETNETWORKINFOERROR = 'InvalidParameter.GetNetworkInfoError'
217
+
203
218
  # 备份策略参数不合法
204
219
  INVALIDPARAMETER_ILLEGALBACKUPPOLICYPARAMSERR = 'InvalidParameter.IllegalBackupPolicyParamsErr'
205
220
 
@@ -323,6 +338,21 @@ OPERATIONDENIED_MANUALBACKUPQUOTAPERDAYEXCEEDEDERR = 'OperationDenied.ManualBack
323
338
  # 备份数量已经超过配额,不能再创建备份。
324
339
  OPERATIONDENIED_MANUALBACKUPSETQUOTAEXCEEDEDERR = 'OperationDenied.ManualBackupSetQuotaExceededErr'
325
340
 
341
+ # 密码复杂度配置正在更新中,请稍后重试。
342
+ OPERATIONDENIED_PASSWORDCOMPLEXITYUPDATINGERROR = 'OperationDenied.PasswordComplexityUpdatingError'
343
+
344
+ # 禁止删除系统内置账号
345
+ OPERATIONDENIED_SYSTEMACCOUNTDELETIONDENIEDERROR = 'OperationDenied.SystemAccountDeletionDeniedError'
346
+
347
+ # KMS 欠费停服
348
+ OPERATIONDENIED_TDEKMSSERVICEARREARSERROR = 'OperationDenied.TDEKmsServiceArrearsError'
349
+
350
+ # KMS 服务未开通
351
+ OPERATIONDENIED_TDEKMSSERVICENOTENABLEDERROR = 'OperationDenied.TDEKmsServiceNotEnabledError'
352
+
353
+ # KMS 资源已释放
354
+ OPERATIONDENIED_TDEKMSSERVICERELEASEDERROR = 'OperationDenied.TDEKmsServiceReleasedError'
355
+
326
356
  # 实例资源找不到
327
357
  RESOURCENOTFOUND_BIZRESOURCENOTFOUNDERROR = 'ResourceNotFound.BizResourceNotFoundError'
328
358
 
@@ -5311,6 +5311,10 @@ class DescribeDBInstanceDetailResponse(AbstractModel):
5311
5311
  :type SSLStatus: str
5312
5312
  :param _Collation: <p>字符集的排序规则</p>
5313
5313
  :type Collation: str
5314
+ :param _OfflineTime: <p>过期时间</p>
5315
+ :type OfflineTime: str
5316
+ :param _InstanceTotalDisk: <p>全部 hybrid 节点磁盘购买规格之和,单位 GB;等于 Disk × StorageNodeNum</p><p>单位:GB</p>
5317
+ :type InstanceTotalDisk: int
5314
5318
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5315
5319
  :type RequestId: str
5316
5320
  """
@@ -5378,6 +5382,8 @@ class DescribeDBInstanceDetailResponse(AbstractModel):
5378
5382
  self._AutoScaleConfigs = None
5379
5383
  self._SSLStatus = None
5380
5384
  self._Collation = None
5385
+ self._OfflineTime = None
5386
+ self._InstanceTotalDisk = None
5381
5387
  self._RequestId = None
5382
5388
 
5383
5389
  @property
@@ -6089,6 +6095,28 @@ class DescribeDBInstanceDetailResponse(AbstractModel):
6089
6095
  def Collation(self, Collation):
6090
6096
  self._Collation = Collation
6091
6097
 
6098
+ @property
6099
+ def OfflineTime(self):
6100
+ r"""<p>过期时间</p>
6101
+ :rtype: str
6102
+ """
6103
+ return self._OfflineTime
6104
+
6105
+ @OfflineTime.setter
6106
+ def OfflineTime(self, OfflineTime):
6107
+ self._OfflineTime = OfflineTime
6108
+
6109
+ @property
6110
+ def InstanceTotalDisk(self):
6111
+ r"""<p>全部 hybrid 节点磁盘购买规格之和,单位 GB;等于 Disk × StorageNodeNum</p><p>单位:GB</p>
6112
+ :rtype: int
6113
+ """
6114
+ return self._InstanceTotalDisk
6115
+
6116
+ @InstanceTotalDisk.setter
6117
+ def InstanceTotalDisk(self, InstanceTotalDisk):
6118
+ self._InstanceTotalDisk = InstanceTotalDisk
6119
+
6092
6120
  @property
6093
6121
  def RequestId(self):
6094
6122
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -6197,6 +6225,8 @@ class DescribeDBInstanceDetailResponse(AbstractModel):
6197
6225
  self._AutoScaleConfigs.append(obj)
6198
6226
  self._SSLStatus = params.get("SSLStatus")
6199
6227
  self._Collation = params.get("Collation")
6228
+ self._OfflineTime = params.get("OfflineTime")
6229
+ self._InstanceTotalDisk = params.get("InstanceTotalDisk")
6200
6230
  self._RequestId = params.get("RequestId")
6201
6231
 
6202
6232
 
@@ -8662,6 +8692,160 @@ class DescribeMaintenanceWindowResponse(AbstractModel):
8662
8692
  self._RequestId = params.get("RequestId")
8663
8693
 
8664
8694
 
8695
+ class DescribePasswordComplexityRequest(AbstractModel):
8696
+ r"""DescribePasswordComplexity请求参数结构体
8697
+
8698
+ """
8699
+
8700
+ def __init__(self):
8701
+ r"""
8702
+ :param _InstanceId: <p>实例id</p>
8703
+ :type InstanceId: str
8704
+ """
8705
+ self._InstanceId = None
8706
+
8707
+ @property
8708
+ def InstanceId(self):
8709
+ r"""<p>实例id</p>
8710
+ :rtype: str
8711
+ """
8712
+ return self._InstanceId
8713
+
8714
+ @InstanceId.setter
8715
+ def InstanceId(self, InstanceId):
8716
+ self._InstanceId = InstanceId
8717
+
8718
+
8719
+ def _deserialize(self, params):
8720
+ self._InstanceId = params.get("InstanceId")
8721
+ memeber_set = set(params.keys())
8722
+ for name, value in vars(self).items():
8723
+ property_name = name[1:]
8724
+ if property_name in memeber_set:
8725
+ memeber_set.remove(property_name)
8726
+ if len(memeber_set) > 0:
8727
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8728
+
8729
+
8730
+
8731
+ class DescribePasswordComplexityResponse(AbstractModel):
8732
+ r"""DescribePasswordComplexity返回参数结构体
8733
+
8734
+ """
8735
+
8736
+ def __init__(self):
8737
+ r"""
8738
+ :param _InstanceId: <p>实例id</p>
8739
+ :type InstanceId: str
8740
+ :param _Enable: <p>是否开启密码复杂度</p>
8741
+ :type Enable: bool
8742
+ :param _MixedCaseCount: <p>大写和小写字符的最小长度</p>
8743
+ :type MixedCaseCount: int
8744
+ :param _NumberCount: <p>数字字符的最小长度</p>
8745
+ :type NumberCount: int
8746
+ :param _SpecialCharCount: <p>特殊字符的最小长度</p>
8747
+ :type SpecialCharCount: int
8748
+ :param _Length: <p>密码的最小长度</p>
8749
+ :type Length: int
8750
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8751
+ :type RequestId: str
8752
+ """
8753
+ self._InstanceId = None
8754
+ self._Enable = None
8755
+ self._MixedCaseCount = None
8756
+ self._NumberCount = None
8757
+ self._SpecialCharCount = None
8758
+ self._Length = None
8759
+ self._RequestId = None
8760
+
8761
+ @property
8762
+ def InstanceId(self):
8763
+ r"""<p>实例id</p>
8764
+ :rtype: str
8765
+ """
8766
+ return self._InstanceId
8767
+
8768
+ @InstanceId.setter
8769
+ def InstanceId(self, InstanceId):
8770
+ self._InstanceId = InstanceId
8771
+
8772
+ @property
8773
+ def Enable(self):
8774
+ r"""<p>是否开启密码复杂度</p>
8775
+ :rtype: bool
8776
+ """
8777
+ return self._Enable
8778
+
8779
+ @Enable.setter
8780
+ def Enable(self, Enable):
8781
+ self._Enable = Enable
8782
+
8783
+ @property
8784
+ def MixedCaseCount(self):
8785
+ r"""<p>大写和小写字符的最小长度</p>
8786
+ :rtype: int
8787
+ """
8788
+ return self._MixedCaseCount
8789
+
8790
+ @MixedCaseCount.setter
8791
+ def MixedCaseCount(self, MixedCaseCount):
8792
+ self._MixedCaseCount = MixedCaseCount
8793
+
8794
+ @property
8795
+ def NumberCount(self):
8796
+ r"""<p>数字字符的最小长度</p>
8797
+ :rtype: int
8798
+ """
8799
+ return self._NumberCount
8800
+
8801
+ @NumberCount.setter
8802
+ def NumberCount(self, NumberCount):
8803
+ self._NumberCount = NumberCount
8804
+
8805
+ @property
8806
+ def SpecialCharCount(self):
8807
+ r"""<p>特殊字符的最小长度</p>
8808
+ :rtype: int
8809
+ """
8810
+ return self._SpecialCharCount
8811
+
8812
+ @SpecialCharCount.setter
8813
+ def SpecialCharCount(self, SpecialCharCount):
8814
+ self._SpecialCharCount = SpecialCharCount
8815
+
8816
+ @property
8817
+ def Length(self):
8818
+ r"""<p>密码的最小长度</p>
8819
+ :rtype: int
8820
+ """
8821
+ return self._Length
8822
+
8823
+ @Length.setter
8824
+ def Length(self, Length):
8825
+ self._Length = Length
8826
+
8827
+ @property
8828
+ def RequestId(self):
8829
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8830
+ :rtype: str
8831
+ """
8832
+ return self._RequestId
8833
+
8834
+ @RequestId.setter
8835
+ def RequestId(self, RequestId):
8836
+ self._RequestId = RequestId
8837
+
8838
+
8839
+ def _deserialize(self, params):
8840
+ self._InstanceId = params.get("InstanceId")
8841
+ self._Enable = params.get("Enable")
8842
+ self._MixedCaseCount = params.get("MixedCaseCount")
8843
+ self._NumberCount = params.get("NumberCount")
8844
+ self._SpecialCharCount = params.get("SpecialCharCount")
8845
+ self._Length = params.get("Length")
8846
+ self._RequestId = params.get("RequestId")
8847
+
8848
+
8665
8849
  class DescribeSaleInfoRequest(AbstractModel):
8666
8850
  r"""DescribeSaleInfo请求参数结构体
8667
8851
 
@@ -9992,6 +10176,8 @@ class ExpandInstanceRequest(AbstractModel):
9992
10176
  :type PrimaryAZ: str
9993
10177
  :param _FullReplications: <p>全能型副本数,取值范围包括1-3</p>
9994
10178
  :type FullReplications: int
10179
+ :param _WaitSwitch: <p>切换时间:0 立即执行(默认);1 维护时间内执行闪断动作</p><p>取值范围:[0, 1]</p><p>单位:无</p>
10180
+ :type WaitSwitch: int
9995
10181
  """
9996
10182
  self._InstanceId = None
9997
10183
  self._StorageNodeNum = None
@@ -9999,6 +10185,7 @@ class ExpandInstanceRequest(AbstractModel):
9999
10185
  self._AZMode = None
10000
10186
  self._PrimaryAZ = None
10001
10187
  self._FullReplications = None
10188
+ self._WaitSwitch = None
10002
10189
 
10003
10190
  @property
10004
10191
  def InstanceId(self):
@@ -10066,6 +10253,17 @@ class ExpandInstanceRequest(AbstractModel):
10066
10253
  def FullReplications(self, FullReplications):
10067
10254
  self._FullReplications = FullReplications
10068
10255
 
10256
+ @property
10257
+ def WaitSwitch(self):
10258
+ r"""<p>切换时间:0 立即执行(默认);1 维护时间内执行闪断动作</p><p>取值范围:[0, 1]</p><p>单位:无</p>
10259
+ :rtype: int
10260
+ """
10261
+ return self._WaitSwitch
10262
+
10263
+ @WaitSwitch.setter
10264
+ def WaitSwitch(self, WaitSwitch):
10265
+ self._WaitSwitch = WaitSwitch
10266
+
10069
10267
 
10070
10268
  def _deserialize(self, params):
10071
10269
  self._InstanceId = params.get("InstanceId")
@@ -10074,6 +10272,7 @@ class ExpandInstanceRequest(AbstractModel):
10074
10272
  self._AZMode = params.get("AZMode")
10075
10273
  self._PrimaryAZ = params.get("PrimaryAZ")
10076
10274
  self._FullReplications = params.get("FullReplications")
10275
+ self._WaitSwitch = params.get("WaitSwitch")
10077
10276
  memeber_set = set(params.keys())
10078
10277
  for name, value in vars(self).items():
10079
10278
  property_name = name[1:]
@@ -12563,6 +12762,8 @@ class ModifyDBInstanceRequest(AbstractModel):
12563
12762
  :type PrimaryAZ: str
12564
12763
  :param _FullReplications: <p>全功能型副本数,取值范围1-3</p>
12565
12764
  :type FullReplications: int
12765
+ :param _WaitSwitch: <p>切换时间:0 立即执行(默认);1 维护时间内执行(闪断动作仅在实例维护窗口内发起)</p>
12766
+ :type WaitSwitch: int
12566
12767
  """
12567
12768
  self._InstanceId = None
12568
12769
  self._DryRun = None
@@ -12576,6 +12777,7 @@ class ModifyDBInstanceRequest(AbstractModel):
12576
12777
  self._AZMode = None
12577
12778
  self._PrimaryAZ = None
12578
12779
  self._FullReplications = None
12780
+ self._WaitSwitch = None
12579
12781
 
12580
12782
  @property
12581
12783
  def InstanceId(self):
@@ -12709,6 +12911,17 @@ class ModifyDBInstanceRequest(AbstractModel):
12709
12911
  def FullReplications(self, FullReplications):
12710
12912
  self._FullReplications = FullReplications
12711
12913
 
12914
+ @property
12915
+ def WaitSwitch(self):
12916
+ r"""<p>切换时间:0 立即执行(默认);1 维护时间内执行(闪断动作仅在实例维护窗口内发起)</p>
12917
+ :rtype: int
12918
+ """
12919
+ return self._WaitSwitch
12920
+
12921
+ @WaitSwitch.setter
12922
+ def WaitSwitch(self, WaitSwitch):
12923
+ self._WaitSwitch = WaitSwitch
12924
+
12712
12925
 
12713
12926
  def _deserialize(self, params):
12714
12927
  self._InstanceId = params.get("InstanceId")
@@ -12723,6 +12936,7 @@ class ModifyDBInstanceRequest(AbstractModel):
12723
12936
  self._AZMode = params.get("AZMode")
12724
12937
  self._PrimaryAZ = params.get("PrimaryAZ")
12725
12938
  self._FullReplications = params.get("FullReplications")
12939
+ self._WaitSwitch = params.get("WaitSwitch")
12726
12940
  memeber_set = set(params.keys())
12727
12941
  for name, value in vars(self).items():
12728
12942
  property_name = name[1:]
@@ -13533,15 +13747,15 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13533
13747
 
13534
13748
  def __init__(self):
13535
13749
  r"""
13536
- :param _InstanceId: 实例ID
13750
+ :param _InstanceId: <p>实例ID</p>
13537
13751
  :type InstanceId: str
13538
- :param _VpcId: 希望转到的VPC网络的VpcId
13752
+ :param _VpcId: <p>希望转到的VPC网络的VpcId</p>
13539
13753
  :type VpcId: str
13540
- :param _SubnetId: 希望转到的VPC网络的子网ID
13754
+ :param _SubnetId: <p>希望转到的VPC网络的子网ID</p>
13541
13755
  :type SubnetId: str
13542
- :param _VipReleaseDelay: VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。
13756
+ :param _VipReleaseDelay: <p>VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。</p>
13543
13757
  :type VipReleaseDelay: int
13544
- :param _Vip: 指定vip变更,不填表示随机vip
13758
+ :param _Vip: <p>指定vip变更,不填表示随机vip</p>
13545
13759
  :type Vip: str
13546
13760
  """
13547
13761
  self._InstanceId = None
@@ -13552,7 +13766,7 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13552
13766
 
13553
13767
  @property
13554
13768
  def InstanceId(self):
13555
- r"""实例ID
13769
+ r"""<p>实例ID</p>
13556
13770
  :rtype: str
13557
13771
  """
13558
13772
  return self._InstanceId
@@ -13563,7 +13777,7 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13563
13777
 
13564
13778
  @property
13565
13779
  def VpcId(self):
13566
- r"""希望转到的VPC网络的VpcId
13780
+ r"""<p>希望转到的VPC网络的VpcId</p>
13567
13781
  :rtype: str
13568
13782
  """
13569
13783
  return self._VpcId
@@ -13574,7 +13788,7 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13574
13788
 
13575
13789
  @property
13576
13790
  def SubnetId(self):
13577
- r"""希望转到的VPC网络的子网ID
13791
+ r"""<p>希望转到的VPC网络的子网ID</p>
13578
13792
  :rtype: str
13579
13793
  """
13580
13794
  return self._SubnetId
@@ -13585,7 +13799,7 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13585
13799
 
13586
13800
  @property
13587
13801
  def VipReleaseDelay(self):
13588
- r"""VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。
13802
+ r"""<p>VIP保留时长,单位小时,取值范围(0~168),0表示立即释放,有一分钟释放延迟。不传此参数,默认24小时释放VIP。</p>
13589
13803
  :rtype: int
13590
13804
  """
13591
13805
  return self._VipReleaseDelay
@@ -13596,7 +13810,7 @@ class ModifyInstanceNetworkRequest(AbstractModel):
13596
13810
 
13597
13811
  @property
13598
13812
  def Vip(self):
13599
- r"""指定vip变更,不填表示随机vip
13813
+ r"""<p>指定vip变更,不填表示随机vip</p>
13600
13814
  :rtype: str
13601
13815
  """
13602
13816
  return self._Vip
@@ -13629,11 +13843,25 @@ class ModifyInstanceNetworkResponse(AbstractModel):
13629
13843
 
13630
13844
  def __init__(self):
13631
13845
  r"""
13846
+ :param _FlowId: <p>异步任务id</p>
13847
+ :type FlowId: int
13632
13848
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
13633
13849
  :type RequestId: str
13634
13850
  """
13851
+ self._FlowId = None
13635
13852
  self._RequestId = None
13636
13853
 
13854
+ @property
13855
+ def FlowId(self):
13856
+ r"""<p>异步任务id</p>
13857
+ :rtype: int
13858
+ """
13859
+ return self._FlowId
13860
+
13861
+ @FlowId.setter
13862
+ def FlowId(self, FlowId):
13863
+ self._FlowId = FlowId
13864
+
13637
13865
  @property
13638
13866
  def RequestId(self):
13639
13867
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -13647,6 +13875,7 @@ class ModifyInstanceNetworkResponse(AbstractModel):
13647
13875
 
13648
13876
 
13649
13877
  def _deserialize(self, params):
13878
+ self._FlowId = params.get("FlowId")
13650
13879
  self._RequestId = params.get("RequestId")
13651
13880
 
13652
13881
 
@@ -13883,6 +14112,160 @@ class ModifyMaintenanceWindowResponse(AbstractModel):
13883
14112
  self._RequestId = params.get("RequestId")
13884
14113
 
13885
14114
 
14115
+ class ModifyPasswordComplexityRequest(AbstractModel):
14116
+ r"""ModifyPasswordComplexity请求参数结构体
14117
+
14118
+ """
14119
+
14120
+ def __init__(self):
14121
+ r"""
14122
+ :param _InstanceId: <p>实例名</p>
14123
+ :type InstanceId: str
14124
+ :param _Enable: <p>是否开启密码复杂度</p>
14125
+ :type Enable: bool
14126
+ :param _MixedCaseCount: <p>大写和小写字符最小个数</p><p>取值范围:[1, 16]</p>
14127
+ :type MixedCaseCount: int
14128
+ :param _NumberCount: <p>数字字符最小长度</p><p>取值范围:[1, 16]</p>
14129
+ :type NumberCount: int
14130
+ :param _SpecialCharCount: <p>特殊字符最小长度</p><p>取值范围:[1, 16]</p>
14131
+ :type SpecialCharCount: int
14132
+ :param _Length: <p>密码最小长度</p><p>取值范围:[8, 64]</p>
14133
+ :type Length: int
14134
+ """
14135
+ self._InstanceId = None
14136
+ self._Enable = None
14137
+ self._MixedCaseCount = None
14138
+ self._NumberCount = None
14139
+ self._SpecialCharCount = None
14140
+ self._Length = None
14141
+
14142
+ @property
14143
+ def InstanceId(self):
14144
+ r"""<p>实例名</p>
14145
+ :rtype: str
14146
+ """
14147
+ return self._InstanceId
14148
+
14149
+ @InstanceId.setter
14150
+ def InstanceId(self, InstanceId):
14151
+ self._InstanceId = InstanceId
14152
+
14153
+ @property
14154
+ def Enable(self):
14155
+ r"""<p>是否开启密码复杂度</p>
14156
+ :rtype: bool
14157
+ """
14158
+ return self._Enable
14159
+
14160
+ @Enable.setter
14161
+ def Enable(self, Enable):
14162
+ self._Enable = Enable
14163
+
14164
+ @property
14165
+ def MixedCaseCount(self):
14166
+ r"""<p>大写和小写字符最小个数</p><p>取值范围:[1, 16]</p>
14167
+ :rtype: int
14168
+ """
14169
+ return self._MixedCaseCount
14170
+
14171
+ @MixedCaseCount.setter
14172
+ def MixedCaseCount(self, MixedCaseCount):
14173
+ self._MixedCaseCount = MixedCaseCount
14174
+
14175
+ @property
14176
+ def NumberCount(self):
14177
+ r"""<p>数字字符最小长度</p><p>取值范围:[1, 16]</p>
14178
+ :rtype: int
14179
+ """
14180
+ return self._NumberCount
14181
+
14182
+ @NumberCount.setter
14183
+ def NumberCount(self, NumberCount):
14184
+ self._NumberCount = NumberCount
14185
+
14186
+ @property
14187
+ def SpecialCharCount(self):
14188
+ r"""<p>特殊字符最小长度</p><p>取值范围:[1, 16]</p>
14189
+ :rtype: int
14190
+ """
14191
+ return self._SpecialCharCount
14192
+
14193
+ @SpecialCharCount.setter
14194
+ def SpecialCharCount(self, SpecialCharCount):
14195
+ self._SpecialCharCount = SpecialCharCount
14196
+
14197
+ @property
14198
+ def Length(self):
14199
+ r"""<p>密码最小长度</p><p>取值范围:[8, 64]</p>
14200
+ :rtype: int
14201
+ """
14202
+ return self._Length
14203
+
14204
+ @Length.setter
14205
+ def Length(self, Length):
14206
+ self._Length = Length
14207
+
14208
+
14209
+ def _deserialize(self, params):
14210
+ self._InstanceId = params.get("InstanceId")
14211
+ self._Enable = params.get("Enable")
14212
+ self._MixedCaseCount = params.get("MixedCaseCount")
14213
+ self._NumberCount = params.get("NumberCount")
14214
+ self._SpecialCharCount = params.get("SpecialCharCount")
14215
+ self._Length = params.get("Length")
14216
+ memeber_set = set(params.keys())
14217
+ for name, value in vars(self).items():
14218
+ property_name = name[1:]
14219
+ if property_name in memeber_set:
14220
+ memeber_set.remove(property_name)
14221
+ if len(memeber_set) > 0:
14222
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
14223
+
14224
+
14225
+
14226
+ class ModifyPasswordComplexityResponse(AbstractModel):
14227
+ r"""ModifyPasswordComplexity返回参数结构体
14228
+
14229
+ """
14230
+
14231
+ def __init__(self):
14232
+ r"""
14233
+ :param _FlowId: <p>任务id</p>
14234
+ :type FlowId: int
14235
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
14236
+ :type RequestId: str
14237
+ """
14238
+ self._FlowId = None
14239
+ self._RequestId = None
14240
+
14241
+ @property
14242
+ def FlowId(self):
14243
+ r"""<p>任务id</p>
14244
+ :rtype: int
14245
+ """
14246
+ return self._FlowId
14247
+
14248
+ @FlowId.setter
14249
+ def FlowId(self, FlowId):
14250
+ self._FlowId = FlowId
14251
+
14252
+ @property
14253
+ def RequestId(self):
14254
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
14255
+ :rtype: str
14256
+ """
14257
+ return self._RequestId
14258
+
14259
+ @RequestId.setter
14260
+ def RequestId(self, RequestId):
14261
+ self._RequestId = RequestId
14262
+
14263
+
14264
+ def _deserialize(self, params):
14265
+ self._FlowId = params.get("FlowId")
14266
+ self._RequestId = params.get("RequestId")
14267
+
14268
+
13886
14269
  class ModifyUserPrivilegesRequest(AbstractModel):
13887
14270
  r"""ModifyUserPrivileges请求参数结构体
13888
14271
 
@@ -16262,6 +16645,8 @@ class UpgradeInstanceRequest(AbstractModel):
16262
16645
  :type StorageNodeMem: int
16263
16646
  :param _StorageType: <p>磁盘类型,需要修改磁盘类型时传</p>
16264
16647
  :type StorageType: str
16648
+ :param _WaitSwitch: <p>切换时间:0 立即执行(默认);1 维护时间内执行闪断动作</p><p>取值范围:[0, 1]</p><p>单位:无</p>
16649
+ :type WaitSwitch: int
16265
16650
  """
16266
16651
  self._InstanceId = None
16267
16652
  self._SpecCode = None
@@ -16269,6 +16654,7 @@ class UpgradeInstanceRequest(AbstractModel):
16269
16654
  self._StorageNodeCpu = None
16270
16655
  self._StorageNodeMem = None
16271
16656
  self._StorageType = None
16657
+ self._WaitSwitch = None
16272
16658
 
16273
16659
  @property
16274
16660
  def InstanceId(self):
@@ -16336,6 +16722,17 @@ class UpgradeInstanceRequest(AbstractModel):
16336
16722
  def StorageType(self, StorageType):
16337
16723
  self._StorageType = StorageType
16338
16724
 
16725
+ @property
16726
+ def WaitSwitch(self):
16727
+ r"""<p>切换时间:0 立即执行(默认);1 维护时间内执行闪断动作</p><p>取值范围:[0, 1]</p><p>单位:无</p>
16728
+ :rtype: int
16729
+ """
16730
+ return self._WaitSwitch
16731
+
16732
+ @WaitSwitch.setter
16733
+ def WaitSwitch(self, WaitSwitch):
16734
+ self._WaitSwitch = WaitSwitch
16735
+
16339
16736
 
16340
16737
  def _deserialize(self, params):
16341
16738
  self._InstanceId = params.get("InstanceId")
@@ -16344,6 +16741,7 @@ class UpgradeInstanceRequest(AbstractModel):
16344
16741
  self._StorageNodeCpu = params.get("StorageNodeCpu")
16345
16742
  self._StorageNodeMem = params.get("StorageNodeMem")
16346
16743
  self._StorageType = params.get("StorageType")
16744
+ self._WaitSwitch = params.get("WaitSwitch")
16347
16745
  memeber_set = set(params.keys())
16348
16746
  for name, value in vars(self).items():
16349
16747
  property_name = name[1:]
@@ -693,6 +693,29 @@ class TdmysqlClient(AbstractClient):
693
693
  raise TencentCloudSDKException(type(e).__name__, str(e))
694
694
 
695
695
 
696
+ def DescribePasswordComplexity(self, request):
697
+ r"""查询实例的密码复杂度
698
+
699
+ :param request: Request instance for DescribePasswordComplexity.
700
+ :type request: :class:`tencentcloud.tdmysql.v20211122.models.DescribePasswordComplexityRequest`
701
+ :rtype: :class:`tencentcloud.tdmysql.v20211122.models.DescribePasswordComplexityResponse`
702
+
703
+ """
704
+ try:
705
+ params = request._serialize()
706
+ headers = request.headers
707
+ body = self.call("DescribePasswordComplexity", params, headers=headers)
708
+ response = json.loads(body)
709
+ model = models.DescribePasswordComplexityResponse()
710
+ model._deserialize(response["Response"])
711
+ return model
712
+ except Exception as e:
713
+ if isinstance(e, TencentCloudSDKException):
714
+ raise
715
+ else:
716
+ raise TencentCloudSDKException(type(e).__name__, str(e))
717
+
718
+
696
719
  def DescribeSaleInfo(self, request):
697
720
  r"""本接口(DescribeSaleInfo)提供查询可用售卖地域功能
698
721
 
@@ -1176,6 +1199,29 @@ class TdmysqlClient(AbstractClient):
1176
1199
  raise TencentCloudSDKException(type(e).__name__, str(e))
1177
1200
 
1178
1201
 
1202
+ def ModifyPasswordComplexity(self, request):
1203
+ r"""修改密码复杂度
1204
+
1205
+ :param request: Request instance for ModifyPasswordComplexity.
1206
+ :type request: :class:`tencentcloud.tdmysql.v20211122.models.ModifyPasswordComplexityRequest`
1207
+ :rtype: :class:`tencentcloud.tdmysql.v20211122.models.ModifyPasswordComplexityResponse`
1208
+
1209
+ """
1210
+ try:
1211
+ params = request._serialize()
1212
+ headers = request.headers
1213
+ body = self.call("ModifyPasswordComplexity", params, headers=headers)
1214
+ response = json.loads(body)
1215
+ model = models.ModifyPasswordComplexityResponse()
1216
+ model._deserialize(response["Response"])
1217
+ return model
1218
+ except Exception as e:
1219
+ if isinstance(e, TencentCloudSDKException):
1220
+ raise
1221
+ else:
1222
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1223
+
1224
+
1179
1225
  def ModifyUserPrivileges(self, request):
1180
1226
  r"""本接口(ModifyPrivileges)修改用户权限
1181
1227
 
@@ -547,6 +547,24 @@ class TdmysqlClient(AbstractClient):
547
547
 
548
548
  return await self.call_and_deserialize(**kwargs)
549
549
 
550
+ async def DescribePasswordComplexity(
551
+ self,
552
+ request: models.DescribePasswordComplexityRequest,
553
+ opts: Dict = None,
554
+ ) -> models.DescribePasswordComplexityResponse:
555
+ """
556
+ 查询实例的密码复杂度
557
+ """
558
+
559
+ kwargs = {}
560
+ kwargs["action"] = "DescribePasswordComplexity"
561
+ kwargs["params"] = request._serialize()
562
+ kwargs["resp_cls"] = models.DescribePasswordComplexityResponse
563
+ kwargs["headers"] = request.headers
564
+ kwargs["opts"] = opts or {}
565
+
566
+ return await self.call_and_deserialize(**kwargs)
567
+
550
568
  async def DescribeSaleInfo(
551
569
  self,
552
570
  request: models.DescribeSaleInfoRequest,
@@ -925,6 +943,24 @@ class TdmysqlClient(AbstractClient):
925
943
 
926
944
  return await self.call_and_deserialize(**kwargs)
927
945
 
946
+ async def ModifyPasswordComplexity(
947
+ self,
948
+ request: models.ModifyPasswordComplexityRequest,
949
+ opts: Dict = None,
950
+ ) -> models.ModifyPasswordComplexityResponse:
951
+ """
952
+ 修改密码复杂度
953
+ """
954
+
955
+ kwargs = {}
956
+ kwargs["action"] = "ModifyPasswordComplexity"
957
+ kwargs["params"] = request._serialize()
958
+ kwargs["resp_cls"] = models.ModifyPasswordComplexityResponse
959
+ kwargs["headers"] = request.headers
960
+ kwargs["opts"] = opts or {}
961
+
962
+ return await self.call_and_deserialize(**kwargs)
963
+
928
964
  async def ModifyUserPrivileges(
929
965
  self,
930
966
  request: models.ModifyUserPrivilegesRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tdmysql
3
- Version: 3.1.205
3
+ Version: 3.1.221
4
4
  Summary: Tencent Cloud Tdmysql 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.205
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.221
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.221
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.205