Skip to content

Commit e751985

Browse files
author
YangSen-qn
committed
gen apis
1 parent ae91ae6 commit e751985

File tree

64 files changed

+213
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+213
-67
lines changed

storagev2/apis/api_add_bucket_event_rule.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -84,6 +85,7 @@ func (storage *Storage) AddBucketEventRule(ctx context.Context, request *AddBuck
8485
} else {
8586
rawQuery += query.Encode()
8687
}
88+
headers := http.Header{}
8789
bucketName := options.OverwrittenBucketName
8890
if bucketName == "" {
8991
var err error
@@ -105,7 +107,7 @@ func (storage *Storage) AddBucketEventRule(ctx context.Context, request *AddBuck
105107
if err != nil {
106108
return nil, err
107109
}
108-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
110+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
109111
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
110112
bucketHosts := httpclient.DefaultBucketHosts()
111113
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_add_bucket_rules.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strconv"
1617
"strings"
@@ -60,6 +61,7 @@ func (storage *Storage) AddBucketRules(ctx context.Context, request *AddBucketRu
6061
pathSegments = append(pathSegments, "rules", "add")
6162
path := "/" + strings.Join(pathSegments, "/")
6263
var rawQuery string
64+
headers := http.Header{}
6365
body, err := innerRequest.build()
6466
if err != nil {
6567
return nil, err
@@ -85,7 +87,7 @@ func (storage *Storage) AddBucketRules(ctx context.Context, request *AddBucketRu
8587
if err != nil {
8688
return nil, err
8789
}
88-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
90+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
8991
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
9092
bucketHosts := httpclient.DefaultBucketHosts()
9193
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_async_fetch_object.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1313
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1414
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
15+
"net/http"
1516
"strings"
1617
"time"
1718
)
@@ -58,6 +59,7 @@ func (storage *Storage) AsyncFetchObject(ctx context.Context, request *AsyncFetc
5859
pathSegments = append(pathSegments, "sisyphus", "fetch")
5960
path := "/" + strings.Join(pathSegments, "/")
6061
var rawQuery string
62+
headers := http.Header{}
6163
body, err := httpclient.GetJsonRequestBody(&innerRequest)
6264
if err != nil {
6365
return nil, err
@@ -84,7 +86,7 @@ func (storage *Storage) AsyncFetchObject(ctx context.Context, request *AsyncFetc
8486
if err != nil {
8587
return nil, err
8688
}
87-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: body, OnRequestProgress: options.OnRequestProgress}
89+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: body, OnRequestProgress: options.OnRequestProgress}
8890
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
8991
bucketHosts := httpclient.DefaultBucketHosts()
9092
if bucketName != "" {

storagev2/apis/api_batch_ops.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -57,6 +58,7 @@ func (storage *Storage) BatchOps(ctx context.Context, request *BatchOpsRequest,
5758
pathSegments = append(pathSegments, "batch")
5859
path := "/" + strings.Join(pathSegments, "/")
5960
var rawQuery string
61+
headers := http.Header{}
6062
body, err := innerRequest.build()
6163
if err != nil {
6264
return nil, err
@@ -76,7 +78,7 @@ func (storage *Storage) BatchOps(ctx context.Context, request *BatchOpsRequest,
7678
if err != nil {
7779
return nil, err
7880
}
79-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
81+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
8082
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
8183
bucketHosts := httpclient.DefaultBucketHosts()
8284
if bucketName != "" {

storagev2/apis/api_check_share.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -75,6 +76,7 @@ func (storage *Storage) CheckShare(ctx context.Context, request *CheckShareReque
7576
} else {
7677
rawQuery += query.Encode()
7778
}
79+
headers := http.Header{}
7880
bucketName := options.OverwrittenBucketName
7981
uplogInterceptor, err := uplog.NewRequestUplog("checkShare", bucketName, "", func() (string, error) {
8082
credentials := innerRequest.Credentials
@@ -90,7 +92,7 @@ func (storage *Storage) CheckShare(ctx context.Context, request *CheckShareReque
9092
if err != nil {
9193
return nil, err
9294
}
93-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
95+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
9496
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
9597
bucketHosts := httpclient.DefaultBucketHosts()
9698
if bucketName != "" {

storagev2/apis/api_copy_object.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1313
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1414
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
15+
"net/http"
1516
"strconv"
1617
"strings"
1718
"time"
@@ -79,6 +80,7 @@ func (storage *Storage) CopyObject(ctx context.Context, request *CopyObjectReque
7980
}
8081
path := "/" + strings.Join(pathSegments, "/")
8182
var rawQuery string
83+
headers := http.Header{}
8284
bucketName := options.OverwrittenBucketName
8385
if bucketName == "" {
8486
var err error
@@ -101,7 +103,7 @@ func (storage *Storage) CopyObject(ctx context.Context, request *CopyObjectReque
101103
if err != nil {
102104
return nil, err
103105
}
104-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
106+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
105107
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
106108
bucketHosts := httpclient.DefaultBucketHosts()
107109
if bucketName != "" {

storagev2/apis/api_create_bucket.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"strings"
1516
"time"
1617
)
@@ -52,6 +53,7 @@ func (storage *Storage) CreateBucket(ctx context.Context, request *CreateBucketR
5253
}
5354
path := "/" + strings.Join(pathSegments, "/")
5455
var rawQuery string
56+
headers := http.Header{}
5557
bucketName := options.OverwrittenBucketName
5658
uplogInterceptor, err := uplog.NewRequestUplog("createBucket", bucketName, "", func() (string, error) {
5759
credentials := innerRequest.Credentials
@@ -67,7 +69,7 @@ func (storage *Storage) CreateBucket(ctx context.Context, request *CreateBucketR
6769
if err != nil {
6870
return nil, err
6971
}
70-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
72+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
7173
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
7274
bucketHosts := httpclient.DefaultBucketHosts()
7375
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_create_share.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1313
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1414
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
15+
"net/http"
1516
"strings"
1617
"time"
1718
)
@@ -53,6 +54,7 @@ func (storage *Storage) CreateShare(ctx context.Context, request *CreateShareReq
5354
path := "/" + strings.Join(pathSegments, "/")
5455
path += "/"
5556
var rawQuery string
57+
headers := http.Header{}
5658
body, err := httpclient.GetJsonRequestBody(&innerRequest)
5759
if err != nil {
5860
return nil, err
@@ -72,7 +74,7 @@ func (storage *Storage) CreateShare(ctx context.Context, request *CreateShareReq
7274
if err != nil {
7375
return nil, err
7476
}
75-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: body, OnRequestProgress: options.OnRequestProgress}
77+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, BufferResponse: true, RequestBody: body, OnRequestProgress: options.OnRequestProgress}
7678
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
7779
bucketHosts := httpclient.DefaultBucketHosts()
7880
if bucketName != "" {

storagev2/apis/api_delete_bucket.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"strings"
1516
"time"
1617
)
@@ -52,6 +53,7 @@ func (storage *Storage) DeleteBucket(ctx context.Context, request *DeleteBucketR
5253
}
5354
path := "/" + strings.Join(pathSegments, "/")
5455
var rawQuery string
56+
headers := http.Header{}
5557
bucketName := options.OverwrittenBucketName
5658
if bucketName == "" {
5759
var err error
@@ -73,7 +75,7 @@ func (storage *Storage) DeleteBucket(ctx context.Context, request *DeleteBucketR
7375
if err != nil {
7476
return nil, err
7577
}
76-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
78+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
7779
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
7880
bucketHosts := httpclient.DefaultBucketHosts()
7981
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_delete_bucket_event_rule.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -58,6 +59,7 @@ func (storage *Storage) DeleteBucketEventRule(ctx context.Context, request *Dele
5859
} else {
5960
rawQuery += query.Encode()
6061
}
62+
headers := http.Header{}
6163
bucketName := options.OverwrittenBucketName
6264
if bucketName == "" {
6365
var err error
@@ -79,7 +81,7 @@ func (storage *Storage) DeleteBucketEventRule(ctx context.Context, request *Dele
7981
if err != nil {
8082
return nil, err
8183
}
82-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
84+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
8385
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
8486
bucketHosts := httpclient.DefaultBucketHosts()
8587
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_delete_bucket_rules.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -53,6 +54,7 @@ func (storage *Storage) DeleteBucketRules(ctx context.Context, request *DeleteBu
5354
pathSegments = append(pathSegments, "rules", "delete")
5455
path := "/" + strings.Join(pathSegments, "/")
5556
var rawQuery string
57+
headers := http.Header{}
5658
body, err := innerRequest.build()
5759
if err != nil {
5860
return nil, err
@@ -78,7 +80,7 @@ func (storage *Storage) DeleteBucketRules(ctx context.Context, request *DeleteBu
7880
if err != nil {
7981
return nil, err
8082
}
81-
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
83+
req := httpclient.Request{Method: "POST", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, RequestBody: httpclient.GetFormRequestBody(body), OnRequestProgress: options.OnRequestProgress}
8284
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
8385
bucketHosts := httpclient.DefaultBucketHosts()
8486
if options.OverwrittenBucketHosts != nil {

storagev2/apis/api_delete_bucket_taggings.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
httpclient "github.com/qiniu/go-sdk/v7/storagev2/http_client"
1212
region "github.com/qiniu/go-sdk/v7/storagev2/region"
1313
uptoken "github.com/qiniu/go-sdk/v7/storagev2/uptoken"
14+
"net/http"
1415
"net/url"
1516
"strings"
1617
"time"
@@ -53,6 +54,7 @@ func (storage *Storage) DeleteBucketTaggings(ctx context.Context, request *Delet
5354
} else {
5455
rawQuery += query.Encode()
5556
}
57+
headers := http.Header{}
5658
bucketName := options.OverwrittenBucketName
5759
if bucketName == "" {
5860
var err error
@@ -74,7 +76,7 @@ func (storage *Storage) DeleteBucketTaggings(ctx context.Context, request *Delet
7476
if err != nil {
7577
return nil, err
7678
}
77-
req := httpclient.Request{Method: "DELETE", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
79+
req := httpclient.Request{Method: "DELETE", ServiceNames: serviceNames, Path: path, RawQuery: rawQuery, Endpoints: options.OverwrittenEndpoints, Region: options.OverwrittenRegion, Interceptors: []httpclient.Interceptor{uplogInterceptor}, Header: headers, AuthType: auth.TokenQiniu, Credentials: innerRequest.Credentials, OnRequestProgress: options.OnRequestProgress}
7880
if options.OverwrittenEndpoints == nil && options.OverwrittenRegion == nil && storage.client.GetRegions() == nil {
7981
bucketHosts := httpclient.DefaultBucketHosts()
8082
if options.OverwrittenBucketHosts != nil {

0 commit comments

Comments
 (0)