google-cloud-dataflow-v1beta3 0.1.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 (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,160 @@
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
+ # Represents a Pubsub snapshot.
25
+ # @!attribute [rw] topic_name
26
+ # @return [::String]
27
+ # The name of the Pubsub topic.
28
+ # @!attribute [rw] snapshot_name
29
+ # @return [::String]
30
+ # The name of the Pubsub snapshot.
31
+ # @!attribute [rw] expire_time
32
+ # @return [::Google::Protobuf::Timestamp]
33
+ # The expire time of the Pubsub snapshot.
34
+ class PubsubSnapshotMetadata
35
+ include ::Google::Protobuf::MessageExts
36
+ extend ::Google::Protobuf::MessageExts::ClassMethods
37
+ end
38
+
39
+ # Represents a snapshot of a job.
40
+ # @!attribute [rw] id
41
+ # @return [::String]
42
+ # The unique ID of this snapshot.
43
+ # @!attribute [rw] project_id
44
+ # @return [::String]
45
+ # The project this snapshot belongs to.
46
+ # @!attribute [rw] source_job_id
47
+ # @return [::String]
48
+ # The job this snapshot was created from.
49
+ # @!attribute [rw] creation_time
50
+ # @return [::Google::Protobuf::Timestamp]
51
+ # The time this snapshot was created.
52
+ # @!attribute [rw] ttl
53
+ # @return [::Google::Protobuf::Duration]
54
+ # The time after which this snapshot will be automatically deleted.
55
+ # @!attribute [rw] state
56
+ # @return [::Google::Cloud::Dataflow::V1beta3::SnapshotState]
57
+ # State of the snapshot.
58
+ # @!attribute [rw] pubsub_metadata
59
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::PubsubSnapshotMetadata>]
60
+ # PubSub snapshot metadata.
61
+ # @!attribute [rw] description
62
+ # @return [::String]
63
+ # User specified description of the snapshot. Maybe empty.
64
+ # @!attribute [rw] disk_size_bytes
65
+ # @return [::Integer]
66
+ # The disk byte size of the snapshot. Only available for snapshots in READY
67
+ # state.
68
+ # @!attribute [rw] region
69
+ # @return [::String]
70
+ # Cloud region where this snapshot lives in, e.g., "us-central1".
71
+ class Snapshot
72
+ include ::Google::Protobuf::MessageExts
73
+ extend ::Google::Protobuf::MessageExts::ClassMethods
74
+ end
75
+
76
+ # Request to get information about a snapshot
77
+ # @!attribute [rw] project_id
78
+ # @return [::String]
79
+ # The ID of the Cloud Platform project that the snapshot belongs to.
80
+ # @!attribute [rw] snapshot_id
81
+ # @return [::String]
82
+ # The ID of the snapshot.
83
+ # @!attribute [rw] location
84
+ # @return [::String]
85
+ # The location that contains this snapshot.
86
+ class GetSnapshotRequest
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+
91
+ # Request to delete a snapshot.
92
+ # @!attribute [rw] project_id
93
+ # @return [::String]
94
+ # The ID of the Cloud Platform project that the snapshot belongs to.
95
+ # @!attribute [rw] snapshot_id
96
+ # @return [::String]
97
+ # The ID of the snapshot.
98
+ # @!attribute [rw] location
99
+ # @return [::String]
100
+ # The location that contains this snapshot.
101
+ class DeleteSnapshotRequest
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
105
+
106
+ # Response from deleting a snapshot.
107
+ class DeleteSnapshotResponse
108
+ include ::Google::Protobuf::MessageExts
109
+ extend ::Google::Protobuf::MessageExts::ClassMethods
110
+ end
111
+
112
+ # Request to list snapshots.
113
+ # @!attribute [rw] project_id
114
+ # @return [::String]
115
+ # The project ID to list snapshots for.
116
+ # @!attribute [rw] job_id
117
+ # @return [::String]
118
+ # If specified, list snapshots created from this job.
119
+ # @!attribute [rw] location
120
+ # @return [::String]
121
+ # The location to list snapshots in.
122
+ class ListSnapshotsRequest
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # List of snapshots.
128
+ # @!attribute [rw] snapshots
129
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::Snapshot>]
130
+ # Returned snapshots.
131
+ class ListSnapshotsResponse
132
+ include ::Google::Protobuf::MessageExts
133
+ extend ::Google::Protobuf::MessageExts::ClassMethods
134
+ end
135
+
136
+ # Snapshot state.
137
+ module SnapshotState
138
+ # Unknown state.
139
+ UNKNOWN_SNAPSHOT_STATE = 0
140
+
141
+ # Snapshot intent to create has been persisted, snapshotting of state has not
142
+ # yet started.
143
+ PENDING = 1
144
+
145
+ # Snapshotting is being performed.
146
+ RUNNING = 2
147
+
148
+ # Snapshot has been created and is ready to be used.
149
+ READY = 3
150
+
151
+ # Snapshot failed to be created.
152
+ FAILED = 4
153
+
154
+ # Snapshot has been deleted.
155
+ DELETED = 5
156
+ end
157
+ end
158
+ end
159
+ end
160
+ end
@@ -0,0 +1,280 @@
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
+ # Global topology of the streaming Dataflow job, including all
25
+ # computations and their sharded locations.
26
+ # @!attribute [rw] computations
27
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ComputationTopology>]
28
+ # The computations associated with a streaming Dataflow job.
29
+ # @!attribute [rw] data_disk_assignments
30
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::DataDiskAssignment>]
31
+ # The disks assigned to a streaming Dataflow job.
32
+ # @!attribute [rw] user_stage_to_computation_name_map
33
+ # @return [::Google::Protobuf::Map{::String => ::String}]
34
+ # Maps user stage names to stable computation names.
35
+ # @!attribute [rw] forwarding_key_bits
36
+ # @return [::Integer]
37
+ # The size (in bits) of keys that will be assigned to source messages.
38
+ # @!attribute [rw] persistent_state_version
39
+ # @return [::Integer]
40
+ # Version number for persistent state.
41
+ class TopologyConfig
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+
45
+ # @!attribute [rw] key
46
+ # @return [::String]
47
+ # @!attribute [rw] value
48
+ # @return [::String]
49
+ class UserStageToComputationNameMapEntry
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+ end
54
+
55
+ # Identifies a pubsub location to use for transferring data into or
56
+ # out of a streaming Dataflow job.
57
+ # @!attribute [rw] topic
58
+ # @return [::String]
59
+ # A pubsub topic, in the form of
60
+ # "pubsub.googleapis.com/topics/<project-id>/<topic-name>"
61
+ # @!attribute [rw] subscription
62
+ # @return [::String]
63
+ # A pubsub subscription, in the form of
64
+ # "pubsub.googleapis.com/subscriptions/<project-id>/<subscription-name>"
65
+ # @!attribute [rw] timestamp_label
66
+ # @return [::String]
67
+ # If set, contains a pubsub label from which to extract record timestamps.
68
+ # If left empty, record timestamps will be generated upon arrival.
69
+ # @!attribute [rw] id_label
70
+ # @return [::String]
71
+ # If set, contains a pubsub label from which to extract record ids.
72
+ # If left empty, record deduplication will be strictly best effort.
73
+ # @!attribute [rw] drop_late_data
74
+ # @return [::Boolean]
75
+ # Indicates whether the pipeline allows late-arriving data.
76
+ # @!attribute [rw] tracking_subscription
77
+ # @return [::String]
78
+ # If set, specifies the pubsub subscription that will be used for tracking
79
+ # custom time timestamps for watermark estimation.
80
+ # @!attribute [rw] with_attributes
81
+ # @return [::Boolean]
82
+ # If true, then the client has requested to get pubsub attributes.
83
+ class PubsubLocation
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # Identifies the location of a streaming computation stage, for
89
+ # stage-to-stage communication.
90
+ # @!attribute [rw] stream_id
91
+ # @return [::String]
92
+ # Identifies the particular stream within the streaming Dataflow
93
+ # job.
94
+ class StreamingStageLocation
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Identifies the location of a streaming side input.
100
+ # @!attribute [rw] tag
101
+ # @return [::String]
102
+ # Identifies the particular side input within the streaming Dataflow job.
103
+ # @!attribute [rw] state_family
104
+ # @return [::String]
105
+ # Identifies the state family where this side input is stored.
106
+ class StreamingSideInputLocation
107
+ include ::Google::Protobuf::MessageExts
108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
109
+ end
110
+
111
+ # Identifies the location of a custom souce.
112
+ # @!attribute [rw] stateful
113
+ # @return [::Boolean]
114
+ # Whether this source is stateful.
115
+ class CustomSourceLocation
116
+ include ::Google::Protobuf::MessageExts
117
+ extend ::Google::Protobuf::MessageExts::ClassMethods
118
+ end
119
+
120
+ # Describes a stream of data, either as input to be processed or as
121
+ # output of a streaming Dataflow job.
122
+ # @!attribute [rw] streaming_stage_location
123
+ # @return [::Google::Cloud::Dataflow::V1beta3::StreamingStageLocation]
124
+ # The stream is part of another computation within the current
125
+ # streaming Dataflow job.
126
+ # @!attribute [rw] pubsub_location
127
+ # @return [::Google::Cloud::Dataflow::V1beta3::PubsubLocation]
128
+ # The stream is a pubsub stream.
129
+ # @!attribute [rw] side_input_location
130
+ # @return [::Google::Cloud::Dataflow::V1beta3::StreamingSideInputLocation]
131
+ # The stream is a streaming side input.
132
+ # @!attribute [rw] custom_source_location
133
+ # @return [::Google::Cloud::Dataflow::V1beta3::CustomSourceLocation]
134
+ # The stream is a custom source.
135
+ class StreamLocation
136
+ include ::Google::Protobuf::MessageExts
137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
138
+ end
139
+
140
+ # State family configuration.
141
+ # @!attribute [rw] state_family
142
+ # @return [::String]
143
+ # The state family value.
144
+ # @!attribute [rw] is_read
145
+ # @return [::Boolean]
146
+ # If true, this family corresponds to a read operation.
147
+ class StateFamilyConfig
148
+ include ::Google::Protobuf::MessageExts
149
+ extend ::Google::Protobuf::MessageExts::ClassMethods
150
+ end
151
+
152
+ # All configuration data for a particular Computation.
153
+ # @!attribute [rw] system_stage_name
154
+ # @return [::String]
155
+ # The system stage name.
156
+ # @!attribute [rw] computation_id
157
+ # @return [::String]
158
+ # The ID of the computation.
159
+ # @!attribute [rw] key_ranges
160
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeLocation>]
161
+ # The key ranges processed by the computation.
162
+ # @!attribute [rw] inputs
163
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>]
164
+ # The inputs to the computation.
165
+ # @!attribute [rw] outputs
166
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StreamLocation>]
167
+ # The outputs from the computation.
168
+ # @!attribute [rw] state_families
169
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::StateFamilyConfig>]
170
+ # The state family values.
171
+ class ComputationTopology
172
+ include ::Google::Protobuf::MessageExts
173
+ extend ::Google::Protobuf::MessageExts::ClassMethods
174
+ end
175
+
176
+ # Location information for a specific key-range of a sharded computation.
177
+ # Currently we only support UTF-8 character splits to simplify encoding into
178
+ # JSON.
179
+ # @!attribute [rw] start
180
+ # @return [::String]
181
+ # The start (inclusive) of the key range.
182
+ # @!attribute [rw] end
183
+ # @return [::String]
184
+ # The end (exclusive) of the key range.
185
+ # @!attribute [rw] delivery_endpoint
186
+ # @return [::String]
187
+ # The physical location of this range assignment to be used for
188
+ # streaming computation cross-worker message delivery.
189
+ # @!attribute [rw] data_disk
190
+ # @return [::String]
191
+ # The name of the data disk where data for this range is stored.
192
+ # This name is local to the Google Cloud Platform project and uniquely
193
+ # identifies the disk within that project, for example
194
+ # "myproject-1014-104817-4c2-harness-0-disk-1".
195
+ # @!attribute [rw] deprecated_persistent_directory
196
+ # @return [::String]
197
+ # DEPRECATED. The location of the persistent state for this range, as a
198
+ # persistent directory in the worker local filesystem.
199
+ class KeyRangeLocation
200
+ include ::Google::Protobuf::MessageExts
201
+ extend ::Google::Protobuf::MessageExts::ClassMethods
202
+ end
203
+
204
+ # Describes mounted data disk.
205
+ # @!attribute [rw] data_disk
206
+ # @return [::String]
207
+ # The name of the data disk.
208
+ # This name is local to the Google Cloud Platform project and uniquely
209
+ # identifies the disk within that project, for example
210
+ # "myproject-1014-104817-4c2-harness-0-disk-1".
211
+ class MountedDataDisk
212
+ include ::Google::Protobuf::MessageExts
213
+ extend ::Google::Protobuf::MessageExts::ClassMethods
214
+ end
215
+
216
+ # Data disk assignment for a given VM instance.
217
+ # @!attribute [rw] vm_instance
218
+ # @return [::String]
219
+ # VM instance name the data disks mounted to, for example
220
+ # "myproject-1014-104817-4c2-harness-0".
221
+ # @!attribute [rw] data_disks
222
+ # @return [::Array<::String>]
223
+ # Mounted data disks. The order is important a data disk's 0-based index in
224
+ # this list defines which persistent directory the disk is mounted to, for
225
+ # example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" },
226
+ # { "myproject-1014-104817-4c2-harness-0-disk-1" }.
227
+ class DataDiskAssignment
228
+ include ::Google::Protobuf::MessageExts
229
+ extend ::Google::Protobuf::MessageExts::ClassMethods
230
+ end
231
+
232
+ # Data disk assignment information for a specific key-range of a sharded
233
+ # computation.
234
+ # Currently we only support UTF-8 character splits to simplify encoding into
235
+ # JSON.
236
+ # @!attribute [rw] start
237
+ # @return [::String]
238
+ # The start (inclusive) of the key range.
239
+ # @!attribute [rw] end
240
+ # @return [::String]
241
+ # The end (exclusive) of the key range.
242
+ # @!attribute [rw] data_disk
243
+ # @return [::String]
244
+ # The name of the data disk where data for this range is stored.
245
+ # This name is local to the Google Cloud Platform project and uniquely
246
+ # identifies the disk within that project, for example
247
+ # "myproject-1014-104817-4c2-harness-0-disk-1".
248
+ class KeyRangeDataDiskAssignment
249
+ include ::Google::Protobuf::MessageExts
250
+ extend ::Google::Protobuf::MessageExts::ClassMethods
251
+ end
252
+
253
+ # Describes full or partial data disk assignment information of the computation
254
+ # ranges.
255
+ # @!attribute [rw] computation_id
256
+ # @return [::String]
257
+ # The ID of the computation.
258
+ # @!attribute [rw] range_assignments
259
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::KeyRangeDataDiskAssignment>]
260
+ # Data disk assignments for ranges from this computation.
261
+ class StreamingComputationRanges
262
+ include ::Google::Protobuf::MessageExts
263
+ extend ::Google::Protobuf::MessageExts::ClassMethods
264
+ end
265
+
266
+ # Streaming appliance snapshot configuration.
267
+ # @!attribute [rw] snapshot_id
268
+ # @return [::String]
269
+ # If set, indicates the snapshot id for the snapshot being performed.
270
+ # @!attribute [rw] import_state_endpoint
271
+ # @return [::String]
272
+ # Indicates which endpoint is used to import appliance state.
273
+ class StreamingApplianceSnapshotConfig
274
+ include ::Google::Protobuf::MessageExts
275
+ extend ::Google::Protobuf::MessageExts::ClassMethods
276
+ end
277
+ end
278
+ end
279
+ end
280
+ end
@@ -0,0 +1,669 @@
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
+ # Response to the request to launch a job from Flex Template.
25
+ # @!attribute [rw] job
26
+ # @return [::Google::Cloud::Dataflow::V1beta3::Job]
27
+ # The job that was launched, if the request was not a dry run and
28
+ # the job was successfully launched.
29
+ class LaunchFlexTemplateResponse
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+ end
33
+
34
+ # Container Spec.
35
+ # @!attribute [rw] image
36
+ # @return [::String]
37
+ # Name of the docker container image. E.g., gcr.io/project/some-image
38
+ # @!attribute [rw] metadata
39
+ # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata]
40
+ # Metadata describing a template including description and validation rules.
41
+ # @!attribute [rw] sdk_info
42
+ # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo]
43
+ # Required. SDK info of the Flex Template.
44
+ # @!attribute [rw] default_environment
45
+ # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment]
46
+ # Default runtime environment for the job.
47
+ class ContainerSpec
48
+ include ::Google::Protobuf::MessageExts
49
+ extend ::Google::Protobuf::MessageExts::ClassMethods
50
+ end
51
+
52
+ # Launch FlexTemplate Parameter.
53
+ # @!attribute [rw] job_name
54
+ # @return [::String]
55
+ # Required. The job name to use for the created job. For update job request,
56
+ # job name should be same as the existing running job.
57
+ # @!attribute [rw] container_spec
58
+ # @return [::Google::Cloud::Dataflow::V1beta3::ContainerSpec]
59
+ # Spec about the container image to launch.
60
+ # @!attribute [rw] container_spec_gcs_path
61
+ # @return [::String]
62
+ # Cloud Storage path to a file with json serialized ContainerSpec as
63
+ # content.
64
+ # @!attribute [rw] parameters
65
+ # @return [::Google::Protobuf::Map{::String => ::String}]
66
+ # The parameters for FlexTemplate.
67
+ # Ex. \\{"num_workers":"5"}
68
+ # @!attribute [rw] launch_options
69
+ # @return [::Google::Protobuf::Map{::String => ::String}]
70
+ # Launch options for this flex template job. This is a common set of options
71
+ # across languages and templates. This should not be used to pass job
72
+ # parameters.
73
+ # @!attribute [rw] environment
74
+ # @return [::Google::Cloud::Dataflow::V1beta3::FlexTemplateRuntimeEnvironment]
75
+ # The runtime environment for the FlexTemplate job
76
+ # @!attribute [rw] update
77
+ # @return [::Boolean]
78
+ # Set this to true if you are sending a request to update a running
79
+ # streaming job. When set, the job name should be the same as the
80
+ # running job.
81
+ # @!attribute [rw] transform_name_mappings
82
+ # @return [::Google::Protobuf::Map{::String => ::String}]
83
+ # Use this to pass transform_name_mappings for streaming update jobs.
84
+ # Ex:\\{"oldTransformName":"newTransformName",...}'
85
+ class LaunchFlexTemplateParameter
86
+ include ::Google::Protobuf::MessageExts
87
+ extend ::Google::Protobuf::MessageExts::ClassMethods
88
+
89
+ # @!attribute [rw] key
90
+ # @return [::String]
91
+ # @!attribute [rw] value
92
+ # @return [::String]
93
+ class ParametersEntry
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+ end
97
+
98
+ # @!attribute [rw] key
99
+ # @return [::String]
100
+ # @!attribute [rw] value
101
+ # @return [::String]
102
+ class LaunchOptionsEntry
103
+ include ::Google::Protobuf::MessageExts
104
+ extend ::Google::Protobuf::MessageExts::ClassMethods
105
+ end
106
+
107
+ # @!attribute [rw] key
108
+ # @return [::String]
109
+ # @!attribute [rw] value
110
+ # @return [::String]
111
+ class TransformNameMappingsEntry
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+ end
115
+ end
116
+
117
+ # The environment values to be set at runtime for flex template.
118
+ # @!attribute [rw] num_workers
119
+ # @return [::Integer]
120
+ # The initial number of Google Compute Engine instances for the job.
121
+ # @!attribute [rw] max_workers
122
+ # @return [::Integer]
123
+ # The maximum number of Google Compute Engine instances to be made
124
+ # available to your pipeline during execution, from 1 to 1000.
125
+ # @!attribute [rw] zone
126
+ # @return [::String]
127
+ # The Compute Engine [availability
128
+ # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
129
+ # for launching worker instances to run your pipeline.
130
+ # In the future, worker_zone will take precedence.
131
+ # @!attribute [rw] service_account_email
132
+ # @return [::String]
133
+ # The email address of the service account to run the job as.
134
+ # @!attribute [rw] temp_location
135
+ # @return [::String]
136
+ # The Cloud Storage path to use for temporary files.
137
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
138
+ # @!attribute [rw] machine_type
139
+ # @return [::String]
140
+ # The machine type to use for the job. Defaults to the value from the
141
+ # template if not specified.
142
+ # @!attribute [rw] additional_experiments
143
+ # @return [::Array<::String>]
144
+ # Additional experiment flags for the job.
145
+ # @!attribute [rw] network
146
+ # @return [::String]
147
+ # Network to which VMs will be assigned. If empty or unspecified,
148
+ # the service will use the network "default".
149
+ # @!attribute [rw] subnetwork
150
+ # @return [::String]
151
+ # Subnetwork to which VMs will be assigned, if desired. You can specify a
152
+ # subnetwork using either a complete URL or an abbreviated path. Expected to
153
+ # be of the form
154
+ # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK"
155
+ # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in
156
+ # a Shared VPC network, you must use the complete URL.
157
+ # @!attribute [rw] additional_user_labels
158
+ # @return [::Google::Protobuf::Map{::String => ::String}]
159
+ # Additional user labels to be specified for the job.
160
+ # Keys and values must follow the restrictions specified in the [labeling
161
+ # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
162
+ # page.
163
+ # An object containing a list of "key": value pairs.
164
+ # Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
165
+ # @!attribute [rw] kms_key_name
166
+ # @return [::String]
167
+ # Name for the Cloud KMS key for the job.
168
+ # Key format is:
169
+ # projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<key>
170
+ # @!attribute [rw] ip_configuration
171
+ # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration]
172
+ # Configuration for VM IPs.
173
+ # @!attribute [rw] worker_region
174
+ # @return [::String]
175
+ # The Compute Engine region
176
+ # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
177
+ # which worker processing should occur, e.g. "us-west1". Mutually exclusive
178
+ # with worker_zone. If neither worker_region nor worker_zone is specified,
179
+ # default to the control plane's region.
180
+ # @!attribute [rw] worker_zone
181
+ # @return [::String]
182
+ # The Compute Engine zone
183
+ # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
184
+ # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive
185
+ # with worker_region. If neither worker_region nor worker_zone is specified,
186
+ # a zone in the control plane's region is chosen based on available capacity.
187
+ # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
188
+ # @!attribute [rw] enable_streaming_engine
189
+ # @return [::Boolean]
190
+ # Whether to enable Streaming Engine for the job.
191
+ # @!attribute [rw] flexrs_goal
192
+ # @return [::Google::Cloud::Dataflow::V1beta3::FlexResourceSchedulingGoal]
193
+ # Set FlexRS goal for the job.
194
+ # https://cloud.google.com/dataflow/docs/guides/flexrs
195
+ # @!attribute [rw] staging_location
196
+ # @return [::String]
197
+ # The Cloud Storage path for staging local files.
198
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
199
+ # @!attribute [rw] sdk_container_image
200
+ # @return [::String]
201
+ # Docker registry location of container image to use for the 'worker harness.
202
+ # Default is the container for the version of the SDK. Note this field is
203
+ # only valid for portable pipelines.
204
+ class FlexTemplateRuntimeEnvironment
205
+ include ::Google::Protobuf::MessageExts
206
+ extend ::Google::Protobuf::MessageExts::ClassMethods
207
+
208
+ # @!attribute [rw] key
209
+ # @return [::String]
210
+ # @!attribute [rw] value
211
+ # @return [::String]
212
+ class AdditionalUserLabelsEntry
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+ end
216
+ end
217
+
218
+ # A request to launch a Cloud Dataflow job from a FlexTemplate.
219
+ # @!attribute [rw] project_id
220
+ # @return [::String]
221
+ # Required. The ID of the Cloud Platform project that the job belongs to.
222
+ # @!attribute [rw] launch_parameter
223
+ # @return [::Google::Cloud::Dataflow::V1beta3::LaunchFlexTemplateParameter]
224
+ # Required. Parameter to launch a job form Flex Template.
225
+ # @!attribute [rw] location
226
+ # @return [::String]
227
+ # Required. The [regional endpoint]
228
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
229
+ # which to direct the request. E.g., us-central1, us-west1.
230
+ # @!attribute [rw] validate_only
231
+ # @return [::Boolean]
232
+ # If true, the request is validated but not actually executed.
233
+ # Defaults to false.
234
+ class LaunchFlexTemplateRequest
235
+ include ::Google::Protobuf::MessageExts
236
+ extend ::Google::Protobuf::MessageExts::ClassMethods
237
+ end
238
+
239
+ # The environment values to set at runtime.
240
+ # @!attribute [rw] num_workers
241
+ # @return [::Integer]
242
+ # The initial number of Google Compute Engine instnaces for the job.
243
+ # @!attribute [rw] max_workers
244
+ # @return [::Integer]
245
+ # The maximum number of Google Compute Engine instances to be made
246
+ # available to your pipeline during execution, from 1 to 1000.
247
+ # @!attribute [rw] zone
248
+ # @return [::String]
249
+ # The Compute Engine [availability
250
+ # zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
251
+ # for launching worker instances to run your pipeline.
252
+ # In the future, worker_zone will take precedence.
253
+ # @!attribute [rw] service_account_email
254
+ # @return [::String]
255
+ # The email address of the service account to run the job as.
256
+ # @!attribute [rw] temp_location
257
+ # @return [::String]
258
+ # The Cloud Storage path to use for temporary files.
259
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
260
+ # @!attribute [rw] bypass_temp_dir_validation
261
+ # @return [::Boolean]
262
+ # Whether to bypass the safety checks for the job's temporary directory.
263
+ # Use with caution.
264
+ # @!attribute [rw] machine_type
265
+ # @return [::String]
266
+ # The machine type to use for the job. Defaults to the value from the
267
+ # template if not specified.
268
+ # @!attribute [rw] additional_experiments
269
+ # @return [::Array<::String>]
270
+ # Additional experiment flags for the job.
271
+ # @!attribute [rw] network
272
+ # @return [::String]
273
+ # Network to which VMs will be assigned. If empty or unspecified,
274
+ # the service will use the network "default".
275
+ # @!attribute [rw] subnetwork
276
+ # @return [::String]
277
+ # Subnetwork to which VMs will be assigned, if desired. You can specify a
278
+ # subnetwork using either a complete URL or an abbreviated path. Expected to
279
+ # be of the form
280
+ # "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK"
281
+ # or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in
282
+ # a Shared VPC network, you must use the complete URL.
283
+ # @!attribute [rw] additional_user_labels
284
+ # @return [::Google::Protobuf::Map{::String => ::String}]
285
+ # Additional user labels to be specified for the job.
286
+ # Keys and values should follow the restrictions specified in the [labeling
287
+ # restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions)
288
+ # page.
289
+ # An object containing a list of "key": value pairs.
290
+ # Example: { "name": "wrench", "mass": "1kg", "count": "3" }.
291
+ # @!attribute [rw] kms_key_name
292
+ # @return [::String]
293
+ # Name for the Cloud KMS key for the job.
294
+ # Key format is:
295
+ # projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<key>
296
+ # @!attribute [rw] ip_configuration
297
+ # @return [::Google::Cloud::Dataflow::V1beta3::WorkerIPAddressConfiguration]
298
+ # Configuration for VM IPs.
299
+ # @!attribute [rw] worker_region
300
+ # @return [::String]
301
+ # The Compute Engine region
302
+ # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
303
+ # which worker processing should occur, e.g. "us-west1". Mutually exclusive
304
+ # with worker_zone. If neither worker_region nor worker_zone is specified,
305
+ # default to the control plane's region.
306
+ # @!attribute [rw] worker_zone
307
+ # @return [::String]
308
+ # The Compute Engine zone
309
+ # (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
310
+ # which worker processing should occur, e.g. "us-west1-a". Mutually exclusive
311
+ # with worker_region. If neither worker_region nor worker_zone is specified,
312
+ # a zone in the control plane's region is chosen based on available capacity.
313
+ # If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
314
+ # @!attribute [rw] enable_streaming_engine
315
+ # @return [::Boolean]
316
+ # Whether to enable Streaming Engine for the job.
317
+ class RuntimeEnvironment
318
+ include ::Google::Protobuf::MessageExts
319
+ extend ::Google::Protobuf::MessageExts::ClassMethods
320
+
321
+ # @!attribute [rw] key
322
+ # @return [::String]
323
+ # @!attribute [rw] value
324
+ # @return [::String]
325
+ class AdditionalUserLabelsEntry
326
+ include ::Google::Protobuf::MessageExts
327
+ extend ::Google::Protobuf::MessageExts::ClassMethods
328
+ end
329
+ end
330
+
331
+ # Metadata for a specific parameter.
332
+ # @!attribute [rw] name
333
+ # @return [::String]
334
+ # Required. The name of the parameter.
335
+ # @!attribute [rw] label
336
+ # @return [::String]
337
+ # Required. The label to display for the parameter.
338
+ # @!attribute [rw] help_text
339
+ # @return [::String]
340
+ # Required. The help text to display for the parameter.
341
+ # @!attribute [rw] is_optional
342
+ # @return [::Boolean]
343
+ # Optional. Whether the parameter is optional. Defaults to false.
344
+ # @!attribute [rw] regexes
345
+ # @return [::Array<::String>]
346
+ # Optional. Regexes that the parameter must match.
347
+ # @!attribute [rw] param_type
348
+ # @return [::Google::Cloud::Dataflow::V1beta3::ParameterType]
349
+ # Optional. The type of the parameter.
350
+ # Used for selecting input picker.
351
+ # @!attribute [rw] custom_metadata
352
+ # @return [::Google::Protobuf::Map{::String => ::String}]
353
+ # Optional. Additional metadata for describing this parameter.
354
+ class ParameterMetadata
355
+ include ::Google::Protobuf::MessageExts
356
+ extend ::Google::Protobuf::MessageExts::ClassMethods
357
+
358
+ # @!attribute [rw] key
359
+ # @return [::String]
360
+ # @!attribute [rw] value
361
+ # @return [::String]
362
+ class CustomMetadataEntry
363
+ include ::Google::Protobuf::MessageExts
364
+ extend ::Google::Protobuf::MessageExts::ClassMethods
365
+ end
366
+ end
367
+
368
+ # Metadata describing a template.
369
+ # @!attribute [rw] name
370
+ # @return [::String]
371
+ # Required. The name of the template.
372
+ # @!attribute [rw] description
373
+ # @return [::String]
374
+ # Optional. A description of the template.
375
+ # @!attribute [rw] parameters
376
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>]
377
+ # The parameters for the template.
378
+ class TemplateMetadata
379
+ include ::Google::Protobuf::MessageExts
380
+ extend ::Google::Protobuf::MessageExts::ClassMethods
381
+ end
382
+
383
+ # SDK Information.
384
+ # @!attribute [rw] language
385
+ # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo::Language]
386
+ # Required. The SDK Language.
387
+ # @!attribute [rw] version
388
+ # @return [::String]
389
+ # Optional. The SDK version.
390
+ class SDKInfo
391
+ include ::Google::Protobuf::MessageExts
392
+ extend ::Google::Protobuf::MessageExts::ClassMethods
393
+
394
+ # SDK Language.
395
+ module Language
396
+ # UNKNOWN Language.
397
+ UNKNOWN = 0
398
+
399
+ # Java.
400
+ JAVA = 1
401
+
402
+ # Python.
403
+ PYTHON = 2
404
+ end
405
+ end
406
+
407
+ # RuntimeMetadata describing a runtime environment.
408
+ # @!attribute [rw] sdk_info
409
+ # @return [::Google::Cloud::Dataflow::V1beta3::SDKInfo]
410
+ # SDK Info for the template.
411
+ # @!attribute [rw] parameters
412
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::ParameterMetadata>]
413
+ # The parameters for the template.
414
+ class RuntimeMetadata
415
+ include ::Google::Protobuf::MessageExts
416
+ extend ::Google::Protobuf::MessageExts::ClassMethods
417
+ end
418
+
419
+ # A request to create a Cloud Dataflow job from a template.
420
+ # @!attribute [rw] project_id
421
+ # @return [::String]
422
+ # Required. The ID of the Cloud Platform project that the job belongs to.
423
+ # @!attribute [rw] job_name
424
+ # @return [::String]
425
+ # Required. The job name to use for the created job.
426
+ # @!attribute [rw] gcs_path
427
+ # @return [::String]
428
+ # Required. A Cloud Storage path to the template from which to
429
+ # create the job.
430
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
431
+ # @!attribute [rw] parameters
432
+ # @return [::Google::Protobuf::Map{::String => ::String}]
433
+ # The runtime parameters to pass to the job.
434
+ # @!attribute [rw] environment
435
+ # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment]
436
+ # The runtime environment for the job.
437
+ # @!attribute [rw] location
438
+ # @return [::String]
439
+ # The [regional endpoint]
440
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
441
+ # which to direct the request.
442
+ class CreateJobFromTemplateRequest
443
+ include ::Google::Protobuf::MessageExts
444
+ extend ::Google::Protobuf::MessageExts::ClassMethods
445
+
446
+ # @!attribute [rw] key
447
+ # @return [::String]
448
+ # @!attribute [rw] value
449
+ # @return [::String]
450
+ class ParametersEntry
451
+ include ::Google::Protobuf::MessageExts
452
+ extend ::Google::Protobuf::MessageExts::ClassMethods
453
+ end
454
+ end
455
+
456
+ # A request to retrieve a Cloud Dataflow job template.
457
+ # @!attribute [rw] project_id
458
+ # @return [::String]
459
+ # Required. The ID of the Cloud Platform project that the job belongs to.
460
+ # @!attribute [rw] gcs_path
461
+ # @return [::String]
462
+ # Required. A Cloud Storage path to the template from which to
463
+ # create the job.
464
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
465
+ # @!attribute [rw] view
466
+ # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateRequest::TemplateView]
467
+ # The view to retrieve. Defaults to METADATA_ONLY.
468
+ # @!attribute [rw] location
469
+ # @return [::String]
470
+ # The [regional endpoint]
471
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
472
+ # which to direct the request.
473
+ class GetTemplateRequest
474
+ include ::Google::Protobuf::MessageExts
475
+ extend ::Google::Protobuf::MessageExts::ClassMethods
476
+
477
+ # The various views of a template that may be retrieved.
478
+ module TemplateView
479
+ # Template view that retrieves only the metadata associated with the
480
+ # template.
481
+ METADATA_ONLY = 0
482
+ end
483
+ end
484
+
485
+ # The response to a GetTemplate request.
486
+ # @!attribute [rw] status
487
+ # @return [::Google::Rpc::Status]
488
+ # The status of the get template request. Any problems with the
489
+ # request will be indicated in the error_details.
490
+ # @!attribute [rw] metadata
491
+ # @return [::Google::Cloud::Dataflow::V1beta3::TemplateMetadata]
492
+ # The template metadata describing the template name, available
493
+ # parameters, etc.
494
+ # @!attribute [rw] template_type
495
+ # @return [::Google::Cloud::Dataflow::V1beta3::GetTemplateResponse::TemplateType]
496
+ # Template Type.
497
+ # @!attribute [rw] runtime_metadata
498
+ # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeMetadata]
499
+ # Describes the runtime metadata with SDKInfo and available parameters.
500
+ class GetTemplateResponse
501
+ include ::Google::Protobuf::MessageExts
502
+ extend ::Google::Protobuf::MessageExts::ClassMethods
503
+
504
+ # Template Type.
505
+ module TemplateType
506
+ # Unknown Template Type.
507
+ UNKNOWN = 0
508
+
509
+ # Legacy Template.
510
+ LEGACY = 1
511
+
512
+ # Flex Template.
513
+ FLEX = 2
514
+ end
515
+ end
516
+
517
+ # Parameters to provide to the template being launched.
518
+ # @!attribute [rw] job_name
519
+ # @return [::String]
520
+ # Required. The job name to use for the created job.
521
+ # @!attribute [rw] parameters
522
+ # @return [::Google::Protobuf::Map{::String => ::String}]
523
+ # The runtime parameters to pass to the job.
524
+ # @!attribute [rw] environment
525
+ # @return [::Google::Cloud::Dataflow::V1beta3::RuntimeEnvironment]
526
+ # The runtime environment for the job.
527
+ # @!attribute [rw] update
528
+ # @return [::Boolean]
529
+ # If set, replace the existing pipeline with the name specified by jobName
530
+ # with this pipeline, preserving state.
531
+ # @!attribute [rw] transform_name_mapping
532
+ # @return [::Google::Protobuf::Map{::String => ::String}]
533
+ # Only applicable when updating a pipeline. Map of transform name prefixes of
534
+ # the job to be replaced to the corresponding name prefixes of the new job.
535
+ class LaunchTemplateParameters
536
+ include ::Google::Protobuf::MessageExts
537
+ extend ::Google::Protobuf::MessageExts::ClassMethods
538
+
539
+ # @!attribute [rw] key
540
+ # @return [::String]
541
+ # @!attribute [rw] value
542
+ # @return [::String]
543
+ class ParametersEntry
544
+ include ::Google::Protobuf::MessageExts
545
+ extend ::Google::Protobuf::MessageExts::ClassMethods
546
+ end
547
+
548
+ # @!attribute [rw] key
549
+ # @return [::String]
550
+ # @!attribute [rw] value
551
+ # @return [::String]
552
+ class TransformNameMappingEntry
553
+ include ::Google::Protobuf::MessageExts
554
+ extend ::Google::Protobuf::MessageExts::ClassMethods
555
+ end
556
+ end
557
+
558
+ # A request to launch a template.
559
+ # @!attribute [rw] project_id
560
+ # @return [::String]
561
+ # Required. The ID of the Cloud Platform project that the job belongs to.
562
+ # @!attribute [rw] validate_only
563
+ # @return [::Boolean]
564
+ # If true, the request is validated but not actually executed.
565
+ # Defaults to false.
566
+ # @!attribute [rw] gcs_path
567
+ # @return [::String]
568
+ # A Cloud Storage path to the template from which to create
569
+ # the job.
570
+ # Must be valid Cloud Storage URL, beginning with 'gs://'.
571
+ # @!attribute [rw] dynamic_template
572
+ # @return [::Google::Cloud::Dataflow::V1beta3::DynamicTemplateLaunchParams]
573
+ # Params for launching a dynamic template.
574
+ # @!attribute [rw] launch_parameters
575
+ # @return [::Google::Cloud::Dataflow::V1beta3::LaunchTemplateParameters]
576
+ # The parameters of the template to launch. This should be part of the
577
+ # body of the POST request.
578
+ # @!attribute [rw] location
579
+ # @return [::String]
580
+ # The [regional endpoint]
581
+ # (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to
582
+ # which to direct the request.
583
+ class LaunchTemplateRequest
584
+ include ::Google::Protobuf::MessageExts
585
+ extend ::Google::Protobuf::MessageExts::ClassMethods
586
+ end
587
+
588
+ # Response to the request to launch a template.
589
+ # @!attribute [rw] job
590
+ # @return [::Google::Cloud::Dataflow::V1beta3::Job]
591
+ # The job that was launched, if the request was not a dry run and
592
+ # the job was successfully launched.
593
+ class LaunchTemplateResponse
594
+ include ::Google::Protobuf::MessageExts
595
+ extend ::Google::Protobuf::MessageExts::ClassMethods
596
+ end
597
+
598
+ # Used in the error_details field of a google.rpc.Status message, this
599
+ # indicates problems with the template parameter.
600
+ # @!attribute [rw] parameter_violations
601
+ # @return [::Array<::Google::Cloud::Dataflow::V1beta3::InvalidTemplateParameters::ParameterViolation>]
602
+ # Describes all parameter violations in a template request.
603
+ class InvalidTemplateParameters
604
+ include ::Google::Protobuf::MessageExts
605
+ extend ::Google::Protobuf::MessageExts::ClassMethods
606
+
607
+ # A specific template-parameter violation.
608
+ # @!attribute [rw] parameter
609
+ # @return [::String]
610
+ # The parameter that failed to validate.
611
+ # @!attribute [rw] description
612
+ # @return [::String]
613
+ # A description of why the parameter failed to validate.
614
+ class ParameterViolation
615
+ include ::Google::Protobuf::MessageExts
616
+ extend ::Google::Protobuf::MessageExts::ClassMethods
617
+ end
618
+ end
619
+
620
+ # Params which should be passed when launching a dynamic template.
621
+ # @!attribute [rw] gcs_path
622
+ # @return [::String]
623
+ # Path to dynamic template spec file on Cloud Storage.
624
+ # The file must be a Json serialized DynamicTemplateFieSpec object.
625
+ # @!attribute [rw] staging_location
626
+ # @return [::String]
627
+ # Cloud Storage path for staging dependencies.
628
+ # Must be a valid Cloud Storage URL, beginning with `gs://`.
629
+ class DynamicTemplateLaunchParams
630
+ include ::Google::Protobuf::MessageExts
631
+ extend ::Google::Protobuf::MessageExts::ClassMethods
632
+ end
633
+
634
+ # ParameterType specifies what kind of input we need for this parameter.
635
+ module ParameterType
636
+ # Default input type.
637
+ DEFAULT = 0
638
+
639
+ # The parameter specifies generic text input.
640
+ TEXT = 1
641
+
642
+ # The parameter specifies a Cloud Storage Bucket to read from.
643
+ GCS_READ_BUCKET = 2
644
+
645
+ # The parameter specifies a Cloud Storage Bucket to write to.
646
+ GCS_WRITE_BUCKET = 3
647
+
648
+ # The parameter specifies a Cloud Storage file path to read from.
649
+ GCS_READ_FILE = 4
650
+
651
+ # The parameter specifies a Cloud Storage file path to write to.
652
+ GCS_WRITE_FILE = 5
653
+
654
+ # The parameter specifies a Cloud Storage folder path to read from.
655
+ GCS_READ_FOLDER = 6
656
+
657
+ # The parameter specifies a Cloud Storage folder to write to.
658
+ GCS_WRITE_FOLDER = 7
659
+
660
+ # The parameter specifies a Pub/Sub Topic.
661
+ PUBSUB_TOPIC = 8
662
+
663
+ # The parameter specifies a Pub/Sub Subscription.
664
+ PUBSUB_SUBSCRIPTION = 9
665
+ end
666
+ end
667
+ end
668
+ end
669
+ end