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 {
230230 this . cosClient . putBucketLifecycle . bind ( this . cosClient )
231231 )
232232 try {
233- await setLifecycleHandler ( setLifecycleParams )
233+ await setLifecycleHandler ( JSON . parse ( JSON . stringify ( setLifecycleParams ) ) )
234234 } catch ( e ) {
235235 throw new Error ( JSON . stringify ( e ) )
236236 }
Original file line number Diff line number Diff line change @@ -18,7 +18,16 @@ class ClientTest {
1818 key : 'test' ,
1919 value : 'abcd'
2020 }
21- ]
21+ ] ,
22+ rules : [
23+ {
24+ status : 'Enabled' ,
25+ id : 'deleteObject' ,
26+ filter : '' ,
27+ expiration : { days : '10' } ,
28+ abortIncompleteMultipartUpload : { daysAfterInitiation : '10' }
29+ }
30+ ] ,
2231 }
2332 const result = await cos . deploy ( cosDemo )
2433 console . log ( JSON . stringify ( result ) )
You can’t perform that action at this time.
0 commit comments