Skip to content

Commit 3c7a081

Browse files
authored
Standardize the Buckets return value in ListBuckets (#325)
* Standardize the `Buckets` return value in `ListBuckets`
1 parent f66660e commit 3c7a081

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

src/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* @method object PutObject(array $args) 上传对象
5252
* @method object AppendObject(array $args) 追加对象
5353
* @method object PutObjectAcl(array $args) 设置 COS 对象的访问权限信息(Access Control List, ACL)
54-
* @method object PutBucketAcl(array $args) 设置存储桶(Bucket)的访问权限Access Control List, ACL)
54+
* @method object PutBucketAcl(array $args) 设置存储桶(Bucket)的访问权限 (Access Control List, ACL)
5555
* @method object PutBucketCors(array $args) 设置存储桶(Bucket)的跨域配置信息
5656
* @method object PutBucketDomain(array $args) 设置存储桶(Bucket)的Domain信息
5757
* @method object PutBucketLifecycle(array $args) 设置存储桶(Bucket)生命周期配置
@@ -239,7 +239,7 @@ class Client extends GuzzleClient {
239239
const VERSION = '2.6.6';
240240

241241
public $httpClient;
242-
242+
243243
private $api;
244244
private $desc;
245245
private $action;

src/Service.php

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,7 +1562,7 @@ public static function getService() {
15621562
),
15631563
)
15641564
),
1565-
// 设置存储桶(Bucket)的访问权限Access Control List, ACL)
1565+
// 设置存储桶(Bucket)的访问权限 (Access Control List, ACL)
15661566
'PutBucketAcl' => array(
15671567
'httpMethod' => 'PUT',
15681568
'uri' => '/{Bucket}?acl',
@@ -5621,11 +5621,21 @@ public static function getService() {
56215621
'items' => array(
56225622
'type' => 'object',
56235623
'properties' => array(
5624-
'Name' => array(
5625-
'type' => 'string',
5626-
),
5627-
'CreationDate' => array(
5628-
'type' => 'string',
5624+
'Bucket' => array(
5625+
'type' => 'array',
5626+
'items' => array(
5627+
'type' => 'object',
5628+
'items' => array(
5629+
'properties' => array(
5630+
'Name' => array(
5631+
'type' => 'string',
5632+
),
5633+
'CreationDate' => array(
5634+
'type' => 'string',
5635+
),
5636+
),
5637+
),
5638+
)
56295639
),
56305640
),
56315641
),

0 commit comments

Comments
 (0)