tencentcloud-sdk-python-tdmysql 3.1.119__tar.gz → 3.1.124__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.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/setup.py +1 -1
  3. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/v20211122/errorcodes.py +0 -9
  5. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/v20211122/models.py +83 -27
  6. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/v20211122/tdmysql_client.py +7 -7
  7. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/v20211122/tdmysql_client_async.py +6 -6
  8. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud_sdk_python_tdmysql.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_tdmysql-3.1.124/tencentcloud_sdk_python_tdmysql.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_tdmysql-3.1.119/tencentcloud_sdk_python_tdmysql.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/README.rst +0 -0
  12. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/__init__.py +0 -0
  14. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud/tdmysql/v20211122/__init__.py +0 -0
  15. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud_sdk_python_tdmysql.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/tencentcloud_sdk_python_tdmysql.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_tdmysql-3.1.119 → tencentcloud_sdk_python_tdmysql-3.1.124}/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.119
3
+ Version: 3.1.124
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.119
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
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.119,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.124,<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.119'
17
+ __version__ = '3.1.124'
@@ -71,9 +71,6 @@ FAILEDOPERATION_DBQUERYZONEERROR = 'FailedOperation.DBQueryZoneError'
71
71
  # 更新实例名称数据失败。
72
72
  FAILEDOPERATION_DBUPDATEINSTANCEERROR = 'FailedOperation.DBUpdateInstanceError'
73
73
 
74
- # 更新用户数据失败。
75
- FAILEDOPERATION_DBUPDATEUSERERROR = 'FailedOperation.DBUpdateUserError'
76
-
77
74
  # 更新维护窗口配置失败
78
75
  FAILEDOPERATION_DBUPSERTMAINTENANCEWINDOWERROR = 'FailedOperation.DBUpsertMaintenanceWindowError'
79
76
 
@@ -236,9 +233,6 @@ INVALIDPARAMETERVALUE_CHECKINSTANCEVERSIONERROR = 'InvalidParameterValue.CheckIn
236
233
  # 名称校验失败。
237
234
  INVALIDPARAMETERVALUE_CHECKNAMEERROR = 'InvalidParameterValue.CheckNameError'
238
235
 
239
- # 密码校验失败。
240
- INVALIDPARAMETERVALUE_CHECKPASSWDERROR = 'InvalidParameterValue.CheckPasswdError'
241
-
242
236
  # 实例规格校验错误。
243
237
  INVALIDPARAMETERVALUE_CHECKSPECERROR = 'InvalidParameterValue.CheckSpecError'
244
238
 
@@ -302,9 +296,6 @@ OPERATIONDENIED_MANUALBACKUPQUOTAPERDAYEXCEEDEDERR = 'OperationDenied.ManualBack
302
296
  # 备份数量已经超过配额,不能再创建备份。
303
297
  OPERATIONDENIED_MANUALBACKUPSETQUOTAEXCEEDEDERR = 'OperationDenied.ManualBackupSetQuotaExceededErr'
304
298
 
305
- # 重置超级用户密码失败。
306
- OPERATIONDENIED_RESETUSERPASSWORDERROR = 'OperationDenied.ResetUserPasswordError'
307
-
308
299
  # 实例资源找不到
309
300
  RESOURCENOTFOUND_BIZRESOURCENOTFOUNDERROR = 'ResourceNotFound.BizResourceNotFoundError'
310
301
 
@@ -12404,33 +12404,30 @@ class ParamDesc(AbstractModel):
12404
12404
 
12405
12405
 
12406
12406
 
12407
- class ResetUserPasswordRequest(AbstractModel):
12408
- r"""ResetUserPassword请求参数结构体
12407
+ class ResetUserPasswordInfo(AbstractModel):
12408
+ r"""重置密码的用户类型
12409
12409
 
12410
12410
  """
12411
12411
 
12412
12412
  def __init__(self):
12413
12413
  r"""
12414
- :param _UserName: 用户名
12414
+ :param _UserName: <p>用户名</p>
12415
12415
  :type UserName: str
12416
- :param _InstanceId: 实例ID
12417
- :type InstanceId: str
12418
- :param _Host: 主机IP,IP段以%结尾,表示允许该IP段的所有IP
12416
+ :param _Host: <p>host</p>
12419
12417
  :type Host: str
12420
- :param _Password: 新密码,要求长度8-32,至少包含英文、数字和符号中的两种
12418
+ :param _Password: <p>明文密码</p>
12421
12419
  :type Password: str
12422
- :param _EncryptedPassword: 加密密码
12420
+ :param _EncryptedPassword: <p>加密密码</p>
12423
12421
  :type EncryptedPassword: str
12424
12422
  """
12425
12423
  self._UserName = None
12426
- self._InstanceId = None
12427
12424
  self._Host = None
12428
12425
  self._Password = None
12429
12426
  self._EncryptedPassword = None
12430
12427
 
12431
12428
  @property
12432
12429
  def UserName(self):
12433
- r"""用户名
12430
+ r"""<p>用户名</p>
12434
12431
  :rtype: str
12435
12432
  """
12436
12433
  return self._UserName
@@ -12439,20 +12436,9 @@ class ResetUserPasswordRequest(AbstractModel):
12439
12436
  def UserName(self, UserName):
12440
12437
  self._UserName = UserName
12441
12438
 
12442
- @property
12443
- def InstanceId(self):
12444
- r"""实例ID
12445
- :rtype: str
12446
- """
12447
- return self._InstanceId
12448
-
12449
- @InstanceId.setter
12450
- def InstanceId(self, InstanceId):
12451
- self._InstanceId = InstanceId
12452
-
12453
12439
  @property
12454
12440
  def Host(self):
12455
- r"""主机IP,IP段以%结尾,表示允许该IP段的所有IP
12441
+ r"""<p>host</p>
12456
12442
  :rtype: str
12457
12443
  """
12458
12444
  return self._Host
@@ -12463,7 +12449,7 @@ class ResetUserPasswordRequest(AbstractModel):
12463
12449
 
12464
12450
  @property
12465
12451
  def Password(self):
12466
- r"""新密码,要求长度8-32,至少包含英文、数字和符号中的两种
12452
+ r"""<p>明文密码</p>
12467
12453
  :rtype: str
12468
12454
  """
12469
12455
  return self._Password
@@ -12474,7 +12460,7 @@ class ResetUserPasswordRequest(AbstractModel):
12474
12460
 
12475
12461
  @property
12476
12462
  def EncryptedPassword(self):
12477
- r"""加密密码
12463
+ r"""<p>加密密码</p>
12478
12464
  :rtype: str
12479
12465
  """
12480
12466
  return self._EncryptedPassword
@@ -12486,7 +12472,6 @@ class ResetUserPasswordRequest(AbstractModel):
12486
12472
 
12487
12473
  def _deserialize(self, params):
12488
12474
  self._UserName = params.get("UserName")
12489
- self._InstanceId = params.get("InstanceId")
12490
12475
  self._Host = params.get("Host")
12491
12476
  self._Password = params.get("Password")
12492
12477
  self._EncryptedPassword = params.get("EncryptedPassword")
@@ -12500,18 +12485,88 @@ class ResetUserPasswordRequest(AbstractModel):
12500
12485
 
12501
12486
 
12502
12487
 
12503
- class ResetUserPasswordResponse(AbstractModel):
12504
- r"""ResetUserPassword返回参数结构体
12488
+ class ResetUsersPasswordRequest(AbstractModel):
12489
+ r"""ResetUsersPassword请求参数结构体
12505
12490
 
12506
12491
  """
12507
12492
 
12508
12493
  def __init__(self):
12509
12494
  r"""
12495
+ :param _InstanceId: <p>实例id</p>
12496
+ :type InstanceId: str
12497
+ :param _Users: <p>重置用户密码列表</p>
12498
+ :type Users: list of ResetUserPasswordInfo
12499
+ """
12500
+ self._InstanceId = None
12501
+ self._Users = None
12502
+
12503
+ @property
12504
+ def InstanceId(self):
12505
+ r"""<p>实例id</p>
12506
+ :rtype: str
12507
+ """
12508
+ return self._InstanceId
12509
+
12510
+ @InstanceId.setter
12511
+ def InstanceId(self, InstanceId):
12512
+ self._InstanceId = InstanceId
12513
+
12514
+ @property
12515
+ def Users(self):
12516
+ r"""<p>重置用户密码列表</p>
12517
+ :rtype: list of ResetUserPasswordInfo
12518
+ """
12519
+ return self._Users
12520
+
12521
+ @Users.setter
12522
+ def Users(self, Users):
12523
+ self._Users = Users
12524
+
12525
+
12526
+ def _deserialize(self, params):
12527
+ self._InstanceId = params.get("InstanceId")
12528
+ if params.get("Users") is not None:
12529
+ self._Users = []
12530
+ for item in params.get("Users"):
12531
+ obj = ResetUserPasswordInfo()
12532
+ obj._deserialize(item)
12533
+ self._Users.append(obj)
12534
+ memeber_set = set(params.keys())
12535
+ for name, value in vars(self).items():
12536
+ property_name = name[1:]
12537
+ if property_name in memeber_set:
12538
+ memeber_set.remove(property_name)
12539
+ if len(memeber_set) > 0:
12540
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
12541
+
12542
+
12543
+
12544
+ class ResetUsersPasswordResponse(AbstractModel):
12545
+ r"""ResetUsersPassword返回参数结构体
12546
+
12547
+ """
12548
+
12549
+ def __init__(self):
12550
+ r"""
12551
+ :param _FlowId: <p>任务id</p>
12552
+ :type FlowId: int
12510
12553
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
12511
12554
  :type RequestId: str
12512
12555
  """
12556
+ self._FlowId = None
12513
12557
  self._RequestId = None
12514
12558
 
12559
+ @property
12560
+ def FlowId(self):
12561
+ r"""<p>任务id</p>
12562
+ :rtype: int
12563
+ """
12564
+ return self._FlowId
12565
+
12566
+ @FlowId.setter
12567
+ def FlowId(self, FlowId):
12568
+ self._FlowId = FlowId
12569
+
12515
12570
  @property
12516
12571
  def RequestId(self):
12517
12572
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -12525,6 +12580,7 @@ class ResetUserPasswordResponse(AbstractModel):
12525
12580
 
12526
12581
 
12527
12582
  def _deserialize(self, params):
12583
+ self._FlowId = params.get("FlowId")
12528
12584
  self._RequestId = params.get("RequestId")
12529
12585
 
12530
12586
 
@@ -992,20 +992,20 @@ class TdmysqlClient(AbstractClient):
992
992
  raise TencentCloudSDKException(type(e).__name__, str(e))
993
993
 
994
994
 
995
- def ResetUserPassword(self, request):
996
- r"""本接口(ResetUserPassword)提供重置用户密码功能
995
+ def ResetUsersPassword(self, request):
996
+ r"""本接口(ResetUsersPassword)用于批量重置用户密码
997
997
 
998
- :param request: Request instance for ResetUserPassword.
999
- :type request: :class:`tencentcloud.tdmysql.v20211122.models.ResetUserPasswordRequest`
1000
- :rtype: :class:`tencentcloud.tdmysql.v20211122.models.ResetUserPasswordResponse`
998
+ :param request: Request instance for ResetUsersPassword.
999
+ :type request: :class:`tencentcloud.tdmysql.v20211122.models.ResetUsersPasswordRequest`
1000
+ :rtype: :class:`tencentcloud.tdmysql.v20211122.models.ResetUsersPasswordResponse`
1001
1001
 
1002
1002
  """
1003
1003
  try:
1004
1004
  params = request._serialize()
1005
1005
  headers = request.headers
1006
- body = self.call("ResetUserPassword", params, headers=headers)
1006
+ body = self.call("ResetUsersPassword", params, headers=headers)
1007
1007
  response = json.loads(body)
1008
- model = models.ResetUserPasswordResponse()
1008
+ model = models.ResetUsersPasswordResponse()
1009
1009
  model._deserialize(response["Response"])
1010
1010
  return model
1011
1011
  except Exception as e:
@@ -781,19 +781,19 @@ class TdmysqlClient(AbstractClient):
781
781
 
782
782
  return await self.call_and_deserialize(**kwargs)
783
783
 
784
- async def ResetUserPassword(
784
+ async def ResetUsersPassword(
785
785
  self,
786
- request: models.ResetUserPasswordRequest,
786
+ request: models.ResetUsersPasswordRequest,
787
787
  opts: Dict = None,
788
- ) -> models.ResetUserPasswordResponse:
788
+ ) -> models.ResetUsersPasswordResponse:
789
789
  """
790
- 本接口(ResetUserPassword)提供重置用户密码功能
790
+ 本接口(ResetUsersPassword)用于批量重置用户密码
791
791
  """
792
792
 
793
793
  kwargs = {}
794
- kwargs["action"] = "ResetUserPassword"
794
+ kwargs["action"] = "ResetUsersPassword"
795
795
  kwargs["params"] = request._serialize()
796
- kwargs["resp_cls"] = models.ResetUserPasswordResponse
796
+ kwargs["resp_cls"] = models.ResetUsersPasswordResponse
797
797
  kwargs["headers"] = request.headers
798
798
  kwargs["opts"] = opts or {}
799
799
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-tdmysql
3
- Version: 3.1.119
3
+ Version: 3.1.124
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.119
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.124
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.124
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.119