Skip to content

Commit 655e0a1

Browse files
committed
add
1 parent 651abc1 commit 655e0a1

File tree

3 files changed

+16
-48
lines changed

3 files changed

+16
-48
lines changed

tencentcloud/services/wedata/resource_tc_wedata_code_file.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,10 @@ Example Usage
44

55
```hcl
66
resource "tencentcloud_wedata_code_file" "example" {
7-
project_id = ""
8-
code_file_name = ""
9-
parent_folder_path = ""
10-
code_file_config {
11-
params = ""
12-
notebook_session_info {
13-
notebook_session_id = ""
14-
notebook_session_name = ""
15-
}
16-
}
17-
18-
code_file_content = ""
7+
project_id = "2983848457986924544"
8+
code_file_name = "tf_example_code_file"
9+
parent_folder_path = "/tf_example"
10+
code_file_content = "Hello Terraform"
1911
}
2012
```
2113

tencentcloud/services/wedata/resource_tc_wedata_code_file_test.go

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -49,34 +49,18 @@ func TestAccTencentCloudWedataCodeFileResource_basic(t *testing.T) {
4949

5050
const testAccWedataCodeFile = `
5151
resource "tencentcloud_wedata_code_file" "example" {
52-
project_id = ""
53-
code_file_name = ""
54-
parent_folder_path = ""
55-
code_file_config {
56-
params = ""
57-
notebook_session_info {
58-
notebook_session_id = ""
59-
notebook_session_name = ""
60-
}
61-
}
62-
63-
code_file_content = ""
52+
project_id = "2983848457986924544"
53+
code_file_name = "tf_example_code_file"
54+
parent_folder_path = "/tf_example"
55+
code_file_content = "Hello Terraform"
6456
}
6557
`
6658

6759
const testAccWedataCodeFileUpdate = `
6860
resource "tencentcloud_wedata_code_file" "example" {
69-
project_id = ""
70-
code_file_name = ""
71-
parent_folder_path = ""
72-
code_file_config {
73-
params = ""
74-
notebook_session_info {
75-
notebook_session_id = ""
76-
notebook_session_name = ""
77-
}
78-
}
79-
80-
code_file_content = ""
61+
project_id = "2983848457986924544"
62+
code_file_name = "tf_example_code_file"
63+
parent_folder_path = "/tf_example"
64+
code_file_content = "Hello Terraform Update"
8165
}
8266
`

website/docs/r/wedata_code_file.html.markdown

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,10 @@ Provides a resource to create a WeData code file
1515

1616
```hcl
1717
resource "tencentcloud_wedata_code_file" "example" {
18-
project_id = ""
19-
code_file_name = ""
20-
parent_folder_path = ""
21-
code_file_config {
22-
params = ""
23-
notebook_session_info {
24-
notebook_session_id = ""
25-
notebook_session_name = ""
26-
}
27-
}
28-
29-
code_file_content = ""
18+
project_id = "2983848457986924544"
19+
code_file_name = "tf_example_code_file"
20+
parent_folder_path = "/tf_example"
21+
code_file_content = "Hello Terraform"
3022
}
3123
```
3224

0 commit comments

Comments
 (0)