Skip to content

Commit a391083

Browse files
committed
add
1 parent b2ceec4 commit a391083

File tree

15 files changed

+374
-98
lines changed

15 files changed

+374
-98
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ require (
100100
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/waf v1.0.1163
101101
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wedata v1.0.792
102102
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/wss v1.0.199
103-
github.com/tencentyun/cos-go-sdk-v5 v0.7.64
103+
github.com/tencentyun/cos-go-sdk-v5 v0.7.66
104104
github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1
105105
gopkg.in/yaml.v2 v2.4.0
106106
)

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,10 @@ github.com/tencentyun/cos-go-sdk-v5 v0.7.64-0.20250324024831-9ab072216e10 h1:0YE
11451145
github.com/tencentyun/cos-go-sdk-v5 v0.7.64-0.20250324024831-9ab072216e10/go.mod h1:8+hG+mQMuRP/OIS9d83syAvXvrMj9HhkND6Q1fLghw0=
11461146
github.com/tencentyun/cos-go-sdk-v5 v0.7.64 h1:2ADzzr+hcWl4Fw44DwXe0btlVzAYkdvHQ4glUyR0+mM=
11471147
github.com/tencentyun/cos-go-sdk-v5 v0.7.64/go.mod h1:8+hG+mQMuRP/OIS9d83syAvXvrMj9HhkND6Q1fLghw0=
1148+
github.com/tencentyun/cos-go-sdk-v5 v0.7.66-0.20250526100824-edd430d7fffb h1:UtCUmXCVOZz1XtgUhizhtzkIcmb2yRbC+IL3f/7MSxs=
1149+
github.com/tencentyun/cos-go-sdk-v5 v0.7.66-0.20250526100824-edd430d7fffb/go.mod h1:8+hG+mQMuRP/OIS9d83syAvXvrMj9HhkND6Q1fLghw0=
1150+
github.com/tencentyun/cos-go-sdk-v5 v0.7.66 h1:O4O6EsozBoDjxWbltr3iULgkI7WPj/BFNlYTXDuE64E=
1151+
github.com/tencentyun/cos-go-sdk-v5 v0.7.66/go.mod h1:8+hG+mQMuRP/OIS9d83syAvXvrMj9HhkND6Q1fLghw0=
11481152
github.com/tenntenn/modver v1.0.1 h1:2klLppGhDgzJrScMpkj9Ujy3rXPUspSjAcev9tSEBgA=
11491153
github.com/tenntenn/modver v1.0.1/go.mod h1:bePIyQPb7UeioSRkw3Q0XeMhYZSMx9B8ePqg6SAMGH0=
11501154
github.com/tenntenn/text/transform v0.0.0-20200319021203-7eef512accb3 h1:f+jULpRQGxTSkNYKJ51yaw6ChIqO+Je8UqsTKN/cDag=

tencentcloud/services/cos/resource_tc_cos_bucket.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,7 +1673,7 @@ func resourceTencentCloudCosBucketOriginPullUpdate(ctx context.Context, service
16731673
HTTPStatusCode: "404",
16741674
},
16751675
OriginParameter: &cos.BucketOriginParameter{
1676-
CopyOriginData: true,
1676+
CopyOriginData: helper.Bool(true),
16771677
HttpHeader: &cos.BucketOriginHttpHeader{},
16781678
},
16791679
OriginInfo: &cos.BucketOriginInfo{
@@ -1720,10 +1720,10 @@ func resourceTencentCloudCosBucketOriginPullUpdate(ctx context.Context, service
17201720
item.OriginInfo.HostInfo = &tmpHost
17211721
}
17221722
if v, ok := dMap["follow_query_string"]; ok {
1723-
item.OriginParameter.FollowQueryString = v.(bool)
1723+
item.OriginParameter.FollowQueryString = helper.Bool(v.(bool))
17241724
}
17251725
if v, ok := dMap["follow_redirection"]; ok {
1726-
item.OriginParameter.FollowRedirection = v.(bool)
1726+
item.OriginParameter.FollowRedirection = helper.Bool(v.(bool))
17271727
}
17281728
//if v, ok := dMap["copy_origin_data"]; ok {
17291729
// item.OriginParameter.CopyOriginData = v.(bool)

tencentcloud/services/cos/service_tencentcloud_cos.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,8 +1357,8 @@ func (me *CosService) GetBucketPullOrigin(ctx context.Context, bucket string) (r
13571357
}
13581358

13591359
item["protocol"] = helper.String(rule.OriginParameter.Protocol)
1360-
item["follow_redirection"] = helper.Bool(rule.OriginParameter.FollowRedirection)
1361-
item["follow_query_string"] = helper.Bool(rule.OriginParameter.FollowQueryString)
1360+
item["follow_redirection"] = rule.OriginParameter.FollowRedirection
1361+
item["follow_query_string"] = rule.OriginParameter.FollowQueryString
13621362
}
13631363

13641364
if rule.OriginInfo.HostInfo != nil {

vendor/github.com/tencentyun/cos-go-sdk-v5/CHANGELOG.md

Lines changed: 40 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tencentyun/cos-go-sdk-v5/bucket_origin.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tencentyun/cos-go-sdk-v5/bucket_replication.go

Lines changed: 21 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/tencentyun/cos-go-sdk-v5/ci.go

Lines changed: 59 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)