@@ -472,6 +472,39 @@ struct CreateMediaBucketResult {
472472 return ss.str ();
473473 }
474474};
475+
476+ struct CreateFileBucketResult {
477+ std::string request_id; // 请求的唯一ID
478+ BucketInfo file_bucket; // 文件Bucket
479+ std::string to_string () const {
480+ std::stringstream ss;
481+ ss << " request_id: " << request_id << std::endl;
482+ ss << file_bucket.to_string () << std::endl;
483+ ss << std::endl;
484+ return ss.str ();
485+ }
486+ };
487+
488+ struct DescribeFileBucketsResult {
489+ std::string request_id; // 请求的唯一ID
490+ int total_count; // 媒体Bucket总数
491+ int page_number; // 当前页数
492+ int page_size; // 每页个数
493+ std::vector<BucketInfo> file_bucket_list; // 文件Bucket列表
494+ std::string to_string () const {
495+ std::stringstream ss;
496+ ss << " request_id: " << request_id << std::endl
497+ << " total_count: " << total_count << std::endl
498+ << " page_number: " << page_number << std::endl
499+ << " page_size: " << page_size << std::endl;
500+ for (auto & bucket : file_bucket_list) {
501+ ss << bucket.to_string () << std::endl;
502+ }
503+ ss << std::endl;
504+ return ss.str ();
505+ }
506+ };
507+
475508struct VideoInfo {
476509 int index; // 该流的编号
477510 std::string codec_name; // 编解码格式名字
@@ -2025,6 +2058,31 @@ class CreateMediaBucketReq : public BucketReq{
20252058 virtual ~CreateMediaBucketReq () {}
20262059};
20272060
2061+
2062+ class CreateFileBucketReq : public BucketReq {
2063+ public:
2064+ explicit CreateFileBucketReq (const std::string& bucket_name) : BucketReq(bucket_name) {
2065+ m_method = " POST" ;
2066+ m_path = " /file_bucket" ;
2067+ SetHttps ();
2068+ }
2069+
2070+ virtual ~CreateFileBucketReq () {}
2071+ };
2072+
2073+ class DescribeFileBucketsReq : public DescribeMediaBucketsReq {
2074+ public:
2075+ DescribeFileBucketsReq () {
2076+ m_method = " GET" ;
2077+
2078+ m_path = " /file_bucket" ;
2079+
2080+ // 该接口只支持https
2081+ SetHttps ();
2082+ }
2083+ virtual ~DescribeFileBucketsReq () {}
2084+ };
2085+
20282086class GetMediaInfoReq : public ObjectReq {
20292087 public:
20302088 GetMediaInfoReq (const std::string& bucket_name,
0 commit comments