File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ class Cos {
230
230
this . cosClient . putBucketLifecycle . bind ( this . cosClient )
231
231
)
232
232
try {
233
- await setLifecycleHandler ( setLifecycleParams )
233
+ await setLifecycleHandler ( JSON . parse ( JSON . stringify ( setLifecycleParams ) ) )
234
234
} catch ( e ) {
235
235
throw new Error ( JSON . stringify ( e ) )
236
236
}
Original file line number Diff line number Diff line change @@ -18,7 +18,16 @@ class ClientTest {
18
18
key : 'test' ,
19
19
value : 'abcd'
20
20
}
21
- ]
21
+ ] ,
22
+ rules : [
23
+ {
24
+ status : 'Enabled' ,
25
+ id : 'deleteObject' ,
26
+ filter : '' ,
27
+ expiration : { days : '10' } ,
28
+ abortIncompleteMultipartUpload : { daysAfterInitiation : '10' }
29
+ }
30
+ ] ,
22
31
}
23
32
const result = await cos . deploy ( cosDemo )
24
33
console . log ( JSON . stringify ( result ) )
You can’t perform that action at this time.
0 commit comments