use of com.tencentcloudapi.common.exception.TencentCloudSDKException in project tencentcloud-sdk-java by TencentCloud.
the class CwpClient method CloseProVersion.
/**
*本接口 (CloseProVersion) 用于关闭专业版。
* @param req CloseProVersionRequest
* @return CloseProVersionResponse
* @throws TencentCloudSDKException
*/
public CloseProVersionResponse CloseProVersion(CloseProVersionRequest req) throws TencentCloudSDKException {
JsonResponseModel<CloseProVersionResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<CloseProVersionResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "CloseProVersion");
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 by TencentCloud.
the class CwpClient method OpenProVersion.
/**
*本接口 (OpenProVersion) 用于开通专业版。
* @param req OpenProVersionRequest
* @return OpenProVersionResponse
* @throws TencentCloudSDKException
*/
public OpenProVersionResponse OpenProVersion(OpenProVersionRequest req) throws TencentCloudSDKException {
JsonResponseModel<OpenProVersionResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<OpenProVersionResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "OpenProVersion");
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 by TencentCloud.
the class CwpClient method OpenProVersionPrepaid.
/**
*本接口 (OpenProVersionPrepaid) 用于开通专业版(包年包月)。
* @param req OpenProVersionPrepaidRequest
* @return OpenProVersionPrepaidResponse
* @throws TencentCloudSDKException
*/
public OpenProVersionPrepaidResponse OpenProVersionPrepaid(OpenProVersionPrepaidRequest req) throws TencentCloudSDKException {
JsonResponseModel<OpenProVersionPrepaidResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<OpenProVersionPrepaidResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "OpenProVersionPrepaid");
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 by TencentCloud.
the class CwpClient method ModifyProVersionRenewFlag.
/**
*本接口 (ModifyProVersionRenewFlag) 用于修改专业版包年包月续费标识。
* @param req ModifyProVersionRenewFlagRequest
* @return ModifyProVersionRenewFlagResponse
* @throws TencentCloudSDKException
*/
public ModifyProVersionRenewFlagResponse ModifyProVersionRenewFlag(ModifyProVersionRenewFlagRequest req) throws TencentCloudSDKException {
JsonResponseModel<ModifyProVersionRenewFlagResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<ModifyProVersionRenewFlagResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "ModifyProVersionRenewFlag");
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 by TencentCloud.
the class TsfClient method DescribeServerlessGroup.
/**
*查询Serverless部署组明细
* @param req DescribeServerlessGroupRequest
* @return DescribeServerlessGroupResponse
* @throws TencentCloudSDKException
*/
public DescribeServerlessGroupResponse DescribeServerlessGroup(DescribeServerlessGroupRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeServerlessGroupResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeServerlessGroupResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeServerlessGroup");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations