Search in sources :

Example 1 with DeleteMediaResponse

use of com.tencentcloudapi.vod.v20180717.models.DeleteMediaResponse in project cloud-sdk by mizhousoft.

the class QCloudVODServiceImpl method deleteVideo.

/**
 * {@inheritDoc}
 */
@Override
public void deleteVideo(String fileId) throws CloudSDKException {
    try {
        DeleteMediaRequest req = new DeleteMediaRequest();
        req.setFileId(fileId);
        DeleteMediaResponse resp = vodClient.DeleteMedia(req);
        LOG.info("Delete video successfully. requestid is {}.", resp.getRequestId());
    } catch (TencentCloudSDKException e) {
        throw new CloudSDKException(e.getErrorCode(), e.getMessage(), e);
    }
}
Also used : CloudSDKException(com.mizhousoft.cloudsdk.CloudSDKException) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) DeleteMediaRequest(com.tencentcloudapi.vod.v20180717.models.DeleteMediaRequest) TencentCloudSDKException(com.tencentcloudapi.common.exception.TencentCloudSDKException) DeleteMediaResponse(com.tencentcloudapi.vod.v20180717.models.DeleteMediaResponse)

Aggregations

CloudSDKException (com.mizhousoft.cloudsdk.CloudSDKException)1 TencentCloudSDKException (com.tencentcloudapi.common.exception.TencentCloudSDKException)1 DeleteMediaRequest (com.tencentcloudapi.vod.v20180717.models.DeleteMediaRequest)1 DeleteMediaResponse (com.tencentcloudapi.vod.v20180717.models.DeleteMediaResponse)1