From 7959ff036045544c8407fb2624755574a6720c0b Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Thu, 4 Dec 2025 10:14:27 +0800 Subject: [PATCH 1/2] add --- tencentcloud/provider.md | 2 + .../resource_tc_wedata_resource_group.go | 21 +--- .../resource_tc_wedata_resource_group.md | 1 - ...engines_to_project_operation.html.markdown | 60 ++++++++++ .../r/wedata_resource_group.html.markdown | 113 ++++++++++++++++++ website/tencentcloud.erb | 6 + 6 files changed, 184 insertions(+), 19 deletions(-) create mode 100644 website/docs/r/wedata_add_calc_engines_to_project_operation.html.markdown create mode 100644 website/docs/r/wedata_resource_group.html.markdown diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index 1eb7865c31..2ad8e89542 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -2313,6 +2313,8 @@ tencentcloud_wedata_project tencentcloud_wedata_project_member tencentcloud_wedata_resource_group_to_project_attachment tencentcloud_wedata_lineage_attachment +tencentcloud_wedata_resource_group +tencentcloud_wedata_add_calc_engines_to_project_operation Cloud Firewall(CFW) Data Source diff --git a/tencentcloud/services/wedata/resource_tc_wedata_resource_group.go b/tencentcloud/services/wedata/resource_tc_wedata_resource_group.go index b40d38ea2a..e75872a11c 100644 --- a/tencentcloud/services/wedata/resource_tc_wedata_resource_group.go +++ b/tencentcloud/services/wedata/resource_tc_wedata_resource_group.go @@ -174,13 +174,6 @@ func ResourceTencentCloudWedataResourceGroup() *schema.Resource { Description: "Associated project space project ID.", }, - "description": { - Type: schema.TypeString, - Optional: true, - ForceNew: true, - Description: "Resource group description.", - }, - // computed "resource_group_id": { Type: schema.TypeString, @@ -297,10 +290,6 @@ func resourceTencentCloudWedataResourceGroupCreate(d *schema.ResourceData, meta request.AssociatedProjectId = helper.String(v.(string)) } - if v, ok := d.GetOk("description"); ok { - request.Description = helper.String(v.(string)) - } - reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError { result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().CreateResourceGroupWithContext(ctx, request) if e != nil { @@ -374,13 +363,9 @@ func resourceTencentCloudWedataResourceGroupRead(d *schema.ResourceData, meta in _ = d.Set("subnet", items.SubNet) } - // if items.Region != nil { - // _ = d.Set("resource_region", items.Region) - // } - - // if items.Description != nil { - // _ = d.Set("description", items.Description) - // } + if items.Region != nil { + _ = d.Set("resource_region", items.Region) + } if items.Id != nil { _ = d.Set("resource_group_id", items.Id) diff --git a/tencentcloud/services/wedata/resource_tc_wedata_resource_group.md b/tencentcloud/services/wedata/resource_tc_wedata_resource_group.md index 3d432240f2..66660134db 100644 --- a/tencentcloud/services/wedata/resource_tc_wedata_resource_group.md +++ b/tencentcloud/services/wedata/resource_tc_wedata_resource_group.md @@ -25,6 +25,5 @@ resource "tencentcloud_wedata_resource_group" "example" { vpc_id = "vpc-ds5rpnxh" subnet = "subnet-fz7rw5zq" resource_region = "ap-beijing-fsi" - description = "description." } ``` diff --git a/website/docs/r/wedata_add_calc_engines_to_project_operation.html.markdown b/website/docs/r/wedata_add_calc_engines_to_project_operation.html.markdown new file mode 100644 index 0000000000..d6d62c8b6b --- /dev/null +++ b/website/docs/r/wedata_add_calc_engines_to_project_operation.html.markdown @@ -0,0 +1,60 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_add_calc_engines_to_project_operation" +sidebar_current: "docs-tencentcloud-resource-wedata_add_calc_engines_to_project_operation" +description: |- + Provides a resource to create a WeData add calc engines to project operation +--- + +# tencentcloud_wedata_add_calc_engines_to_project_operation + +Provides a resource to create a WeData add calc engines to project operation + +## Example Usage + +```hcl +resource "tencentcloud_wedata_add_calc_engines_to_project_operation" "example" { + project_id = "20241107221758402" + dlc_info { + compute_resources = [ + "dlc_linau6d4bu8bd5u52ffu52a8" + ] + region = "ap-guangzhou" + default_database = "default_db" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `dlc_info` - (Required, List, ForceNew) DLC cluster information. +* `project_id` - (Required, String, ForceNew) Project ID to be modified. + +The `dlc_info` object supports the following: + +* `compute_resources` - (Required, Set) DLC resource names (need to add role Uin to DLC, otherwise resources may not be available). +* `default_database` - (Required, String) Specify the default database for the DLC cluster. +* `region` - (Required, String) DLC region. +* `access_account` - (Optional, String) Access account (only effective for standard mode projects and required for standard mode), used to submit DLC tasks. +It is recommended to use a specified sub-account and set corresponding database table permissions for the sub-account; task runner mode may cause task failures when the responsible person leaves; main account mode is not easy for permission control when multiple projects have different permissions. + +Enum values: +- TASK_RUNNER (Task Runner) +- OWNER (Main Account Mode) +- SUB (Sub-Account Mode). +* `standard_mode_env_tag` - (Optional, String) Cluster configuration tag (only effective for standard mode projects and required for standard mode). Enum values: +- Prod (Production environment) +- Dev (Development environment). +* `sub_account_uin` - (Optional, String) Sub-account ID (only effective for standard mode projects), when AccessAccount is in sub-account mode, the sub-account ID information needs to be specified, other modes do not need to be specified. + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. + + + diff --git a/website/docs/r/wedata_resource_group.html.markdown b/website/docs/r/wedata_resource_group.html.markdown new file mode 100644 index 0000000000..0901adc943 --- /dev/null +++ b/website/docs/r/wedata_resource_group.html.markdown @@ -0,0 +1,113 @@ +--- +subcategory: "Wedata" +layout: "tencentcloud" +page_title: "TencentCloud: tencentcloud_wedata_resource_group" +sidebar_current: "docs-tencentcloud-resource-wedata_resource_group" +description: |- + Provides a resource to create a WeData resource group +--- + +# tencentcloud_wedata_resource_group + +Provides a resource to create a WeData resource group + +## Example Usage + +```hcl +resource "tencentcloud_wedata_resource_group" "example" { + name = "tf_example" + type { + resource_group_type = "Integration" + integration { + real_time_data_sync { + specification = "i32c" + number = 1 + } + + offline_data_sync { + specification = "integrated" + number = 2 + } + } + } + + auto_renew_enabled = false + purchase_period = 1 + vpc_id = "vpc-ds5rpnxh" + subnet = "subnet-fz7rw5zq" + resource_region = "ap-beijing-fsi" +} +``` + +## Argument Reference + +The following arguments are supported: + +* `auto_renew_enabled` - (Required, Bool) Whether auto-renewal is enabled. +* `name` - (Required, String, ForceNew) Resource group name. The name for creating a general resource group must start with a letter, can contain letters, numbers, underscores (_), and up to 64 characters. +* `purchase_period` - (Required, Int) Purchase duration, in months. +* `resource_region` - (Required, String, ForceNew) Resource purchase region. +* `subnet` - (Required, String, ForceNew) Subnet. +* `type` - (Required, List, ForceNew) Information about the activated resource group. +* `vpc_id` - (Required, String, ForceNew) VPC ID. +* `associated_project_id` - (Optional, String, ForceNew) Associated project space project ID. + +The `data_service` object of `type` supports the following: + +* `number` - (Required, Int) Quantity. +* `specification` - (Required, String) Resource group specification. + +The `integration` object of `type` supports the following: + +* `offline_data_sync` - (Optional, List) Offline integration resource group. + +- integrated (Offline data synchronization - 8C16G) +- i16 (Offline data synchronization - 8C32G). +* `real_time_data_sync` - (Optional, List) Real-time integration resource group. + +- i32c (Real-time data synchronization - 16C64G). + +The `offline_data_sync` object of `integration` supports the following: + +* `number` - (Required, Int) Quantity. +* `specification` - (Required, String) Resource group specification. + +The `real_time_data_sync` object of `integration` supports the following: + +* `number` - (Required, Int) Quantity. +* `specification` - (Required, String) Resource group specification. + +The `schedule` object of `type` supports the following: + +* `number` - (Required, Int) Quantity. +* `specification` - (Required, String) Resource group specification. + +The `type` object supports the following: + +* `resource_group_type` - (Required, String) Resource group type. + +- Schedule --- Scheduling resource group +- Integration --- Integration resource group +- DataService -- Data service resource group. +* `data_service` - (Optional, List) Data service resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously). + +- ds_t (Test specification) +- ds_s (Basic specification) +- ds_m (Popular specification) +- ds_l (Professional specification). +* `integration` - (Optional, List) Integration resource group, subdivided into real-time resource group and offline resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously). +* `schedule` - (Optional, List) Scheduling resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously). + +- s_test (Test specification) +- s_small (Basic specification) +- s_medium (Popular specification) +- s_large (Professional specification). + +## Attributes Reference + +In addition to all arguments above, the following attributes are exported: + +* `id` - ID of the resource. +* `resource_group_id` - Resource group ID. + + diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index 1721343350..520123e822 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -7259,6 +7259,9 @@
  • Resources