Skip to content

Commit 075a9df

Browse files
committed
chore: regenerate the docs
1 parent cf86f07 commit 075a9df

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

docs/resources/instance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Read-Only:
9797
Optional:
9898

9999
- `number` (Number) The number of GPU devices assigned.
100-
- `type` (String) The type of the GPU device.
100+
- `type` (String) The type of the GPU device. Must be one of: `mdevDevice` or `pciDevice`.
101101
- `uuid` (String) The UUID of the GPU device.
102102

103103

@@ -106,7 +106,7 @@ Optional:
106106

107107
Optional:
108108

109-
- `type` (String) The type of the GPU device.
109+
- `type` (String) The type of the GPU device. Must be one of: `mdevDevice` or `pciDevice`.
110110
- `uuid` (String) The UUID of the GPU device.
111111

112112

docs/resources/virtual_router_offer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ output "zstack_vroffer" {
4040
- `management_network_uuid` (String) The UUID of the management network associated with the virtual router offering. This is a mandatory field.
4141
- `memory_size` (Number) The amount of memory allocated to the virtual router offering. This is a mandatory field, in megabytes (MB)
4242
- `name` (String) The name of the virtual router offering. This is a mandatory field and must be unique.
43-
- `public_network_uuid` (String) The UUID of the public network associated with the virtual router offering. If not specified, it will share the same network UUID as the management network or vice versa, depending on the configuration.
4443
- `zone_uuid` (String) The UUID of the zone where the virtual router offering is deployed. This is a mandatory field.
4544

4645
### Optional
4746

4847
- `description` (String) A description of the virtual router offering, providing additional context or details about the configuration.
4948
- `is_default` (Boolean) Indicates whether this virtual router offering is the default offering. Defaults to `false` if not specified.
49+
- `public_network_uuid` (String) The UUID of the public network associated with the virtual router offering. If not specified, it will share the same network UUID as the management network or vice versa, depending on the configuration.
5050
- `type` (String) The type of the virtual router offering. Defaults to 'VirtualRouter' if not specified.
5151

5252
### Read-Only

zstack/provider/resource_zstack_instance.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ func (r *vmResource) Schema(ctx context.Context, _ resource.SchemaRequest, resp
275275
},
276276
"type": schema.StringAttribute{
277277
Optional: true,
278-
Description: "The type of the GPU device.",
278+
Description: "The type of the GPU device. Must be one of: `mdevDevice` or `pciDevice`.",
279+
Validators: []validator.String{
280+
stringvalidator.OneOf("mdevDevice", "pciDevice"),
281+
},
279282
},
280283
},
281284
},

0 commit comments

Comments
 (0)