use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class RedisClient method DescribeBackupUrl.
/**
*This API is used to query the download address of a backup RDB (it is during beta test and can be used only after you apply for the eligibility).
* @param req DescribeBackupUrlRequest
* @return DescribeBackupUrlResponse
* @throws TencentCloudSDKException
*/
public DescribeBackupUrlResponse DescribeBackupUrl(DescribeBackupUrlRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeBackupUrlResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeBackupUrlResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeBackupUrl");
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.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class RedisClient method ApplyParamsTemplate.
/**
*This API is used to apply a parameter template to instances.
* @param req ApplyParamsTemplateRequest
* @return ApplyParamsTemplateResponse
* @throws TencentCloudSDKException
*/
public ApplyParamsTemplateResponse ApplyParamsTemplate(ApplyParamsTemplateRequest req) throws TencentCloudSDKException {
JsonResponseModel<ApplyParamsTemplateResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ApplyParamsTemplateResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ApplyParamsTemplate");
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.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class RedisClient method DescribeProjectSecurityGroup.
/**
*This API is used to query the security group information of a project.
* @param req DescribeProjectSecurityGroupRequest
* @return DescribeProjectSecurityGroupResponse
* @throws TencentCloudSDKException
*/
public DescribeProjectSecurityGroupResponse DescribeProjectSecurityGroup(DescribeProjectSecurityGroupRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeProjectSecurityGroupResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeProjectSecurityGroupResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeProjectSecurityGroup");
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.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class RedisClient method EnableReplicaReadonly.
/**
*This API is used to enable read/write separation.
* @param req EnableReplicaReadonlyRequest
* @return EnableReplicaReadonlyResponse
* @throws TencentCloudSDKException
*/
public EnableReplicaReadonlyResponse EnableReplicaReadonly(EnableReplicaReadonlyRequest req) throws TencentCloudSDKException {
JsonResponseModel<EnableReplicaReadonlyResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<EnableReplicaReadonlyResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "EnableReplicaReadonly");
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.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class PrivatednsClient method DescribePrivateZoneList.
/**
*This API is used to get the list of private domains.
* @param req DescribePrivateZoneListRequest
* @return DescribePrivateZoneListResponse
* @throws TencentCloudSDKException
*/
public DescribePrivateZoneListResponse DescribePrivateZoneList(DescribePrivateZoneListRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePrivateZoneListResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePrivateZoneListResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePrivateZoneList");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations