using System; using System.Collections.Generic; using System.Text; using COSXML.Model.Service; using COSXML.Model.Bucket; using COSXML.Model.Object; using COSXML.Model.CI; using COSXML.Model; using COSXML.Model.Tag; #if !COMPATIBLE using System.Threading.Tasks; #endif namespace COSXML { /// /// COS 接口类,实现 COS XML 的所有功能。 /// public interface CosXml { /// /// 获取配置项 /// /// CosXmlConfig GetConfig(); /// /// 生成签名串 /// /// http method /// http url path /// http url query /// http header /// sign time /// string GenerateSign(string method, string key, Dictionary queryParameters, Dictionary headers, long signDurationSecond, long keyDurationSecond); /// /// 生成预签名URL /// /// 签名结构体 /// string GenerateSignURL(PreSignatureStruct preSignatureStruct); /// /// 获取存储桶列表 /// /// GetServiceRequest /// GetServiceResult /// CosServerException /// CosClientException GetServiceResult GetService(GetServiceRequest request); /// /// 获取存储桶列表的异步方法 /// /// GetServiceRequest /// OnSuccessCallback /// OnFailedCallback void GetService(GetServiceRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 创建存储桶 /// /// PutBucketRequest /// PutBucketResult /// CosServerException /// CosClientException PutBucketResult PutBucket(PutBucketRequest request); /// /// 创建存储桶的异步方法 /// /// /// /// void PutBucket(PutBucketRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 检索存储桶 /// /// HeadBucketRequest /// HeadBucketResult /// CosServerException /// CosClientException HeadBucketResult HeadBucket(HeadBucketRequest request); /// /// 检索存储桶的异步方法 /// /// /// /// void HeadBucket(HeadBucketRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 检查存储桶是否存在(只有同步方法) /// /// /// /// bool DoesBucketExist(DoesBucketExistRequest request); /// /// 列出存储桶下的文件 /// /// GetBucketRequest /// GetBucketResult /// CosServerException /// CosClientException GetBucketResult GetBucket(GetBucketRequest request); /// /// 列出存储桶下文件的异步方法 /// /// /// /// void GetBucket(GetBucketRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶 /// /// DeleteBucketRequest /// DeleteBucketResult /// CosServerException /// CosClientException DeleteBucketResult DeleteBucket(DeleteBucketRequest request); /// /// 删除存储桶的异步方法 /// /// /// /// void DeleteBucket(DeleteBucketRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶权限 /// /// PutBucketACLRequest /// PutBucketACLResult /// CosServerException /// CosClientException PutBucketACLResult PutBucketACL(PutBucketACLRequest request); /// /// 设置存储桶权限的异步方法 /// /// /// /// void PutBucketACL(PutBucketACLRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 查询存储桶权限 /// /// GetBucketACLRequest /// GetBucketACLResult /// CosServerException /// CosClientException GetBucketACLResult GetBucketACL(GetBucketACLRequest request); /// /// 查询存储桶权限的异步方法 /// /// /// /// void GetBucketACL(GetBucketACLRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶的跨域规则 /// /// PutBucketCORSRequest /// PutBucketCORSResult /// CosServerException /// CosClientException PutBucketCORSResult PutBucketCORS(PutBucketCORSRequest request); /// /// 设置存储桶跨域规则的异步方法 /// /// /// /// void PutBucketCORS(PutBucketCORSRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶跨域规则 /// /// GetBucketCORSRequest /// GetBucketCORSResult /// CosServerException /// CosClientException GetBucketCORSResult GetBucketCORS(GetBucketCORSRequest request); /// /// 获取存储桶跨域规则的异步方法 /// /// /// /// void GetBucketCORS(GetBucketCORSRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶跨域规则 /// /// DeleteBucketCORSRequest /// DeleteBucketCORSResult /// CosServerException /// CosClientException DeleteBucketCORSResult DeleteBucketCORS(DeleteBucketCORSRequest request); /// /// 删除存储桶跨域规则的异步方法 /// /// /// /// void DeleteBucketCORS(DeleteBucketCORSRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶生命周期 /// /// PutBucketLifecycleRequest /// PutBucketLifecycleResult /// CosServerException /// CosClientException PutBucketLifecycleResult PutBucketLifecycle(PutBucketLifecycleRequest request); /// /// 设置存储桶生命周期的异步方法 /// /// /// /// void PutBucketLifecycle(PutBucketLifecycleRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶生命周期规则 /// /// GetBucketLifecycleRequest /// GetBucketLifecycleResult /// CosServerException /// CosClientException GetBucketLifecycleResult GetBucketLifecycle(GetBucketLifecycleRequest request); /// /// 获取存储桶生命周期规则的异步方法 /// /// /// /// void GetBucketLifecycle(GetBucketLifecycleRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶生命周期规则 /// /// DeleteBucketLifecycleRequest /// DeleteBucketLifecycleResult /// CosServerException /// CosClientException DeleteBucketLifecycleResult DeleteBucketLifecycle(DeleteBucketLifecycleRequest request); /// /// 删除存储桶生命周期规则的异步方法 /// /// /// /// void DeleteBucketLifecycle(DeleteBucketLifecycleRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶跨地域复制规则 /// /// PutBucketReplicationRequest /// PutBucketReplicationResult /// CosServerException /// CosClientException PutBucketReplicationResult PutBucketReplication(PutBucketReplicationRequest request); /// /// 设置存储桶跨地域复制规则的异步方法 /// /// /// /// void PutBucketReplication(PutBucketReplicationRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶跨地域复制规则 /// /// GetBucketReplicationRequest /// GetBucketReplicationResult /// CosServerException /// CosClientException GetBucketReplicationResult GetBucketReplication(GetBucketReplicationRequest request); /// /// 获取存储桶跨地域复制规则的异步方法 /// /// /// /// void GetBucketReplication(GetBucketReplicationRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶跨地域复制规则 /// /// DeleteBucketReplicationRequest /// DeleteBucketReplicationResult /// CosServerException /// CosClientException DeleteBucketReplicationResult DeleteBucketReplication(DeleteBucketReplicationRequest request); /// /// 删除存储桶跨地域复制规则的异步方法 /// /// /// /// void DeleteBucketReplication(DeleteBucketReplicationRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶多版本状态 /// /// PutBucketVersioningRequest /// PutBucketVersioningResult /// CosServerException /// CosClientException PutBucketVersioningResult PutBucketVersioning(PutBucketVersioningRequest request); /// /// 设置存储桶多版本状态的异步方法 /// /// /// /// void PutBucketVersioning(PutBucketVersioningRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶多版本状态 /// /// GetBucketVersioningRequest /// GetBucketVersioningResult /// CosServerException /// CosClientException GetBucketVersioningResult GetBucketVersioning(GetBucketVersioningRequest request); /// /// 获取存储桶多版本状态的异步方法 /// /// /// /// void GetBucketVersioning(GetBucketVersioningRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶防盗链 /// /// PutBucketRefererRequest /// PutBucketRefererResult /// CosServerException /// CosClientException PutBucketRefererResult PutBucketReferer(PutBucketRefererRequest request); /// /// 设置存储桶防盗链的异步方法 /// /// /// /// void PutBucketReferer(PutBucketRefererRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶防盗链 /// /// GetBucketRefererRequest /// GetBucketRefererResult /// CosServerException /// CosClientException GetBucketRefererResult GetBucketReferer(GetBucketRefererRequest request); /// /// 获取存储桶防盗链的异步方法 /// /// /// /// void GetBucketReferer(GetBucketRefererRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 列出多版本对象列表 /// /// ListBucketVersionsRequest /// ListBucketVersionsResult /// CosServerException /// CosClientException ListBucketVersionsResult ListBucketVersions(ListBucketVersionsRequest request); /// /// 列出多版本对象列表的异步方法 /// /// ListBucketVersionsRequest /// successCallback /// failCallback void ListBucketVersions(ListBucketVersionsRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 列出所有未完成的分片上传任务 /// /// ListMultiUploadsRequest /// ListMultiUploadsResult /// CosServerException /// CosClientException ListMultiUploadsResult ListMultiUploads(ListMultiUploadsRequest request); /// /// 列出所有未完成的分片上传任务的异步方法 /// /// /// /// void ListMultiUploads(ListMultiUploadsRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 简单上传对象 /// /// PutObjectRequest /// PutObjectResult /// CosServerException /// CosClientException PutObjectResult PutObject(PutObjectRequest request); /// /// 简单上传对象的异步方法 /// /// /// /// void PutObject(PutObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 检索对象属性 /// /// HeadObjectRequest /// HeadObjectResult /// CosServerException /// CosClientException HeadObjectResult HeadObject(HeadObjectRequest request); /// /// 检索对象属性的异步方法 /// /// /// /// void HeadObject(HeadObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 检查对象是否存在(只支持同步方法) /// /// /// /// bool DoesObjectExist(DoesObjectExistRequest request); /// /// 下载对象 /// /// GetObjectRequest /// GetObjectResult /// CosServerException /// CosClientException GetObjectResult GetObject(GetObjectRequest request); /// /// 下载对象的异步方法 /// /// /// /// void GetObject(GetObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 下载对象到内存中 /// /// /// GetObjectBytesResult GetObjectBytesResult GetObject(GetObjectBytesRequest request); /// /// 下载对象到内存中的异步方法 /// /// /// /// void GetObject(GetObjectBytesRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取对象访问URL /// /// bucket /// object key /// string GetObjectUrl(string bucket, string key); /// /// 设置对象 ACL 权限 /// /// PutObjectACLRequest /// PutObjectACLResult /// CosServerException /// CosClientException PutObjectACLResult PutObjectACL(PutObjectACLRequest request); /// /// 设置对象 ACL 权限的异步方法 /// /// /// /// void PutObjectACL(PutObjectACLRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// Append上传对象 /// /// AppendObjectResult AppendObject(AppendObjectRequest request); /// /// 获取对象 ACL 权限 /// /// GetObjectACLRequest /// GetObjectACLResult /// CosServerException /// CosClientException GetObjectACLResult GetObjectACL(GetObjectACLRequest request); /// /// 获取对象 ACL 权限的异步方法 /// /// /// /// void GetObjectACL(GetObjectACLRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置对象标签的同步方法 /// /// PutObjectTaggingResult PutObjectTagging(PutObjectTaggingRequest request); /// /// 设置对象标签的异步方法 /// /// /// /// void PutObjectTagging(PutObjectTaggingRequest request, Callback.OnSuccessCallback successCallback, Callback.OnFailedCallback failCallback); /// /// 获取对象标签的同步方法 /// /// GetObjectTaggingResult GetObjectTagging(GetObjectTaggingRequest request); /// /// 获取对象标签的异步方法 /// /// /// /// void GetObjectTagging(GetObjectTaggingRequest request, Callback.OnSuccessCallback successCallback, Callback.OnFailedCallback failCallback); /// /// 删除对象标签的同步方法 /// /// DeleteObjectTaggingResult DeleteObjectTagging(DeleteObjectTaggingRequest request); /// /// 删除对象标签的异步方法 /// /// /// /// void DeleteObjectTagging(DeleteObjectTaggingRequest request, Callback.OnSuccessCallback successCallback, Callback.OnFailedCallback failCallback); /// /// 删除对象 /// /// DeleteObjectRequest /// DeleteObjectResult /// CosServerException /// CosClientException DeleteObjectResult DeleteObject(DeleteObjectRequest request); /// /// 删除对象的异步方法 /// /// /// /// void DeleteObject(DeleteObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 批量删除对象 /// /// DeleteMultiObjectRequest /// DeleteMultiObjectResult /// CosServerException /// CosClientException DeleteMultiObjectResult DeleteMultiObjects(DeleteMultiObjectRequest request); /// /// 批量删除对象的异步方法 /// /// /// /// void DeleteMultiObjects(DeleteMultiObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 初始化分片上传任务 /// /// /// InitMultipartUploadResult InitMultipartUpload(InitMultipartUploadRequest request); /// /// 初始化分片上传任务的异步方法 /// /// /// /// void InitMultipartUpload(InitMultipartUploadRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 列出已上传的分片 /// /// ListPartsRequest /// ListPartsResult /// CosServerException /// CosClientException ListPartsResult ListParts(ListPartsRequest request); /// /// 列出已上传的分片的异步方法 /// /// /// /// void ListParts(ListPartsRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 上传分片 /// /// UploadPartRequest /// UploadPartResult /// CosServerException /// CosClientException UploadPartResult UploadPart(UploadPartRequest request); /// /// 上传分片的异步方法 /// /// /// /// void UploadPart(UploadPartRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 完成分片上传 /// /// CompleteMultiUploadRequest /// CompleteMultiUploadResult /// CosServerException /// CosClientException CompleteMultipartUploadResult CompleteMultiUpload(CompleteMultipartUploadRequest request); /// /// 完成分片上传的异步方法 /// /// /// /// void CompleteMultiUpload(CompleteMultipartUploadRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 终止分片上传 /// /// AbortMultiUploadRequest /// AbortMultiUploadResult /// CosServerException /// CosClientException AbortMultipartUploadResult AbortMultiUpload(AbortMultipartUploadRequest request); /// /// 终止分片上传的异步方法 /// /// /// /// void AbortMultiUpload(AbortMultipartUploadRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 复制对象 /// /// CopyObjectRequest /// CopyObjectResult /// CosServerException /// CosClientException CopyObjectResult CopyObject(CopyObjectRequest request); /// /// 复制对象的异步方法 /// /// /// /// void CopyObject(CopyObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 拷贝一个分片 /// /// UploadPartCopyRequest /// UploadPartCopyResult /// CosServerException /// CosClientException UploadPartCopyResult PartCopy(UploadPartCopyRequest request); /// /// 拷贝一个分片的异步方法 /// /// /// /// void PartCopy(UploadPartCopyRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 对象的跨域预请求 /// /// /// /// CosServerException /// CosClientException OptionObjectResult OptionObject(OptionObjectRequest request); /// /// 对象的跨域预请求的异步方法 /// /// /// /// void OptionObject(OptionObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// POST 方式上传对象 /// /// PostObjectRequest /// PostObjectResult /// CosServerException /// CosClientException PostObjectResult PostObject(PostObjectRequest request); /// /// POST 方式上传对象的异步方法 /// /// /// /// void PostObject(PostObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 对一个归档存储(ARCHIVE)类型的对象进行恢复 /// /// RestoreObjectRequest /// RestoreObjectResult /// CosServerException /// CosClientException RestoreObjectResult RestoreObject(RestoreObjectRequest request); /// /// 对一个归档存储(ARCHIVE)类型的对象进行恢复的异步方法 /// /// /// /// void RestoreObject(RestoreObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶静态网站 /// /// /// 设置结果 PutBucketWebsiteResult PutBucketWebsite(PutBucketWebsiteRequest request); /// /// 设置存储桶静态网站的异步方法 /// /// /// /// void PutBucketWebsiteAsync(PutBucketWebsiteRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶静态网站设置 /// /// /// 静态 GetBucketWebsiteResult GetBucketWebsite(GetBucketWebsiteRequest request); /// /// 获取存储桶静态网站设置的异步方法 /// /// /// /// void GetBucketWebsiteAsync(GetBucketWebsiteRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶静态网站设置 /// /// /// DeleteBucketWebsiteResult DeleteBucketWebsite(DeleteBucketWebsiteRequest request); /// /// 删除存储桶静态网站设置的异步方法 /// /// /// /// void DeleteBucketWebsiteAsync(DeleteBucketWebsiteRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶自定义域名 /// /// /// PutBucketDomainResult PutBucketDomain(PutBucketDomainRequest request); /// /// 设置存储桶自定义域名的异步方法 /// /// /// /// void PutBucketDomainAsync(PutBucketDomainRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶自定义域名 /// /// /// GetBucketDomainResult GetBucketDomain(GetBucketDomainRequest request); /// /// 获取存储桶自定义域名的异步方法 /// /// /// /// void GetBucketDomainAsync(GetBucketDomainRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶日志服务 /// /// /// PutBucketLoggingResult PutBucketLogging(PutBucketLoggingRequest request); /// /// 设置存储桶日志服务的异步方法 /// /// /// /// void PutBucketLoggingAsync(PutBucketLoggingRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶日志服务设置 /// /// /// GetBucketLoggingResult GetBucketLogging(GetBucketLoggingRequest request); /// /// 获取存储桶日志服务设置的异步方法 /// /// /// /// void GetBucketLoggingAsync(GetBucketLoggingRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶清单任务 /// /// /// PutBucketInventoryResult PutBucketInventory(PutBucketInventoryRequest request); /// /// 设置存储桶清单任务的异步方法 /// /// /// /// void PutBucketInventoryAsync(PutBucketInventoryRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶清单任务 /// /// /// GetBucketInventoryResult GetBucketInventory(GetBucketInventoryRequest request); /// /// 获取存储桶清单任务的异步方法 /// /// /// /// void GetBucketInventoryAsync(GetBucketInventoryRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶清单任务 /// /// /// DeleteBucketInventoryResult DeleteBucketInventory(DeleteBucketInventoryRequest request); /// /// 删除存储桶清单任务的异步方法 /// /// /// /// void DeleteInventoryAsync(DeleteBucketInventoryRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 列出存储桶所有清单任务 /// /// /// ListBucketInventoryResult ListBucketInventory(ListBucketInventoryRequest request); /// /// 列出存储桶所有清单任务的异步方法 /// /// /// /// void ListBucketInventoryAsync(ListBucketInventoryRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 设置存储桶标签 /// /// /// PutBucketTaggingResult PutBucketTagging(PutBucketTaggingRequest request); /// /// 设置存储桶标签的异步方法 /// /// /// /// void PutBucketTaggingAsync(PutBucketTaggingRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取存储桶标签 /// /// /// GetBucketTaggingResult GetBucketTagging(GetBucketTaggingRequest request); /// /// 获取存储桶标签的异步方法 /// /// /// /// void GetBucketTaggingAsync(GetBucketTaggingRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 删除存储桶标签 /// /// /// DeleteBucketTaggingResult DeleteBucketTagging(DeleteBucketTaggingRequest request); /// /// 删除存储桶标签的异步方法 /// /// /// /// void DeleteBucketTaggingAsync(DeleteBucketTaggingRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 检索对象 /// /// /// SelectObjectResult SelectObject(SelectObjectRequest request); /// /// 检索对象的异步方法 /// /// /// /// void SelectObjectAsync(SelectObjectRequest request, COSXML.Callback.OnSuccessCallback successCallback, COSXML.Callback.OnFailedCallback failCallback); /// /// 获取智能分层配置 /// /// GetBucketIntelligentTieringResult GetBucketIntelligentTieringConfiguration(GetBucketIntelligentTieringRequest request); /// /// 设置存储桶智能分层 /// /// CosResult PutBucketIntelligentTiering(PutBucketIntelligentTieringRequest request); /// /// 内容识别 /// /// /// SensitiveContentRecognitionResult SensitiveContentRecognition(SensitiveContentRecognitionRequest request); /// /// 图片处理 /// /// /// ImageProcessResult ImageProcess(ImageProcessRequest request); /// /// 下载时进行二维码识别 /// /// /// QRCodeRecognitionResult QRCodeRecognition(QRCodeRecognitionRequest request); /// /// 获取媒体文件某个时间的截图 /// /// /// GetSnapshotResult GetSnapshot(GetSnapshotRequest request); /// /// 获取媒体文件的信息 /// /// /// GetMediaInfoResult GetMediaInfo(GetMediaInfoRequest request); /// /// 提交视频审核任务 /// /// /// SubmitCensorJobResult SubmitVideoCensorJob(SubmitVideoCensorJobRequest request); /// /// 获取视频审核任务结果 /// /// /// GetVideoCensorJobResult GetVideoCensorJob(GetVideoCensorJobRequest request); /// /// 提交音频审核任务 /// /// /// SubmitCensorJobResult SubmitAudioCensorJob(SubmitAudioCensorJobRequest request); /// /// 获取音频审核任务结果 /// /// /// GetAudioCensorJobResult GetAudioCensorJob(GetAudioCensorJobRequest request); /// /// 提交文本审核任务 /// /// /// SubmitCensorJobResult SubmitTextCensorJob(SubmitTextCensorJobRequest request); /// /// 提交文本审核任务, 支持同步返回 /// /// /// SubmitTextCensorJobsResult SubmitTextCensorJobSync(SubmitTextCensorJobRequest request); /// /// 获取文本审核任务结果 /// /// /// GetTextCensorJobResult GetTextCensorJob(GetTextCensorJobRequest request); /// /// 提交文档审核任务 /// /// /// SubmitCensorJobResult SubmitDocumentCensorJob(SubmitDocumentCensorJobRequest request); /// /// 获取文档审核任务结果 /// /// /// GetDocumentCensorJobResult GetDocumentCensorJob(GetDocumentCensorJobRequest request); /// /// 获取媒体bucket列表 /// /// /// DescribeMediaBucketsResult DescribeMediaBuckets(DescribeMediaBucketsRequest request); /// /// 取消请求 /// /// void Cancel(CosRequest cosRequest); /// /// 同步执行请求 /// /// /// T Execute(CosRequest request) where T : CosResult; #if !COMPATIBLE /// /// 异步执行请求 /// /// /// Task ExecuteAsync(CosRequest request) where T : CosResult; #endif } }