tencentcloud-sdk-python-cynosdb 3.0.1424__py2.py3-none-any.whl → 3.0.1447__py2.py3-none-any.whl

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.

Potentially problematic release.


This version of tencentcloud-sdk-python-cynosdb might be problematic. Click here for more details.

tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1424'
17
+ __version__ = '3.0.1447'
@@ -3384,6 +3384,29 @@ class CynosdbClient(AbstractClient):
3384
3384
  raise TencentCloudSDKException(type(e).__name__, str(e))
3385
3385
 
3386
3386
 
3387
+ def ReplayInstanceAuditLog(self, request):
3388
+ """回放实例审计日志
3389
+
3390
+ :param request: Request instance for ReplayInstanceAuditLog.
3391
+ :type request: :class:`tencentcloud.cynosdb.v20190107.models.ReplayInstanceAuditLogRequest`
3392
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.ReplayInstanceAuditLogResponse`
3393
+
3394
+ """
3395
+ try:
3396
+ params = request._serialize()
3397
+ headers = request.headers
3398
+ body = self.call("ReplayInstanceAuditLog", params, headers=headers)
3399
+ response = json.loads(body)
3400
+ model = models.ReplayInstanceAuditLogResponse()
3401
+ model._deserialize(response["Response"])
3402
+ return model
3403
+ except Exception as e:
3404
+ if isinstance(e, TencentCloudSDKException):
3405
+ raise
3406
+ else:
3407
+ raise TencentCloudSDKException(type(e).__name__, str(e))
3408
+
3409
+
3387
3410
  def ResetAccountPassword(self, request):
3388
3411
  """本接口(ResetAccountPassword)用于修改数据库账号密码。
3389
3412
 
@@ -266,6 +266,9 @@ MISSINGPARAMETER = 'MissingParameter'
266
266
  # 审计日志文件数超过最大限制数
267
267
  OPERATIONDENIED_AUDITFILEOVERQUOTAERROR = 'OperationDenied.AuditFileOverQuotaError'
268
268
 
269
+ # 实例{{1}}审计日志关闭状态,暂无法操作。
270
+ OPERATIONDENIED_AUDITLOGCLOSEDERROR = 'OperationDenied.AuditLogClosedError'
271
+
269
272
  # 审计规则不存在
270
273
  OPERATIONDENIED_AUDITPOLICYNOTEXISTERROR = 'OperationDenied.AuditPolicyNotExistError'
271
274
 
@@ -281,6 +284,9 @@ OPERATIONDENIED_CLUSTEROPNOTALLOWEDERROR = 'OperationDenied.ClusterOpNotAllowedE
281
284
  # 集群当前状态不允许该操作。
282
285
  OPERATIONDENIED_CLUSTERSTATUSDENIEDERROR = 'OperationDenied.ClusterStatusDeniedError'
283
286
 
287
+ # 功能{{1}}暂不支持
288
+ OPERATIONDENIED_FEATURENOTSUPPORTERROR = 'OperationDenied.FeatureNotSupportError'
289
+
284
290
  # 获取proxy失败
285
291
  OPERATIONDENIED_GETPROXYGROUPFAILEDERROR = 'OperationDenied.GetProxyGroupFailedError'
286
292
 
@@ -296,9 +302,15 @@ OPERATIONDENIED_INSTANCESTATUSLIMITERROR = 'OperationDenied.InstanceStatusLimitE
296
302
  # 账号余额不足。
297
303
  OPERATIONDENIED_INSUFFICIENTBALANCEERROR = 'OperationDenied.InsufficientBalanceError'
298
304
 
305
+ # 不是{{1}}的回档集群
306
+ OPERATIONDENIED_ISNOTROLLBACKCLUSTERERROR = 'OperationDenied.IsNotRollbackClusterError'
307
+
299
308
  # 响应大小超限制:{{1}}, 请减少查询数量。
300
309
  OPERATIONDENIED_LENGTHOVERLIMIT = 'OperationDenied.LengthOverLimit'
301
310
 
311
+ # 非{{1}}天内{{2}}的克隆集群。
312
+ OPERATIONDENIED_LIMITDAYFORAUDITREPLAYERROR = 'OperationDenied.LimitDayForAuditReplayError'
313
+
302
314
  # 您没有权限操作该资源(进行该操作)。
303
315
  OPERATIONDENIED_OPERATIONDENIEDERROR = 'OperationDenied.OperationDeniedError'
304
316
 
@@ -27810,6 +27810,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
27810
27810
  :param _InstanceId: 网络组id(cynosdbmysql-grp-前缀开头)或集群id
27811
27811
  :type InstanceId: str
27812
27812
  :param _SecurityGroupIds: 要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
27813
+ 注意:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。
27813
27814
  :type SecurityGroupIds: list of str
27814
27815
  :param _Zone: 可用区
27815
27816
  :type Zone: str
@@ -27832,6 +27833,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
27832
27833
  @property
27833
27834
  def SecurityGroupIds(self):
27834
27835
  """要修改的安全组ID列表,一个或者多个安全组ID组成的数组。
27836
+ 注意:该入参会全量替换存量已有集合,非增量更新。修改需传入预期的全量集合。
27835
27837
  :rtype: list of str
27836
27838
  """
27837
27839
  return self._SecurityGroupIds
@@ -34945,6 +34947,192 @@ class RenewClustersResponse(AbstractModel):
34945
34947
  self._RequestId = params.get("RequestId")
34946
34948
 
34947
34949
 
34950
+ class ReplayInstanceAuditLogRequest(AbstractModel):
34951
+ """ReplayInstanceAuditLog请求参数结构体
34952
+
34953
+ """
34954
+
34955
+ def __init__(self):
34956
+ r"""
34957
+ :param _SourceClusterId: 源集群id
34958
+ :type SourceClusterId: str
34959
+ :param _SourceInstanceId: 源实例id
34960
+ :type SourceInstanceId: str
34961
+ :param _TargetClusterId: 目标集群id
34962
+ 目标集群必须为原始集群三天内克隆出的集群。
34963
+ :type TargetClusterId: str
34964
+ :param _TargetInstanceId: 目标实例id
34965
+ :type TargetInstanceId: str
34966
+ :param _TargetUserName: 用户名.需要host为%的用户名
34967
+ :type TargetUserName: str
34968
+ :param _TargetPassword: 密码
34969
+ :type TargetPassword: str
34970
+ :param _StartTime: 开始时间。时间格式为:yyyy-DD-mm hh:mm:ss
34971
+ :type StartTime: str
34972
+ :param _EndTime: 结束时间。时间格式为:yyyy-DD-mm hh:mm:ss
34973
+ :type EndTime: str
34974
+ """
34975
+ self._SourceClusterId = None
34976
+ self._SourceInstanceId = None
34977
+ self._TargetClusterId = None
34978
+ self._TargetInstanceId = None
34979
+ self._TargetUserName = None
34980
+ self._TargetPassword = None
34981
+ self._StartTime = None
34982
+ self._EndTime = None
34983
+
34984
+ @property
34985
+ def SourceClusterId(self):
34986
+ """源集群id
34987
+ :rtype: str
34988
+ """
34989
+ return self._SourceClusterId
34990
+
34991
+ @SourceClusterId.setter
34992
+ def SourceClusterId(self, SourceClusterId):
34993
+ self._SourceClusterId = SourceClusterId
34994
+
34995
+ @property
34996
+ def SourceInstanceId(self):
34997
+ """源实例id
34998
+ :rtype: str
34999
+ """
35000
+ return self._SourceInstanceId
35001
+
35002
+ @SourceInstanceId.setter
35003
+ def SourceInstanceId(self, SourceInstanceId):
35004
+ self._SourceInstanceId = SourceInstanceId
35005
+
35006
+ @property
35007
+ def TargetClusterId(self):
35008
+ """目标集群id
35009
+ 目标集群必须为原始集群三天内克隆出的集群。
35010
+ :rtype: str
35011
+ """
35012
+ return self._TargetClusterId
35013
+
35014
+ @TargetClusterId.setter
35015
+ def TargetClusterId(self, TargetClusterId):
35016
+ self._TargetClusterId = TargetClusterId
35017
+
35018
+ @property
35019
+ def TargetInstanceId(self):
35020
+ """目标实例id
35021
+ :rtype: str
35022
+ """
35023
+ return self._TargetInstanceId
35024
+
35025
+ @TargetInstanceId.setter
35026
+ def TargetInstanceId(self, TargetInstanceId):
35027
+ self._TargetInstanceId = TargetInstanceId
35028
+
35029
+ @property
35030
+ def TargetUserName(self):
35031
+ """用户名.需要host为%的用户名
35032
+ :rtype: str
35033
+ """
35034
+ return self._TargetUserName
35035
+
35036
+ @TargetUserName.setter
35037
+ def TargetUserName(self, TargetUserName):
35038
+ self._TargetUserName = TargetUserName
35039
+
35040
+ @property
35041
+ def TargetPassword(self):
35042
+ """密码
35043
+ :rtype: str
35044
+ """
35045
+ return self._TargetPassword
35046
+
35047
+ @TargetPassword.setter
35048
+ def TargetPassword(self, TargetPassword):
35049
+ self._TargetPassword = TargetPassword
35050
+
35051
+ @property
35052
+ def StartTime(self):
35053
+ """开始时间。时间格式为:yyyy-DD-mm hh:mm:ss
35054
+ :rtype: str
35055
+ """
35056
+ return self._StartTime
35057
+
35058
+ @StartTime.setter
35059
+ def StartTime(self, StartTime):
35060
+ self._StartTime = StartTime
35061
+
35062
+ @property
35063
+ def EndTime(self):
35064
+ """结束时间。时间格式为:yyyy-DD-mm hh:mm:ss
35065
+ :rtype: str
35066
+ """
35067
+ return self._EndTime
35068
+
35069
+ @EndTime.setter
35070
+ def EndTime(self, EndTime):
35071
+ self._EndTime = EndTime
35072
+
35073
+
35074
+ def _deserialize(self, params):
35075
+ self._SourceClusterId = params.get("SourceClusterId")
35076
+ self._SourceInstanceId = params.get("SourceInstanceId")
35077
+ self._TargetClusterId = params.get("TargetClusterId")
35078
+ self._TargetInstanceId = params.get("TargetInstanceId")
35079
+ self._TargetUserName = params.get("TargetUserName")
35080
+ self._TargetPassword = params.get("TargetPassword")
35081
+ self._StartTime = params.get("StartTime")
35082
+ self._EndTime = params.get("EndTime")
35083
+ memeber_set = set(params.keys())
35084
+ for name, value in vars(self).items():
35085
+ property_name = name[1:]
35086
+ if property_name in memeber_set:
35087
+ memeber_set.remove(property_name)
35088
+ if len(memeber_set) > 0:
35089
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
35090
+
35091
+
35092
+
35093
+ class ReplayInstanceAuditLogResponse(AbstractModel):
35094
+ """ReplayInstanceAuditLog返回参数结构体
35095
+
35096
+ """
35097
+
35098
+ def __init__(self):
35099
+ r"""
35100
+ :param _TaskId: 任务id
35101
+ :type TaskId: int
35102
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
35103
+ :type RequestId: str
35104
+ """
35105
+ self._TaskId = None
35106
+ self._RequestId = None
35107
+
35108
+ @property
35109
+ def TaskId(self):
35110
+ """任务id
35111
+ :rtype: int
35112
+ """
35113
+ return self._TaskId
35114
+
35115
+ @TaskId.setter
35116
+ def TaskId(self, TaskId):
35117
+ self._TaskId = TaskId
35118
+
35119
+ @property
35120
+ def RequestId(self):
35121
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
35122
+ :rtype: str
35123
+ """
35124
+ return self._RequestId
35125
+
35126
+ @RequestId.setter
35127
+ def RequestId(self, RequestId):
35128
+ self._RequestId = RequestId
35129
+
35130
+
35131
+ def _deserialize(self, params):
35132
+ self._TaskId = params.get("TaskId")
35133
+ self._RequestId = params.get("RequestId")
35134
+
35135
+
34948
35136
  class ResetAccountPasswordRequest(AbstractModel):
34949
35137
  """ResetAccountPassword请求参数结构体
34950
35138
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cynosdb
3
- Version: 3.0.1424
3
+ Version: 3.0.1447
4
4
  Summary: Tencent Cloud Cynosdb 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.0.1424)
18
+ Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1447)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=Clabb3XxBDuEdLmg8E-OO3chnkbKm5mdLeZJzx_dS8c,631
2
+ tencentcloud/cynosdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/cynosdb/v20190107/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/cynosdb/v20190107/cynosdb_client.py,sha256=Ogpkm9awKpVambiTL9GARjGyBtl3E0Zgc89A0cepZKg,159441
5
+ tencentcloud/cynosdb/v20190107/errorcodes.py,sha256=ZCz5ORFBdJ06UJgk1R5bEpMrKHsGQdaCfaRT2FhVTuM,14432
6
+ tencentcloud/cynosdb/v20190107/models.py,sha256=_KnG_lDt8CScc7ZjMRteTYONprJJpB37wjgg2T1MFdw,1200022
7
+ tencentcloud_sdk_python_cynosdb-3.0.1447.dist-info/METADATA,sha256=4BC9OS_NEJ9noiS7vE7kBkyZss--rdcZffblJAsS87g,1523
8
+ tencentcloud_sdk_python_cynosdb-3.0.1447.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_cynosdb-3.0.1447.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_cynosdb-3.0.1447.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=YJdqpNf54Pb85VccP2bCaVOX10kkRnAJ5-Uoz4c4mQ4,631
2
- tencentcloud/cynosdb/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/cynosdb/v20190107/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/cynosdb/v20190107/cynosdb_client.py,sha256=027i5JacfPbYcZTGhrBNSRqsp5EOoh2oDEAJmaV-1PE,158528
5
- tencentcloud/cynosdb/v20190107/errorcodes.py,sha256=AusZ6Aj1sRYc9ozzR_YEXHA9OofH2mzRLn9wwqYTsWk,13936
6
- tencentcloud/cynosdb/v20190107/models.py,sha256=gQGlBkmtmTb4jW6GFo_5LVI5uGvRFxCeRAWEOuqVJL8,1194243
7
- tencentcloud_sdk_python_cynosdb-3.0.1424.dist-info/METADATA,sha256=Nr7W1-ChUYgy9PD3Yz26Kh0wGZsAL934sVQ3hgBVWkM,1523
8
- tencentcloud_sdk_python_cynosdb-3.0.1424.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_cynosdb-3.0.1424.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_cynosdb-3.0.1424.dist-info/RECORD,,