use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class RumClient method DescribeTawInstances.
/**
*This API is used to query instance information.
* @param req DescribeTawInstancesRequest
* @return DescribeTawInstancesResponse
* @throws TencentCloudSDKException
*/
public DescribeTawInstancesResponse DescribeTawInstances(DescribeTawInstancesRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeTawInstancesResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeTawInstancesResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeTawInstances");
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 RumClient method DescribeScores.
/**
*This API is used to get the list of homepage scores.
* @param req DescribeScoresRequest
* @return DescribeScoresResponse
* @throws TencentCloudSDKException
*/
public DescribeScoresResponse DescribeScores(DescribeScoresRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeScoresResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeScoresResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeScores");
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 RedisClient method DescribeAutoBackupConfig.
/**
*This API is used to get the backup configuration.
* @param req DescribeAutoBackupConfigRequest
* @return DescribeAutoBackupConfigResponse
* @throws TencentCloudSDKException
*/
public DescribeAutoBackupConfigResponse DescribeAutoBackupConfig(DescribeAutoBackupConfigRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeAutoBackupConfigResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeAutoBackupConfigResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeAutoBackupConfig");
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 RedisClient method DescribeInstanceShards.
/**
*This API is used to get the information of cluster edition instance shards.
* @param req DescribeInstanceShardsRequest
* @return DescribeInstanceShardsResponse
* @throws TencentCloudSDKException
*/
public DescribeInstanceShardsResponse DescribeInstanceShards(DescribeInstanceShardsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeInstanceShardsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeInstanceShardsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeInstanceShards");
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 RedisClient method AssociateSecurityGroups.
/**
*This API is used to associate a security group with instances in batches.
* @param req AssociateSecurityGroupsRequest
* @return AssociateSecurityGroupsResponse
* @throws TencentCloudSDKException
*/
public AssociateSecurityGroupsResponse AssociateSecurityGroups(AssociateSecurityGroupsRequest req) throws TencentCloudSDKException {
JsonResponseModel<AssociateSecurityGroupsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<AssociateSecurityGroupsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "AssociateSecurityGroups");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations