Skip to content

Commit afb79ef

Browse files
committed
add
1 parent 0182ec5 commit afb79ef

File tree

3 files changed

+101
-15
lines changed

3 files changed

+101
-15
lines changed

tencentcloud/services/thpc/extension_thpc.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,31 @@ var SPACE_CHARGE_TYPE = []string{
1414
SPACE_CHARGE_TYPE_PREPAID,
1515
SPACE_CHARGE_TYPE_UNDERWRITE,
1616
}
17+
18+
const (
19+
CVM_DISK_TYPE_LOCAL_NVME = "CVM_DISK_TYPE_LOCAL_NVME"
20+
CVM_DISK_TYPE_LOCAL_BASIC = "LOCAL_BASIC"
21+
CVM_DISK_TYPE_LOCAL_SSD = "LOCAL_SSD"
22+
CVM_DISK_TYPE_CLOUD_BASIC = "CLOUD_BASIC"
23+
CVM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD"
24+
CVM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM"
25+
CVM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD"
26+
CVM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD"
27+
CVM_DISK_TYPE_CLOUD_TSSD = "CLOUD_TSSD"
28+
)
29+
30+
var SYSTEM_DISK_TYPE = []string{
31+
CVM_DISK_TYPE_LOCAL_BASIC,
32+
CVM_DISK_TYPE_LOCAL_SSD,
33+
CVM_DISK_TYPE_CLOUD_BASIC,
34+
CVM_DISK_TYPE_CLOUD_SSD,
35+
CVM_DISK_TYPE_CLOUD_PREMIUM,
36+
CVM_DISK_TYPE_CLOUD_BSSD,
37+
CVM_DISK_TYPE_CLOUD_HSSD,
38+
CVM_DISK_TYPE_CLOUD_TSSD,
39+
}
40+
41+
const (
42+
CVM_INSTANCE_STATE_FAILED = "FAILED"
43+
CVM_INSTANCE_STATE_OPERATING = "OPERATING"
44+
)

tencentcloud/services/thpc/resource_tc_thpc_workspaces.go

Lines changed: 69 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/docs/r/thpc_workspaces.html.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,12 @@ resource "tencentcloud_thpc_workspaces" "example" {
216216

217217
The following arguments are supported:
218218

219-
* `cam_role_name` - (Optional, String) CAM role name.
219+
* `cam_role_name` - (Optional, String) CAM role name authorized to access.
220220
* `client_token` - (Optional, String) A string used to ensure the idempotence of the request. This string is generated by the customer and must be unique across different requests, with a maximum length of 64 ASCII characters. If this parameter is not specified, the idempotence of the request cannot be guaranteed. Example value: system-f3827db9-c58a-49cc-bf10-33fc1923a34a.
221221
* `data_disks` - (Optional, List) Workspace data disk information.
222222
* `disaster_recover_group_id` - (Optional, String) Placement Group ID.
223223
* `enhanced_service` - (Optional, List) Enhanced Services.
224-
* `host_name` - (Optional, String) Instance hostname.
224+
* `host_name` - (Optional, String) The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
225225
* `hpc_cluster_id` - (Optional, String) Hyper Computing Cluster ID.
226226
* `image_id` - (Optional, String) Image ID.
227227
* `internet_accessible` - (Optional, List) Public network bandwidth settings.
@@ -268,7 +268,7 @@ The `internet_accessible` object supports the following:
268268

269269
The `login_settings` object supports the following:
270270

271-
* `key_ids` - (Optional, Set) The key pair to use for the instance.
271+
* `key_ids` - (Optional, Set) The key pair to use for the instance, it looks like `skey-16jig7tx`. Modifying will cause the instance reset.
272272
* `password` - (Optional, String) Password for the instance. In order for the new password to take effect, the instance will be restarted after the password change. Modifying will cause the instance reset.
273273

274274
The `monitor_service` object of `enhanced_service` supports the following:
@@ -292,7 +292,7 @@ The `space_charge_prepaid` object supports the following:
292292
The `system_disk` object supports the following:
293293

294294
* `disk_size` - (Optional, Int) Size of the system disk. unit is GB, Default is 50GB.
295-
* `disk_type` - (Optional, String) System disk type.
295+
* `disk_type` - (Optional, String) System disk type. For more information on limits of system disk types, see [Storage Overview](https://intl.cloud.tencent.com/document/product/213/4952). Valid values: `LOCAL_BASIC`: local disk, `LOCAL_SSD`: local SSD disk, `CLOUD_BASIC`: cloud disk, `CLOUD_SSD`: cloud SSD disk, `CLOUD_PREMIUM`: Premium Cloud Storage, `CLOUD_BSSD`: Basic SSD, `CLOUD_HSSD`: Enhanced SSD, `CLOUD_TSSD`: Tremendous SSD. NOTE: If modified, the instance may force stop.
296296

297297
The `tag_specification` object supports the following:
298298

0 commit comments

Comments
 (0)