Skip to content

Commit ba21074

Browse files
nic12347franktguo
and
franktguo
authored
Pic add 1105 (#340)
* ImageSlim * 文件解压参数补充 --------- Co-authored-by: franktguo <[email protected]>
1 parent b6549a2 commit ba21074

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

sample/createFileUncompressJobs.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'secretId' => $secretId,
1414
'secretKey' => $secretKey)));
1515
try {
16-
// https://cloud.tencent.com/document/product/436/83110 提交文件解压任务-异步
16+
// 提交文件解压任务-异步
1717
$result = $cosClient->createFileUncompressJobs(array(
1818
'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
1919
'Tag' => 'FileUncompress',
@@ -25,6 +25,8 @@
2525
'FileUncompressConfig' => array(
2626
'Prefix' => 'prefix',
2727
'PrefixReplaced' => '1',
28+
// 'UnCompressKey' => base64_encode('解压密钥'), // 解压密钥,传入时需先经过 base64编码
29+
// 'ListingFile' => false, // 指定查询任务或查看任务回调时,是否输出已解压的文件列表
2830
),
2931
'Output' => array(
3032
'Region' => $region,

sample/getFileUncompressResult.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'secretId' => $secretId,
1414
'secretKey' => $secretKey)));
1515
try {
16-
// https://cloud.tencent.com/document/product/436/83111 查询文件解压结果
16+
// 查询文件解压结果
1717
$result = $cosClient->getFileUncompressResult(array(
1818
'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
1919
'Key' => '', // jobId

src/Descriptions.php

+26
Original file line numberDiff line numberDiff line change
@@ -13905,6 +13905,8 @@ public static function CreateFileUncompressJobs() {
1390513905
'properties' => array(
1390613906
'Prefix' => array( 'type' => 'string', 'location' => 'xml', ),
1390713907
'PrefixReplaced' => array( 'type' => 'string', 'location' => 'xml', ),
13908+
'UnCompressKey' => array( 'type' => 'string', 'location' => 'xml', ),
13909+
'ListingFile' => array( 'type' => 'boolean', 'location' => 'xml', 'format' => 'boolean-string',),
1390813910
),
1390913911
),
1391013912
'Output' => array(
@@ -14061,6 +14063,7 @@ public static function GetFileUncompressResultOutput() {
1406114063
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
1406214064
'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
1406314065
'State' => array( 'type' => 'string', 'location' => 'xml', ),
14066+
'Progress' => array( 'type' => 'integer', 'location' => 'xml', ),
1406414067
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
1406514068
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
1406614069
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
@@ -14085,6 +14088,7 @@ public static function GetFileUncompressResultOutput() {
1408514088
'properties' => array(
1408614089
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
1408714090
'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
14091+
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
1408814092
),
1408914093
),
1409014094
'FileUncompressConfig' => array(
@@ -14093,6 +14097,8 @@ public static function GetFileUncompressResultOutput() {
1409314097
'properties' => array(
1409414098
'Prefix' => array( 'type' => 'string', 'location' => 'xml', ),
1409514099
'PrefixReplaced' => array( 'type' => 'string', 'location' => 'xml', ),
14100+
'UnCompressKey' => array( 'type' => 'string', 'location' => 'xml', ),
14101+
'ListingFile' => array( 'type' => 'boolean', 'location' => 'xml', ),
1409614102
),
1409714103
),
1409814104
'FileUncompressResult' => array(
@@ -14102,6 +14108,26 @@ public static function GetFileUncompressResultOutput() {
1410214108
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
1410314109
'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
1410414110
'FileCount' => array( 'type' => 'string', 'location' => 'xml', ),
14111+
'FileList' => array(
14112+
'type' => 'object',
14113+
'location' => 'xml',
14114+
'properties' => array(
14115+
'IsTruncated' => array( 'type' => 'boolean', 'location' => 'xml', ),
14116+
'Contents' => array(
14117+
'type' => 'array',
14118+
'location' => 'xml',
14119+
'items' => array(
14120+
'type' => 'object',
14121+
'location' => 'xml',
14122+
'properties' => array(
14123+
'Key' => array( 'type' => 'string', 'location' => 'xml', ),
14124+
'LastModified' => array( 'type' => 'string', 'location' => 'xml', ),
14125+
'FileSize' => array( 'type' => 'integer', 'location' => 'xml', ),
14126+
),
14127+
),
14128+
),
14129+
),
14130+
),
1410514131
),
1410614132
),
1410714133
),

src/ImageParamTemplate/ImageSlimTemplate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ class ImageSlimTemplate extends ImageTemplate {
55
public function queryString() {
66
return "imageSlim";
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)