google-apis-datapipelines_v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +13 -0
- data/CHANGELOG.md +7 -0
- data/LICENSE.md +202 -0
- data/OVERVIEW.md +96 -0
- data/lib/google/apis/datapipelines_v1/classes.rb +897 -0
- data/lib/google/apis/datapipelines_v1/gem_version.rb +28 -0
- data/lib/google/apis/datapipelines_v1/representations.rb +342 -0
- data/lib/google/apis/datapipelines_v1/service.rb +340 -0
- data/lib/google/apis/datapipelines_v1.rb +36 -0
- data/lib/google-apis-datapipelines_v1.rb +15 -0
- metadata +82 -0
@@ -0,0 +1,340 @@
|
|
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 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module DatapipelinesV1
|
23
|
+
# Data pipelines API
|
24
|
+
#
|
25
|
+
#
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/datapipelines_v1'
|
29
|
+
#
|
30
|
+
# Datapipelines = Google::Apis::DatapipelinesV1 # Alias the module
|
31
|
+
# service = Datapipelines::DatapipelinesService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/apis-explorer/#search/dataflow
|
34
|
+
class DatapipelinesService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://datapipelines.googleapis.com/', '',
|
47
|
+
client_name: 'google-apis-datapipelines_v1',
|
48
|
+
client_version: Google::Apis::DatapipelinesV1::GEM_VERSION)
|
49
|
+
@batch_path = 'batch'
|
50
|
+
end
|
51
|
+
|
52
|
+
# Lists pipelines. Returns a "NOT_FOUND" error if the list is empty. Returns a "
|
53
|
+
# FORBIDDEN" error if the caller doesn't have permission to access it.
|
54
|
+
# @param [String] parent
|
55
|
+
# Required. The location name. For example: `projects/PROJECT_ID/locations/
|
56
|
+
# LOCATION_ID`.
|
57
|
+
# @param [String] filter
|
58
|
+
# An expression for filtering the results of the request. If unspecified, all
|
59
|
+
# pipelines will be returned. Multiple filters can be applied and must be comma
|
60
|
+
# separated. Fields eligible for filtering are: + `type`: The type of the
|
61
|
+
# pipeline (streaming or batch). Allowed values are `ALL`, `BATCH`, and `
|
62
|
+
# STREAMING`. + `executor_type`: The type of pipeline execution layer. This is
|
63
|
+
# always Dataflow for now, but more executors may be added later. Allowed values
|
64
|
+
# are `ALL` and `DATAFLOW`. + `status`: The activity status of the pipeline.
|
65
|
+
# Allowed values are `ALL`, `ACTIVE`, `ARCHIVED`, and `PAUSED`. For example, to
|
66
|
+
# limit results to active batch processing pipelines: type:BATCH,status:ACTIVE
|
67
|
+
# @param [Fixnum] page_size
|
68
|
+
# The maximum number of entities to return. The service may return fewer than
|
69
|
+
# this value, even if there are additional pages. If unspecified, the max limit
|
70
|
+
# is yet to be determined by the backend implementation.
|
71
|
+
# @param [String] page_token
|
72
|
+
# A page token, received from a previous `ListPipelines` call. Provide this to
|
73
|
+
# retrieve the subsequent page. When paginating, all other parameters provided
|
74
|
+
# to `ListPipelines` must match the call that provided the page token.
|
75
|
+
# @param [String] fields
|
76
|
+
# Selector specifying which fields to include in a partial response.
|
77
|
+
# @param [String] quota_user
|
78
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
79
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
80
|
+
# @param [Google::Apis::RequestOptions] options
|
81
|
+
# Request-specific options
|
82
|
+
#
|
83
|
+
# @yield [result, err] Result & error if block supplied
|
84
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ListPipelinesResponse] parsed result object
|
85
|
+
# @yieldparam err [StandardError] error object if request failed
|
86
|
+
#
|
87
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ListPipelinesResponse]
|
88
|
+
#
|
89
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
90
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
91
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
92
|
+
def list_project_location_pipelines(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
93
|
+
command = make_simple_command(:get, 'v1/{+parent}', options)
|
94
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ListPipelinesResponse::Representation
|
95
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1ListPipelinesResponse
|
96
|
+
command.params['parent'] = parent unless parent.nil?
|
97
|
+
command.query['filter'] = filter unless filter.nil?
|
98
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
99
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
100
|
+
command.query['fields'] = fields unless fields.nil?
|
101
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
102
|
+
execute_or_queue_command(command, &block)
|
103
|
+
end
|
104
|
+
|
105
|
+
# Creates a pipeline. For a batch pipeline, you can pass scheduler information.
|
106
|
+
# Data Pipelines uses the scheduler information to create an internal scheduler
|
107
|
+
# that runs jobs periodically. If the internal scheduler is not configured, you
|
108
|
+
# can use RunPipeline to run jobs.
|
109
|
+
# @param [String] parent
|
110
|
+
# Required. The location name. For example: `projects/PROJECT_ID/locations/
|
111
|
+
# LOCATION_ID`.
|
112
|
+
# @param [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] google_cloud_datapipelines_v1_pipeline_object
|
113
|
+
# @param [String] fields
|
114
|
+
# Selector specifying which fields to include in a partial response.
|
115
|
+
# @param [String] quota_user
|
116
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
117
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
118
|
+
# @param [Google::Apis::RequestOptions] options
|
119
|
+
# Request-specific options
|
120
|
+
#
|
121
|
+
# @yield [result, err] Result & error if block supplied
|
122
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] parsed result object
|
123
|
+
# @yieldparam err [StandardError] error object if request failed
|
124
|
+
#
|
125
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline]
|
126
|
+
#
|
127
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
128
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
129
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
130
|
+
def create_project_location_pipeline(parent, google_cloud_datapipelines_v1_pipeline_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
131
|
+
command = make_simple_command(:post, 'v1/{+parent}/pipelines', options)
|
132
|
+
command.request_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
133
|
+
command.request_object = google_cloud_datapipelines_v1_pipeline_object
|
134
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
135
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline
|
136
|
+
command.params['parent'] = parent unless parent.nil?
|
137
|
+
command.query['fields'] = fields unless fields.nil?
|
138
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
139
|
+
execute_or_queue_command(command, &block)
|
140
|
+
end
|
141
|
+
|
142
|
+
# Deletes a pipeline. If a scheduler job is attached to the pipeline, it will be
|
143
|
+
# deleted.
|
144
|
+
# @param [String] name
|
145
|
+
# Required. The pipeline name. For example: `projects/PROJECT_ID/locations/
|
146
|
+
# LOCATION_ID/pipelines/PIPELINE_ID`.
|
147
|
+
# @param [String] fields
|
148
|
+
# Selector specifying which fields to include in a partial response.
|
149
|
+
# @param [String] quota_user
|
150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
152
|
+
# @param [Google::Apis::RequestOptions] options
|
153
|
+
# Request-specific options
|
154
|
+
#
|
155
|
+
# @yield [result, err] Result & error if block supplied
|
156
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleProtobufEmpty] parsed result object
|
157
|
+
# @yieldparam err [StandardError] error object if request failed
|
158
|
+
#
|
159
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleProtobufEmpty]
|
160
|
+
#
|
161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
164
|
+
def delete_project_location_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
|
165
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
166
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleProtobufEmpty::Representation
|
167
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleProtobufEmpty
|
168
|
+
command.params['name'] = name unless name.nil?
|
169
|
+
command.query['fields'] = fields unless fields.nil?
|
170
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
171
|
+
execute_or_queue_command(command, &block)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Looks up a single pipeline. Returns a "NOT_FOUND" error if no such pipeline
|
175
|
+
# exists. Returns a "FORBIDDEN" error if the caller doesn't have permission to
|
176
|
+
# access it.
|
177
|
+
# @param [String] name
|
178
|
+
# Required. The pipeeline name. For example: `projects/PROJECT_ID/locations/
|
179
|
+
# LOCATION_ID/pipelines/PIPELINE_ID`.
|
180
|
+
# @param [String] fields
|
181
|
+
# Selector specifying which fields to include in a partial response.
|
182
|
+
# @param [String] quota_user
|
183
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
184
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
185
|
+
# @param [Google::Apis::RequestOptions] options
|
186
|
+
# Request-specific options
|
187
|
+
#
|
188
|
+
# @yield [result, err] Result & error if block supplied
|
189
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] parsed result object
|
190
|
+
# @yieldparam err [StandardError] error object if request failed
|
191
|
+
#
|
192
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline]
|
193
|
+
#
|
194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
197
|
+
def get_project_location_pipeline(name, fields: nil, quota_user: nil, options: nil, &block)
|
198
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
199
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
200
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline
|
201
|
+
command.params['name'] = name unless name.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Updates a pipeline. If successful, the updated [Pipeline] is returned. Returns
|
208
|
+
# `NOT_FOUND` if the pipeline doesn't exist. If UpdatePipeline does not return
|
209
|
+
# successfully, you can retry the UpdatePipeline request until you receive a
|
210
|
+
# successful response.
|
211
|
+
# @param [String] name
|
212
|
+
# The pipeline name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/
|
213
|
+
# pipelines/PIPELINE_ID`. * `PROJECT_ID` can contain letters ([A-Za-z]), numbers
|
214
|
+
# ([0-9]), hyphens (-), colons (:), and periods (.). For more information, see [
|
215
|
+
# Identifying projects](https://cloud.google.com/resource-manager/docs/creating-
|
216
|
+
# managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID
|
217
|
+
# for the pipeline's location. The list of available locations can be obtained
|
218
|
+
# by calling ListLocations. Note that the Data Pipelines service is not
|
219
|
+
# available in all regions. It depends on Cloud Scheduler, an App Engine
|
220
|
+
# application, so it's only available in [App Engine regions](https://cloud.
|
221
|
+
# google.com/about/locations#region). * `PIPELINE_ID` is the ID of the pipeline.
|
222
|
+
# Must be unique for the selected project and location.
|
223
|
+
# @param [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] google_cloud_datapipelines_v1_pipeline_object
|
224
|
+
# @param [String] update_mask
|
225
|
+
# The list of fields to be updated.
|
226
|
+
# @param [String] fields
|
227
|
+
# Selector specifying which fields to include in a partial response.
|
228
|
+
# @param [String] quota_user
|
229
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
230
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
231
|
+
# @param [Google::Apis::RequestOptions] options
|
232
|
+
# Request-specific options
|
233
|
+
#
|
234
|
+
# @yield [result, err] Result & error if block supplied
|
235
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] parsed result object
|
236
|
+
# @yieldparam err [StandardError] error object if request failed
|
237
|
+
#
|
238
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline]
|
239
|
+
#
|
240
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
241
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
242
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
243
|
+
def patch_project_location_pipeline(name, google_cloud_datapipelines_v1_pipeline_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
244
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
245
|
+
command.request_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
246
|
+
command.request_object = google_cloud_datapipelines_v1_pipeline_object
|
247
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
248
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline
|
249
|
+
command.params['name'] = name unless name.nil?
|
250
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
251
|
+
command.query['fields'] = fields unless fields.nil?
|
252
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
253
|
+
execute_or_queue_command(command, &block)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Creates a job for the specified pipeline directly. You can use this method
|
257
|
+
# when the internal scheduler is not configured and you want to trigger the job
|
258
|
+
# directly or through an external system. Returns a "NOT_FOUND" error if the
|
259
|
+
# pipeline doesn't exist. Returns a "FOBIDDEN" error if the user doesn't have
|
260
|
+
# permission to access the pipeline or run jobs for the pipeline.
|
261
|
+
# @param [String] name
|
262
|
+
# Required. The pipeline name. For example: `projects/PROJECT_ID/locations/
|
263
|
+
# LOCATION_ID/pipelines/PIPELINE_ID`.
|
264
|
+
# @param [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineRequest] google_cloud_datapipelines_v1_run_pipeline_request_object
|
265
|
+
# @param [String] fields
|
266
|
+
# Selector specifying which fields to include in a partial response.
|
267
|
+
# @param [String] quota_user
|
268
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
269
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
270
|
+
# @param [Google::Apis::RequestOptions] options
|
271
|
+
# Request-specific options
|
272
|
+
#
|
273
|
+
# @yield [result, err] Result & error if block supplied
|
274
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineResponse] parsed result object
|
275
|
+
# @yieldparam err [StandardError] error object if request failed
|
276
|
+
#
|
277
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineResponse]
|
278
|
+
#
|
279
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
280
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
281
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
282
|
+
def run_project_location_pipeline(name, google_cloud_datapipelines_v1_run_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
283
|
+
command = make_simple_command(:post, 'v1/{+name}:run', options)
|
284
|
+
command.request_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineRequest::Representation
|
285
|
+
command.request_object = google_cloud_datapipelines_v1_run_pipeline_request_object
|
286
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineResponse::Representation
|
287
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1RunPipelineResponse
|
288
|
+
command.params['name'] = name unless name.nil?
|
289
|
+
command.query['fields'] = fields unless fields.nil?
|
290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
291
|
+
execute_or_queue_command(command, &block)
|
292
|
+
end
|
293
|
+
|
294
|
+
# Freezes pipeline execution permanently. If there's a corresponding scheduler
|
295
|
+
# entry, it's deleted, and the pipeline state is changed to "ARCHIVED". However,
|
296
|
+
# pipeline metadata is retained. Upon success, the pipeline state is updated to
|
297
|
+
# ARCHIVED.
|
298
|
+
# @param [String] name
|
299
|
+
# Required. The pipeline name. For example: `projects/PROJECT_ID/locations/
|
300
|
+
# LOCATION_ID/pipelines/PIPELINE_ID`.
|
301
|
+
# @param [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1StopPipelineRequest] google_cloud_datapipelines_v1_stop_pipeline_request_object
|
302
|
+
# @param [String] fields
|
303
|
+
# Selector specifying which fields to include in a partial response.
|
304
|
+
# @param [String] quota_user
|
305
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
306
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
307
|
+
# @param [Google::Apis::RequestOptions] options
|
308
|
+
# Request-specific options
|
309
|
+
#
|
310
|
+
# @yield [result, err] Result & error if block supplied
|
311
|
+
# @yieldparam result [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline] parsed result object
|
312
|
+
# @yieldparam err [StandardError] error object if request failed
|
313
|
+
#
|
314
|
+
# @return [Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline]
|
315
|
+
#
|
316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
319
|
+
def stop_project_location_pipeline(name, google_cloud_datapipelines_v1_stop_pipeline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
320
|
+
command = make_simple_command(:post, 'v1/{+name}:stop', options)
|
321
|
+
command.request_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1StopPipelineRequest::Representation
|
322
|
+
command.request_object = google_cloud_datapipelines_v1_stop_pipeline_request_object
|
323
|
+
command.response_representation = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline::Representation
|
324
|
+
command.response_class = Google::Apis::DatapipelinesV1::GoogleCloudDatapipelinesV1Pipeline
|
325
|
+
command.params['name'] = name unless name.nil?
|
326
|
+
command.query['fields'] = fields unless fields.nil?
|
327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
328
|
+
execute_or_queue_command(command, &block)
|
329
|
+
end
|
330
|
+
|
331
|
+
protected
|
332
|
+
|
333
|
+
def apply_command_defaults(command)
|
334
|
+
command.query['key'] = key unless key.nil?
|
335
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|
339
|
+
end
|
340
|
+
end
|
@@ -0,0 +1,36 @@
|
|
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 'google/apis/datapipelines_v1/service.rb'
|
16
|
+
require 'google/apis/datapipelines_v1/classes.rb'
|
17
|
+
require 'google/apis/datapipelines_v1/representations.rb'
|
18
|
+
require 'google/apis/datapipelines_v1/gem_version.rb'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
# Data pipelines API
|
23
|
+
#
|
24
|
+
#
|
25
|
+
#
|
26
|
+
# @see https://developers.google.com/apis-explorer/#search/dataflow
|
27
|
+
module DatapipelinesV1
|
28
|
+
# Version of the Data pipelines API this client connects to.
|
29
|
+
# This is NOT the gem version.
|
30
|
+
VERSION = 'V1'
|
31
|
+
|
32
|
+
# See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
33
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
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 "google/apis/datapipelines_v1"
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: google-apis-datapipelines_v1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Google LLC
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: google-apis-core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.a
|
33
|
+
description: This is the simple REST client for Data pipelines API V1. Simple REST
|
34
|
+
clients are Ruby client libraries that provide access to Google services via their
|
35
|
+
HTTP REST API endpoints. These libraries are generated and updated automatically
|
36
|
+
based on the discovery documents published by the service, and they handle most
|
37
|
+
concerns such as authentication, pagination, retry, timeouts, and logging. You can
|
38
|
+
use this client to access the Data pipelines API, but note that some services may
|
39
|
+
provide a separate modern client that is easier to use.
|
40
|
+
email: googleapis-packages@google.com
|
41
|
+
executables: []
|
42
|
+
extensions: []
|
43
|
+
extra_rdoc_files: []
|
44
|
+
files:
|
45
|
+
- ".yardopts"
|
46
|
+
- CHANGELOG.md
|
47
|
+
- LICENSE.md
|
48
|
+
- OVERVIEW.md
|
49
|
+
- lib/google-apis-datapipelines_v1.rb
|
50
|
+
- lib/google/apis/datapipelines_v1.rb
|
51
|
+
- lib/google/apis/datapipelines_v1/classes.rb
|
52
|
+
- lib/google/apis/datapipelines_v1/gem_version.rb
|
53
|
+
- lib/google/apis/datapipelines_v1/representations.rb
|
54
|
+
- lib/google/apis/datapipelines_v1/service.rb
|
55
|
+
homepage: https://github.com/google/google-api-ruby-client
|
56
|
+
licenses:
|
57
|
+
- Apache-2.0
|
58
|
+
metadata:
|
59
|
+
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datapipelines_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-datapipelines_v1/v0.1.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-datapipelines_v1
|
63
|
+
post_install_message:
|
64
|
+
rdoc_options: []
|
65
|
+
require_paths:
|
66
|
+
- lib
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '2.5'
|
72
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
77
|
+
requirements: []
|
78
|
+
rubygems_version: 3.2.17
|
79
|
+
signing_key:
|
80
|
+
specification_version: 4
|
81
|
+
summary: Simple REST client for Data pipelines API V1
|
82
|
+
test_files: []
|