google-cloud-dataflow-v1beta3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google-cloud-dataflow-v1beta3.rb +21 -0
  7. data/lib/google/cloud/dataflow/v1beta3.rb +43 -0
  8. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service.rb +48 -0
  9. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/client.rb +376 -0
  10. data/lib/google/cloud/dataflow/v1beta3/flex_templates_service/credentials.rb +54 -0
  11. data/lib/google/cloud/dataflow/v1beta3/jobs.rb +49 -0
  12. data/lib/google/cloud/dataflow/v1beta3/jobs/client.rb +868 -0
  13. data/lib/google/cloud/dataflow/v1beta3/jobs/credentials.rb +54 -0
  14. data/lib/google/cloud/dataflow/v1beta3/messages.rb +49 -0
  15. data/lib/google/cloud/dataflow/v1beta3/messages/client.rb +399 -0
  16. data/lib/google/cloud/dataflow/v1beta3/messages/credentials.rb +54 -0
  17. data/lib/google/cloud/dataflow/v1beta3/metrics.rb +49 -0
  18. data/lib/google/cloud/dataflow/v1beta3/metrics/client.rb +560 -0
  19. data/lib/google/cloud/dataflow/v1beta3/metrics/credentials.rb +54 -0
  20. data/lib/google/cloud/dataflow/v1beta3/snapshots.rb +48 -0
  21. data/lib/google/cloud/dataflow/v1beta3/snapshots/client.rb +515 -0
  22. data/lib/google/cloud/dataflow/v1beta3/snapshots/credentials.rb +54 -0
  23. data/lib/google/cloud/dataflow/v1beta3/templates_service.rb +48 -0
  24. data/lib/google/cloud/dataflow/v1beta3/templates_service/client.rb +543 -0
  25. data/lib/google/cloud/dataflow/v1beta3/templates_service/credentials.rb +54 -0
  26. data/lib/google/cloud/dataflow/v1beta3/version.rb +28 -0
  27. data/lib/google/dataflow/v1beta3/environment_pb.rb +167 -0
  28. data/lib/google/dataflow/v1beta3/jobs_pb.rb +292 -0
  29. data/lib/google/dataflow/v1beta3/jobs_services_pb.rb +83 -0
  30. data/lib/google/dataflow/v1beta3/messages_pb.rb +83 -0
  31. data/lib/google/dataflow/v1beta3/messages_services_pb.rb +52 -0
  32. data/lib/google/dataflow/v1beta3/metrics_pb.rb +126 -0
  33. data/lib/google/dataflow/v1beta3/metrics_services_pb.rb +61 -0
  34. data/lib/google/dataflow/v1beta3/snapshots_pb.rb +75 -0
  35. data/lib/google/dataflow/v1beta3/snapshots_services_pb.rb +49 -0
  36. data/lib/google/dataflow/v1beta3/streaming_pb.rb +105 -0
  37. data/lib/google/dataflow/v1beta3/templates_pb.rb +213 -0
  38. data/lib/google/dataflow/v1beta3/templates_services_pb.rb +65 -0
  39. data/proto_docs/README.md +4 -0
  40. data/proto_docs/google/api/field_behavior.rb +65 -0
  41. data/proto_docs/google/api/resource.rb +283 -0
  42. data/proto_docs/google/dataflow/v1beta3/environment.rb +583 -0
  43. data/proto_docs/google/dataflow/v1beta3/jobs.rb +927 -0
  44. data/proto_docs/google/dataflow/v1beta3/messages.rb +226 -0
  45. data/proto_docs/google/dataflow/v1beta3/metrics.rb +367 -0
  46. data/proto_docs/google/dataflow/v1beta3/snapshots.rb +160 -0
  47. data/proto_docs/google/dataflow/v1beta3/streaming.rb +280 -0
  48. data/proto_docs/google/dataflow/v1beta3/templates.rb +669 -0
  49. data/proto_docs/google/protobuf/any.rb +141 -0
  50. data/proto_docs/google/protobuf/duration.rb +98 -0
  51. data/proto_docs/google/protobuf/struct.rb +96 -0
  52. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  53. data/proto_docs/google/rpc/status.rb +46 -0
  54. metadata +243 -0
@@ -0,0 +1,927 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dataflow
23
+ module V1beta3
24
+ # Defines a job to be run by the Cloud Dataflow service.
25
+ # nextID: 26
26
+ # @!attribute [rw] id
27
+ # @return [::String]
28
+ # The unique ID of this job.
29
+ #
30
+ # This field is set by the Cloud Dataflow service when the Job is
31
+ # created, and is immutable for the life of the job.
32
+ # @!attribute [rw] project_id
33
+ # @return [::String]
34
+ # The ID of the Cloud Platform project that the job belongs to.
35
+ # @!attribute [rw] name
36
+ # @return [::String]
37
+ # The user-specified Cloud Dataflow job name.
38
+ #
39
+ # Only one Job with a given name may exist in a project at any
40
+ # given time. If a caller attempts to create a Job with the same
41
+ # name as an already-existing Job, the attempt returns the
42
+ # existing Job.
43
+ #
44
+ # The name must match the regular expression
45
+ # `[a-z]([-a-z0-9]{0,38}[a-z0-9])?`
46
+ # @!attribute [rw] type
47
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobType]
48
+ # The type of Cloud Dataflow job.
49
+ # @!attribute [rw] environment
50
+ # @return [::Google::Cloud::Dataflow::V1beta3::Environment]
51
+ # The environment for the job.
52
+ # @!attribute [rw] steps
53
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Step>]
54
+ # Exactly one of step or steps_location should be specified.
55
+ #
56
+ # The top-level steps that constitute the entire job. Only retrieved with
57
+ # JOB_VIEW_ALL.
58
+ # @!attribute [rw] steps_location
59
+ # @return [::String]
60
+ # The Cloud Storage location where the steps are stored.
61
+ # @!attribute [rw] current_state
62
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobState]
63
+ # The current state of the job.
64
+ #
65
+ # Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise
66
+ # specified.
67
+ #
68
+ # A job in the `JOB_STATE_RUNNING` state may asynchronously enter a
69
+ # terminal state. After a job has reached a terminal state, no
70
+ # further state updates may be made.
71
+ #
72
+ # This field may be mutated by the Cloud Dataflow service;
73
+ # callers cannot mutate it.
74
+ # @!attribute [rw] current_state_time
75
+ # @return [::Google::Protobuf::Timestamp]
76
+ # The timestamp associated with the current state.
77
+ # @!attribute [rw] requested_state
78
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobState]
79
+ # The job's requested state.
80
+ #
81
+ # `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and
82
+ # `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may
83
+ # also be used to directly set a job's requested state to
84
+ # `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the
85
+ # job if it has not already reached a terminal state.
86
+ # @!attribute [rw] execution_info
87
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionInfo]
88
+ # Deprecated.
89
+ # @!attribute [rw] create_time
90
+ # @return [::Google::Protobuf::Timestamp]
91
+ # The timestamp when the job was initially created. Immutable and set by the
92
+ # Cloud Dataflow service.
93
+ # @!attribute [rw] replace_job_id
94
+ # @return [::String]
95
+ # If this job is an update of an existing job, this field is the job ID
96
+ # of the job it replaced.
97
+ #
98
+ # When sending a `CreateJobRequest`, you can update a job by specifying it
99
+ # here. The job named here is stopped, and its intermediate state is
100
+ # transferred to this job.
101
+ # @!attribute [rw] transform_name_mapping
102
+ # @return [::Google::Protobuf::Map{::String => ::String}]
103
+ # The map of transform name prefixes of the job to be replaced to the
104
+ # corresponding name prefixes of the new job.
105
+ # @!attribute [rw] client_request_id
106
+ # @return [::String]
107
+ # The client's unique identifier of the job, re-used across retried attempts.
108
+ # If this field is set, the service will ensure its uniqueness.
109
+ # The request to create a job will fail if the service has knowledge of a
110
+ # previously submitted job with the same client's ID and job name.
111
+ # The caller may use this field to ensure idempotence of job
112
+ # creation across retried attempts to create a job.
113
+ # By default, the field is empty and, in that case, the service ignores it.
114
+ # @!attribute [rw] replaced_by_job_id
115
+ # @return [::String]
116
+ # If another job is an update of this job (and thus, this job is in
117
+ # `JOB_STATE_UPDATED`), this field contains the ID of that job.
118
+ # @!attribute [rw] temp_files
119
+ # @return [::Array<::String>]
120
+ # A set of files the system should be aware of that are used
121
+ # for temporary storage. These temporary files will be
122
+ # removed on job completion.
123
+ # No duplicates are allowed.
124
+ # No file patterns are supported.
125
+ #
126
+ # The supported files are:
127
+ #
128
+ # Google Cloud Storage:
129
+ #
130
+ # storage.googleapis.com/\\{bucket}/\\{object}
131
+ # bucket.storage.googleapis.com/\\{object}
132
+ # @!attribute [rw] labels
133
+ # @return [::Google::Protobuf::Map{::String => ::String}]
134
+ # User-defined labels for this job.
135
+ #
136
+ # The labels map can contain no more than 64 entries. Entries of the labels
137
+ # map are UTF8 strings that comply with the following restrictions:
138
+ #
139
+ # * Keys must conform to regexp: [\p\\{Ll}\p\\{Lo}][\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,62}
140
+ # * Values must conform to regexp: [\p\\{Ll}\p\\{Lo}\p\\{N}_-]\\{0,63}
141
+ # * Both keys and values are additionally constrained to be <= 128 bytes in
142
+ # size.
143
+ # @!attribute [rw] location
144
+ # @return [::String]
145
+ # The [regional endpoint]
146
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
147
+ # contains this job.
148
+ # @!attribute [rw] pipeline_description
149
+ # @return [::Google::Cloud::Dataflow::V1beta3::PipelineDescription]
150
+ # Preliminary field: The format of this data may change at any time.
151
+ # A description of the user pipeline and stages through which it is executed.
152
+ # Created by Cloud Dataflow service. Only retrieved with
153
+ # JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL.
154
+ # @!attribute [rw] stage_states
155
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageState>]
156
+ # This field may be mutated by the Cloud Dataflow service;
157
+ # callers cannot mutate it.
158
+ # @!attribute [rw] job_metadata
159
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobMetadata]
160
+ # This field is populated by the Dataflow service to support filtering jobs
161
+ # by the metadata values provided here. Populated for ListJobs and all GetJob
162
+ # views SUMMARY and higher.
163
+ # @!attribute [rw] start_time
164
+ # @return [::Google::Protobuf::Timestamp]
165
+ # The timestamp when the job was started (transitioned to JOB_STATE_PENDING).
166
+ # Flexible resource scheduling jobs are started with some delay after job
167
+ # creation, so start_time is unset before start and is updated when the
168
+ # job is started by the Cloud Dataflow service. For other jobs, start_time
169
+ # always equals to create_time and is immutable and set by the Cloud Dataflow
170
+ # service.
171
+ # @!attribute [rw] created_from_snapshot_id
172
+ # @return [::String]
173
+ # If this is specified, the job's initial state is populated from the given
174
+ # snapshot.
175
+ # @!attribute [rw] satisfies_pzs
176
+ # @return [::Boolean]
177
+ # Reserved for future use. This field is set only in responses from the
178
+ # server; it is ignored if it is set in any requests.
179
+ class Job
180
+ include ::Google::Protobuf::MessageExts
181
+ extend ::Google::Protobuf::MessageExts::ClassMethods
182
+
183
+ # @!attribute [rw] key
184
+ # @return [::String]
185
+ # @!attribute [rw] value
186
+ # @return [::String]
187
+ class TransformNameMappingEntry
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # @!attribute [rw] key
193
+ # @return [::String]
194
+ # @!attribute [rw] value
195
+ # @return [::String]
196
+ class LabelsEntry
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+ end
201
+
202
+ # Metadata for a Datastore connector used by the job.
203
+ # @!attribute [rw] namespace
204
+ # @return [::String]
205
+ # Namespace used in the connection.
206
+ # @!attribute [rw] project_id
207
+ # @return [::String]
208
+ # ProjectId accessed in the connection.
209
+ class DatastoreIODetails
210
+ include ::Google::Protobuf::MessageExts
211
+ extend ::Google::Protobuf::MessageExts::ClassMethods
212
+ end
213
+
214
+ # Metadata for a Pub/Sub connector used by the job.
215
+ # @!attribute [rw] topic
216
+ # @return [::String]
217
+ # Topic accessed in the connection.
218
+ # @!attribute [rw] subscription
219
+ # @return [::String]
220
+ # Subscription used in the connection.
221
+ class PubSubIODetails
222
+ include ::Google::Protobuf::MessageExts
223
+ extend ::Google::Protobuf::MessageExts::ClassMethods
224
+ end
225
+
226
+ # Metadata for a File connector used by the job.
227
+ # @!attribute [rw] file_pattern
228
+ # @return [::String]
229
+ # File Pattern used to access files by the connector.
230
+ class FileIODetails
231
+ include ::Google::Protobuf::MessageExts
232
+ extend ::Google::Protobuf::MessageExts::ClassMethods
233
+ end
234
+
235
+ # Metadata for a Cloud BigTable connector used by the job.
236
+ # @!attribute [rw] project_id
237
+ # @return [::String]
238
+ # ProjectId accessed in the connection.
239
+ # @!attribute [rw] instance_id
240
+ # @return [::String]
241
+ # InstanceId accessed in the connection.
242
+ # @!attribute [rw] table_id
243
+ # @return [::String]
244
+ # TableId accessed in the connection.
245
+ class BigTableIODetails
246
+ include ::Google::Protobuf::MessageExts
247
+ extend ::Google::Protobuf::MessageExts::ClassMethods
248
+ end
249
+
250
+ # Metadata for a BigQuery connector used by the job.
251
+ # @!attribute [rw] table
252
+ # @return [::String]
253
+ # Table accessed in the connection.
254
+ # @!attribute [rw] dataset
255
+ # @return [::String]
256
+ # Dataset accessed in the connection.
257
+ # @!attribute [rw] project_id
258
+ # @return [::String]
259
+ # Project accessed in the connection.
260
+ # @!attribute [rw] query
261
+ # @return [::String]
262
+ # Query used to access data in the connection.
263
+ class BigQueryIODetails
264
+ include ::Google::Protobuf::MessageExts
265
+ extend ::Google::Protobuf::MessageExts::ClassMethods
266
+ end
267
+
268
+ # Metadata for a Spanner connector used by the job.
269
+ # @!attribute [rw] project_id
270
+ # @return [::String]
271
+ # ProjectId accessed in the connection.
272
+ # @!attribute [rw] instance_id
273
+ # @return [::String]
274
+ # InstanceId accessed in the connection.
275
+ # @!attribute [rw] database_id
276
+ # @return [::String]
277
+ # DatabaseId accessed in the connection.
278
+ class SpannerIODetails
279
+ include ::Google::Protobuf::MessageExts
280
+ extend ::Google::Protobuf::MessageExts::ClassMethods
281
+ end
282
+
283
+ # The version of the SDK used to run the job.
284
+ # @!attribute [rw] version
285
+ # @return [::String]
286
+ # The version of the SDK used to run the job.
287
+ # @!attribute [rw] version_display_name
288
+ # @return [::String]
289
+ # A readable string describing the version of the SDK.
290
+ # @!attribute [rw] sdk_support_status
291
+ # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion::SdkSupportStatus]
292
+ # The support status for this SDK version.
293
+ class SdkVersion
294
+ include ::Google::Protobuf::MessageExts
295
+ extend ::Google::Protobuf::MessageExts::ClassMethods
296
+
297
+ # The support status of the SDK used to run the job.
298
+ module SdkSupportStatus
299
+ # Cloud Dataflow is unaware of this version.
300
+ UNKNOWN = 0
301
+
302
+ # This is a known version of an SDK, and is supported.
303
+ SUPPORTED = 1
304
+
305
+ # A newer version of the SDK family exists, and an update is recommended.
306
+ STALE = 2
307
+
308
+ # This version of the SDK is deprecated and will eventually be
309
+ # unsupported.
310
+ DEPRECATED = 3
311
+
312
+ # Support for this SDK version has ended and it should no longer be used.
313
+ UNSUPPORTED = 4
314
+ end
315
+ end
316
+
317
+ # Metadata available primarily for filtering jobs. Will be included in the
318
+ # ListJob response and Job SUMMARY view.
319
+ # @!attribute [rw] sdk_version
320
+ # @return [::Google::Cloud::Dataflow::V1beta3::SdkVersion]
321
+ # The SDK version used to run the job.
322
+ # @!attribute [rw] spanner_details
323
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::SpannerIODetails>]
324
+ # Identification of a Spanner source used in the Dataflow job.
325
+ # @!attribute [rw] bigquery_details
326
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigQueryIODetails>]
327
+ # Identification of a BigQuery source used in the Dataflow job.
328
+ # @!attribute [rw] big_table_details
329
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::BigTableIODetails>]
330
+ # Identification of a Cloud BigTable source used in the Dataflow job.
331
+ # @!attribute [rw] pubsub_details
332
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubSubIODetails>]
333
+ # Identification of a PubSub source used in the Dataflow job.
334
+ # @!attribute [rw] file_details
335
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FileIODetails>]
336
+ # Identification of a File source used in the Dataflow job.
337
+ # @!attribute [rw] datastore_details
338
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DatastoreIODetails>]
339
+ # Identification of a Datastore source used in the Dataflow job.
340
+ class JobMetadata
341
+ include ::Google::Protobuf::MessageExts
342
+ extend ::Google::Protobuf::MessageExts::ClassMethods
343
+ end
344
+
345
+ # A message describing the state of a particular execution stage.
346
+ # @!attribute [rw] execution_stage_name
347
+ # @return [::String]
348
+ # The name of the execution stage.
349
+ # @!attribute [rw] execution_stage_state
350
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobState]
351
+ # Executions stage states allow the same set of values as JobState.
352
+ # @!attribute [rw] current_state_time
353
+ # @return [::Google::Protobuf::Timestamp]
354
+ # The time at which the stage transitioned to this state.
355
+ class ExecutionStageState
356
+ include ::Google::Protobuf::MessageExts
357
+ extend ::Google::Protobuf::MessageExts::ClassMethods
358
+ end
359
+
360
+ # A descriptive representation of submitted pipeline as well as the executed
361
+ # form. This data is provided by the Dataflow service for ease of visualizing
362
+ # the pipeline and interpreting Dataflow provided metrics.
363
+ # @!attribute [rw] original_pipeline_transform
364
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::TransformSummary>]
365
+ # Description of each transform in the pipeline and collections between them.
366
+ # @!attribute [rw] execution_pipeline_stage
367
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary>]
368
+ # Description of each stage of execution of the pipeline.
369
+ # @!attribute [rw] display_data
370
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>]
371
+ # Pipeline level display data.
372
+ class PipelineDescription
373
+ include ::Google::Protobuf::MessageExts
374
+ extend ::Google::Protobuf::MessageExts::ClassMethods
375
+ end
376
+
377
+ # Description of the type, names/ids, and input/outputs for a transform.
378
+ # @!attribute [rw] kind
379
+ # @return [::Google::Cloud::Dataflow::V1beta3::KindType]
380
+ # Type of transform.
381
+ # @!attribute [rw] id
382
+ # @return [::String]
383
+ # SDK generated id of this transform instance.
384
+ # @!attribute [rw] name
385
+ # @return [::String]
386
+ # User provided name for this transform instance.
387
+ # @!attribute [rw] display_data
388
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DisplayData>]
389
+ # Transform-specific display data.
390
+ # @!attribute [rw] output_collection_name
391
+ # @return [::Array<::String>]
392
+ # User names for all collection outputs to this transform.
393
+ # @!attribute [rw] input_collection_name
394
+ # @return [::Array<::String>]
395
+ # User names for all collection inputs to this transform.
396
+ class TransformSummary
397
+ include ::Google::Protobuf::MessageExts
398
+ extend ::Google::Protobuf::MessageExts::ClassMethods
399
+ end
400
+
401
+ # Description of the composing transforms, names/ids, and input/outputs of a
402
+ # stage of execution. Some composing transforms and sources may have been
403
+ # generated by the Dataflow service during execution planning.
404
+ # @!attribute [rw] name
405
+ # @return [::String]
406
+ # Dataflow service generated name for this stage.
407
+ # @!attribute [rw] id
408
+ # @return [::String]
409
+ # Dataflow service generated id for this stage.
410
+ # @!attribute [rw] kind
411
+ # @return [::Google::Cloud::Dataflow::V1beta3::KindType]
412
+ # Type of transform this stage is executing.
413
+ # @!attribute [rw] input_source
414
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>]
415
+ # Input sources for this stage.
416
+ # @!attribute [rw] output_source
417
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::StageSource>]
418
+ # Output sources for this stage.
419
+ # @!attribute [rw] prerequisite_stage
420
+ # @return [::Array<::String>]
421
+ # Other stages that must complete before this stage can run.
422
+ # @!attribute [rw] component_transform
423
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentTransform>]
424
+ # Transforms that comprise this execution stage.
425
+ # @!attribute [rw] component_source
426
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ExecutionStageSummary::ComponentSource>]
427
+ # Collections produced and consumed by component transforms of this stage.
428
+ class ExecutionStageSummary
429
+ include ::Google::Protobuf::MessageExts
430
+ extend ::Google::Protobuf::MessageExts::ClassMethods
431
+
432
+ # Description of an input or output of an execution stage.
433
+ # @!attribute [rw] user_name
434
+ # @return [::String]
435
+ # Human-readable name for this source; may be user or system generated.
436
+ # @!attribute [rw] name
437
+ # @return [::String]
438
+ # Dataflow service generated name for this source.
439
+ # @!attribute [rw] original_transform_or_collection
440
+ # @return [::String]
441
+ # User name for the original user transform or collection with which this
442
+ # source is most closely associated.
443
+ # @!attribute [rw] size_bytes
444
+ # @return [::Integer]
445
+ # Size of the source, if measurable.
446
+ class StageSource
447
+ include ::Google::Protobuf::MessageExts
448
+ extend ::Google::Protobuf::MessageExts::ClassMethods
449
+ end
450
+
451
+ # Description of a transform executed as part of an execution stage.
452
+ # @!attribute [rw] user_name
453
+ # @return [::String]
454
+ # Human-readable name for this transform; may be user or system generated.
455
+ # @!attribute [rw] name
456
+ # @return [::String]
457
+ # Dataflow service generated name for this source.
458
+ # @!attribute [rw] original_transform
459
+ # @return [::String]
460
+ # User name for the original user transform with which this transform is
461
+ # most closely associated.
462
+ class ComponentTransform
463
+ include ::Google::Protobuf::MessageExts
464
+ extend ::Google::Protobuf::MessageExts::ClassMethods
465
+ end
466
+
467
+ # Description of an interstitial value between transforms in an execution
468
+ # stage.
469
+ # @!attribute [rw] user_name
470
+ # @return [::String]
471
+ # Human-readable name for this transform; may be user or system generated.
472
+ # @!attribute [rw] name
473
+ # @return [::String]
474
+ # Dataflow service generated name for this source.
475
+ # @!attribute [rw] original_transform_or_collection
476
+ # @return [::String]
477
+ # User name for the original user transform or collection with which this
478
+ # source is most closely associated.
479
+ class ComponentSource
480
+ include ::Google::Protobuf::MessageExts
481
+ extend ::Google::Protobuf::MessageExts::ClassMethods
482
+ end
483
+ end
484
+
485
+ # Data provided with a pipeline or transform to provide descriptive info.
486
+ # @!attribute [rw] key
487
+ # @return [::String]
488
+ # The key identifying the display data.
489
+ # This is intended to be used as a label for the display data
490
+ # when viewed in a dax monitoring system.
491
+ # @!attribute [rw] namespace
492
+ # @return [::String]
493
+ # The namespace for the key. This is usually a class name or programming
494
+ # language namespace (i.e. python module) which defines the display data.
495
+ # This allows a dax monitoring system to specially handle the data
496
+ # and perform custom rendering.
497
+ # @!attribute [rw] str_value
498
+ # @return [::String]
499
+ # Contains value if the data is of string type.
500
+ # @!attribute [rw] int64_value
501
+ # @return [::Integer]
502
+ # Contains value if the data is of int64 type.
503
+ # @!attribute [rw] float_value
504
+ # @return [::Float]
505
+ # Contains value if the data is of float type.
506
+ # @!attribute [rw] java_class_value
507
+ # @return [::String]
508
+ # Contains value if the data is of java class type.
509
+ # @!attribute [rw] timestamp_value
510
+ # @return [::Google::Protobuf::Timestamp]
511
+ # Contains value if the data is of timestamp type.
512
+ # @!attribute [rw] duration_value
513
+ # @return [::Google::Protobuf::Duration]
514
+ # Contains value if the data is of duration type.
515
+ # @!attribute [rw] bool_value
516
+ # @return [::Boolean]
517
+ # Contains value if the data is of a boolean type.
518
+ # @!attribute [rw] short_str_value
519
+ # @return [::String]
520
+ # A possible additional shorter value to display.
521
+ # For example a java_class_name_value of com.mypackage.MyDoFn
522
+ # will be stored with MyDoFn as the short_str_value and
523
+ # com.mypackage.MyDoFn as the java_class_name value.
524
+ # short_str_value can be displayed and java_class_name_value
525
+ # will be displayed as a tooltip.
526
+ # @!attribute [rw] url
527
+ # @return [::String]
528
+ # An optional full URL.
529
+ # @!attribute [rw] label
530
+ # @return [::String]
531
+ # An optional label to display in a dax UI for the element.
532
+ class DisplayData
533
+ include ::Google::Protobuf::MessageExts
534
+ extend ::Google::Protobuf::MessageExts::ClassMethods
535
+ end
536
+
537
+ # Defines a particular step within a Cloud Dataflow job.
538
+ #
539
+ # A job consists of multiple steps, each of which performs some
540
+ # specific operation as part of the overall job. Data is typically
541
+ # passed from one step to another as part of the job.
542
+ #
543
+ # Here's an example of a sequence of steps which together implement a
544
+ # Map-Reduce job:
545
+ #
546
+ # * Read a collection of data from some source, parsing the
547
+ # collection's elements.
548
+ #
549
+ # * Validate the elements.
550
+ #
551
+ # * Apply a user-defined function to map each element to some value
552
+ # and extract an element-specific key value.
553
+ #
554
+ # * Group elements with the same key into a single element with
555
+ # that key, transforming a multiply-keyed collection into a
556
+ # uniquely-keyed collection.
557
+ #
558
+ # * Write the elements out to some data sink.
559
+ #
560
+ # Note that the Cloud Dataflow service may be used to run many different
561
+ # types of jobs, not just Map-Reduce.
562
+ # @!attribute [rw] kind
563
+ # @return [::String]
564
+ # The kind of step in the Cloud Dataflow job.
565
+ # @!attribute [rw] name
566
+ # @return [::String]
567
+ # The name that identifies the step. This must be unique for each
568
+ # step with respect to all other steps in the Cloud Dataflow job.
569
+ # @!attribute [rw] properties
570
+ # @return [::Google::Protobuf::Struct]
571
+ # Named properties associated with the step. Each kind of
572
+ # predefined step has its own required set of properties.
573
+ # Must be provided on Create. Only retrieved with JOB_VIEW_ALL.
574
+ class Step
575
+ include ::Google::Protobuf::MessageExts
576
+ extend ::Google::Protobuf::MessageExts::ClassMethods
577
+ end
578
+
579
+ # Additional information about how a Cloud Dataflow job will be executed that
580
+ # isn't contained in the submitted job.
581
+ # @!attribute [rw] stages
582
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo}]
583
+ # A mapping from each stage to the information about that stage.
584
+ class JobExecutionInfo
585
+ include ::Google::Protobuf::MessageExts
586
+ extend ::Google::Protobuf::MessageExts::ClassMethods
587
+
588
+ # @!attribute [rw] key
589
+ # @return [::String]
590
+ # @!attribute [rw] value
591
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobExecutionStageInfo]
592
+ class StagesEntry
593
+ include ::Google::Protobuf::MessageExts
594
+ extend ::Google::Protobuf::MessageExts::ClassMethods
595
+ end
596
+ end
597
+
598
+ # Contains information about how a particular
599
+ # {::Google::Cloud::Dataflow::V1beta3::Step google.dataflow.v1beta3.Step} will be executed.
600
+ # @!attribute [rw] step_name
601
+ # @return [::Array<::String>]
602
+ # The steps associated with the execution stage.
603
+ # Note that stages may have several steps, and that a given step
604
+ # might be run by more than one stage.
605
+ class JobExecutionStageInfo
606
+ include ::Google::Protobuf::MessageExts
607
+ extend ::Google::Protobuf::MessageExts::ClassMethods
608
+ end
609
+
610
+ # Request to create a Cloud Dataflow job.
611
+ # @!attribute [rw] project_id
612
+ # @return [::String]
613
+ # The ID of the Cloud Platform project that the job belongs to.
614
+ # @!attribute [rw] job
615
+ # @return [::Google::Cloud::Dataflow::V1beta3::Job]
616
+ # The job to create.
617
+ # @!attribute [rw] view
618
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobView]
619
+ # The level of information requested in response.
620
+ # @!attribute [rw] replace_job_id
621
+ # @return [::String]
622
+ # Deprecated. This field is now in the Job message.
623
+ # @!attribute [rw] location
624
+ # @return [::String]
625
+ # The [regional endpoint]
626
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
627
+ # contains this job.
628
+ class CreateJobRequest
629
+ include ::Google::Protobuf::MessageExts
630
+ extend ::Google::Protobuf::MessageExts::ClassMethods
631
+ end
632
+
633
+ # Request to get the state of a Cloud Dataflow job.
634
+ # @!attribute [rw] project_id
635
+ # @return [::String]
636
+ # The ID of the Cloud Platform project that the job belongs to.
637
+ # @!attribute [rw] job_id
638
+ # @return [::String]
639
+ # The job ID.
640
+ # @!attribute [rw] view
641
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobView]
642
+ # The level of information requested in response.
643
+ # @!attribute [rw] location
644
+ # @return [::String]
645
+ # The [regional endpoint]
646
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
647
+ # contains this job.
648
+ class GetJobRequest
649
+ include ::Google::Protobuf::MessageExts
650
+ extend ::Google::Protobuf::MessageExts::ClassMethods
651
+ end
652
+
653
+ # Request to update a Cloud Dataflow job.
654
+ # @!attribute [rw] project_id
655
+ # @return [::String]
656
+ # The ID of the Cloud Platform project that the job belongs to.
657
+ # @!attribute [rw] job_id
658
+ # @return [::String]
659
+ # The job ID.
660
+ # @!attribute [rw] job
661
+ # @return [::Google::Cloud::Dataflow::V1beta3::Job]
662
+ # The updated job.
663
+ # Only the job state is updatable; other fields will be ignored.
664
+ # @!attribute [rw] location
665
+ # @return [::String]
666
+ # The [regional endpoint]
667
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
668
+ # contains this job.
669
+ class UpdateJobRequest
670
+ include ::Google::Protobuf::MessageExts
671
+ extend ::Google::Protobuf::MessageExts::ClassMethods
672
+ end
673
+
674
+ # Request to list Cloud Dataflow jobs.
675
+ # @!attribute [rw] filter
676
+ # @return [::Google::Cloud::Dataflow::V1beta3::ListJobsRequest::Filter]
677
+ # The kind of filter to use.
678
+ # @!attribute [rw] project_id
679
+ # @return [::String]
680
+ # The project which owns the jobs.
681
+ # @!attribute [rw] view
682
+ # @return [::Google::Cloud::Dataflow::V1beta3::JobView]
683
+ # Deprecated. ListJobs always returns summaries now.
684
+ # Use GetJob for other JobViews.
685
+ # @!attribute [rw] page_size
686
+ # @return [::Integer]
687
+ # If there are many jobs, limit response to at most this many.
688
+ # The actual number of jobs returned will be the lesser of max_responses
689
+ # and an unspecified server-defined limit.
690
+ # @!attribute [rw] page_token
691
+ # @return [::String]
692
+ # Set this to the 'next_page_token' field of a previous response
693
+ # to request additional results in a long list.
694
+ # @!attribute [rw] location
695
+ # @return [::String]
696
+ # The [regional endpoint]
697
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
698
+ # contains this job.
699
+ class ListJobsRequest
700
+ include ::Google::Protobuf::MessageExts
701
+ extend ::Google::Protobuf::MessageExts::ClassMethods
702
+
703
+ # This field filters out and returns jobs in the specified job state. The
704
+ # order of data returned is determined by the filter used, and is subject to
705
+ # change.
706
+ module Filter
707
+ # The filter isn't specified, or is unknown. This returns all jobs ordered
708
+ # on descending `JobUuid`.
709
+ UNKNOWN = 0
710
+
711
+ # Returns all running jobs first ordered on creation timestamp, then
712
+ # returns all terminated jobs ordered on the termination timestamp.
713
+ ALL = 1
714
+
715
+ # Filters the jobs that have a terminated state, ordered on the
716
+ # termination timestamp. Example terminated states: `JOB_STATE_STOPPED`,
717
+ # `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc.
718
+ TERMINATED = 2
719
+
720
+ # Filters the jobs that are running ordered on the creation timestamp.
721
+ ACTIVE = 3
722
+ end
723
+ end
724
+
725
+ # Indicates which [regional endpoint]
726
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) failed
727
+ # to respond to a request for data.
728
+ # @!attribute [rw] name
729
+ # @return [::String]
730
+ # The name of the [regional endpoint]
731
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
732
+ # failed to respond.
733
+ class FailedLocation
734
+ include ::Google::Protobuf::MessageExts
735
+ extend ::Google::Protobuf::MessageExts::ClassMethods
736
+ end
737
+
738
+ # Response to a request to list Cloud Dataflow jobs in a project. This might
739
+ # be a partial response, depending on the page size in the ListJobsRequest.
740
+ # However, if the project does not have any jobs, an instance of
741
+ # ListJobsResponse is not returned and the requests's response
742
+ # body is empty {}.
743
+ # @!attribute [rw] jobs
744
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Job>]
745
+ # A subset of the requested job information.
746
+ # @!attribute [rw] next_page_token
747
+ # @return [::String]
748
+ # Set if there may be more results than fit in this response.
749
+ # @!attribute [rw] failed_location
750
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::FailedLocation>]
751
+ # Zero or more messages describing the [regional endpoints]
752
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that
753
+ # failed to respond.
754
+ class ListJobsResponse
755
+ include ::Google::Protobuf::MessageExts
756
+ extend ::Google::Protobuf::MessageExts::ClassMethods
757
+ end
758
+
759
+ # Request to create a snapshot of a job.
760
+ # @!attribute [rw] project_id
761
+ # @return [::String]
762
+ # The project which owns the job to be snapshotted.
763
+ # @!attribute [rw] job_id
764
+ # @return [::String]
765
+ # The job to be snapshotted.
766
+ # @!attribute [rw] ttl
767
+ # @return [::Google::Protobuf::Duration]
768
+ # TTL for the snapshot.
769
+ # @!attribute [rw] location
770
+ # @return [::String]
771
+ # The location that contains this job.
772
+ # @!attribute [rw] snapshot_sources
773
+ # @return [::Boolean]
774
+ # If true, perform snapshots for sources which support this.
775
+ # @!attribute [rw] description
776
+ # @return [::String]
777
+ # User specified description of the snapshot. Maybe empty.
778
+ class SnapshotJobRequest
779
+ include ::Google::Protobuf::MessageExts
780
+ extend ::Google::Protobuf::MessageExts::ClassMethods
781
+ end
782
+
783
+ # Request to check is active jobs exists for a project
784
+ # @!attribute [rw] project_id
785
+ # @return [::String]
786
+ # The project which owns the jobs.
787
+ class CheckActiveJobsRequest
788
+ include ::Google::Protobuf::MessageExts
789
+ extend ::Google::Protobuf::MessageExts::ClassMethods
790
+ end
791
+
792
+ # Response for CheckActiveJobsRequest.
793
+ # @!attribute [rw] active_jobs_exist
794
+ # @return [::Boolean]
795
+ # If True, active jobs exists for project. False otherwise.
796
+ class CheckActiveJobsResponse
797
+ include ::Google::Protobuf::MessageExts
798
+ extend ::Google::Protobuf::MessageExts::ClassMethods
799
+ end
800
+
801
+ # Type of transform or stage operation.
802
+ module KindType
803
+ # Unrecognized transform type.
804
+ UNKNOWN_KIND = 0
805
+
806
+ # ParDo transform.
807
+ PAR_DO_KIND = 1
808
+
809
+ # Group By Key transform.
810
+ GROUP_BY_KEY_KIND = 2
811
+
812
+ # Flatten transform.
813
+ FLATTEN_KIND = 3
814
+
815
+ # Read transform.
816
+ READ_KIND = 4
817
+
818
+ # Write transform.
819
+ WRITE_KIND = 5
820
+
821
+ # Constructs from a constant value, such as with Create.of.
822
+ CONSTANT_KIND = 6
823
+
824
+ # Creates a Singleton view of a collection.
825
+ SINGLETON_KIND = 7
826
+
827
+ # Opening or closing a shuffle session, often as part of a GroupByKey.
828
+ SHUFFLE_KIND = 8
829
+ end
830
+
831
+ # Describes the overall state of a {::Google::Cloud::Dataflow::V1beta3::Job google.dataflow.v1beta3.Job}.
832
+ module JobState
833
+ # The job's run state isn't specified.
834
+ JOB_STATE_UNKNOWN = 0
835
+
836
+ # `JOB_STATE_STOPPED` indicates that the job has not
837
+ # yet started to run.
838
+ JOB_STATE_STOPPED = 1
839
+
840
+ # `JOB_STATE_RUNNING` indicates that the job is currently running.
841
+ JOB_STATE_RUNNING = 2
842
+
843
+ # `JOB_STATE_DONE` indicates that the job has successfully completed.
844
+ # This is a terminal job state. This state may be set by the Cloud Dataflow
845
+ # service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a
846
+ # Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal
847
+ # state.
848
+ JOB_STATE_DONE = 3
849
+
850
+ # `JOB_STATE_FAILED` indicates that the job has failed. This is a
851
+ # terminal job state. This state may only be set by the Cloud Dataflow
852
+ # service, and only as a transition from `JOB_STATE_RUNNING`.
853
+ JOB_STATE_FAILED = 4
854
+
855
+ # `JOB_STATE_CANCELLED` indicates that the job has been explicitly
856
+ # cancelled. This is a terminal job state. This state may only be
857
+ # set via a Cloud Dataflow `UpdateJob` call, and only if the job has not
858
+ # yet reached another terminal state.
859
+ JOB_STATE_CANCELLED = 5
860
+
861
+ # `JOB_STATE_UPDATED` indicates that the job was successfully updated,
862
+ # meaning that this job was stopped and another job was started, inheriting
863
+ # state from this one. This is a terminal job state. This state may only be
864
+ # set by the Cloud Dataflow service, and only as a transition from
865
+ # `JOB_STATE_RUNNING`.
866
+ JOB_STATE_UPDATED = 6
867
+
868
+ # `JOB_STATE_DRAINING` indicates that the job is in the process of draining.
869
+ # A draining job has stopped pulling from its input sources and is processing
870
+ # any data that remains in-flight. This state may be set via a Cloud Dataflow
871
+ # `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs
872
+ # that are draining may only transition to `JOB_STATE_DRAINED`,
873
+ # `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`.
874
+ JOB_STATE_DRAINING = 7
875
+
876
+ # `JOB_STATE_DRAINED` indicates that the job has been drained.
877
+ # A drained job terminated by stopping pulling from its input sources and
878
+ # processing any data that remained in-flight when draining was requested.
879
+ # This state is a terminal state, may only be set by the Cloud Dataflow
880
+ # service, and only as a transition from `JOB_STATE_DRAINING`.
881
+ JOB_STATE_DRAINED = 8
882
+
883
+ # `JOB_STATE_PENDING` indicates that the job has been created but is not yet
884
+ # running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`,
885
+ # or `JOB_STATE_FAILED`.
886
+ JOB_STATE_PENDING = 9
887
+
888
+ # `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled
889
+ # and is in the process of stopping. Jobs that are cancelling may only
890
+ # transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`.
891
+ JOB_STATE_CANCELLING = 10
892
+
893
+ # `JOB_STATE_QUEUED` indicates that the job has been created but is being
894
+ # delayed until launch. Jobs that are queued may only transition to
895
+ # `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`.
896
+ JOB_STATE_QUEUED = 11
897
+
898
+ # `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated
899
+ # resources are currently being cleaned up after a successful run.
900
+ # Currently, this is an opt-in feature, please reach out to Cloud support
901
+ # team if you are interested.
902
+ JOB_STATE_RESOURCE_CLEANING_UP = 12
903
+ end
904
+
905
+ # Selector for how much information is returned in Job responses.
906
+ module JobView
907
+ # The job view to return isn't specified, or is unknown.
908
+ # Responses will contain at least the `JOB_VIEW_SUMMARY` information,
909
+ # and may contain additional information.
910
+ JOB_VIEW_UNKNOWN = 0
911
+
912
+ # Request summary information only:
913
+ # Project ID, Job ID, job name, job type, job status, start/end time,
914
+ # and Cloud SDK version details.
915
+ JOB_VIEW_SUMMARY = 1
916
+
917
+ # Request all information available for this job.
918
+ JOB_VIEW_ALL = 2
919
+
920
+ # Request summary info and limited job description data for steps, labels and
921
+ # environment.
922
+ JOB_VIEW_DESCRIPTION = 3
923
+ end
924
+ end
925
+ end
926
+ end
927
+ end