Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sample/createFileUncompressJobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'secretId' => $secretId,
'secretKey' => $secretKey)));
try {
// https://cloud.tencent.com/document/product/436/83110 提交文件解压任务-异步
// 提交文件解压任务-异步
$result = $cosClient->createFileUncompressJobs(array(
'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Tag' => 'FileUncompress',
Expand All @@ -25,6 +25,8 @@
'FileUncompressConfig' => array(
'Prefix' => 'prefix',
'PrefixReplaced' => '1',
// 'UnCompressKey' => base64_encode('解压密钥'), // 解压密钥,传入时需先经过 base64编码
// 'ListingFile' => false, // 指定查询任务或查看任务回调时,是否输出已解压的文件列表
),
'Output' => array(
'Region' => $region,
Expand Down
2 changes: 1 addition & 1 deletion sample/getFileUncompressResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
'secretId' => $secretId,
'secretKey' => $secretKey)));
try {
// https://cloud.tencent.com/document/product/436/83111 查询文件解压结果
// 查询文件解压结果
$result = $cosClient->getFileUncompressResult(array(
'Bucket' => 'examplebucket-125000000', //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.cloud.tencent.com/cos5/bucket
'Key' => '', // jobId
Expand Down
26 changes: 26 additions & 0 deletions src/Descriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13905,6 +13905,8 @@ public static function CreateFileUncompressJobs() {
'properties' => array(
'Prefix' => array( 'type' => 'string', 'location' => 'xml', ),
'PrefixReplaced' => array( 'type' => 'string', 'location' => 'xml', ),
'UnCompressKey' => array( 'type' => 'string', 'location' => 'xml', ),
'ListingFile' => array( 'type' => 'boolean', 'location' => 'xml', 'format' => 'boolean-string',),
),
),
'Output' => array(
Expand Down Expand Up @@ -14061,6 +14063,7 @@ public static function GetFileUncompressResultOutput() {
'JobId' => array( 'type' => 'string', 'location' => 'xml', ),
'Tag' => array( 'type' => 'string', 'location' => 'xml', ),
'State' => array( 'type' => 'string', 'location' => 'xml', ),
'Progress' => array( 'type' => 'integer', 'location' => 'xml', ),
'CreationTime' => array( 'type' => 'string', 'location' => 'xml', ),
'StartTime' => array( 'type' => 'string', 'location' => 'xml', ),
'EndTime' => array( 'type' => 'string', 'location' => 'xml', ),
Expand All @@ -14085,6 +14088,7 @@ public static function GetFileUncompressResultOutput() {
'properties' => array(
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
'Object' => array( 'type' => 'string', 'location' => 'xml', ),
),
),
'FileUncompressConfig' => array(
Expand All @@ -14093,6 +14097,8 @@ public static function GetFileUncompressResultOutput() {
'properties' => array(
'Prefix' => array( 'type' => 'string', 'location' => 'xml', ),
'PrefixReplaced' => array( 'type' => 'string', 'location' => 'xml', ),
'UnCompressKey' => array( 'type' => 'string', 'location' => 'xml', ),
'ListingFile' => array( 'type' => 'boolean', 'location' => 'xml', ),
),
),
'FileUncompressResult' => array(
Expand All @@ -14102,6 +14108,26 @@ public static function GetFileUncompressResultOutput() {
'Region' => array( 'type' => 'string', 'location' => 'xml', ),
'Bucket' => array( 'type' => 'string', 'location' => 'xml', ),
'FileCount' => array( 'type' => 'string', 'location' => 'xml', ),
'FileList' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'IsTruncated' => array( 'type' => 'boolean', 'location' => 'xml', ),
'Contents' => array(
'type' => 'array',
'location' => 'xml',
'items' => array(
'type' => 'object',
'location' => 'xml',
'properties' => array(
'Key' => array( 'type' => 'string', 'location' => 'xml', ),
'LastModified' => array( 'type' => 'string', 'location' => 'xml', ),
'FileSize' => array( 'type' => 'integer', 'location' => 'xml', ),
),
),
),
),
),
),
),
),
Expand Down
2 changes: 1 addition & 1 deletion src/ImageParamTemplate/ImageSlimTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ class ImageSlimTemplate extends ImageTemplate {
public function queryString() {
return "imageSlim";
}
}
}
Loading