@@ -2807,7 +2807,7 @@ def list_buckets(self, **kwargs):
28072807 config = CosConfig(Region=region, SecretId=secret_id, SecretKey=secret_key, Token=token) # 获取配置对象
28082808 client = CosS3Client(config)
28092809 # 获取账户下所有存储桶信息
2810- response = logging_client .list_buckets(
2810+ response = client .list_buckets(
28112811 Bucket='bucket'
28122812 )
28132813 """
@@ -3429,9 +3429,9 @@ def put_bucket_encryption(self, Bucket, ServerSideEncryptionConfiguration={}, **
34293429 """设置执行存储桶下的默认加密配置
34303430
34313431 :param Bucket(string): 存储桶名称.
3432- :param SSEAlgorithm(string ): 要使用的服务端加密算法
3433- :param kwargs(dict): 设置下载的headers .
3434- :return(dict): 设置成功返回的结果 .
3432+ :param ServerSideEncryptionConfiguration(dict ): 设置Bucket的加密规则
3433+ :param kwargs(dict): 设置请求的headers .
3434+ :return: None .
34353435 """
34363436 # 类型为list的标签
34373437 lst = [
@@ -3460,8 +3460,8 @@ def get_bucket_encryption(self, Bucket, **kwargs):
34603460 """获取存储桶下的默认加密配置
34613461
34623462 :param Bucket(string): 存储桶名称.
3463- :param kwargs(dict): 设置下载的headers .
3464- :return(string ): 服务端的加密算法 .
3463+ :param kwargs(dict): 设置请求的headers .
3464+ :return(dict ): 返回bucket的加密规则 .
34653465 """
34663466 headers = mapped (kwargs )
34673467 params = {'encryption' : '' }
@@ -3485,8 +3485,8 @@ def delete_bucket_encryption(self, Bucket, **kwargs):
34853485 """用于删除指定存储桶下的默认加密配置
34863486
34873487 :param Bucket(string): 存储桶名称.
3488- :param kwargs(dict): 设置下载的headers .
3489- :return(dict): 上传成功返回的结果 .
3488+ :param kwargs(dict): 设置请求的headers .
3489+ :return: None .
34903490 """
34913491 headers = mapped (kwargs )
34923492 params = {'encryption' : '' }
0 commit comments