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

Add type field to google_dataflow_job. #1771

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/3138.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
dataflow: added computed `type` field to `google_dataflow_job`.
```
6 changes: 5 additions & 1 deletion google-beta/resource_dataflow_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ func resourceDataflowJob() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},

"type": {
Type: schema.TypeString,
Computed: true,
},
"service_account_email": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -228,6 +231,7 @@ func resourceDataflowJobRead(d *schema.ResourceData, meta interface{}) error {
d.Set("job_id", job.Id)
d.Set("state", job.CurrentState)
d.Set("name", job.Name)
d.Set("type", job.Type)
d.Set("project", project)
d.Set("labels", job.Labels)

Expand Down
1 change: 1 addition & 0 deletions website/docs/r/dataflow_job.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ The following arguments are supported:
## Attributes Reference

* `job_id` - The unique ID of this job.
* `type` - The type of this job, selected from the [JobType enum](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job.JobType)
* `state` - The current state of the resource, selected from the [JobState enum](https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.jobs#Job.JobState)