Skip to content

Commit 0927652

Browse files
authored
Merge pull request #241 from tencentyun/feat/new-list-buckets
list_buckets参数说明
2 parents fedd946 + ad065a3 commit 0927652

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

qcloud_cos/cos_client.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3318,7 +3318,7 @@ def put_bucket_intelligenttiering(self, Bucket, IntelligentTieringConfiguration=
33183318
def get_bucket_intelligenttiering(self, Bucket, **kwargs):
33193319
"""获取存储桶智能分层配置
33203320
:param Bucket(string): 存储桶名称.
3321-
:param IntelligentTieringConfiguration(dict): 只能分层配置
3321+
:param IntelligentTieringConfiguration(dict): 智能分层配置
33223322
:param kwargs(dict): 设置请求headers.
33233323
:return(dict): 智能分层配置.
33243324
@@ -3346,7 +3346,15 @@ def get_bucket_intelligenttiering(self, Bucket, **kwargs):
33463346

33473347
# service interface begin
33483348
def list_buckets(self, TagKey=None, TagValue=None, Region=None, CreateTime=None, Range=None, Marker="", MaxKeys=2000, **kwargs):
3349-
"""列出所有bucket
3349+
"""列出符合条件的bucket
3350+
:param Bucket(string): 存储桶名称
3351+
:param TagKey(string): 标签键
3352+
:param TagValue(string): 标签值
3353+
:param Region(string): 地域名称
3354+
:param CreateTime(Timestamp): GMT时间戳, 和 Range 参数一起使用, 支持根据创建时间过滤存储桶
3355+
:param Range(string): 和 CreateTime 参数一起使用, 支持根据创建时间过滤存储桶,支持枚举值 lt(创建时间早于 create-time)、gt(创建时间晚于 create-time)、lte(创建时间早于或等于 create-time)、gte(创建时间晚于或等于create-time)
3356+
:param Marker(string): 起始标记, 从该标记之后(不含)按照 UTF-8 字典序返回存储桶条目
3357+
:param MaxKeys(int): 单次返回最大的条目数量,默认值为2000,最大为2000
33503358
33513359
:return(dict): 账号下bucket相关信息.
33523360

0 commit comments

Comments
 (0)