use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java by TencentCloud.
the class AsClient method PreviewPaiDomainName.
/**
*本接口(PreviewPaiDomainName)用于预览PAI实例域名。
*
* @param req PreviewPaiDomainNameRequest
* @return PreviewPaiDomainNameResponse
* @throws TencentCloudSDKException
*/
public PreviewPaiDomainNameResponse PreviewPaiDomainName(PreviewPaiDomainNameRequest req) throws TencentCloudSDKException {
JsonResponseModel<PreviewPaiDomainNameResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<PreviewPaiDomainNameResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "PreviewPaiDomainName");
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 by TencentCloud.
the class AsClient method DescribePaiInstances.
/**
*本接口(DescribePaiInstances)用于查询PAI实例信息。
*
* 可以根据实例ID、实例域名等信息来查询PAI实例的详细信息。过滤信息详细请见过滤器`Filter`。
* 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的PAI实例。
* @param req DescribePaiInstancesRequest
* @return DescribePaiInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribePaiInstancesResponse DescribePaiInstances(DescribePaiInstancesRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribePaiInstancesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribePaiInstancesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribePaiInstances");
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 by TencentCloud.
the class TkeClient method CreateClusterAsGroup.
/**
*为已经存在的集群创建伸缩组
* @param req CreateClusterAsGroupRequest
* @return CreateClusterAsGroupResponse
* @throws TencentCloudSDKException
*/
public CreateClusterAsGroupResponse CreateClusterAsGroup(CreateClusterAsGroupRequest req) throws TencentCloudSDKException {
JsonResponseModel<CreateClusterAsGroupResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<CreateClusterAsGroupResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "CreateClusterAsGroup");
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 by TencentCloud.
the class TrtcClient method DescribeTrtcInteractiveTime.
/**
*查询音视频互动计费时长。
*- 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
*- 单次查询统计区间最多不能超过31天。
*- 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
*- 日结后付费将于次日上午推送账单,建议次日上午9点以后再来查询前一天的用量。
* @param req DescribeTrtcInteractiveTimeRequest
* @return DescribeTrtcInteractiveTimeResponse
* @throws TencentCloudSDKException
*/
public DescribeTrtcInteractiveTimeResponse DescribeTrtcInteractiveTime(DescribeTrtcInteractiveTimeRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeTrtcInteractiveTimeResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeTrtcInteractiveTimeResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeTrtcInteractiveTime");
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 by TencentCloud.
the class IaiClient method EstimateCheckSimilarPersonCostTime.
/**
*获取若要开始一个人员查重任务,这个任务结束的预估时间。
*
*若EndTimestamp符合您预期,请您尽快发起人员查重请求,否则导致可能需要更多处理时间。
*
*若预估时间超过5小时,则无法使用人员查重功能。
* @param req EstimateCheckSimilarPersonCostTimeRequest
* @return EstimateCheckSimilarPersonCostTimeResponse
* @throws TencentCloudSDKException
*/
public EstimateCheckSimilarPersonCostTimeResponse EstimateCheckSimilarPersonCostTime(EstimateCheckSimilarPersonCostTimeRequest req) throws TencentCloudSDKException {
JsonResponseModel<EstimateCheckSimilarPersonCostTimeResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<EstimateCheckSimilarPersonCostTimeResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "EstimateCheckSimilarPersonCostTime");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations