Skip to content

Commit 17ff865

Browse files
modular-magicianEdward Sun
andauthored
add desc to schema for 3 compute resources (#3680) (#2220)
Co-authored-by: Edward Sun <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Edward Sun <[email protected]>
1 parent 8ae6861 commit 17ff865

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

.changelog/3680.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/resource_compute_instance_from_template.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ func computeInstanceFromTemplateSchema() map[string]*schema.Schema {
6868
})
6969

7070
s["source_instance_template"] = &schema.Schema{
71-
Type: schema.TypeString,
72-
Required: true,
73-
ForceNew: true,
71+
Type: schema.TypeString,
72+
Required: true,
73+
ForceNew: true,
74+
Description: `Name or self link of an instance template to create the instance based on.`,
7475
}
7576

7677
return s

google-beta/resource_compute_project_default_network_tier.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ func resourceComputeProjectDefaultNetworkTier() *schema.Resource {
3131
"network_tier": {
3232
Type: schema.TypeString,
3333
Required: true,
34+
Description: `The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.`,
3435
ValidateFunc: validation.StringInSlice([]string{"PREMIUM", "STANDARD"}, false),
3536
},
3637

3738
"project": {
38-
Type: schema.TypeString,
39-
Optional: true,
40-
Computed: true,
41-
ForceNew: true,
39+
Type: schema.TypeString,
40+
Optional: true,
41+
Computed: true,
42+
ForceNew: true,
43+
Description: `The ID of the project in which the resource belongs. If it is not provided, the provider project is used.`,
4244
},
4345
},
4446
}

google-beta/resource_compute_project_metadata_item.go

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ func resourceComputeProjectMetadataItem() *schema.Resource {
2828

2929
Schema: map[string]*schema.Schema{
3030
"key": {
31-
Type: schema.TypeString,
32-
Required: true,
33-
ForceNew: true,
31+
Type: schema.TypeString,
32+
Required: true,
33+
ForceNew: true,
34+
Description: `The metadata key to set.`,
3435
},
3536
"value": {
36-
Type: schema.TypeString,
37-
Required: true,
37+
Type: schema.TypeString,
38+
Required: true,
39+
Description: `The value to set for the given metadata key.`,
3840
},
3941
"project": {
40-
Type: schema.TypeString,
41-
Optional: true,
42-
Computed: true,
43-
ForceNew: true,
42+
Type: schema.TypeString,
43+
Optional: true,
44+
Computed: true,
45+
ForceNew: true,
46+
Description: `The ID of the project in which the resource belongs. If it is not provided, the provider project is used.`,
4447
},
4548
},
4649

0 commit comments

Comments
 (0)