From 6a7513ce37f613ccb1e898476f76ec008033301b Mon Sep 17 00:00:00 2001 From: Modular Magician Date: Mon, 10 Aug 2020 16:33:07 +0000 Subject: [PATCH] Set region as optional in doc for cloud_scheduler_job (#3845) Co-authored-by: Edward Sun Signed-off-by: Modular Magician --- .changelog/3845.txt | 3 +++ google/resource_cloud_scheduler_job.go | 14 +++++++------- website/docs/r/cloud_scheduler_job.html.markdown | 8 ++++---- 3 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 .changelog/3845.txt diff --git a/.changelog/3845.txt b/.changelog/3845.txt new file mode 100644 index 00000000000..8ec013c0699 --- /dev/null +++ b/.changelog/3845.txt @@ -0,0 +1,3 @@ +```release-note:none + +``` diff --git a/google/resource_cloud_scheduler_job.go b/google/resource_cloud_scheduler_job.go index 29ea34b812b..18e2187a009 100644 --- a/google/resource_cloud_scheduler_job.go +++ b/google/resource_cloud_scheduler_job.go @@ -99,13 +99,6 @@ func resourceCloudSchedulerJob() *schema.Resource { ForceNew: true, Description: `The name of the job.`, }, - "region": { - Type: schema.TypeString, - Computed: true, - Optional: true, - ForceNew: true, - Description: `Region where the scheduler job resides`, - }, "app_engine_http_target": { Type: schema.TypeList, Optional: true, @@ -345,6 +338,13 @@ Pubsub message must contain either non-empty data, or at least one attribute.`, }, ExactlyOneOf: []string{"pubsub_target", "http_target", "app_engine_http_target"}, }, + "region": { + Type: schema.TypeString, + Computed: true, + Optional: true, + ForceNew: true, + Description: `Region where the scheduler job resides. If it is not provided, Terraform will use the provider default.`, + }, "retry_config": { Type: schema.TypeList, Optional: true, diff --git a/website/docs/r/cloud_scheduler_job.html.markdown b/website/docs/r/cloud_scheduler_job.html.markdown index 25d5043a4b1..12f1c931c11 100644 --- a/website/docs/r/cloud_scheduler_job.html.markdown +++ b/website/docs/r/cloud_scheduler_job.html.markdown @@ -192,10 +192,6 @@ The following arguments are supported: (Required) The name of the job. -* `region` - - (Required) - Region where the scheduler job resides - - - - @@ -252,6 +248,10 @@ The following arguments are supported: send a request to the targeted url Structure is documented below. +* `region` - + (Optional) + Region where the scheduler job resides. If it is not provided, Terraform will use the provider default. + * `project` - (Optional) The ID of the project in which the resource belongs. If it is not provided, the provider project is used.