From 28c15e0f3f0fdbde39dbcc033082bf90c84707eb Mon Sep 17 00:00:00 2001 From: anonymous Date: Fri, 6 Jan 2023 10:15:19 +0800 Subject: [PATCH 1/3] fix: modiy tag --- tencentcloud/resource_tc_tem_environment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tencentcloud/resource_tc_tem_environment.go b/tencentcloud/resource_tc_tem_environment.go index fe19c9a0ad..720c5c1d18 100644 --- a/tencentcloud/resource_tc_tem_environment.go +++ b/tencentcloud/resource_tc_tem_environment.go @@ -165,7 +165,7 @@ func resourceTencentCloudTemEnvironmentCreate(d *schema.ResourceData, meta inter if tags := helper.GetTags(d, "tags"); len(tags) > 0 { tagService := TagService{client: meta.(*TencentCloudClient).apiV3Conn} region := meta.(*TencentCloudClient).apiV3Conn.Region - resourceName := fmt.Sprintf("qcs::tem:%s:uin/:tem-environment/%s", region, environmentId) + resourceName := fmt.Sprintf("qcs::tem:%s:uin/:environment/%s", region, environmentId) if err := tagService.ModifyTags(ctx, resourceName, tags, nil); err != nil { return err } @@ -215,7 +215,7 @@ func resourceTencentCloudTemEnvironmentRead(d *schema.ResourceData, meta interfa client := meta.(*TencentCloudClient).apiV3Conn tagService := TagService{client: client} region := client.Region - tags, err := tagService.DescribeResourceTags(ctx, "tem", "tem-environment", region, environmentId) + tags, err := tagService.DescribeResourceTags(ctx, "tem", "environment", region, environmentId) if err != nil { return err } From dac76e752906d1ca24da0eff300227665e37bc4f Mon Sep 17 00:00:00 2001 From: anonymous Date: Fri, 6 Jan 2023 10:38:51 +0800 Subject: [PATCH 2/3] fix: modify protocol description --- tencentcloud/resource_tc_tem_application_service.go | 2 +- website/docs/r/tem_application_service.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tencentcloud/resource_tc_tem_application_service.go b/tencentcloud/resource_tc_tem_application_service.go index ce529f027d..988b8af9c5 100644 --- a/tencentcloud/resource_tc_tem_application_service.go +++ b/tencentcloud/resource_tc_tem_application_service.go @@ -99,7 +99,7 @@ func resourceTencentCloudTemApplicationService() *schema.Resource { "protocol": { Type: schema.TypeString, Optional: true, - Description: "udp or tcp.", + Description: "udp or TCP.", }, }, }, diff --git a/website/docs/r/tem_application_service.html.markdown b/website/docs/r/tem_application_service.html.markdown index de92c5753f..8d7009d645 100644 --- a/website/docs/r/tem_application_service.html.markdown +++ b/website/docs/r/tem_application_service.html.markdown @@ -40,7 +40,7 @@ The following arguments are supported: The `port_mapping_item_list` object supports the following: * `port` - (Optional, Int) container port. -* `protocol` - (Optional, String) udp or tcp. +* `protocol` - (Optional, String) udp or TCP. * `target_port` - (Optional, Int) application listen port. The `service` object supports the following: From ca1bc9cdbb20b14fc415aa7279decbffcea56993 Mon Sep 17 00:00:00 2001 From: anonymous Date: Fri, 6 Jan 2023 11:03:39 +0800 Subject: [PATCH 3/3] fix: modify protocol description --- tencentcloud/resource_tc_tem_application_service.go | 2 +- website/docs/r/tem_application_service.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tencentcloud/resource_tc_tem_application_service.go b/tencentcloud/resource_tc_tem_application_service.go index 988b8af9c5..ab5bf5a919 100644 --- a/tencentcloud/resource_tc_tem_application_service.go +++ b/tencentcloud/resource_tc_tem_application_service.go @@ -99,7 +99,7 @@ func resourceTencentCloudTemApplicationService() *schema.Resource { "protocol": { Type: schema.TypeString, Optional: true, - Description: "udp or TCP.", + Description: "UDP or TCP.", }, }, }, diff --git a/website/docs/r/tem_application_service.html.markdown b/website/docs/r/tem_application_service.html.markdown index 8d7009d645..7cc4d17180 100644 --- a/website/docs/r/tem_application_service.html.markdown +++ b/website/docs/r/tem_application_service.html.markdown @@ -40,7 +40,7 @@ The following arguments are supported: The `port_mapping_item_list` object supports the following: * `port` - (Optional, Int) container port. -* `protocol` - (Optional, String) udp or TCP. +* `protocol` - (Optional, String) UDP or TCP. * `target_port` - (Optional, Int) application listen port. The `service` object supports the following: