Skip to content

Commit

Permalink
Standardize the Buckets return value in ListBuckets (#325)
Browse files Browse the repository at this point in the history
* Standardize the `Buckets` return value in `ListBuckets`
  • Loading branch information
sy-records authored Oct 9, 2023
1 parent f66660e commit 3c7a081
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* @method object PutObject(array $args) 上传对象
* @method object AppendObject(array $args) 追加对象
* @method object PutObjectAcl(array $args) 设置 COS 对象的访问权限信息(Access Control List, ACL)
* @method object PutBucketAcl(array $args) 设置存储桶(Bucket)的访问权限Access Control List, ACL)
* @method object PutBucketAcl(array $args) 设置存储桶(Bucket)的访问权限 (Access Control List, ACL)
* @method object PutBucketCors(array $args) 设置存储桶(Bucket)的跨域配置信息
* @method object PutBucketDomain(array $args) 设置存储桶(Bucket)的Domain信息
* @method object PutBucketLifecycle(array $args) 设置存储桶(Bucket)生命周期配置
Expand Down Expand Up @@ -239,7 +239,7 @@ class Client extends GuzzleClient {
const VERSION = '2.6.6';

public $httpClient;

private $api;
private $desc;
private $action;
Expand Down
22 changes: 16 additions & 6 deletions src/Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,7 @@ public static function getService() {
),
)
),
// 设置存储桶(Bucket)的访问权限Access Control List, ACL)
// 设置存储桶(Bucket)的访问权限 (Access Control List, ACL)
'PutBucketAcl' => array(
'httpMethod' => 'PUT',
'uri' => '/{Bucket}?acl',
Expand Down Expand Up @@ -5621,11 +5621,21 @@ public static function getService() {
'items' => array(
'type' => 'object',
'properties' => array(
'Name' => array(
'type' => 'string',
),
'CreationDate' => array(
'type' => 'string',
'Bucket' => array(
'type' => 'array',
'items' => array(
'type' => 'object',
'items' => array(
'properties' => array(
'Name' => array(
'type' => 'string',
),
'CreationDate' => array(
'type' => 'string',
),
),
),
)
),
),
),
Expand Down

0 comments on commit 3c7a081

Please sign in to comment.