From a44b7ff72206a454982a4512258821151bba3119 Mon Sep 17 00:00:00 2001 From: lewzylu Date: Wed, 6 Jan 2021 15:31:11 +0800 Subject: [PATCH 1/2] update to 2.1.2 --- CHANGELOG.md | 4 ++ src/Qcloud/Cos/Client.php | 2 +- src/Qcloud/Cos/Service.php | 93 +++++++++++++++++++++++++++++++++++++- 3 files changed, 97 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d05d22a1..8acfa413 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ cos-php-sdk-v5 Upgrade Guide ==================== +2.1.1 to 2.1.2 +---------- +- The interface supports custom parameters +- Fix `ListBucketInventoryConfigurations` 2.1.0 to 2.1.1 ---------- diff --git a/src/Qcloud/Cos/Client.php b/src/Qcloud/Cos/Client.php index 85a763ad..77d94bc6 100644 --- a/src/Qcloud/Cos/Client.php +++ b/src/Qcloud/Cos/Client.php @@ -75,7 +75,7 @@ * @method object SelectObjectContent (array $arg) */ class Client extends GuzzleClient { - const VERSION = '2.1.1'; + const VERSION = '2.1.2'; public $httpClient; diff --git a/src/Qcloud/Cos/Service.php b/src/Qcloud/Cos/Service.php index 484fea55..78ef802a 100644 --- a/src/Qcloud/Cos/Service.php +++ b/src/Qcloud/Cos/Service.php @@ -4630,7 +4630,7 @@ public static function getService() { 'location' => 'header', 'sentAs' => 'x-cos-request-id', ), - ), + ), ), 'ListMultipartUploadsOutput' => array( 'type' => 'object', @@ -4744,6 +4744,97 @@ public static function getService() { ), ), ), + 'ListBucketInventoryConfigurationsOutput' => array( + 'type' => 'object', + 'additionalProperties' => true, + 'properties' => array( + 'InventoryConfiguration' => array( + 'type' => 'array', + 'location' => 'xml', + 'sentAs' => 'InventoryConfiguration', + 'items' => array( + 'type' => 'object', + 'properties' => array( + 'Destination' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'COSBucketDestination' => array( + 'type' => 'object', + 'properties' => array( + 'Format' => array( + 'type' => 'string', + ), + 'AccountId' => array( + 'type' => 'string', + ), + 'Bucket' => array( + 'type' => 'string', + ), + 'Prefix' => array( + 'type' => 'string', + ), + 'Encryption' => array( + 'type' => 'object', + 'properties' => array( + 'SSE-COS' => array( + 'type' => 'string', + ) + ) + ), + + ), + ), + ), + ), + 'Schedule' => array( + 'type' => 'object', + 'location' => 'xml', + 'properties' => array( + 'Frequency' => array( + 'type' => 'string', + ), + ), + ), + 'OptionalFields' => array( + 'type' => 'array', + 'location' => 'xml', + 'properties' => array( + 'Key' => array( + 'type' => 'string', + ), + ), + ), + 'OptionalFields' => array( + 'type' => 'array', + 'location' => 'xml', + 'items' => array( + 'name' => 'Field', + 'type' => 'string', + 'sentAs' => 'Field', + ), + ), + 'IsEnabled' => array( + 'type' => 'string', + 'location' => 'xml', + ), + 'Id' => array( + 'type' => 'string', + 'location' => 'xml', + ), + 'IncludedObjectVersions' => array( + 'type' => 'string', + 'location' => 'xml', + ), + 'RequestId' => array( + 'location' => 'header', + 'sentAs' => 'x-cos-request-id', + ), + ), + ), + ), + ), + ), 'HeadObjectOutput' => array( 'type' => 'object', 'additionalProperties' => true, From 9a523ed6b2b3d79002a23cadbffad785cb32d5bc Mon Sep 17 00:00:00 2001 From: lewzylu Date: Wed, 6 Jan 2021 15:35:44 +0800 Subject: [PATCH 2/2] update service --- src/Qcloud/Cos/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Qcloud/Cos/Service.php b/src/Qcloud/Cos/Service.php index 78ef802a..afb1a400 100644 --- a/src/Qcloud/Cos/Service.php +++ b/src/Qcloud/Cos/Service.php @@ -4630,7 +4630,7 @@ public static function getService() { 'location' => 'header', 'sentAs' => 'x-cos-request-id', ), - ), + ), ), 'ListMultipartUploadsOutput' => array( 'type' => 'object',