Search in sources :

Example 61 with COSClient

use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.

the class DocBucketDemo method main.

public static void main(String[] args) {
    // 1 初始化用户身份信息(secretId, secretKey)。
    COSClient client = ClientUtils.getTestClient();
    // 2 调用要使用的方法。
    describeDocProcessBuckets(client);
}
Also used : COSClient(com.qcloud.cos.COSClient)

Example 62 with COSClient

use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.

the class AudioAuditingJobDemo method main.

public static void main(String[] args) throws InterruptedException {
    // 1 初始化用户身份信息(secretId, secretKey)。
    COSClient client = ClientUtils.getTestClient();
    // 2 调用要使用的方法。
    describeAudioAuditingJob(client);
}
Also used : COSClient(com.qcloud.cos.COSClient)

Example 63 with COSClient

use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.

the class SnapshotDemo method main.

public static void main(String[] args) throws Exception {
    // 1 初始化用户身份信息(secretId, secretKey)。
    COSClient client = ClientUtils.getTestClient();
    // 2 调用要使用的方法。
    generateSnapshot(client);
}
Also used : COSClient(com.qcloud.cos.COSClient)

Example 64 with COSClient

use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.

the class TextAuditingJobDemo method main.

public static void main(String[] args) {
    // 1 初始化用户身份信息(secretId, secretKey)。
    COSClient client = ClientUtils.getTestClient();
    // 2 调用要使用的方法。
    createAuditingTextJobs(client);
}
Also used : COSClient(com.qcloud.cos.COSClient)

Example 65 with COSClient

use of com.qcloud.cos.COSClient in project cos-java-sdk-v5 by tencentyun.

the class VideoAuditingJobDemo method main.

public static void main(String[] args) throws InterruptedException {
    // 1 初始化用户身份信息(secretId, secretKey)。
    COSClient client = ClientUtils.getTestClient();
    // 2 调用要使用的方法。
    describeAuditingJob(client);
}
Also used : COSClient(com.qcloud.cos.COSClient)

Aggregations

COSClient (com.qcloud.cos.COSClient)142 ClientConfig (com.qcloud.cos.ClientConfig)103 Region (com.qcloud.cos.region.Region)99 COSCredentials (com.qcloud.cos.auth.COSCredentials)96 BasicCOSCredentials (com.qcloud.cos.auth.BasicCOSCredentials)93 CosClientException (com.qcloud.cos.exception.CosClientException)38 CosServiceException (com.qcloud.cos.exception.CosServiceException)38 File (java.io.File)22 ObjectMetadata (com.qcloud.cos.model.ObjectMetadata)15 PutObjectResult (com.qcloud.cos.model.PutObjectResult)14 PutObjectRequest (com.qcloud.cos.model.PutObjectRequest)13 TransferManager (com.qcloud.cos.transfer.TransferManager)13 ExecutorService (java.util.concurrent.ExecutorService)13 AnonymousCOSCredentials (com.qcloud.cos.auth.AnonymousCOSCredentials)7 CopyObjectRequest (com.qcloud.cos.model.CopyObjectRequest)7 LinkedList (java.util.LinkedList)7 GetObjectRequest (com.qcloud.cos.model.GetObjectRequest)6 URL (java.net.URL)6 FileOperationException (run.halo.app.exception.FileOperationException)6 Date (java.util.Date)5