From cef8d9d80802651e3e8e09d953e43cdcff9537fd Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Wed, 24 Jun 2020 00:39:04 +0000 Subject: [PATCH] add desc to schema for 3 compute resources (#3680) Co-authored-by: Edward Sun Signed-off-by: Modular Magician --- .changelog/3680.txt | 3 +++ ...resource_compute_instance_from_template.go | 7 ++++--- ...ce_compute_project_default_network_tier.go | 10 +++++---- .../resource_compute_project_metadata_item.go | 21 +++++++++++-------- 4 files changed, 25 insertions(+), 16 deletions(-) create mode 100644 .changelog/3680.txt diff --git a/.changelog/3680.txt b/.changelog/3680.txt new file mode 100644 index 00000000000..8ec013c0699 --- /dev/null +++ b/.changelog/3680.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google/resource_compute_instance_from_template.go b/google/resource_compute_instance_from_template.go index 7c382e72665..373942ef4ea 100644 --- a/google/resource_compute_instance_from_template.go +++ b/google/resource_compute_instance_from_template.go @@ -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 diff --git a/google/resource_compute_project_default_network_tier.go b/google/resource_compute_project_default_network_tier.go index 1224d0dafa9..97252ef67ab 100644 --- a/google/resource_compute_project_default_network_tier.go +++ b/google/resource_compute_project_default_network_tier.go @@ -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.`, }, }, } diff --git a/google/resource_compute_project_metadata_item.go b/google/resource_compute_project_metadata_item.go index 95e4c8f9345..7564871a8f4 100644 --- a/google/resource_compute_project_metadata_item.go +++ b/google/resource_compute_project_metadata_item.go @@ -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.`, }, },