google-cloud-dataproc 0.10.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +3 -2
  3. data/AUTHENTICATION.md +51 -59
  4. data/LICENSE.md +203 -0
  5. data/MIGRATING.md +310 -0
  6. data/README.md +33 -44
  7. data/lib/{google/cloud/dataproc/v1/doc/google/protobuf/empty.rb → google-cloud-dataproc.rb} +4 -14
  8. data/lib/google/cloud/dataproc.rb +167 -305
  9. data/lib/google/cloud/dataproc/version.rb +6 -2
  10. metadata +97 -100
  11. data/LICENSE +0 -201
  12. data/lib/google/cloud/dataproc/v1.rb +0 -371
  13. data/lib/google/cloud/dataproc/v1/autoscaling_policies_pb.rb +0 -80
  14. data/lib/google/cloud/dataproc/v1/autoscaling_policies_services_pb.rb +0 -59
  15. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service_client.rb +0 -494
  16. data/lib/google/cloud/dataproc/v1/autoscaling_policy_service_client_config.json +0 -51
  17. data/lib/google/cloud/dataproc/v1/cluster_controller_client.rb +0 -824
  18. data/lib/google/cloud/dataproc/v1/cluster_controller_client_config.json +0 -59
  19. data/lib/google/cloud/dataproc/v1/clusters_pb.rb +0 -234
  20. data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +0 -69
  21. data/lib/google/cloud/dataproc/v1/credentials.rb +0 -41
  22. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/autoscaling_policies.rb +0 -238
  23. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb +0 -819
  24. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/jobs.rb +0 -759
  25. data/lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/workflow_templates.rb +0 -566
  26. data/lib/google/cloud/dataproc/v1/doc/google/longrunning/operations.rb +0 -51
  27. data/lib/google/cloud/dataproc/v1/doc/google/protobuf/any.rb +0 -131
  28. data/lib/google/cloud/dataproc/v1/doc/google/protobuf/duration.rb +0 -91
  29. data/lib/google/cloud/dataproc/v1/doc/google/protobuf/field_mask.rb +0 -222
  30. data/lib/google/cloud/dataproc/v1/doc/google/protobuf/timestamp.rb +0 -113
  31. data/lib/google/cloud/dataproc/v1/doc/google/rpc/status.rb +0 -39
  32. data/lib/google/cloud/dataproc/v1/job_controller_client.rb +0 -592
  33. data/lib/google/cloud/dataproc/v1/job_controller_client_config.json +0 -59
  34. data/lib/google/cloud/dataproc/v1/jobs_pb.rb +0 -273
  35. data/lib/google/cloud/dataproc/v1/jobs_services_pb.rb +0 -61
  36. data/lib/google/cloud/dataproc/v1/operations_pb.rb +0 -45
  37. data/lib/google/cloud/dataproc/v1/shared_pb.rb +0 -26
  38. data/lib/google/cloud/dataproc/v1/workflow_template_service_client.rb +0 -770
  39. data/lib/google/cloud/dataproc/v1/workflow_template_service_client_config.json +0 -64
  40. data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +0 -184
  41. data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +0 -105
  42. data/lib/google/cloud/dataproc/v1beta2.rb +0 -371
  43. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_pb.rb +0 -80
  44. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policies_services_pb.rb +0 -59
  45. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client.rb +0 -494
  46. data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client_config.json +0 -51
  47. data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb +0 -833
  48. data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client_config.json +0 -59
  49. data/lib/google/cloud/dataproc/v1beta2/clusters_pb.rb +0 -241
  50. data/lib/google/cloud/dataproc/v1beta2/clusters_services_pb.rb +0 -69
  51. data/lib/google/cloud/dataproc/v1beta2/credentials.rb +0 -41
  52. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/autoscaling_policies.rb +0 -238
  53. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/clusters.rb +0 -841
  54. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/jobs.rb +0 -728
  55. data/lib/google/cloud/dataproc/v1beta2/doc/google/cloud/dataproc/v1beta2/workflow_templates.rb +0 -579
  56. data/lib/google/cloud/dataproc/v1beta2/doc/google/longrunning/operations.rb +0 -51
  57. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/any.rb +0 -131
  58. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/duration.rb +0 -91
  59. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/empty.rb +0 -29
  60. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/field_mask.rb +0 -222
  61. data/lib/google/cloud/dataproc/v1beta2/doc/google/protobuf/timestamp.rb +0 -113
  62. data/lib/google/cloud/dataproc/v1beta2/doc/google/rpc/status.rb +0 -39
  63. data/lib/google/cloud/dataproc/v1beta2/job_controller_client.rb +0 -592
  64. data/lib/google/cloud/dataproc/v1beta2/job_controller_client_config.json +0 -59
  65. data/lib/google/cloud/dataproc/v1beta2/jobs_pb.rb +0 -261
  66. data/lib/google/cloud/dataproc/v1beta2/jobs_services_pb.rb +0 -61
  67. data/lib/google/cloud/dataproc/v1beta2/operations_pb.rb +0 -44
  68. data/lib/google/cloud/dataproc/v1beta2/shared_pb.rb +0 -30
  69. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client.rb +0 -778
  70. data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client_config.json +0 -64
  71. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_pb.rb +0 -186
  72. data/lib/google/cloud/dataproc/v1beta2/workflow_templates_services_pb.rb +0 -105
@@ -1,566 +0,0 @@
1
- # Copyright 2020 Google LLC
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # https://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
-
15
-
16
- module Google
17
- module Cloud
18
- module Dataproc
19
- module V1
20
- # A Dataproc workflow template resource.
21
- # @!attribute [rw] id
22
- # @return [String]
23
- # @!attribute [rw] name
24
- # @return [String]
25
- # Output only. The resource name of the workflow template, as described
26
- # in https://cloud.google.com/apis/design/resource_names.
27
- #
28
- # * For `projects.regions.workflowTemplates`, the resource name of the
29
- # template has the following format:
30
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
31
- #
32
- # * For `projects.locations.workflowTemplates`, the resource name of the
33
- # template has the following format:
34
- # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
35
- # @!attribute [rw] version
36
- # @return [Integer]
37
- # Optional. Used to perform a consistent read-modify-write.
38
- #
39
- # This field should be left blank for a `CreateWorkflowTemplate` request. It
40
- # is required for an `UpdateWorkflowTemplate` request, and must match the
41
- # current server version. A typical update template flow would fetch the
42
- # current template with a `GetWorkflowTemplate` request, which will return
43
- # the current template with the `version` field filled in with the
44
- # current server version. The user updates other fields in the template,
45
- # then returns it as part of the `UpdateWorkflowTemplate` request.
46
- # @!attribute [rw] create_time
47
- # @return [Google::Protobuf::Timestamp]
48
- # Output only. The time template was created.
49
- # @!attribute [rw] update_time
50
- # @return [Google::Protobuf::Timestamp]
51
- # Output only. The time template was last updated.
52
- # @!attribute [rw] labels
53
- # @return [Hash{String => String}]
54
- # Optional. The labels to associate with this template. These labels
55
- # will be propagated to all jobs and clusters created by the workflow
56
- # instance.
57
- #
58
- # Label **keys** must contain 1 to 63 characters, and must conform to
59
- # [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
60
- #
61
- # Label **values** may be empty, but, if present, must contain 1 to 63
62
- # characters, and must conform to
63
- # [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
64
- #
65
- # No more than 32 labels can be associated with a template.
66
- # @!attribute [rw] placement
67
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplatePlacement]
68
- # Required. WorkflowTemplate scheduling information.
69
- # @!attribute [rw] jobs
70
- # @return [Array<Google::Cloud::Dataproc::V1::OrderedJob>]
71
- # Required. The Directed Acyclic Graph of Jobs to submit.
72
- # @!attribute [rw] parameters
73
- # @return [Array<Google::Cloud::Dataproc::V1::TemplateParameter>]
74
- # Optional. emplate parameters whose values are substituted into the
75
- # template. Values for parameters must be provided when the template is
76
- # instantiated.
77
- class WorkflowTemplate; end
78
-
79
- # Specifies workflow execution target.
80
- #
81
- # Either `managed_cluster` or `cluster_selector` is required.
82
- # @!attribute [rw] managed_cluster
83
- # @return [Google::Cloud::Dataproc::V1::ManagedCluster]
84
- # A cluster that is managed by the workflow.
85
- # @!attribute [rw] cluster_selector
86
- # @return [Google::Cloud::Dataproc::V1::ClusterSelector]
87
- # Optional. A selector that chooses target cluster for jobs based
88
- # on metadata.
89
- #
90
- # The selector is evaluated at the time each job is submitted.
91
- class WorkflowTemplatePlacement; end
92
-
93
- # Cluster that is managed by the workflow.
94
- # @!attribute [rw] cluster_name
95
- # @return [String]
96
- # Required. The cluster name prefix. A unique cluster name will be formed by
97
- # appending a random suffix.
98
- #
99
- # The name must contain only lower-case letters (a-z), numbers (0-9),
100
- # and hyphens (-). Must begin with a letter. Cannot begin or end with
101
- # hyphen. Must consist of between 2 and 35 characters.
102
- # @!attribute [rw] config
103
- # @return [Google::Cloud::Dataproc::V1::ClusterConfig]
104
- # Required. The cluster configuration.
105
- # @!attribute [rw] labels
106
- # @return [Hash{String => String}]
107
- # Optional. The labels to associate with this cluster.
108
- #
109
- # Label keys must be between 1 and 63 characters long, and must conform to
110
- # the following PCRE regular expression:
111
- # [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62}
112
- #
113
- # Label values must be between 1 and 63 characters long, and must conform to
114
- # the following PCRE regular expression: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63}
115
- #
116
- # No more than 32 labels can be associated with a given cluster.
117
- class ManagedCluster; end
118
-
119
- # A selector that chooses target cluster for jobs based on metadata.
120
- # @!attribute [rw] zone
121
- # @return [String]
122
- # Optional. The zone where workflow process executes. This parameter does not
123
- # affect the selection of the cluster.
124
- #
125
- # If unspecified, the zone of the first cluster matching the selector
126
- # is used.
127
- # @!attribute [rw] cluster_labels
128
- # @return [Hash{String => String}]
129
- # Required. The cluster labels. Cluster must have all labels
130
- # to match.
131
- class ClusterSelector; end
132
-
133
- # A job executed by the workflow.
134
- # @!attribute [rw] step_id
135
- # @return [String]
136
- # Required. The step id. The id must be unique among all jobs
137
- # within the template.
138
- #
139
- # The step id is used as prefix for job id, as job
140
- # `goog-dataproc-workflow-step-id` label, and in
141
- # {Google::Cloud::Dataproc::V1::OrderedJob#prerequisite_step_ids prerequisiteStepIds} field from other
142
- # steps.
143
- #
144
- # The id must contain only letters (a-z, A-Z), numbers (0-9),
145
- # underscores (_), and hyphens (-). Cannot begin or end with underscore
146
- # or hyphen. Must consist of between 3 and 50 characters.
147
- # @!attribute [rw] hadoop_job
148
- # @return [Google::Cloud::Dataproc::V1::HadoopJob]
149
- # @!attribute [rw] spark_job
150
- # @return [Google::Cloud::Dataproc::V1::SparkJob]
151
- # @!attribute [rw] pyspark_job
152
- # @return [Google::Cloud::Dataproc::V1::PySparkJob]
153
- # @!attribute [rw] hive_job
154
- # @return [Google::Cloud::Dataproc::V1::HiveJob]
155
- # @!attribute [rw] pig_job
156
- # @return [Google::Cloud::Dataproc::V1::PigJob]
157
- # @!attribute [rw] spark_sql_job
158
- # @return [Google::Cloud::Dataproc::V1::SparkSqlJob]
159
- # @!attribute [rw] labels
160
- # @return [Hash{String => String}]
161
- # Optional. The labels to associate with this job.
162
- #
163
- # Label keys must be between 1 and 63 characters long, and must conform to
164
- # the following regular expression:
165
- # [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62}
166
- #
167
- # Label values must be between 1 and 63 characters long, and must conform to
168
- # the following regular expression: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63}
169
- #
170
- # No more than 32 labels can be associated with a given job.
171
- # @!attribute [rw] scheduling
172
- # @return [Google::Cloud::Dataproc::V1::JobScheduling]
173
- # Optional. Job scheduling configuration.
174
- # @!attribute [rw] prerequisite_step_ids
175
- # @return [Array<String>]
176
- # Optional. The optional list of prerequisite job step_ids.
177
- # If not specified, the job will start at the beginning of workflow.
178
- class OrderedJob; end
179
-
180
- # A configurable parameter that replaces one or more fields in the template.
181
- # Parameterizable fields:
182
- # * Labels
183
- # * File uris
184
- # * Job properties
185
- # * Job arguments
186
- # * Script variables
187
- # * Main class (in HadoopJob and SparkJob)
188
- # * Zone (in ClusterSelector)
189
- # @!attribute [rw] name
190
- # @return [String]
191
- # Required. Parameter name.
192
- # The parameter name is used as the key, and paired with the
193
- # parameter value, which are passed to the template when the template
194
- # is instantiated.
195
- # The name must contain only capital letters (A-Z), numbers (0-9), and
196
- # underscores (_), and must not start with a number. The maximum length is
197
- # 40 characters.
198
- # @!attribute [rw] fields
199
- # @return [Array<String>]
200
- # Required. Paths to all fields that the parameter replaces.
201
- # A field is allowed to appear in at most one parameter's list of field
202
- # paths.
203
- #
204
- # A field path is similar in syntax to a {Google::Protobuf::FieldMask}.
205
- # For example, a field path that references the zone field of a workflow
206
- # template's cluster selector would be specified as
207
- # `placement.clusterSelector.zone`.
208
- #
209
- # Also, field paths can reference fields using the following syntax:
210
- #
211
- # * Values in maps can be referenced by key:
212
- # * labels['key']
213
- # * placement.clusterSelector.clusterLabels['key']
214
- # * placement.managedCluster.labels['key']
215
- # * placement.clusterSelector.clusterLabels['key']
216
- # * jobs['step-id'].labels['key']
217
- #
218
- # * Jobs in the jobs list can be referenced by step-id:
219
- # * jobs['step-id'].hadoopJob.mainJarFileUri
220
- # * jobs['step-id'].hiveJob.queryFileUri
221
- # * jobs['step-id'].pySparkJob.mainPythonFileUri
222
- # * jobs['step-id'].hadoopJob.jarFileUris[0]
223
- # * jobs['step-id'].hadoopJob.archiveUris[0]
224
- # * jobs['step-id'].hadoopJob.fileUris[0]
225
- # * jobs['step-id'].pySparkJob.pythonFileUris[0]
226
- #
227
- # * Items in repeated fields can be referenced by a zero-based index:
228
- # * jobs['step-id'].sparkJob.args[0]
229
- #
230
- # * Other examples:
231
- # * jobs['step-id'].hadoopJob.properties['key']
232
- # * jobs['step-id'].hadoopJob.args[0]
233
- # * jobs['step-id'].hiveJob.scriptVariables['key']
234
- # * jobs['step-id'].hadoopJob.mainJarFileUri
235
- # * placement.clusterSelector.zone
236
- #
237
- # It may not be possible to parameterize maps and repeated fields in their
238
- # entirety since only individual map values and individual items in repeated
239
- # fields can be referenced. For example, the following field paths are
240
- # invalid:
241
- #
242
- # * placement.clusterSelector.clusterLabels
243
- # * jobs['step-id'].sparkJob.args
244
- # @!attribute [rw] description
245
- # @return [String]
246
- # Optional. Brief description of the parameter.
247
- # Must not exceed 1024 characters.
248
- # @!attribute [rw] validation
249
- # @return [Google::Cloud::Dataproc::V1::ParameterValidation]
250
- # Optional. Validation rules to be applied to this parameter's value.
251
- class TemplateParameter; end
252
-
253
- # Configuration for parameter validation.
254
- # @!attribute [rw] regex
255
- # @return [Google::Cloud::Dataproc::V1::RegexValidation]
256
- # Validation based on regular expressions.
257
- # @!attribute [rw] values
258
- # @return [Google::Cloud::Dataproc::V1::ValueValidation]
259
- # Validation based on a list of allowed values.
260
- class ParameterValidation; end
261
-
262
- # Validation based on regular expressions.
263
- # @!attribute [rw] regexes
264
- # @return [Array<String>]
265
- # Required. RE2 regular expressions used to validate the parameter's value.
266
- # The value must match the regex in its entirety (substring
267
- # matches are not sufficient).
268
- class RegexValidation; end
269
-
270
- # Validation based on a list of allowed values.
271
- # @!attribute [rw] values
272
- # @return [Array<String>]
273
- # Required. List of allowed values for the parameter.
274
- class ValueValidation; end
275
-
276
- # A Dataproc workflow template resource.
277
- # @!attribute [rw] template
278
- # @return [String]
279
- # Output only. The resource name of the workflow template as described
280
- # in https://cloud.google.com/apis/design/resource_names.
281
- #
282
- # * For `projects.regions.workflowTemplates`, the resource name of the
283
- # template has the following format:
284
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
285
- #
286
- # * For `projects.locations.workflowTemplates`, the resource name of the
287
- # template has the following format:
288
- # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
289
- # @!attribute [rw] version
290
- # @return [Integer]
291
- # Output only. The version of template at the time of
292
- # workflow instantiation.
293
- # @!attribute [rw] create_cluster
294
- # @return [Google::Cloud::Dataproc::V1::ClusterOperation]
295
- # Output only. The create cluster operation metadata.
296
- # @!attribute [rw] graph
297
- # @return [Google::Cloud::Dataproc::V1::WorkflowGraph]
298
- # Output only. The workflow graph.
299
- # @!attribute [rw] delete_cluster
300
- # @return [Google::Cloud::Dataproc::V1::ClusterOperation]
301
- # Output only. The delete cluster operation metadata.
302
- # @!attribute [rw] state
303
- # @return [Google::Cloud::Dataproc::V1::WorkflowMetadata::State]
304
- # Output only. The workflow state.
305
- # @!attribute [rw] cluster_name
306
- # @return [String]
307
- # Output only. The name of the target cluster.
308
- # @!attribute [rw] parameters
309
- # @return [Hash{String => String}]
310
- # Map from parameter names to values that were used for those parameters.
311
- # @!attribute [rw] start_time
312
- # @return [Google::Protobuf::Timestamp]
313
- # Output only. Workflow start time.
314
- # @!attribute [rw] end_time
315
- # @return [Google::Protobuf::Timestamp]
316
- # Output only. Workflow end time.
317
- # @!attribute [rw] cluster_uuid
318
- # @return [String]
319
- # Output only. The UUID of target cluster.
320
- class WorkflowMetadata
321
- # The operation state.
322
- module State
323
- # Unused.
324
- UNKNOWN = 0
325
-
326
- # The operation has been created.
327
- PENDING = 1
328
-
329
- # The operation is running.
330
- RUNNING = 2
331
-
332
- # The operation is done; either cancelled or completed.
333
- DONE = 3
334
- end
335
- end
336
-
337
- # The cluster operation triggered by a workflow.
338
- # @!attribute [rw] operation_id
339
- # @return [String]
340
- # Output only. The id of the cluster operation.
341
- # @!attribute [rw] error
342
- # @return [String]
343
- # Output only. Error, if operation failed.
344
- # @!attribute [rw] done
345
- # @return [true, false]
346
- # Output only. Indicates the operation is done.
347
- class ClusterOperation; end
348
-
349
- # The workflow graph.
350
- # @!attribute [rw] nodes
351
- # @return [Array<Google::Cloud::Dataproc::V1::WorkflowNode>]
352
- # Output only. The workflow nodes.
353
- class WorkflowGraph; end
354
-
355
- # The workflow node.
356
- # @!attribute [rw] step_id
357
- # @return [String]
358
- # Output only. The name of the node.
359
- # @!attribute [rw] prerequisite_step_ids
360
- # @return [Array<String>]
361
- # Output only. Node's prerequisite nodes.
362
- # @!attribute [rw] job_id
363
- # @return [String]
364
- # Output only. The job id; populated after the node enters RUNNING state.
365
- # @!attribute [rw] state
366
- # @return [Google::Cloud::Dataproc::V1::WorkflowNode::NodeState]
367
- # Output only. The node state.
368
- # @!attribute [rw] error
369
- # @return [String]
370
- # Output only. The error detail.
371
- class WorkflowNode
372
- # The workflow node state.
373
- module NodeState
374
- # State is unspecified.
375
- NODE_STATE_UNSPECIFIED = 0
376
-
377
- # The node is awaiting prerequisite node to finish.
378
- BLOCKED = 1
379
-
380
- # The node is runnable but not running.
381
- RUNNABLE = 2
382
-
383
- # The node is running.
384
- RUNNING = 3
385
-
386
- # The node completed successfully.
387
- COMPLETED = 4
388
-
389
- # The node failed. A node can be marked FAILED because
390
- # its ancestor or peer failed.
391
- FAILED = 5
392
- end
393
- end
394
-
395
- # A request to create a workflow template.
396
- # @!attribute [rw] parent
397
- # @return [String]
398
- # Required. The resource name of the region or location, as described
399
- # in https://cloud.google.com/apis/design/resource_names.
400
- #
401
- # * For `projects.regions.workflowTemplates,create`, the resource name of the
402
- # region has the following format:
403
- # `projects/{project_id}/regions/{region}`
404
- #
405
- # * For `projects.locations.workflowTemplates.create`, the resource name of
406
- # the location has the following format:
407
- # `projects/{project_id}/locations/{location}`
408
- # @!attribute [rw] template
409
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
410
- # Required. The Dataproc workflow template to create.
411
- class CreateWorkflowTemplateRequest; end
412
-
413
- # A request to fetch a workflow template.
414
- # @!attribute [rw] name
415
- # @return [String]
416
- # Required. The resource name of the workflow template, as described
417
- # in https://cloud.google.com/apis/design/resource_names.
418
- #
419
- # * For `projects.regions.workflowTemplates.get`, the resource name of the
420
- # template has the following format:
421
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
422
- #
423
- # * For `projects.locations.workflowTemplates.get`, the resource name of the
424
- # template has the following format:
425
- # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
426
- # @!attribute [rw] version
427
- # @return [Integer]
428
- # Optional. The version of workflow template to retrieve. Only previously
429
- # instantiated versions can be retrieved.
430
- #
431
- # If unspecified, retrieves the current version.
432
- class GetWorkflowTemplateRequest; end
433
-
434
- # A request to instantiate a workflow template.
435
- # @!attribute [rw] name
436
- # @return [String]
437
- # Required. The resource name of the workflow template, as described
438
- # in https://cloud.google.com/apis/design/resource_names.
439
- #
440
- # * For `projects.regions.workflowTemplates.instantiate`, the resource name
441
- # of the template has the following format:
442
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
443
- #
444
- # * For `projects.locations.workflowTemplates.instantiate`, the resource name
445
- # of the template has the following format:
446
- # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
447
- # @!attribute [rw] version
448
- # @return [Integer]
449
- # Optional. The version of workflow template to instantiate. If specified,
450
- # the workflow will be instantiated only if the current version of
451
- # the workflow template has the supplied version.
452
- #
453
- # This option cannot be used to instantiate a previous version of
454
- # workflow template.
455
- # @!attribute [rw] request_id
456
- # @return [String]
457
- # Optional. A tag that prevents multiple concurrent workflow
458
- # instances with the same tag from running. This mitigates risk of
459
- # concurrent instances started due to retries.
460
- #
461
- # It is recommended to always set this value to a
462
- # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
463
- #
464
- # The tag must contain only letters (a-z, A-Z), numbers (0-9),
465
- # underscores (_), and hyphens (-). The maximum length is 40 characters.
466
- # @!attribute [rw] parameters
467
- # @return [Hash{String => String}]
468
- # Optional. Map from parameter names to values that should be used for those
469
- # parameters. Values may not exceed 100 characters.
470
- class InstantiateWorkflowTemplateRequest; end
471
-
472
- # A request to instantiate an inline workflow template.
473
- # @!attribute [rw] parent
474
- # @return [String]
475
- # Required. The resource name of the region or location, as described
476
- # in https://cloud.google.com/apis/design/resource_names.
477
- #
478
- # * For `projects.regions.workflowTemplates,instantiateinline`, the resource
479
- # name of the region has the following format:
480
- # `projects/{project_id}/regions/{region}`
481
- #
482
- # * For `projects.locations.workflowTemplates.instantiateinline`, the
483
- # resource name of the location has the following format:
484
- # `projects/{project_id}/locations/{location}`
485
- # @!attribute [rw] template
486
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
487
- # Required. The workflow template to instantiate.
488
- # @!attribute [rw] request_id
489
- # @return [String]
490
- # Optional. A tag that prevents multiple concurrent workflow
491
- # instances with the same tag from running. This mitigates risk of
492
- # concurrent instances started due to retries.
493
- #
494
- # It is recommended to always set this value to a
495
- # [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
496
- #
497
- # The tag must contain only letters (a-z, A-Z), numbers (0-9),
498
- # underscores (_), and hyphens (-). The maximum length is 40 characters.
499
- class InstantiateInlineWorkflowTemplateRequest; end
500
-
501
- # A request to update a workflow template.
502
- # @!attribute [rw] template
503
- # @return [Google::Cloud::Dataproc::V1::WorkflowTemplate]
504
- # Required. The updated workflow template.
505
- #
506
- # The `template.version` field must match the current version.
507
- class UpdateWorkflowTemplateRequest; end
508
-
509
- # A request to list workflow templates in a project.
510
- # @!attribute [rw] parent
511
- # @return [String]
512
- # Required. The resource name of the region or location, as described
513
- # in https://cloud.google.com/apis/design/resource_names.
514
- #
515
- # * For `projects.regions.workflowTemplates,list`, the resource
516
- # name of the region has the following format:
517
- # `projects/{project_id}/regions/{region}`
518
- #
519
- # * For `projects.locations.workflowTemplates.list`, the
520
- # resource name of the location has the following format:
521
- # `projects/{project_id}/locations/{location}`
522
- # @!attribute [rw] page_size
523
- # @return [Integer]
524
- # Optional. The maximum number of results to return in each response.
525
- # @!attribute [rw] page_token
526
- # @return [String]
527
- # Optional. The page token, returned by a previous call, to request the
528
- # next page of results.
529
- class ListWorkflowTemplatesRequest; end
530
-
531
- # A response to a request to list workflow templates in a project.
532
- # @!attribute [rw] templates
533
- # @return [Array<Google::Cloud::Dataproc::V1::WorkflowTemplate>]
534
- # Output only. WorkflowTemplates list.
535
- # @!attribute [rw] next_page_token
536
- # @return [String]
537
- # Output only. This token is included in the response if there are more
538
- # results to fetch. To fetch additional results, provide this value as the
539
- # page_token in a subsequent <code>ListWorkflowTemplatesRequest</code>.
540
- class ListWorkflowTemplatesResponse; end
541
-
542
- # A request to delete a workflow template.
543
- #
544
- # Currently started workflows will remain running.
545
- # @!attribute [rw] name
546
- # @return [String]
547
- # Required. The resource name of the workflow template, as described
548
- # in https://cloud.google.com/apis/design/resource_names.
549
- #
550
- # * For `projects.regions.workflowTemplates.delete`, the resource name
551
- # of the template has the following format:
552
- # `projects/{project_id}/regions/{region}/workflowTemplates/{template_id}`
553
- #
554
- # * For `projects.locations.workflowTemplates.instantiate`, the resource name
555
- # of the template has the following format:
556
- # `projects/{project_id}/locations/{location}/workflowTemplates/{template_id}`
557
- # @!attribute [rw] version
558
- # @return [Integer]
559
- # Optional. The version of workflow template to delete. If specified,
560
- # will only delete the template if the current server version matches
561
- # specified version.
562
- class DeleteWorkflowTemplateRequest; end
563
- end
564
- end
565
- end
566
- end