Skip to content

Standardize the Buckets return value in ListBuckets #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 9, 2023
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: 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