google-apis-datapipelines_v1 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
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
+ # http://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
+ module Google
16
+ module Apis
17
+ module DatapipelinesV1
18
+ # Version of the google-apis-datapipelines_v1 gem
19
+ GEM_VERSION = "0.1.0"
20
+
21
+ # Version of the code generator used to generate this client
22
+ GENERATOR_VERSION = "0.4.0"
23
+
24
+ # Revision of the discovery document this client was generated from
25
+ REVISION = "20211018"
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,342 @@
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
+ # http://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
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatapipelinesV1
24
+
25
+ class GoogleCloudDatapipelinesV1DataflowJobDetails
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class GoogleCloudDatapipelinesV1Job
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class GoogleCloudDatapipelinesV1LaunchFlexTemplateParameter
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class GoogleCloudDatapipelinesV1LaunchTemplateParameters
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class GoogleCloudDatapipelinesV1LaunchTemplateRequest
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class GoogleCloudDatapipelinesV1ListPipelinesResponse
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class GoogleCloudDatapipelinesV1Pipeline
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class GoogleCloudDatapipelinesV1RunPipelineRequest
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class GoogleCloudDatapipelinesV1RunPipelineResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class GoogleCloudDatapipelinesV1RuntimeEnvironment
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class GoogleCloudDatapipelinesV1ScheduleSpec
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class GoogleCloudDatapipelinesV1SdkVersion
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class GoogleCloudDatapipelinesV1StopPipelineRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudDatapipelinesV1Workload
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
121
+ class GoogleProtobufEmpty
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
127
+ class GoogleRpcStatus
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class GoogleCloudDatapipelinesV1DataflowJobDetails
134
+ # @private
135
+ class Representation < Google::Apis::Core::JsonRepresentation
136
+ property :current_workers, as: 'currentWorkers'
137
+ hash :resource_info, as: 'resourceInfo'
138
+ property :sdk_version, as: 'sdkVersion', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1SdkVersion, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1SdkVersion::Representation
139
+
140
+ end
141
+ end
142
+
143
+ class GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment
144
+ # @private
145
+ class Representation < Google::Apis::Core::JsonRepresentation
146
+ collection :additional_experiments, as: 'additionalExperiments'
147
+ hash :additional_user_labels, as: 'additionalUserLabels'
148
+ property :enable_streaming_engine, as: 'enableStreamingEngine'
149
+ property :flexrs_goal, as: 'flexrsGoal'
150
+ property :ip_configuration, as: 'ipConfiguration'
151
+ property :kms_key_name, as: 'kmsKeyName'
152
+ property :machine_type, as: 'machineType'
153
+ property :max_workers, as: 'maxWorkers'
154
+ property :network, as: 'network'
155
+ property :num_workers, as: 'numWorkers'
156
+ property :service_account_email, as: 'serviceAccountEmail'
157
+ property :subnetwork, as: 'subnetwork'
158
+ property :temp_location, as: 'tempLocation'
159
+ property :worker_region, as: 'workerRegion'
160
+ property :worker_zone, as: 'workerZone'
161
+ property :zone, as: 'zone'
162
+ end
163
+ end
164
+
165
+ class GoogleCloudDatapipelinesV1Job
166
+ # @private
167
+ class Representation < Google::Apis::Core::JsonRepresentation
168
+ property :create_time, as: 'createTime'
169
+ property :dataflow_job_details, as: 'dataflowJobDetails', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1DataflowJobDetails, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1DataflowJobDetails::Representation
170
+
171
+ property :end_time, as: 'endTime'
172
+ property :id, as: 'id'
173
+ property :name, as: 'name'
174
+ property :state, as: 'state'
175
+ property :status, as: 'status', class: Google::Apis::DatapipelinesV1::GoogleRpcStatus, decorator: Google::Apis::DatapipelinesV1::GoogleRpcStatus::Representation
176
+
177
+ end
178
+ end
179
+
180
+ class GoogleCloudDatapipelinesV1LaunchFlexTemplateParameter
181
+ # @private
182
+ class Representation < Google::Apis::Core::JsonRepresentation
183
+ property :container_spec_gcs_path, as: 'containerSpecGcsPath'
184
+ property :environment, as: 'environment', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1FlexTemplateRuntimeEnvironment::Representation
185
+
186
+ property :job_name, as: 'jobName'
187
+ hash :launch_options, as: 'launchOptions'
188
+ hash :parameters, as: 'parameters'
189
+ hash :transform_name_mappings, as: 'transformNameMappings'
190
+ property :update, as: 'update'
191
+ end
192
+ end
193
+
194
+ class GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest
195
+ # @private
196
+ class Representation < Google::Apis::Core::JsonRepresentation
197
+ property :launch_parameter, as: 'launchParameter', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchFlexTemplateParameter, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchFlexTemplateParameter::Representation
198
+
199
+ property :location, as: 'location'
200
+ property :project_id, as: 'projectId'
201
+ property :validate_only, as: 'validateOnly'
202
+ end
203
+ end
204
+
205
+ class GoogleCloudDatapipelinesV1LaunchTemplateParameters
206
+ # @private
207
+ class Representation < Google::Apis::Core::JsonRepresentation
208
+ property :environment, as: 'environment', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RuntimeEnvironment, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RuntimeEnvironment::Representation
209
+
210
+ property :job_name, as: 'jobName'
211
+ hash :parameters, as: 'parameters'
212
+ hash :transform_name_mapping, as: 'transformNameMapping'
213
+ property :update, as: 'update'
214
+ end
215
+ end
216
+
217
+ class GoogleCloudDatapipelinesV1LaunchTemplateRequest
218
+ # @private
219
+ class Representation < Google::Apis::Core::JsonRepresentation
220
+ property :gcs_path, as: 'gcsPath'
221
+ property :launch_parameters, as: 'launchParameters', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateParameters, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateParameters::Representation
222
+
223
+ property :location, as: 'location'
224
+ property :project_id, as: 'projectId'
225
+ property :validate_only, as: 'validateOnly'
226
+ end
227
+ end
228
+
229
+ class GoogleCloudDatapipelinesV1ListPipelinesResponse
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ property :next_page_token, as: 'nextPageToken'
233
+ collection :pipelines, as: 'pipelines', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
234
+
235
+ end
236
+ end
237
+
238
+ class GoogleCloudDatapipelinesV1Pipeline
239
+ # @private
240
+ class Representation < Google::Apis::Core::JsonRepresentation
241
+ property :create_time, as: 'createTime'
242
+ property :display_name, as: 'displayName'
243
+ property :job_count, as: 'jobCount'
244
+ property :last_update_time, as: 'lastUpdateTime'
245
+ property :name, as: 'name'
246
+ property :schedule_info, as: 'scheduleInfo', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ScheduleSpec, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ScheduleSpec::Representation
247
+
248
+ property :scheduler_service_account_email, as: 'schedulerServiceAccountEmail'
249
+ property :state, as: 'state'
250
+ property :type, as: 'type'
251
+ property :workload, as: 'workload', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Workload, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Workload::Representation
252
+
253
+ end
254
+ end
255
+
256
+ class GoogleCloudDatapipelinesV1RunPipelineRequest
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ end
260
+ end
261
+
262
+ class GoogleCloudDatapipelinesV1RunPipelineResponse
263
+ # @private
264
+ class Representation < Google::Apis::Core::JsonRepresentation
265
+ property :job, as: 'job', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Job, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Job::Representation
266
+
267
+ end
268
+ end
269
+
270
+ class GoogleCloudDatapipelinesV1RuntimeEnvironment
271
+ # @private
272
+ class Representation < Google::Apis::Core::JsonRepresentation
273
+ collection :additional_experiments, as: 'additionalExperiments'
274
+ hash :additional_user_labels, as: 'additionalUserLabels'
275
+ property :bypass_temp_dir_validation, as: 'bypassTempDirValidation'
276
+ property :enable_streaming_engine, as: 'enableStreamingEngine'
277
+ property :ip_configuration, as: 'ipConfiguration'
278
+ property :kms_key_name, as: 'kmsKeyName'
279
+ property :machine_type, as: 'machineType'
280
+ property :max_workers, as: 'maxWorkers'
281
+ property :network, as: 'network'
282
+ property :num_workers, as: 'numWorkers'
283
+ property :service_account_email, as: 'serviceAccountEmail'
284
+ property :subnetwork, as: 'subnetwork'
285
+ property :temp_location, as: 'tempLocation'
286
+ property :worker_region, as: 'workerRegion'
287
+ property :worker_zone, as: 'workerZone'
288
+ property :zone, as: 'zone'
289
+ end
290
+ end
291
+
292
+ class GoogleCloudDatapipelinesV1ScheduleSpec
293
+ # @private
294
+ class Representation < Google::Apis::Core::JsonRepresentation
295
+ property :next_job_time, as: 'nextJobTime'
296
+ property :schedule, as: 'schedule'
297
+ property :time_zone, as: 'timeZone'
298
+ end
299
+ end
300
+
301
+ class GoogleCloudDatapipelinesV1SdkVersion
302
+ # @private
303
+ class Representation < Google::Apis::Core::JsonRepresentation
304
+ property :sdk_support_status, as: 'sdkSupportStatus'
305
+ property :version, as: 'version'
306
+ property :version_display_name, as: 'versionDisplayName'
307
+ end
308
+ end
309
+
310
+ class GoogleCloudDatapipelinesV1StopPipelineRequest
311
+ # @private
312
+ class Representation < Google::Apis::Core::JsonRepresentation
313
+ end
314
+ end
315
+
316
+ class GoogleCloudDatapipelinesV1Workload
317
+ # @private
318
+ class Representation < Google::Apis::Core::JsonRepresentation
319
+ property :dataflow_flex_template_request, as: 'dataflowFlexTemplateRequest', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchFlexTemplateRequest::Representation
320
+
321
+ property :dataflow_launch_template_request, as: 'dataflowLaunchTemplateRequest', class: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateRequest, decorator: Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1LaunchTemplateRequest::Representation
322
+
323
+ end
324
+ end
325
+
326
+ class GoogleProtobufEmpty
327
+ # @private
328
+ class Representation < Google::Apis::Core::JsonRepresentation
329
+ end
330
+ end
331
+
332
+ class GoogleRpcStatus
333
+ # @private
334
+ class Representation < Google::Apis::Core::JsonRepresentation
335
+ property :code, as: 'code'
336
+ collection :details, as: 'details'
337
+ property :message, as: 'message'
338
+ end
339
+ end
340
+ end
341
+ end
342
+ end