QCloudDeleteBucketLifeCycleRequest Class Reference

Inherits from QCloudBizHTTPRequest
Declared in QCloudDeleteBucketLifeCycleRequest.h
QCloudDeleteBucketLifeCycleRequest.m

Overview

删除存储桶(Bucket) 的生命周期配置的方法.

功能说明

COS 支持删除已配置的 Bucket 的生命周期列表. COS 支持以生命周期配置的方式来管理 Bucket 中 对象的生命周期,生命周期配置包含一个或多个将 应用于一组对象规则的规则集 (其中每个规则为 COS 定义一个操作), 请参阅 putBucketLifecycle(PutBucketLifecycleRequest).

关于删除 Bucket 的生命周期配置接口的具体描述,请查看https://cloud.tencent.com/document/product/436/8284.

示例

@code

QCloudDeleteBucketLifeCycleRequest* request = [[QCloudDeleteBucketLifeCycleRequest alloc ] init];

// 存储桶名称,格式为 BucketName-APPID
request.bucket = @"examplebucket-1250000000";

[request setFinishBlock:^(QCloudLifecycleConfiguration* deleteResult, NSError* error) {
    // 返回删除结果
}];
[[QCloudCOSXMLService defaultCOSXML] DeleteBucketLifeCycle:request];

}

  bucket

存储桶名

@property (strong, nonatomic) NSString *bucket

Declared In

QCloudDeleteBucketLifeCycleRequest.h