@@ -58,113 +58,132 @@ func resourceDataflowJob() *schema.Resource {
58
58
Type : schema .TypeString ,
59
59
Required : true ,
60
60
// ForceNew applies to both stream and batch jobs
61
- ForceNew : true ,
61
+ ForceNew : true ,
62
+ Description : `A unique name for the resource, required by Dataflow.` ,
62
63
},
63
64
64
65
"template_gcs_path" : {
65
- Type : schema .TypeString ,
66
- Required : true ,
66
+ Type : schema .TypeString ,
67
+ Required : true ,
68
+ Description : `The GCS path to the Dataflow job template.` ,
67
69
},
68
70
69
71
"temp_gcs_location" : {
70
- Type : schema .TypeString ,
71
- Required : true ,
72
+ Type : schema .TypeString ,
73
+ Required : true ,
74
+ Description : `A writeable location on GCS for the Dataflow job to dump its temporary data.` ,
72
75
},
73
76
74
77
"zone" : {
75
78
Type : schema .TypeString ,
76
79
Optional : true ,
77
80
// ForceNew applies to both stream and batch jobs
78
- ForceNew : true ,
81
+ ForceNew : true ,
82
+ Description : `The zone in which the created job should run. If it is not provided, the provider zone is used.` ,
79
83
},
80
84
81
85
"region" : {
82
86
Type : schema .TypeString ,
83
87
Optional : true ,
84
88
// ForceNew applies to both stream and batch jobs
85
- ForceNew : true ,
89
+ ForceNew : true ,
90
+ Description : `The region in which the created job should run.` ,
86
91
},
87
92
88
93
"max_workers" : {
89
94
Type : schema .TypeInt ,
90
95
Optional : true ,
91
96
// ForceNew applies to both stream and batch jobs
92
- ForceNew : true ,
97
+ ForceNew : true ,
98
+ Description : `The number of workers permitted to work on the job. More workers may improve processing speed at additional cost.` ,
93
99
},
94
100
95
101
"parameters" : {
96
- Type : schema .TypeMap ,
97
- Optional : true ,
102
+ Type : schema .TypeMap ,
103
+ Optional : true ,
104
+ Description : `Key/Value pairs to be passed to the Dataflow job (as used in the template).` ,
98
105
},
99
106
100
107
"labels" : {
101
108
Type : schema .TypeMap ,
102
109
Optional : true ,
103
110
DiffSuppressFunc : resourceDataflowJobLabelDiffSuppress ,
111
+ Description : `User labels to be specified for the job. Keys and values should follow the restrictions specified in the labeling restrictions page. NOTE: Google-provided Dataflow templates often provide default labels that begin with goog-dataflow-provided. Unless explicitly set in config, these labels will be ignored to prevent diffs on re-apply.` ,
104
112
},
105
113
106
114
"on_delete" : {
107
115
Type : schema .TypeString ,
108
116
ValidateFunc : validation .StringInSlice ([]string {"cancel" , "drain" }, false ),
109
117
Optional : true ,
110
118
Default : "drain" ,
119
+ Description : `One of "drain" or "cancel". Specifies behavior of deletion during terraform destroy.` ,
111
120
},
112
121
113
122
"project" : {
114
123
Type : schema .TypeString ,
115
124
Optional : true ,
116
125
Computed : true ,
117
126
// ForceNew applies to both stream and batch jobs
118
- ForceNew : true ,
127
+ ForceNew : true ,
128
+ Description : `The project in which the resource belongs.` ,
119
129
},
120
130
121
131
"state" : {
122
- Type : schema .TypeString ,
123
- Computed : true ,
132
+ Type : schema .TypeString ,
133
+ Computed : true ,
134
+ Description : `The current state of the resource, selected from the JobState enum.` ,
124
135
},
125
136
"type" : {
126
- Type : schema .TypeString ,
127
- Computed : true ,
137
+ Type : schema .TypeString ,
138
+ Computed : true ,
139
+ Description : `The type of this job, selected from the JobType enum.` ,
128
140
},
129
141
"service_account_email" : {
130
- Type : schema .TypeString ,
131
- Optional : true ,
142
+ Type : schema .TypeString ,
143
+ Optional : true ,
144
+ Description : `The Service Account email used to create the job.` ,
132
145
},
133
146
134
147
"network" : {
135
148
Type : schema .TypeString ,
136
149
Optional : true ,
137
150
DiffSuppressFunc : compareSelfLinkOrResourceName ,
151
+ Description : `The network to which VMs will be assigned. If it is not provided, "default" will be used.` ,
138
152
},
139
153
140
154
"subnetwork" : {
141
155
Type : schema .TypeString ,
142
156
Optional : true ,
143
157
DiffSuppressFunc : compareSelfLinkOrResourceName ,
158
+ Description : `The subnetwork to which VMs will be assigned. Should be of the form "regions/REGION/subnetworks/SUBNETWORK".` ,
144
159
},
145
160
146
161
"machine_type" : {
147
- Type : schema .TypeString ,
148
- Optional : true ,
162
+ Type : schema .TypeString ,
163
+ Optional : true ,
164
+ Description : `The machine type to use for the job.` ,
149
165
},
150
166
151
167
"ip_configuration" : {
152
168
Type : schema .TypeString ,
153
169
Optional : true ,
170
+ Description : `The configuration for VM IPs. Options are "WORKER_IP_PUBLIC" or "WORKER_IP_PRIVATE".` ,
154
171
ValidateFunc : validation .StringInSlice ([]string {"WORKER_IP_PUBLIC" , "WORKER_IP_PRIVATE" , "" }, false ),
155
172
},
156
173
157
174
"additional_experiments" : {
158
- Type : schema .TypeSet ,
159
- Optional : true ,
175
+ Type : schema .TypeSet ,
176
+ Optional : true ,
177
+ Description : `List of experiments that should be used by the job. An example value is ["enable_stackdriver_agent_metrics"].` ,
160
178
Elem : & schema.Schema {
161
179
Type : schema .TypeString ,
162
180
},
163
181
},
164
182
165
183
"job_id" : {
166
- Type : schema .TypeString ,
167
- Computed : true ,
184
+ Type : schema .TypeString ,
185
+ Computed : true ,
186
+ Description : `The unique ID of this job.` ,
168
187
},
169
188
},
170
189
}
0 commit comments