use of com.tencentcloudapi.common.JsonResponseModel in project tencentcloud-sdk-java-intl-en by TencentCloud.
the class TdmqClient method DescribeEnvironments.
/**
*This API is used to get the list of namespaces under a tenant.
* @param req DescribeEnvironmentsRequest
* @return DescribeEnvironmentsResponse
* @throws TencentCloudSDKException
*/
public DescribeEnvironmentsResponse DescribeEnvironments(DescribeEnvironmentsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeEnvironmentsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeEnvironmentsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeEnvironments");
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 TdmqClient method DeleteSubscriptions.
/**
*This API is used to delete a subscription.
* @param req DeleteSubscriptionsRequest
* @return DeleteSubscriptionsResponse
* @throws TencentCloudSDKException
*/
public DeleteSubscriptionsResponse DeleteSubscriptions(DeleteSubscriptionsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeleteSubscriptionsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeleteSubscriptionsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeleteSubscriptions");
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 TcaplusdbClient method DescribeApplications.
/**
*This API is used to query the list of cluster operation applications.
* @param req DescribeApplicationsRequest
* @return DescribeApplicationsResponse
* @throws TencentCloudSDKException
*/
public DescribeApplicationsResponse DescribeApplications(DescribeApplicationsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DescribeApplicationsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DescribeApplicationsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DescribeApplications");
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 VpcClient method DisassociateNetworkAclSubnets.
/**
*This API is used to disassociate a network ACL from subnets in a VPC instance.
* @param req DisassociateNetworkAclSubnetsRequest
* @return DisassociateNetworkAclSubnetsResponse
* @throws TencentCloudSDKException
*/
public DisassociateNetworkAclSubnetsResponse DisassociateNetworkAclSubnets(DisassociateNetworkAclSubnetsRequest req) throws TencentCloudSDKException {
JsonResponseModel<DisassociateNetworkAclSubnetsResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DisassociateNetworkAclSubnetsResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DisassociateNetworkAclSubnets");
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 VpcClient method DeleteNatGatewayDestinationIpPortTranslationNatRule.
/**
*This API (DeleteNatGatewayDestinationIpPortTranslationNatRule) is used to delete a port forwarding rule for a NAT gateway.
* @param req DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest
* @return DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse
* @throws TencentCloudSDKException
*/
public DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse DeleteNatGatewayDestinationIpPortTranslationNatRule(DeleteNatGatewayDestinationIpPortTranslationNatRuleRequest req) throws TencentCloudSDKException {
JsonResponseModel<DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse> rsp = null;
String rspStr = "";
try {
Type type = new TypeToken<JsonResponseModel<DeleteNatGatewayDestinationIpPortTranslationNatRuleResponse>>() {
}.getType();
rspStr = this.internalRequest(req, "DeleteNatGatewayDestinationIpPortTranslationNatRule");
rsp = gson.fromJson(rspStr, type);
} catch (JsonSyntaxException e) {
throw new TencentCloudSDKException("response message: " + rspStr + ".\n Error message: " + e.getMessage());
}
return rsp.response;
}
Aggregations