@@ -2788,3 +2788,42 @@ func (s *CIService) DeleteImageSlim(ctx context.Context) (*Response, error) {
27882788 resp , err := s .client .send (ctx , sendOpt )
27892789 return resp , err
27902790}
2791+
2792+ // CIBucketsOptions is the option of CIBuckets
2793+ type DescribeCIBucketsOptions struct {
2794+ BucketName string `url:"bucketName,omitempty"`
2795+ TagKey string `url:"tagKey,omitempty"`
2796+ PageNumber int `url:"pageNumber,omitempty"`
2797+ PageSize int `url:"pageSize,omitempty"`
2798+ }
2799+
2800+ type CIBucketList struct {
2801+ BucketId string `xml:"BucketId,omitempty"`
2802+ BucketName string `xml:"BucketName,omitempty"`
2803+ AppId string `xml:"AppId,omitempty"`
2804+ CreateTime string `xml:"CreateTime,omitempty"`
2805+ Region string `xml:"Region,omitempty"`
2806+ Status string `xml:"Status,omitempty"`
2807+ }
2808+
2809+ type CIBucketsResult struct {
2810+ XMLName xml.Name `xml:"Response"`
2811+ RequestId string `xml:"RequestId,omitempty"`
2812+ TotalCount string `xml:"TotalCount,omitempty"`
2813+ PageNumber string `xml:"PageNumber,omitempty"`
2814+ PageSize string `xml:"PageSize,omitempty"`
2815+ CIBucketList []CIBucketList `xml:"CIBucketList,omitempty"`
2816+ }
2817+
2818+ func (s * CIService ) DescribeCIBuckets (ctx context.Context , opt * DescribeCIBucketsOptions ) (* CIBucketsResult , * Response , error ) {
2819+ var res CIBucketsResult
2820+ sendOpt := & sendOptions {
2821+ baseURL : s .client .BaseURL .CIURL ,
2822+ uri : "/cibuckets" ,
2823+ method : http .MethodGet ,
2824+ optQuery : opt ,
2825+ result : & res ,
2826+ }
2827+ resp , err := s .client .send (ctx , sendOpt )
2828+ return & res , resp , err
2829+ }
0 commit comments