use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class ClsClient method CreateAsyncSearchTask.
/**
*This API is used to create an offline search task.
* @param req CreateAsyncSearchTaskRequest
* @return CreateAsyncSearchTaskResponse
* @throws TencentCloudSDKException
*/
public CreateAsyncSearchTaskResponse CreateAsyncSearchTask(CreateAsyncSearchTaskRequest req) throws TencentCloudSDKException {
JsonResponseModel<CreateAsyncSearchTaskResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<CreateAsyncSearchTaskResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "CreateAsyncSearchTask");
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 ClsClient method CreateAsyncContextTask.
/**
*This API is used to create an offline context search task.
* @param req CreateAsyncContextTaskRequest
* @return CreateAsyncContextTaskResponse
* @throws TencentCloudSDKException
*/
public CreateAsyncContextTaskResponse CreateAsyncContextTask(CreateAsyncContextTaskRequest req) throws TencentCloudSDKException {
JsonResponseModel<CreateAsyncContextTaskResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<CreateAsyncContextTaskResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "CreateAsyncContextTask");
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 CdnClient method DescribeDomainsConfig.
/**
*This API is used to query the complete configuration information of CDN acceleration domain names (inside and outside mainland China).
* @param req DescribeDomainsConfigRequest
* @return DescribeDomainsConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeDomainsConfigResponse DescribeDomainsConfig(DescribeDomainsConfigRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeDomainsConfigResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeDomainsConfigResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeDomainsConfig");
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 CdnClient method DescribeUrlViolations.
/**
*This API is used to query the list of domain name URLs containing regulation-violating content scanned and detected by the CDN system, and the current status of the URLs.
*It corresponds to the **Pornography Detection** page on the CDN Console.
* @param req DescribeUrlViolationsRequest
* @return DescribeUrlViolationsResponse
* @throws TencentCloudSDKException
*/
public DescribeUrlViolationsResponse DescribeUrlViolations(DescribeUrlViolationsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeUrlViolationsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeUrlViolationsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeUrlViolations");
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 CdnClient method DescribeCertDomains.
/**
*This API is used to verify an SSL certificate and extract the domain names. It will then return the list of domain names connected to CDN and the list of domain names with the certificate configured.
* @param req DescribeCertDomainsRequest
* @return DescribeCertDomainsResponse
* @throws TencentCloudSDKException
*/
public DescribeCertDomainsResponse DescribeCertDomains(DescribeCertDomainsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeCertDomainsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeCertDomainsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeCertDomains");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations