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..afb1a400 100644 --- a/src/Qcloud/Cos/Service.php +++ b/src/Qcloud/Cos/Service.php @@ -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,