def ModifyLogFileRetentionPeriod(self, request): """本接口(ModifyLogFileRetentionPeriod)用于修改数据库备份日志保存天数。 :param request: 调用ModifyLogFileRetentionPeriod所需参数的结构体。 :type request: :class:`tencentcloud.mariadb.v20170312.models.ModifyLogFileRetentionPeriodRequest` :rtype: :class:`tencentcloud.mariadb.v20170312.models.ModifyLogFileRetentionPeriodResponse` """ try: params = request._serialize() body = self.call("ModifyLogFileRetentionPeriod", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ModifyLogFileRetentionPeriodResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise e else: raise TencentCloudSDKException(e.message, e.message)
def ModifyLogFileRetentionPeriod(self, request): """This API is used to modify the number of days for retention of database backup logs. :param request: Request instance for ModifyLogFileRetentionPeriod. :type request: :class:`tencentcloud.mariadb.v20170312.models.ModifyLogFileRetentionPeriodRequest` :rtype: :class:`tencentcloud.mariadb.v20170312.models.ModifyLogFileRetentionPeriodResponse` """ try: params = request._serialize() body = self.call("ModifyLogFileRetentionPeriod", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.ModifyLogFileRetentionPeriodResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)