Skip to content

Commit 7959ff0

Browse files
committed
add
1 parent 0ad1376 commit 7959ff0

File tree

6 files changed

+184
-19
lines changed

6 files changed

+184
-19
lines changed

tencentcloud/provider.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2313,6 +2313,8 @@ tencentcloud_wedata_project
23132313
tencentcloud_wedata_project_member
23142314
tencentcloud_wedata_resource_group_to_project_attachment
23152315
tencentcloud_wedata_lineage_attachment
2316+
tencentcloud_wedata_resource_group
2317+
tencentcloud_wedata_add_calc_engines_to_project_operation
23162318

23172319
Cloud Firewall(CFW)
23182320
Data Source

tencentcloud/services/wedata/resource_tc_wedata_resource_group.go

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -174,13 +174,6 @@ func ResourceTencentCloudWedataResourceGroup() *schema.Resource {
174174
Description: "Associated project space project ID.",
175175
},
176176

177-
"description": {
178-
Type: schema.TypeString,
179-
Optional: true,
180-
ForceNew: true,
181-
Description: "Resource group description.",
182-
},
183-
184177
// computed
185178
"resource_group_id": {
186179
Type: schema.TypeString,
@@ -297,10 +290,6 @@ func resourceTencentCloudWedataResourceGroupCreate(d *schema.ResourceData, meta
297290
request.AssociatedProjectId = helper.String(v.(string))
298291
}
299292

300-
if v, ok := d.GetOk("description"); ok {
301-
request.Description = helper.String(v.(string))
302-
}
303-
304293
reqErr := resource.Retry(tccommon.WriteRetryTimeout, func() *resource.RetryError {
305294
result, e := meta.(tccommon.ProviderMeta).GetAPIV3Conn().UseWedataV20250806Client().CreateResourceGroupWithContext(ctx, request)
306295
if e != nil {
@@ -374,13 +363,9 @@ func resourceTencentCloudWedataResourceGroupRead(d *schema.ResourceData, meta in
374363
_ = d.Set("subnet", items.SubNet)
375364
}
376365

377-
// if items.Region != nil {
378-
// _ = d.Set("resource_region", items.Region)
379-
// }
380-
381-
// if items.Description != nil {
382-
// _ = d.Set("description", items.Description)
383-
// }
366+
if items.Region != nil {
367+
_ = d.Set("resource_region", items.Region)
368+
}
384369

385370
if items.Id != nil {
386371
_ = d.Set("resource_group_id", items.Id)

tencentcloud/services/wedata/resource_tc_wedata_resource_group.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@ resource "tencentcloud_wedata_resource_group" "example" {
2525
vpc_id = "vpc-ds5rpnxh"
2626
subnet = "subnet-fz7rw5zq"
2727
resource_region = "ap-beijing-fsi"
28-
description = "description."
2928
}
3029
```
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
subcategory: "Wedata"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_wedata_add_calc_engines_to_project_operation"
5+
sidebar_current: "docs-tencentcloud-resource-wedata_add_calc_engines_to_project_operation"
6+
description: |-
7+
Provides a resource to create a WeData add calc engines to project operation
8+
---
9+
10+
# tencentcloud_wedata_add_calc_engines_to_project_operation
11+
12+
Provides a resource to create a WeData add calc engines to project operation
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_wedata_add_calc_engines_to_project_operation" "example" {
18+
project_id = "20241107221758402"
19+
dlc_info {
20+
compute_resources = [
21+
"dlc_linau6d4bu8bd5u52ffu52a8"
22+
]
23+
region = "ap-guangzhou"
24+
default_database = "default_db"
25+
}
26+
}
27+
```
28+
29+
## Argument Reference
30+
31+
The following arguments are supported:
32+
33+
* `dlc_info` - (Required, List, ForceNew) DLC cluster information.
34+
* `project_id` - (Required, String, ForceNew) Project ID to be modified.
35+
36+
The `dlc_info` object supports the following:
37+
38+
* `compute_resources` - (Required, Set) DLC resource names (need to add role Uin to DLC, otherwise resources may not be available).
39+
* `default_database` - (Required, String) Specify the default database for the DLC cluster.
40+
* `region` - (Required, String) DLC region.
41+
* `access_account` - (Optional, String) Access account (only effective for standard mode projects and required for standard mode), used to submit DLC tasks.
42+
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.
43+
44+
Enum values:
45+
- TASK_RUNNER (Task Runner)
46+
- OWNER (Main Account Mode)
47+
- SUB (Sub-Account Mode).
48+
* `standard_mode_env_tag` - (Optional, String) Cluster configuration tag (only effective for standard mode projects and required for standard mode). Enum values:
49+
- Prod (Production environment)
50+
- Dev (Development environment).
51+
* `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.
52+
53+
## Attributes Reference
54+
55+
In addition to all arguments above, the following attributes are exported:
56+
57+
* `id` - ID of the resource.
58+
59+
60+
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
---
2+
subcategory: "Wedata"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_wedata_resource_group"
5+
sidebar_current: "docs-tencentcloud-resource-wedata_resource_group"
6+
description: |-
7+
Provides a resource to create a WeData resource group
8+
---
9+
10+
# tencentcloud_wedata_resource_group
11+
12+
Provides a resource to create a WeData resource group
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_wedata_resource_group" "example" {
18+
name = "tf_example"
19+
type {
20+
resource_group_type = "Integration"
21+
integration {
22+
real_time_data_sync {
23+
specification = "i32c"
24+
number = 1
25+
}
26+
27+
offline_data_sync {
28+
specification = "integrated"
29+
number = 2
30+
}
31+
}
32+
}
33+
34+
auto_renew_enabled = false
35+
purchase_period = 1
36+
vpc_id = "vpc-ds5rpnxh"
37+
subnet = "subnet-fz7rw5zq"
38+
resource_region = "ap-beijing-fsi"
39+
}
40+
```
41+
42+
## Argument Reference
43+
44+
The following arguments are supported:
45+
46+
* `auto_renew_enabled` - (Required, Bool) Whether auto-renewal is enabled.
47+
* `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.
48+
* `purchase_period` - (Required, Int) Purchase duration, in months.
49+
* `resource_region` - (Required, String, ForceNew) Resource purchase region.
50+
* `subnet` - (Required, String, ForceNew) Subnet.
51+
* `type` - (Required, List, ForceNew) Information about the activated resource group.
52+
* `vpc_id` - (Required, String, ForceNew) VPC ID.
53+
* `associated_project_id` - (Optional, String, ForceNew) Associated project space project ID.
54+
55+
The `data_service` object of `type` supports the following:
56+
57+
* `number` - (Required, Int) Quantity.
58+
* `specification` - (Required, String) Resource group specification.
59+
60+
The `integration` object of `type` supports the following:
61+
62+
* `offline_data_sync` - (Optional, List) Offline integration resource group.
63+
64+
- integrated (Offline data synchronization - 8C16G)
65+
- i16 (Offline data synchronization - 8C32G).
66+
* `real_time_data_sync` - (Optional, List) Real-time integration resource group.
67+
68+
- i32c (Real-time data synchronization - 16C64G).
69+
70+
The `offline_data_sync` object of `integration` supports the following:
71+
72+
* `number` - (Required, Int) Quantity.
73+
* `specification` - (Required, String) Resource group specification.
74+
75+
The `real_time_data_sync` object of `integration` supports the following:
76+
77+
* `number` - (Required, Int) Quantity.
78+
* `specification` - (Required, String) Resource group specification.
79+
80+
The `schedule` object of `type` supports the following:
81+
82+
* `number` - (Required, Int) Quantity.
83+
* `specification` - (Required, String) Resource group specification.
84+
85+
The `type` object supports the following:
86+
87+
* `resource_group_type` - (Required, String) Resource group type.
88+
89+
- Schedule --- Scheduling resource group
90+
- Integration --- Integration resource group
91+
- DataService -- Data service resource group.
92+
* `data_service` - (Optional, List) Data service resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously).
93+
94+
- ds_t (Test specification)
95+
- ds_s (Basic specification)
96+
- ds_m (Popular specification)
97+
- ds_l (Professional specification).
98+
* `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).
99+
* `schedule` - (Optional, List) Scheduling resource group (Integration, scheduling, and data service resource groups cannot be purchased simultaneously).
100+
101+
- s_test (Test specification)
102+
- s_small (Basic specification)
103+
- s_medium (Popular specification)
104+
- s_large (Professional specification).
105+
106+
## Attributes Reference
107+
108+
In addition to all arguments above, the following attributes are exported:
109+
110+
* `id` - ID of the resource.
111+
* `resource_group_id` - Resource group ID.
112+
113+

website/tencentcloud.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7259,6 +7259,9 @@
72597259
<li>
72607260
<a href="#">Resources</a>
72617261
<ul class="nav nav-auto-expand">
7262+
<li>
7263+
<a href="/docs/providers/tencentcloud/r/wedata_add_calc_engines_to_project_operation.html">tencentcloud_wedata_add_calc_engines_to_project_operation</a>
7264+
</li>
72627265
<li>
72637266
<a href="/docs/providers/tencentcloud/r/wedata_code_file.html">tencentcloud_wedata_code_file</a>
72647267
</li>
@@ -7310,6 +7313,9 @@
73107313
<li>
73117314
<a href="/docs/providers/tencentcloud/r/wedata_resource_folder.html">tencentcloud_wedata_resource_folder</a>
73127315
</li>
7316+
<li>
7317+
<a href="/docs/providers/tencentcloud/r/wedata_resource_group.html">tencentcloud_wedata_resource_group</a>
7318+
</li>
73137319
<li>
73147320
<a href="/docs/providers/tencentcloud/r/wedata_resource_group_to_project_attachment.html">tencentcloud_wedata_resource_group_to_project_attachment</a>
73157321
</li>

0 commit comments

Comments
 (0)