use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class CdnClient method PurgeUrlsCache.
/**
*This API is used to submit multiple URL purge tasks, which are carried out according to the current acceleration region of the domain names in the URLs.
*By default, a maximum of 10,000 URLs can be purged per day for acceleration regions either within or outside Mainland China, and up to 1,000 tasks can be submitted at a time.
* @param req PurgeUrlsCacheRequest
* @return PurgeUrlsCacheResponse
* @throws TencentCloudSDKException
*/
public PurgeUrlsCacheResponse PurgeUrlsCache(PurgeUrlsCacheRequest req) throws TencentCloudSDKException {
JsonResponseModel<PurgeUrlsCacheResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<PurgeUrlsCacheResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "PurgeUrlsCache");
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 CdnClient method StartCdnDomain.
/**
*This API is used to enable the acceleration service for a disabled domain name.
* @param req StartCdnDomainRequest
* @return StartCdnDomainResponse
* @throws TencentCloudSDKException
*/
public StartCdnDomainResponse StartCdnDomain(StartCdnDomainRequest req) throws TencentCloudSDKException {
JsonResponseModel<StartCdnDomainResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<StartCdnDomainResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "StartCdnDomain");
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 CdnClient method DescribePayType.
/**
*This API (DescribePayType) is used to query billing information of the current account, such as billing mode and billing cycle.
* @param req DescribePayTypeRequest
* @return DescribePayTypeResponse
* @throws TencentCloudSDKException
*/
public DescribePayTypeResponse DescribePayType(DescribePayTypeRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePayTypeResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePayTypeResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePayType");
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 CdbClient method DescribeDeployGroupList.
/**
*This API is used to query the list of placement groups of a user. You can specify the placement group ID or name.
* @param req DescribeDeployGroupListRequest
* @return DescribeDeployGroupListResponse
* @throws TencentCloudSDKException
*/
public DescribeDeployGroupListResponse DescribeDeployGroupList(DescribeDeployGroupListRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeDeployGroupListResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeDeployGroupListResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeDeployGroupList");
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 CdnClient method DescribeCdnDomainLogs.
/**
*This API is used to query the download link of an access log. You can use this API for access logs in the last 30 days either within or outside Mainland China.
* @param req DescribeCdnDomainLogsRequest
* @return DescribeCdnDomainLogsResponse
* @throws TencentCloudSDKException
*/
public DescribeCdnDomainLogsResponse DescribeCdnDomainLogs(DescribeCdnDomainLogsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeCdnDomainLogsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeCdnDomainLogsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeCdnDomainLogs");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations