Skip to content

Commit 8a2e05e

Browse files
committed
update changelog and format code
1 parent 6a0db71 commit 8a2e05e

11 files changed

+83
-29
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,60 @@
1+
## 1.60.9 (November 16, 2021)
2+
3+
BUGFIXES:
4+
5+
* Resource `tencentcloud_instance` omit `InstanceMarketOptions` field if spot arguments empty
6+
7+
## 1.60.8 (November 16, 2021)
8+
9+
BUGFIXES:
10+
11+
* Resource `tencentcloud_clb_log_set` remove doc
12+
13+
## 1.60.7 (November 16, 2021)
14+
15+
FEATURES:
16+
* **New Resource**: `tencentcloud_clb_log_set`
17+
* **New Resource**: `tencentcloud_clb_log_topic`
18+
19+
ENHANCEMENTS:
20+
21+
* resource `tencentcloud_clb_instance` support set log
22+
* resource `tencentcloud_instance` unlimited spot charge argument
23+
24+
## 1.60.6 (November 12, 2021)
25+
26+
FEATURES:
27+
28+
* **New Resource**: `tencentcloud_monitor_policy_binding_object`
29+
30+
ENHANCEMENTS:
31+
32+
* fix resource `tencentcloud_kubernetes_node_pool` plan change
33+
* fix resource `tencentcloud_monitor_alarm_policy` import lacking eventditions
34+
35+
DEPRECATED:
36+
37+
* Resource: `tencentcloud_monitor_binding_object` replaced by tencentcloud_monitor_policy_binding_object
38+
39+
## 1.60.5 (November 8, 2021)
40+
41+
BUGFIXES:
42+
43+
*Resource `tencentcloud_availability_zones_by_product` add dependency
44+
45+
## 1.60.4 (November 8, 2021)
46+
47+
FEATURES:
48+
* **New Resource**: `tencentcloud_vod_sub_application`
49+
* **New Resource**: `tencentcloud_availability_zones_by_product`
50+
51+
ENHANCEMENTS:
52+
53+
* resource `tencentcloud_clb_instance` support set load_balancer_pass_to_target
54+
55+
DEPRECATED:
56+
* Resource: `tencentcloud_availability_zones` replaced by `tencentcloud_availability_zones_by_product`
57+
158
## 1.60.3 (November 3, 2021)
259

360
BUGFIXES:

tencentcloud/extension_vod.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const (
88
VOD_AUDIO_CHANNEL_STEREO = "stereo"
99

1010
VOD_SUB_APPLICATION_RUNNING = "On"
11-
VOD_SUB_APPLICATION_STOPPED = "Off"
12-
VOD_SUB_APPLICATION_DESTROY = "Destroyed"
11+
VOD_SUB_APPLICATION_STOPPED = "Off"
12+
VOD_SUB_APPLICATION_DESTROY = "Destroyed"
1313

1414
VOD_DEFAULT_OFFSET = 0
1515
VOD_MAX_LIMIT = 100
@@ -21,7 +21,6 @@ var VOD_SUB_APPLICATION_STATUS = []string{
2121
VOD_SUB_APPLICATION_DESTROY,
2222
}
2323

24-
2524
var (
2625
VOD_AUDIO_CHANNEL_TYPE_TO_INT = map[string]int64{
2726
VOD_AUDIO_CHANNEL_MONO: 1,

tencentcloud/resource_tc_monitor_binding_object.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ import (
5353
func resourceTencentMonitorBindingObject() *schema.Resource {
5454
return &schema.Resource{
5555
DeprecationMessage: "This resource has been deprecated in Terraform TencentCloud provider version 1.60.5. Please use 'tencentcloud_monitor_policy_binding_object' instead.",
56-
Create: resourceTencentMonitorBindingObjectCreate,
57-
Read: resourceTencentMonitorBindingObjectRead,
58-
Delete: resourceTencentMonitorBindingObjectDelete,
56+
Create: resourceTencentMonitorBindingObjectCreate,
57+
Read: resourceTencentMonitorBindingObjectRead,
58+
Delete: resourceTencentMonitorBindingObjectDelete,
5959
Schema: map[string]*schema.Schema{
6060
"group_id": {
6161
Type: schema.TypeInt,

tencentcloud/resource_tc_postgresql_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ func resourceTencentCloudPostgresqlInstanceRead(d *schema.ResourceData, meta int
625625

626626
// security groups
627627
// Only redis service support modify Generic DB instance security groups
628-
redisService := RedisService{client:meta.(*TencentCloudClient).apiV3Conn}
628+
redisService := RedisService{client: meta.(*TencentCloudClient).apiV3Conn}
629629
sg, err := redisService.DescribeDBSecurityGroups(ctx, "postgres", d.Id())
630630
if err != nil {
631631
return err

tencentcloud/resource_tc_scf_function.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,19 @@ func resourceTencentCloudScfFunction() *schema.Resource {
188188
Description: "Enable L5 for SCF function, default is `false`.",
189189
},
190190
"layers": {
191-
Type: schema.TypeList,
192-
Optional: true,
191+
Type: schema.TypeList,
192+
Optional: true,
193193
Description: "The list of association layers.",
194194
Elem: &schema.Resource{
195195
Schema: map[string]*schema.Schema{
196196
"layer_name": {
197-
Type: schema.TypeString,
198-
Required: true,
197+
Type: schema.TypeString,
198+
Required: true,
199199
Description: "The name of Layer.",
200200
},
201201
"layer_version": {
202-
Type: schema.TypeInt,
203-
Required: true,
202+
Type: schema.TypeInt,
203+
Required: true,
204204
Description: "The version of layer.",
205205
},
206206
},
@@ -599,7 +599,6 @@ func resourceTencentCloudScfFunctionCreate(d *schema.ResourceData, m interface{}
599599
functionInfo.imageConfig = imageConfigs[0]
600600
}
601601

602-
603602
switch codeType {
604603
case scfFunctionCosCode:
605604
if err := helper.CheckIfSetTogether(d, "cos_bucket_name", "cos_object_name", "cos_bucket_region"); err != nil {

tencentcloud/resource_tc_scf_layer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func resourceTencentCloudScfLayerCreate(d *schema.ResourceData, meta interface{}
185185
if item["cos_bucket_region"] != "" {
186186
content.CosBucketRegion = helper.String(item["cos_bucket_region"].(string))
187187
}
188-
if item["zip_file"] != "" {
188+
if item["zip_file"] != "" {
189189
path, err := homedir.Expand(item["zip_file"].(string))
190190
if err != nil {
191191
return fmt.Errorf("zip file (%s) homedir expand error: %s", item["zip_file"].(string), err.Error())

tencentcloud/resource_tc_tcr_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func resourceTencentCloudTcrInstanceCreate(d *schema.ResourceData, meta interfac
224224
var (
225225
status string
226226
)
227-
status, _, err = tcrService.DescribeExternalEndpointStatus(ctx, instanceId)
227+
status, _, err = tcrService.DescribeExternalEndpointStatus(ctx, instanceId)
228228
if err != nil {
229229
return resource.NonRetryableError(fmt.Errorf("an error occured during DescribeExternalEndpointStatus: %s", err.Error()))
230230
}
@@ -392,7 +392,7 @@ func resourceTencentCloudTcrInstanceUpdate(d *schema.ResourceData, meta interfac
392392
var (
393393
status string
394394
)
395-
status, _, err = tcrService.DescribeExternalEndpointStatus(ctx, instanceId)
395+
status, _, err = tcrService.DescribeExternalEndpointStatus(ctx, instanceId)
396396
if err != nil {
397397
return resource.NonRetryableError(fmt.Errorf("an error occured during DescribeExternalEndpointStatus: %s", err.Error()))
398398
}

tencentcloud/resource_tc_tcr_instance_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
134134
}
135135
}`
136136

137-
138137
const testAccTCRInstance_basic_update_security = `
139138
resource "tencentcloud_tcr_instance" "mytcr_instance" {
140139
name = "testacctcrinstance1"
@@ -150,4 +149,4 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
150149
test = "test"
151150
}
152151
}
153-
`
152+
`

tencentcloud/resource_tc_tcr_repository.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ func resourceTencentCloudTcrRepository() *schema.Resource {
6464
Description: "Name of the TCR repository. Valid length is [2~200]. It can only contain lowercase letters, numbers and separators (`.`, `_`, `-`, `/`), and cannot start, end or continue with separators. Support the use of multi-level address formats, such as `sub1/sub2/repo`.",
6565
},
6666
"brief_desc": {
67-
Type: schema.TypeString,
68-
Optional: true,
67+
Type: schema.TypeString,
68+
Optional: true,
6969
ValidateFunc: validateStringLengthInRange(1, 100),
70-
Description: "Brief description of the repository. Valid length is [1~100].",
70+
Description: "Brief description of the repository. Valid length is [1~100].",
7171
},
7272
"description": {
73-
Type: schema.TypeString,
74-
Optional: true,
73+
Type: schema.TypeString,
74+
Optional: true,
7575
ValidateFunc: validateStringLengthInRange(1, 1000),
76-
Description: "Description of the repository. Valid length is [1~1000].",
76+
Description: "Description of the repository. Valid length is [1~1000].",
7777
},
7878
//computed
7979
"is_public": {

tencentcloud/service_tencentcloud_clb.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ func (me *ClbService) ModifyTargetGroupInstancesWeight(ctx context.Context, targ
13781378
func (me *ClbService) DescribeClbLogSet(ctx context.Context) (logSetId string, healthId string, errRet error) {
13791379
logId := getLogId(ctx)
13801380
request := clb.NewDescribeClsLogSetRequest()
1381-
defer func() {
1381+
defer func() {
13821382
if errRet != nil {
13831383
log.Printf("[CRITAL]%s api[%s] fail, request body [%s], reason[%s]\n",
13841384
logId, "delete object", request.ToJsonString(), errRet.Error())
@@ -1399,7 +1399,7 @@ func (me *ClbService) DescribeClbLogSet(ctx context.Context) (logSetId string, h
13991399
return
14001400
}
14011401

1402-
func (me *ClbService) CreateClbLogSet(ctx context.Context, name string, logsetType string, period int) (id string, errRet error){
1402+
func (me *ClbService) CreateClbLogSet(ctx context.Context, name string, logsetType string, period int) (id string, errRet error) {
14031403
logId := getLogId(ctx)
14041404
request := clb.NewCreateClsLogSetRequest()
14051405
request.Period = helper.IntUint64(period)
@@ -1420,4 +1420,4 @@ func (me *ClbService) CreateClbLogSet(ctx context.Context, name string, logsetTy
14201420
id = *response.Response.LogsetId
14211421
}
14221422
return
1423-
}
1423+
}

0 commit comments

Comments
 (0)