Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set region as optional in doc for cloud_scheduler_job #6987

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3845.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
14 changes: 7 additions & 7 deletions google/resource_cloud_scheduler_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions website/docs/r/cloud_scheduler_job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ The following arguments are supported:
(Required)
The name of the job.

* `region` -
(Required)
Region where the scheduler job resides


- - -

Expand Down Expand Up @@ -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.

Expand Down