use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class MariadbClient method DescribeDBSlowLogs.
/**
*This API is used to query the slow query log list.
* @param req DescribeDBSlowLogsRequest
* @return DescribeDBSlowLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeDBSlowLogsResponse DescribeDBSlowLogs(DescribeDBSlowLogsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeDBSlowLogsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeDBSlowLogsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeDBSlowLogs");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class MariadbClient method ModifyDBInstanceSecurityGroups.
/**
*This API is used to modify the security groups associated with TencentDB.
* @param req ModifyDBInstanceSecurityGroupsRequest
* @return ModifyDBInstanceSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public ModifyDBInstanceSecurityGroupsResponse ModifyDBInstanceSecurityGroups(ModifyDBInstanceSecurityGroupsRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyDBInstanceSecurityGroupsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyDBInstanceSecurityGroupsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyDBInstanceSecurityGroups");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class LiveClient method DescribeBillBandwidthAndFluxList.
/**
*This API is used to query the data of billable LVB bandwidth and traffic.
* @param req DescribeBillBandwidthAndFluxListRequest
* @return DescribeBillBandwidthAndFluxListResponse
* @throws TencentCloudSDKException
*/
public DescribeBillBandwidthAndFluxListResponse DescribeBillBandwidthAndFluxList(DescribeBillBandwidthAndFluxListRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeBillBandwidthAndFluxListResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeBillBandwidthAndFluxListResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeBillBandwidthAndFluxList");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeSubscriptions.
/**
*This API is used to query the list of subscribers under the specified environment and topic.
* @param req DescribeSubscriptionsRequest
* @return DescribeSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DescribeSubscriptionsResponse DescribeSubscriptions(DescribeSubscriptionsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeSubscriptionsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeSubscriptionsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeSubscriptions");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeCmqQueues.
/**
*This API is used to query all CMQ queues.
* @param req DescribeCmqQueuesRequest
* @return DescribeCmqQueuesResponse
* @throws TencentCloudSDKException
*/
public DescribeCmqQueuesResponse DescribeCmqQueues(DescribeCmqQueuesRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeCmqQueuesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeCmqQueuesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeCmqQueues");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations