Skip to content

Commit 60a7c4e

Browse files
author
jeffreykzli
committed
update appid
1 parent 9625edb commit 60a7c4e

35 files changed

+78
-78
lines changed

src/main/java/com/qcloud/cos/demo/AppendObjectDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void appendObjectFromLocal() {
2222
// 3 生成cos客户端
2323
COSClient cosclient = new COSClient(cred, clientConfig);
2424
// bucket名需包含appid
25-
String bucketName = "mybucket-1251668577";
25+
String bucketName = "mybucket-12500000000";
2626
String key = "aaa/bbb.txt";
2727
try {
2828
File localFile = new File("1M.txt");

src/main/java/com/qcloud/cos/demo/AsymmetricKeyEncryptionClientDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public class AsymmetricKeyEncryptionClientDemo {
4141
private static final String priKeyPath = "pri.key";
4242
private static final SecureRandom srand = new SecureRandom();
4343

44-
static String bucketName = "mybucket-1251668577";
44+
static String bucketName = "mybucket-12500000000";
4545
static String key = "testKMS/asy.txt";
4646
static File localFile = new File("len1m.txt");
4747

src/main/java/com/qcloud/cos/demo/BucketCertificateDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void putGetDeleteBucketCertificate() {
2727
// 2 设置bucket的区域, COS地域的简称请参照 https://www.qcloud.com/document/product/436/6224
2828
ClientConfig clientConfig = new ClientConfig(new Region("ap-beijing"));
2929
// bucket名需包含appid
30-
String bucketName = "mybucket-1251668577";
30+
String bucketName = "mybucket-12500000000";
3131

3232
BucketPutDomainCertificate bucketPutDomainCertificate = new BucketPutDomainCertificate();
3333
BucketDomainCertificateInfo bucketDomainCertificateInfo = new BucketDomainCertificateInfo();

src/main/java/com/qcloud/cos/demo/BucketDemo.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static void createBucketDemo() {
3535
// 3 生成cos客户端
3636
COSClient cosclient = new COSClient(cred, clientConfig);
3737
// bucket名称, 需包含appid
38-
String bucketName = "publicreadbucket-1251668577";
38+
String bucketName = "publicreadbucket-12500000000";
3939

4040
CreateBucketRequest createBucketRequest = new CreateBucketRequest(bucketName);
4141
// 设置bucket的权限为PublicRead(公有读私有写), 其他可选有私有读写, 公有读私有写
@@ -55,7 +55,7 @@ public static void setBucketVersioning() {
5555
// 3 生成cos客户端
5656
COSClient cosclient = new COSClient(cred, clientConfig);
5757
// bucket名称, 需包含appid
58-
String bucketName = "examplebucket-1251668577";
58+
String bucketName = "examplebucket-12500000000";
5959

6060
// 开启版本控制
6161
BucketVersioningConfiguration bucketVersioningConfiguration = new BucketVersioningConfiguration(BucketVersioningConfiguration.ENABLED);
@@ -76,7 +76,7 @@ public static void setBucketLogging() {
7676
// 3 生成cos客户端
7777
COSClient cosclient = new COSClient(cred, clientConfig);
7878
// bucket名称, 需包含appid
79-
String bucketName = "examplebucket-1251668577";
79+
String bucketName = "examplebucket-12500000000";
8080

8181
BucketLoggingConfiguration bucketLoggingConfiguration = new BucketLoggingConfiguration();
8282
// 设置日志存储的 bucket
@@ -97,7 +97,7 @@ public static void setGetDeleteBucketTagging() {
9797
// 3 生成cos客户端
9898
COSClient cosclient = new COSClient(cred, clientConfig);
9999
// bucket名需包含appid
100-
String bucketName = "mybucket-1251668577";
100+
String bucketName = "mybucket-12500000000";
101101
List<TagSet> tagSetList = new LinkedList<TagSet>();
102102
TagSet tagSet = new TagSet();
103103
tagSet.setTag("age", "18");
@@ -122,7 +122,7 @@ public static void deleteBucketDemo() {
122122
// 3 生成cos客户端
123123
COSClient cosclient = new COSClient(cred, clientConfig);
124124
// bucket名称, 需包含appid
125-
String bucketName = "publicreadbucket-1251668577";
125+
String bucketName = "publicreadbucket-12500000000";
126126
// 删除bucket
127127
cosclient.deleteBucket(bucketName);
128128

@@ -139,7 +139,7 @@ public static void judgeBucketExistDemo() {
139139
// 3 生成cos客户端
140140
COSClient cosclient = new COSClient(cred, clientConfig);
141141

142-
String bucketName = "publicreadbucket-1251668577";
142+
String bucketName = "publicreadbucket-12500000000";
143143
// 判断bucket是否存在
144144
cosclient.doesBucketExist(bucketName);
145145

@@ -175,7 +175,7 @@ public static void createMAZBucketDemo() {
175175
// 3 生成cos客户端
176176
COSClient cosclient = new COSClient(cred, clientConfig);
177177

178-
String bucketname = "publicreadbucket-1251668577";
178+
String bucketname = "publicreadbucket-12500000000";
179179
CreateBucketRequest createBucketRequest = new CreateBucketRequest(bucketname);
180180

181181
try {

src/main/java/com/qcloud/cos/demo/BucketDomainDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void setGetDeleteBucketDomainDemo() {
1717
// 3 生成cos客户端
1818
COSClient cosclient = new COSClient(cred, clientConfig);
1919
// bucket名需包含appid
20-
String bucketName = "mybucket-1251668577";
20+
String bucketName = "mybucket-12500000000";
2121
BucketDomainConfiguration bucketDomainConfiguration = new BucketDomainConfiguration();
2222
DomainRule domainRule = new DomainRule();
2323
domainRule.setStatus(DomainRule.ENABLED);

src/main/java/com/qcloud/cos/demo/BucketIntelligentTierDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void main(String[] args) {
1818
// 3 生成cos客户端
1919
COSClient cosclient = new COSClient(cred, clientConfig);
2020
// bucket名需包含appid
21-
String bucketName = "mybucket-1251668577";
21+
String bucketName = "mybucket-12500000000";
2222

2323
BucketIntelligentTierConfiguration bucketIntelligentTierConfiguration = new BucketIntelligentTierConfiguration();
2424
bucketIntelligentTierConfiguration.setStatus(BucketIntelligentTierConfiguration.ENABLED);

src/main/java/com/qcloud/cos/demo/BucketInventoryDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ public static void setGetDeleteBucketInventoryDemo() {
2121
// 3 生成cos客户端
2222
COSClient cosclient = new COSClient(cred, clientConfig);
2323
// bucket名需包含appid
24-
String bucketName = "mybucket-1251668577";
24+
String bucketName = "mybucket-12500000000";
2525

2626
InventoryConfiguration inventoryConfiguration = new InventoryConfiguration();
2727
InventoryCosBucketDestination inventoryCosBucketDestination = new InventoryCosBucketDestination();
2828
// 设置清单的输出目标存储桶的格式和前缀等
2929
inventoryCosBucketDestination.setAccountId("2779643970");
30-
inventoryCosBucketDestination.setBucketArn("qcs::cos:ap-guangzhou::mybucket-1251668577");
30+
inventoryCosBucketDestination.setBucketArn("qcs::cos:ap-guangzhou::mybucket-12500000000");
3131
inventoryCosBucketDestination.setEncryption(new ServerSideEncryptionCOS());
3232
inventoryCosBucketDestination.setFormat(InventoryFormat.CSV);
3333
inventoryCosBucketDestination.setPrefix("inventory-output");
@@ -81,7 +81,7 @@ public static void setBucketInventoryDemo() {
8181
// 3 生成cos客户端
8282
COSClient cosclient = new COSClient(cred, clientConfig);
8383
// bucket名需包含appid
84-
String bucketName = "mybucket-1251668577";
84+
String bucketName = "mybucket-12500000000";
8585

8686
SetBucketInventoryConfigurationRequest request = new SetBucketInventoryConfigurationRequest();
8787
request.setBucketName(bucketName);
@@ -100,7 +100,7 @@ public static void setBucketInventoryDemo() {
100100
"<Destination>\n" +
101101
"<COSBucketDestination>\n" +
102102
"<AccountId>2779643970</AccountId>\n" +
103-
"<Bucket>qcs::cos:ap-guangzhou::mybucket-1251668577</Bucket>\n" +
103+
"<Bucket>qcs::cos:ap-guangzhou::mybucket-12500000000</Bucket>\n" +
104104
"<Prefix>inventory-output</Prefix>\n" +
105105
"<Format>CSV</Format>\n" +
106106
"<Encryption><SSECOS></SSECOS></Encryption>\n" +

src/main/java/com/qcloud/cos/demo/BucketLifecycleDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
public class BucketLifecycleDemo {
20-
public String bucketName = "example-1251668577";
20+
public String bucketName = "example-12500000000";
2121
public COSClient cosClient = COSBuilder();
2222

2323
public COSClient COSBuilder() {

src/main/java/com/qcloud/cos/demo/BucketLoggingDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void setGetBucketLoggingDemo() {
1616
// 3 生成cos客户端
1717
COSClient cosclient = new COSClient(cred, clientConfig);
1818
// bucket名需包含appid
19-
String bucketName = "mybucket-1251668577";
19+
String bucketName = "mybucket-12500000000";
2020
BucketLoggingConfiguration bucketLoggingConfiguration = new BucketLoggingConfiguration();
2121
bucketLoggingConfiguration.setDestinationBucketName(bucketName);
2222
bucketLoggingConfiguration.setLogFilePrefix("logs");

src/main/java/com/qcloud/cos/demo/BucketRefererDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class BucketRefererDemo {
1111
public static COSClient cosClient = null;
1212
// bucket名需包含appid
13-
public static String bucketName = "examplebucket-1251668577";
13+
public static String bucketName = "examplebucket-12500000000";
1414

1515
public static void createCosClient() {
1616
// 1 初始化用户身份信息(secretId, secretKey)

0 commit comments

Comments
 (0)