Skip to content

Commit

Permalink
add desc to schema for 3 compute resources (#3680)
Browse files Browse the repository at this point in the history
Co-authored-by: Edward Sun <[email protected]>
  • Loading branch information
edwardmedia and Edward Sun authored Jun 24, 2020
1 parent 170953a commit fa3480e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ func computeInstanceFromTemplateSchema() map[string]*schema.Schema {
})

s["source_instance_template"] = &schema.Schema{
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: `Name or self link of an instance template to create the instance based on.`,
}

return s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ func resourceComputeProjectDefaultNetworkTier() *schema.Resource {
"network_tier": {
Type: schema.TypeString,
Required: true,
Description: `The default network tier to be configured for the project. This field can take the following values: PREMIUM or STANDARD.`,
ValidateFunc: validation.StringInSlice([]string{"PREMIUM", "STANDARD"}, false),
},

"project": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: `The ID of the project in which the resource belongs. If it is not provided, the provider project is used.`,
},
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,22 @@ func resourceComputeProjectMetadataItem() *schema.Resource {

Schema: map[string]*schema.Schema{
"key": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
Type: schema.TypeString,
Required: true,
ForceNew: true,
Description: `The metadata key to set.`,
},
"value": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
Description: `The value to set for the given metadata key.`,
},
"project": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: `The ID of the project in which the resource belongs. If it is not provided, the provider project is used.`,
},
},

Expand Down

0 comments on commit fa3480e

Please sign in to comment.