1 Star 31 Fork 8

tencentcloud / tencentcloud-sdk-java

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
DcdbClient.java 39.32 KB
一键复制 编辑 原始数据 按行查看 历史
tencentcloud 提交于 2024-04-26 04:27 . release 3.1.1008
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.dcdb.v20180411;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.dcdb.v20180411.models.*;
public class DcdbClient extends AbstractClient{
private static String endpoint = "dcdb.tencentcloudapi.com";
private static String service = "dcdb";
private static String version = "2018-04-11";
public DcdbClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public DcdbClient(Credential credential, String region, ClientProfile profile) {
super(DcdbClient.endpoint, DcdbClient.version, credential, region, profile);
}
/**
*解隔离TDSQL按量计费实例
* @param req ActiveHourDCDBInstanceRequest
* @return ActiveHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public ActiveHourDCDBInstanceResponse ActiveHourDCDBInstance(ActiveHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ActiveHourDCDBInstance", ActiveHourDCDBInstanceResponse.class);
}
/**
*本接口 (AssociateSecurityGroups) 用于安全组批量绑定云资源。
* @param req AssociateSecurityGroupsRequest
* @return AssociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public AssociateSecurityGroupsResponse AssociateSecurityGroups(AssociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "AssociateSecurityGroups", AssociateSecurityGroupsResponse.class);
}
/**
*本接口(CancelDcnJob)用于取消DCN同步
* @param req CancelDcnJobRequest
* @return CancelDcnJobResponse
* @throws TencentCloudSDKException
*/
public CancelDcnJobResponse CancelDcnJob(CancelDcnJobRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CancelDcnJob", CancelDcnJobResponse.class);
}
/**
*本接口(CloneAccount)用于克隆实例账户。
* @param req CloneAccountRequest
* @return CloneAccountResponse
* @throws TencentCloudSDKException
*/
public CloneAccountResponse CloneAccount(CloneAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CloneAccount", CloneAccountResponse.class);
}
/**
*本接口(CloseDBExtranetAccess)用于关闭云数据库实例的外网访问。关闭外网访问后,外网地址将不可访问,查询实例列表接口将不返回对应实例的外网域名和端口信息。
* @param req CloseDBExtranetAccessRequest
* @return CloseDBExtranetAccessResponse
* @throws TencentCloudSDKException
*/
public CloseDBExtranetAccessResponse CloseDBExtranetAccess(CloseDBExtranetAccessRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CloseDBExtranetAccess", CloseDBExtranetAccessResponse.class);
}
/**
*本接口(CopyAccountPrivileges)用于复制云数据库账号的权限。
注意:相同用户名,不同Host是不同的账号,Readonly属性相同的账号之间才能复制权限。
* @param req CopyAccountPrivilegesRequest
* @return CopyAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public CopyAccountPrivilegesResponse CopyAccountPrivileges(CopyAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CopyAccountPrivileges", CopyAccountPrivilegesResponse.class);
}
/**
*本接口(CreateAccount)用于创建云数据库账号。一个实例可以创建多个不同的账号,相同的用户名+不同的host是不同的账号。
* @param req CreateAccountRequest
* @return CreateAccountResponse
* @throws TencentCloudSDKException
*/
public CreateAccountResponse CreateAccount(CreateAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAccount", CreateAccountResponse.class);
}
/**
*本接口(CreateDCDBInstance)用于创建包年包月的TDSQL实例,可通过传入实例规格、数据库版本号、购买时长等信息创建云数据库实例。
* @param req CreateDCDBInstanceRequest
* @return CreateDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateDCDBInstanceResponse CreateDCDBInstance(CreateDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDCDBInstance", CreateDCDBInstanceResponse.class);
}
/**
*创建TDSQL独享集群实例
* @param req CreateDedicatedClusterDCDBInstanceRequest
* @return CreateDedicatedClusterDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateDedicatedClusterDCDBInstanceResponse CreateDedicatedClusterDCDBInstance(CreateDedicatedClusterDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateDedicatedClusterDCDBInstance", CreateDedicatedClusterDCDBInstanceResponse.class);
}
/**
*创建TDSQL按量计费实例
* @param req CreateHourDCDBInstanceRequest
* @return CreateHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateHourDCDBInstanceResponse CreateHourDCDBInstance(CreateHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateHourDCDBInstance", CreateHourDCDBInstanceResponse.class);
}
/**
*回档TDSQL实例
* @param req CreateTmpDCDBInstanceRequest
* @return CreateTmpDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public CreateTmpDCDBInstanceResponse CreateTmpDCDBInstance(CreateTmpDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateTmpDCDBInstance", CreateTmpDCDBInstanceResponse.class);
}
/**
*本接口(DeleteAccount)用于删除云数据库账号。用户名+host唯一确定一个账号。
* @param req DeleteAccountRequest
* @return DeleteAccountResponse
* @throws TencentCloudSDKException
*/
public DeleteAccountResponse DeleteAccount(DeleteAccountRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAccount", DeleteAccountResponse.class);
}
/**
*本接口(DescribeAccountPrivileges)用于查询云数据库账号权限。
注意:注意:相同用户名,不同Host是不同的账号。
* @param req DescribeAccountPrivilegesRequest
* @return DescribeAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public DescribeAccountPrivilegesResponse DescribeAccountPrivileges(DescribeAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAccountPrivileges", DescribeAccountPrivilegesResponse.class);
}
/**
*本接口(DescribeAccounts)用于查询指定云数据库实例的账号列表。
* @param req DescribeAccountsRequest
* @return DescribeAccountsResponse
* @throws TencentCloudSDKException
*/
public DescribeAccountsResponse DescribeAccounts(DescribeAccountsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAccounts", DescribeAccountsResponse.class);
}
/**
*本接口(DescribeBackupFiles)用于查看备份文件列表。
* @param req DescribeBackupFilesRequest
* @return DescribeBackupFilesResponse
* @throws TencentCloudSDKException
*/
public DescribeBackupFilesResponse DescribeBackupFiles(DescribeBackupFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeBackupFiles", DescribeBackupFilesResponse.class);
}
/**
*本接口(DescribeDBEncryptAttributes)用于查询实例数据加密状态。
* @param req DescribeDBEncryptAttributesRequest
* @return DescribeDBEncryptAttributesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBEncryptAttributesResponse DescribeDBEncryptAttributes(DescribeDBEncryptAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBEncryptAttributes", DescribeDBEncryptAttributesResponse.class);
}
/**
*本接口(DescribeDBLogFiles)用于获取数据库的各种日志列表,包括冷备、binlog、errlog和slowlog。
* @param req DescribeDBLogFilesRequest
* @return DescribeDBLogFilesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBLogFilesResponse DescribeDBLogFiles(DescribeDBLogFilesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBLogFiles", DescribeDBLogFilesResponse.class);
}
/**
*本接口(DescribeDBParameters)用于获取数据库的当前参数设置。
* @param req DescribeDBParametersRequest
* @return DescribeDBParametersResponse
* @throws TencentCloudSDKException
*/
public DescribeDBParametersResponse DescribeDBParameters(DescribeDBParametersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBParameters", DescribeDBParametersResponse.class);
}
/**
*本接口(DescribeDBSecurityGroups)用于查询实例安全组信息
* @param req DescribeDBSecurityGroupsRequest
* @return DescribeDBSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(DescribeDBSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSecurityGroups", DescribeDBSecurityGroupsResponse.class);
}
/**
*本接口(DescribeDBSlowLogs)用于查询慢查询日志列表。
* @param req DescribeDBSlowLogsRequest
* @return DescribeDBSlowLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSlowLogsResponse DescribeDBSlowLogs(DescribeDBSlowLogsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSlowLogs", DescribeDBSlowLogsResponse.class);
}
/**
*本接口(DescribeDBSyncMode)用于查询云数据库实例的同步模式。
* @param req DescribeDBSyncModeRequest
* @return DescribeDBSyncModeResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSyncModeResponse DescribeDBSyncMode(DescribeDBSyncModeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBSyncMode", DescribeDBSyncModeResponse.class);
}
/**
*本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
* @param req DescribeDBTmpInstancesRequest
* @return DescribeDBTmpInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeDBTmpInstancesResponse DescribeDBTmpInstances(DescribeDBTmpInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDBTmpInstances", DescribeDBTmpInstancesResponse.class);
}
/**
*本接口(DescribeDCDBInstanceDetail)用于获取TDSQL实例详情
* @param req DescribeDCDBInstanceDetailRequest
* @return DescribeDCDBInstanceDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstanceDetailResponse DescribeDCDBInstanceDetail(DescribeDCDBInstanceDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstanceDetail", DescribeDCDBInstanceDetailResponse.class);
}
/**
*本接口(DescribeDCDBInstanceNodeInfo)用于获取实例节点信息
* @param req DescribeDCDBInstanceNodeInfoRequest
* @return DescribeDCDBInstanceNodeInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstanceNodeInfoResponse DescribeDCDBInstanceNodeInfo(DescribeDCDBInstanceNodeInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstanceNodeInfo", DescribeDCDBInstanceNodeInfoResponse.class);
}
/**
*查询云数据库实例列表,支持通过项目ID、实例ID、内网地址、实例名称等来筛选实例。
如果不指定任何筛选条件,则默认返回10条实例记录,单次请求最多支持返回100条实例记录。
* @param req DescribeDCDBInstancesRequest
* @return DescribeDCDBInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBInstancesResponse DescribeDCDBInstances(DescribeDCDBInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBInstances", DescribeDCDBInstancesResponse.class);
}
/**
*本接口(DescribeDCDBPrice)用于在购买实例前,查询实例的价格。
* @param req DescribeDCDBPriceRequest
* @return DescribeDCDBPriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBPriceResponse DescribeDCDBPrice(DescribeDCDBPriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBPrice", DescribeDCDBPriceResponse.class);
}
/**
*本接口(DescribeDCDBRenewalPrice)用于在续费分布式数据库实例时,查询续费的价格。
* @param req DescribeDCDBRenewalPriceRequest
* @return DescribeDCDBRenewalPriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBRenewalPriceResponse DescribeDCDBRenewalPrice(DescribeDCDBRenewalPriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBRenewalPrice", DescribeDCDBRenewalPriceResponse.class);
}
/**
*本接口(DescribeDCDBSaleInfo)用于查询分布式数据库可售卖的地域和可用区信息。
* @param req DescribeDCDBSaleInfoRequest
* @return DescribeDCDBSaleInfoResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBSaleInfoResponse DescribeDCDBSaleInfo(DescribeDCDBSaleInfoRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBSaleInfo", DescribeDCDBSaleInfoResponse.class);
}
/**
*本接口(DescribeDCDBShards)用于查询云数据库实例的分片信息。
* @param req DescribeDCDBShardsRequest
* @return DescribeDCDBShardsResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBShardsResponse DescribeDCDBShards(DescribeDCDBShardsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBShards", DescribeDCDBShardsResponse.class);
}
/**
*本接口(DescribeDCDBUpgradePrice)用于查询变配分布式数据库实例价格。
* @param req DescribeDCDBUpgradePriceRequest
* @return DescribeDCDBUpgradePriceResponse
* @throws TencentCloudSDKException
*/
public DescribeDCDBUpgradePriceResponse DescribeDCDBUpgradePrice(DescribeDCDBUpgradePriceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDCDBUpgradePrice", DescribeDCDBUpgradePriceResponse.class);
}
/**
*本接口(DescribeDatabaseObjects)用于查询云数据库实例的数据库中的对象列表,包含表、存储过程、视图和函数。
* @param req DescribeDatabaseObjectsRequest
* @return DescribeDatabaseObjectsResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabaseObjectsResponse DescribeDatabaseObjects(DescribeDatabaseObjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabaseObjects", DescribeDatabaseObjectsResponse.class);
}
/**
*本接口(DescribeDatabaseTable)用于查询云数据库实例的表信息。
* @param req DescribeDatabaseTableRequest
* @return DescribeDatabaseTableResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabaseTableResponse DescribeDatabaseTable(DescribeDatabaseTableRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabaseTable", DescribeDatabaseTableResponse.class);
}
/**
*本接口(DescribeDatabases)用于查询云数据库实例的数据库列表。
* @param req DescribeDatabasesRequest
* @return DescribeDatabasesResponse
* @throws TencentCloudSDKException
*/
public DescribeDatabasesResponse DescribeDatabases(DescribeDatabasesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDatabases", DescribeDatabasesResponse.class);
}
/**
*获取实例灾备详情
* @param req DescribeDcnDetailRequest
* @return DescribeDcnDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeDcnDetailResponse DescribeDcnDetail(DescribeDcnDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeDcnDetail", DescribeDcnDetailResponse.class);
}
/**
*本接口(DescribeFileDownloadUrl)用于获取数据库指定备份或日志文件的下载连接。
* @param req DescribeFileDownloadUrlRequest
* @return DescribeFileDownloadUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeFileDownloadUrlResponse DescribeFileDownloadUrl(DescribeFileDownloadUrlRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeFileDownloadUrl", DescribeFileDownloadUrlResponse.class);
}
/**
*本接口(DescribeFlow)用于查询流程状态
* @param req DescribeFlowRequest
* @return DescribeFlowResponse
* @throws TencentCloudSDKException
*/
public DescribeFlowResponse DescribeFlow(DescribeFlowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeFlow", DescribeFlowResponse.class);
}
/**
*本接口(DescribeLogFileRetentionPeriod)用于查看数据库备份日志的备份天数的设置情况。
* @param req DescribeLogFileRetentionPeriodRequest
* @return DescribeLogFileRetentionPeriodResponse
* @throws TencentCloudSDKException
*/
public DescribeLogFileRetentionPeriodResponse DescribeLogFileRetentionPeriod(DescribeLogFileRetentionPeriodRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeLogFileRetentionPeriod", DescribeLogFileRetentionPeriodResponse.class);
}
/**
*本接口(DescribeOrders)用于查询分布式数据库订单信息。传入订单ID来查询订单关联的分布式数据库实例,和对应的任务流程ID。
* @param req DescribeOrdersRequest
* @return DescribeOrdersResponse
* @throws TencentCloudSDKException
*/
public DescribeOrdersResponse DescribeOrders(DescribeOrdersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeOrders", DescribeOrdersResponse.class);
}
/**
*本接口(DescribeProjectSecurityGroups)用于查询项目安全组信息
* @param req DescribeProjectSecurityGroupsRequest
* @return DescribeProjectSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectSecurityGroupsResponse DescribeProjectSecurityGroups(DescribeProjectSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjectSecurityGroups", DescribeProjectSecurityGroupsResponse.class);
}
/**
*本接口(DescribeProjects)用于查询项目列表
* @param req DescribeProjectsRequest
* @return DescribeProjectsResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectsResponse DescribeProjects(DescribeProjectsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeProjects", DescribeProjectsResponse.class);
}
/**
*查询可创建的分布式数据库可售卖的分片规格配置。
* @param req DescribeShardSpecRequest
* @return DescribeShardSpecResponse
* @throws TencentCloudSDKException
*/
public DescribeShardSpecResponse DescribeShardSpec(DescribeShardSpecRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeShardSpec", DescribeShardSpecResponse.class);
}
/**
*本接口(DescribeUserTasks)用于拉取用户任务列表
* @param req DescribeUserTasksRequest
* @return DescribeUserTasksResponse
* @throws TencentCloudSDKException
*/
public DescribeUserTasksResponse DescribeUserTasks(DescribeUserTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeUserTasks", DescribeUserTasksResponse.class);
}
/**
*本接口(DestroyDCDBInstance)用于销毁已隔离的TDSQL包年包月实例。
* @param req DestroyDCDBInstanceRequest
* @return DestroyDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public DestroyDCDBInstanceResponse DestroyDCDBInstance(DestroyDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DestroyDCDBInstance", DestroyDCDBInstanceResponse.class);
}
/**
*本接口(DestroyHourDCDBInstance)用于TDSQL销毁按量计费实例。
* @param req DestroyHourDCDBInstanceRequest
* @return DestroyHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public DestroyHourDCDBInstanceResponse DestroyHourDCDBInstance(DestroyHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DestroyHourDCDBInstance", DestroyHourDCDBInstanceResponse.class);
}
/**
*本接口(DisassociateSecurityGroups)用于安全组批量解绑实例。
* @param req DisassociateSecurityGroupsRequest
* @return DisassociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public DisassociateSecurityGroupsResponse DisassociateSecurityGroups(DisassociateSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisassociateSecurityGroups", DisassociateSecurityGroupsResponse.class);
}
/**
*相当于在所有分片的mysqld中执行flush logs,完成切分的binlog将展示在各个分片控制台binlog列表里。
* @param req FlushBinlogRequest
* @return FlushBinlogResponse
* @throws TencentCloudSDKException
*/
public FlushBinlogResponse FlushBinlog(FlushBinlogRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "FlushBinlog", FlushBinlogResponse.class);
}
/**
*本接口(GrantAccountPrivileges)用于给云数据库账号赋权。
注意:相同用户名,不同Host是不同的账号。
* @param req GrantAccountPrivilegesRequest
* @return GrantAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public GrantAccountPrivilegesResponse GrantAccountPrivileges(GrantAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "GrantAccountPrivileges", GrantAccountPrivilegesResponse.class);
}
/**
*本接口(InitDCDBInstances)用于初始化云数据库实例,包括设置默认字符集、表名大小写敏感等。
* @param req InitDCDBInstancesRequest
* @return InitDCDBInstancesResponse
* @throws TencentCloudSDKException
*/
public InitDCDBInstancesResponse InitDCDBInstances(InitDCDBInstancesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "InitDCDBInstances", InitDCDBInstancesResponse.class);
}
/**
*本接口(IsolateDCDBInstance)用于隔离分布式数据库TDSQL实例(包年包月),隔离后不能通过IP和端口访问数据库。隔离的实例可在回收站中进行开机。若为欠费隔离,请尽快进行充值。
* @param req IsolateDCDBInstanceRequest
* @return IsolateDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateDCDBInstanceResponse IsolateDCDBInstance(IsolateDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateDCDBInstance", IsolateDCDBInstanceResponse.class);
}
/**
*本接口(IsolateDedicatedDBInstance)用于隔离独享云数据库实例。
* @param req IsolateDedicatedDBInstanceRequest
* @return IsolateDedicatedDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateDedicatedDBInstanceResponse IsolateDedicatedDBInstance(IsolateDedicatedDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateDedicatedDBInstance", IsolateDedicatedDBInstanceResponse.class);
}
/**
*隔离TDSQL按量计费实例
* @param req IsolateHourDCDBInstanceRequest
* @return IsolateHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public IsolateHourDCDBInstanceResponse IsolateHourDCDBInstance(IsolateHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "IsolateHourDCDBInstance", IsolateHourDCDBInstanceResponse.class);
}
/**
*本接口(KillSession)用于杀死指定会话。
* @param req KillSessionRequest
* @return KillSessionResponse
* @throws TencentCloudSDKException
*/
public KillSessionResponse KillSession(KillSessionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "KillSession", KillSessionResponse.class);
}
/**
*修改账号的一些配置,比如 max_user_connections
* @param req ModifyAccountConfigRequest
* @return ModifyAccountConfigResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountConfigResponse ModifyAccountConfig(ModifyAccountConfigRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountConfig", ModifyAccountConfigResponse.class);
}
/**
*本接口(ModifyAccountDescription)用于修改云数据库账号备注。
注意:相同用户名,不同Host是不同的账号。
* @param req ModifyAccountDescriptionRequest
* @return ModifyAccountDescriptionResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountDescriptionResponse ModifyAccountDescription(ModifyAccountDescriptionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountDescription", ModifyAccountDescriptionResponse.class);
}
/**
*本接口(ModifyAccountPrivileges)用于修改云数据库的账户的权限信息。
**注意**
- 系统保留库:"mysql",只开放["SELECT"]权限
- 只读账号授予读写权限会报错
- 不传权限参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组
* @param req ModifyAccountPrivilegesRequest
* @return ModifyAccountPrivilegesResponse
* @throws TencentCloudSDKException
*/
public ModifyAccountPrivilegesResponse ModifyAccountPrivileges(ModifyAccountPrivilegesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAccountPrivileges", ModifyAccountPrivilegesResponse.class);
}
/**
*本接口(ModifyDBEncryptAttributes)用于修改实例数据加密。
* @param req ModifyDBEncryptAttributesRequest
* @return ModifyDBEncryptAttributesResponse
* @throws TencentCloudSDKException
*/
public ModifyDBEncryptAttributesResponse ModifyDBEncryptAttributes(ModifyDBEncryptAttributesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBEncryptAttributes", ModifyDBEncryptAttributesResponse.class);
}
/**
*本接口(ModifyDBInstanceName)用于修改实例名字
* @param req ModifyDBInstanceNameRequest
* @return ModifyDBInstanceNameResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceNameResponse ModifyDBInstanceName(ModifyDBInstanceNameRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstanceName", ModifyDBInstanceNameResponse.class);
}
/**
*本接口(ModifyDBInstanceSecurityGroups)用于修改云数据库安全组
* @param req ModifyDBInstanceSecurityGroupsRequest
* @return ModifyDBInstanceSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceSecurityGroupsResponse ModifyDBInstanceSecurityGroups(ModifyDBInstanceSecurityGroupsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstanceSecurityGroups", ModifyDBInstanceSecurityGroupsResponse.class);
}
/**
*本接口(ModifyDBInstancesProject)用于修改云数据库实例所属项目。
* @param req ModifyDBInstancesProjectRequest
* @return ModifyDBInstancesProjectResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstancesProjectResponse ModifyDBInstancesProject(ModifyDBInstancesProjectRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBInstancesProject", ModifyDBInstancesProjectResponse.class);
}
/**
*本接口(ModifyDBParameters)用于修改数据库参数。
* @param req ModifyDBParametersRequest
* @return ModifyDBParametersResponse
* @throws TencentCloudSDKException
*/
public ModifyDBParametersResponse ModifyDBParameters(ModifyDBParametersRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBParameters", ModifyDBParametersResponse.class);
}
/**
*本接口(ModifyDBSyncMode)用于修改云数据库实例的同步模式。
* @param req ModifyDBSyncModeRequest
* @return ModifyDBSyncModeResponse
* @throws TencentCloudSDKException
*/
public ModifyDBSyncModeResponse ModifyDBSyncMode(ModifyDBSyncModeRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyDBSyncMode", ModifyDBSyncModeResponse.class);
}
/**
*本接口(ModifyInstanceNetwork)用于修改实例所属网络。
* @param req ModifyInstanceNetworkRequest
* @return ModifyInstanceNetworkResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceNetworkResponse ModifyInstanceNetwork(ModifyInstanceNetworkRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceNetwork", ModifyInstanceNetworkResponse.class);
}
/**
*本接口(ModifyInstanceVip)用于修改实例Vip
* @param req ModifyInstanceVipRequest
* @return ModifyInstanceVipResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceVipResponse ModifyInstanceVip(ModifyInstanceVipRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceVip", ModifyInstanceVipResponse.class);
}
/**
*本接口(ModifyInstanceVport)用于修改实例VPORT
* @param req ModifyInstanceVportRequest
* @return ModifyInstanceVportResponse
* @throws TencentCloudSDKException
*/
public ModifyInstanceVportResponse ModifyInstanceVport(ModifyInstanceVportRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyInstanceVport", ModifyInstanceVportResponse.class);
}
/**
*本接口(ModifyRealServerAccessStrategy)用于修改云数据库的VPCGW到RS的访问策略。
**注意**
- 修改策略后只对新建立的连接生效,老连接不受影响
- 就近访问只针对实例是跨可用区部署有用,单可用区部署实例就近与否并无作用
- DB每个Node对应一个proxy,如果开启就近访问,将会把连接集中到对应可用区的proxy上,可能造成热点问题,这种情况下如果是线上业务,请务必根据自己的业务请求量测试符合预期后再进行就近策略变更
* @param req ModifyRealServerAccessStrategyRequest
* @return ModifyRealServerAccessStrategyResponse
* @throws TencentCloudSDKException
*/
public ModifyRealServerAccessStrategyResponse ModifyRealServerAccessStrategy(ModifyRealServerAccessStrategyRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyRealServerAccessStrategy", ModifyRealServerAccessStrategyResponse.class);
}
/**
*本接口(OpenDBExtranetAccess)用于开通云数据库实例的外网访问。开通外网访问后,您可通过外网域名和端口访问实例,可使用查询实例列表接口获取外网域名和端口信息。
* @param req OpenDBExtranetAccessRequest
* @return OpenDBExtranetAccessResponse
* @throws TencentCloudSDKException
*/
public OpenDBExtranetAccessResponse OpenDBExtranetAccess(OpenDBExtranetAccessRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "OpenDBExtranetAccess", OpenDBExtranetAccessResponse.class);
}
/**
*本接口(RenewDCDBInstance)用于续费分布式数据库实例。
* @param req RenewDCDBInstanceRequest
* @return RenewDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public RenewDCDBInstanceResponse RenewDCDBInstance(RenewDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "RenewDCDBInstance", RenewDCDBInstanceResponse.class);
}
/**
*本接口(ResetAccountPassword)用于重置云数据库账号的密码。
注意:相同用户名,不同Host是不同的账号。
* @param req ResetAccountPasswordRequest
* @return ResetAccountPasswordResponse
* @throws TencentCloudSDKException
*/
public ResetAccountPasswordResponse ResetAccountPassword(ResetAccountPasswordRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResetAccountPassword", ResetAccountPasswordResponse.class);
}
/**
*本接口(SwitchDBInstanceHA)用于实例主备切换。
* @param req SwitchDBInstanceHARequest
* @return SwitchDBInstanceHAResponse
* @throws TencentCloudSDKException
*/
public SwitchDBInstanceHAResponse SwitchDBInstanceHA(SwitchDBInstanceHARequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "SwitchDBInstanceHA", SwitchDBInstanceHAResponse.class);
}
/**
*本接口(TerminateDedicatedDBInstance)用于销毁已隔离的独享分布式数据库实例。
* @param req TerminateDedicatedDBInstanceRequest
* @return TerminateDedicatedDBInstanceResponse
* @throws TencentCloudSDKException
*/
public TerminateDedicatedDBInstanceResponse TerminateDedicatedDBInstance(TerminateDedicatedDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "TerminateDedicatedDBInstance", TerminateDedicatedDBInstanceResponse.class);
}
/**
*本接口(UpgradeDCDBInstance)用于升级分布式数据库实例。本接口完成下单和支付两个动作,如果发生支付失败的错误,调用用户账户相关接口中的支付订单接口(PayDeals)重新支付即可。
* @param req UpgradeDCDBInstanceRequest
* @return UpgradeDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeDCDBInstanceResponse UpgradeDCDBInstance(UpgradeDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeDCDBInstance", UpgradeDCDBInstanceResponse.class);
}
/**
*本接口(UpgradeDedicatedDCDBInstance)用于升级TDSQL独享集群实例
* @param req UpgradeDedicatedDCDBInstanceRequest
* @return UpgradeDedicatedDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeDedicatedDCDBInstanceResponse UpgradeDedicatedDCDBInstance(UpgradeDedicatedDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeDedicatedDCDBInstance", UpgradeDedicatedDCDBInstanceResponse.class);
}
/**
*本接口(UpgradeHourDCDBInstance)用于升级分布式数据库TDSQL按量计费实例。
* @param req UpgradeHourDCDBInstanceRequest
* @return UpgradeHourDCDBInstanceResponse
* @throws TencentCloudSDKException
*/
public UpgradeHourDCDBInstanceResponse UpgradeHourDCDBInstance(UpgradeHourDCDBInstanceRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "UpgradeHourDCDBInstance", UpgradeHourDCDBInstanceResponse.class);
}
}
1
https://gitee.com/tencentcloud/tencentcloud-sdk-java.git
git@gitee.com:tencentcloud/tencentcloud-sdk-java.git
tencentcloud
tencentcloud-sdk-java
tencentcloud-sdk-java
master

搜索帮助