def InitDCDBInstances(self, request): """本接口(InitDCDBInstances)用于初始化云数据库实例,包括设置默认字符集、表名大小写敏感等。 :param request: Request instance for InitDCDBInstances. :type request: :class:`tencentcloud.dcdb.v20180411.models.InitDCDBInstancesRequest` :rtype: :class:`tencentcloud.dcdb.v20180411.models.InitDCDBInstancesResponse` """ try: params = request._serialize() body = self.call("InitDCDBInstances", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.InitDCDBInstancesResponse() 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)
def InitDCDBInstances(self, request): """This API is used to initialize instances, including setting the default character set and table name case sensitivity. :param request: Request instance for InitDCDBInstances. :type request: :class:`tencentcloud.dcdb.v20180411.models.InitDCDBInstancesRequest` :rtype: :class:`tencentcloud.dcdb.v20180411.models.InitDCDBInstancesResponse` """ try: params = request._serialize() body = self.call("InitDCDBInstances", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.InitDCDBInstancesResponse() 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)