google-cloud-dataform-v1 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 (34) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +154 -0
  6. data/lib/google/cloud/dataform/v1/bindings_override.rb +159 -0
  7. data/lib/google/cloud/dataform/v1/dataform/client.rb +5766 -0
  8. data/lib/google/cloud/dataform/v1/dataform/credentials.rb +48 -0
  9. data/lib/google/cloud/dataform/v1/dataform/paths.rb +273 -0
  10. data/lib/google/cloud/dataform/v1/dataform/rest/client.rb +5371 -0
  11. data/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +3398 -0
  12. data/lib/google/cloud/dataform/v1/dataform/rest.rb +54 -0
  13. data/lib/google/cloud/dataform/v1/dataform.rb +56 -0
  14. data/lib/google/cloud/dataform/v1/dataform_pb.rb +200 -0
  15. data/lib/google/cloud/dataform/v1/dataform_services_pb.rb +180 -0
  16. data/lib/google/cloud/dataform/v1/rest.rb +38 -0
  17. data/lib/google/cloud/dataform/v1/version.rb +28 -0
  18. data/lib/google/cloud/dataform/v1.rb +45 -0
  19. data/lib/google-cloud-dataform-v1.rb +21 -0
  20. data/proto_docs/README.md +4 -0
  21. data/proto_docs/google/api/client.rb +473 -0
  22. data/proto_docs/google/api/field_behavior.rb +85 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/api/resource.rb +227 -0
  25. data/proto_docs/google/cloud/dataform/v1/dataform.rb +2552 -0
  26. data/proto_docs/google/protobuf/any.rb +145 -0
  27. data/proto_docs/google/protobuf/duration.rb +98 -0
  28. data/proto_docs/google/protobuf/empty.rb +34 -0
  29. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  30. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  31. data/proto_docs/google/rpc/status.rb +48 -0
  32. data/proto_docs/google/type/expr.rb +75 -0
  33. data/proto_docs/google/type/interval.rb +45 -0
  34. metadata +131 -0
@@ -0,0 +1,3398 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 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
+ require "google/cloud/dataform/v1/dataform_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Dataform
24
+ module V1
25
+ module Dataform
26
+ module Rest
27
+ ##
28
+ # REST service stub for the Dataform service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
66
+
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
76
+ ##
77
+ # Baseline implementation for the list_repositories REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListRepositoriesResponse]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Cloud::Dataform::V1::ListRepositoriesResponse]
89
+ # A result object deserialized from the server's reply
90
+ def list_repositories request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_repositories_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "list_repositories",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Cloud::Dataform::V1::ListRepositoriesResponse.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the get_repository REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Repository]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::Dataform::V1::Repository]
129
+ # A result object deserialized from the server's reply
130
+ def get_repository request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_repository_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_repository",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the create_repository REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Repository]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::Dataform::V1::Repository]
169
+ # A result object deserialized from the server's reply
170
+ def create_repository request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_repository_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "create_repository",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the update_repository REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Repository]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Cloud::Dataform::V1::Repository]
209
+ # A result object deserialized from the server's reply
210
+ def update_repository request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_repository_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "update_repository",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Cloud::Dataform::V1::Repository.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
236
+ ##
237
+ # Baseline implementation for the delete_repository REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Protobuf::Empty]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Protobuf::Empty]
249
+ # A result object deserialized from the server's reply
250
+ def delete_repository request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_repository_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "delete_repository",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
276
+ ##
277
+ # Baseline implementation for the commit_repository_changes REST call
278
+ #
279
+ # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest]
280
+ # A request object representing the call parameters. Required.
281
+ # @param options [::Gapic::CallOptions]
282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
283
+ #
284
+ # @yield [result, operation] Access the result along with the TransportOperation object
285
+ # @yieldparam result [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse]
286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
287
+ #
288
+ # @return [::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse]
289
+ # A result object deserialized from the server's reply
290
+ def commit_repository_changes request_pb, options = nil
291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
292
+
293
+ verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb
294
+ query_string_params = if query_string_params.any?
295
+ query_string_params.to_h { |p| p.split "=", 2 }
296
+ else
297
+ {}
298
+ end
299
+
300
+ response = @client_stub.make_http_request(
301
+ verb,
302
+ uri: uri,
303
+ body: body || "",
304
+ params: query_string_params,
305
+ method_name: "commit_repository_changes",
306
+ options: options
307
+ )
308
+ operation = ::Gapic::Rest::TransportOperation.new response
309
+ result = ::Google::Cloud::Dataform::V1::CommitRepositoryChangesResponse.decode_json response.body, ignore_unknown_fields: true
310
+ catch :response do
311
+ yield result, operation if block_given?
312
+ result
313
+ end
314
+ end
315
+
316
+ ##
317
+ # Baseline implementation for the read_repository_file REST call
318
+ #
319
+ # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest]
320
+ # A request object representing the call parameters. Required.
321
+ # @param options [::Gapic::CallOptions]
322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
323
+ #
324
+ # @yield [result, operation] Access the result along with the TransportOperation object
325
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse]
326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
327
+ #
328
+ # @return [::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse]
329
+ # A result object deserialized from the server's reply
330
+ def read_repository_file request_pb, options = nil
331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
332
+
333
+ verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb
334
+ query_string_params = if query_string_params.any?
335
+ query_string_params.to_h { |p| p.split "=", 2 }
336
+ else
337
+ {}
338
+ end
339
+
340
+ response = @client_stub.make_http_request(
341
+ verb,
342
+ uri: uri,
343
+ body: body || "",
344
+ params: query_string_params,
345
+ method_name: "read_repository_file",
346
+ options: options
347
+ )
348
+ operation = ::Gapic::Rest::TransportOperation.new response
349
+ result = ::Google::Cloud::Dataform::V1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true
350
+ catch :response do
351
+ yield result, operation if block_given?
352
+ result
353
+ end
354
+ end
355
+
356
+ ##
357
+ # Baseline implementation for the query_repository_directory_contents REST call
358
+ #
359
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest]
360
+ # A request object representing the call parameters. Required.
361
+ # @param options [::Gapic::CallOptions]
362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
363
+ #
364
+ # @yield [result, operation] Access the result along with the TransportOperation object
365
+ # @yieldparam result [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse]
366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
367
+ #
368
+ # @return [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse]
369
+ # A result object deserialized from the server's reply
370
+ def query_repository_directory_contents request_pb, options = nil
371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
372
+
373
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb
374
+ query_string_params = if query_string_params.any?
375
+ query_string_params.to_h { |p| p.split "=", 2 }
376
+ else
377
+ {}
378
+ end
379
+
380
+ response = @client_stub.make_http_request(
381
+ verb,
382
+ uri: uri,
383
+ body: body || "",
384
+ params: query_string_params,
385
+ method_name: "query_repository_directory_contents",
386
+ options: options
387
+ )
388
+ operation = ::Gapic::Rest::TransportOperation.new response
389
+ result = ::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true
390
+ catch :response do
391
+ yield result, operation if block_given?
392
+ result
393
+ end
394
+ end
395
+
396
+ ##
397
+ # Baseline implementation for the fetch_repository_history REST call
398
+ #
399
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest]
400
+ # A request object representing the call parameters. Required.
401
+ # @param options [::Gapic::CallOptions]
402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
403
+ #
404
+ # @yield [result, operation] Access the result along with the TransportOperation object
405
+ # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse]
406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
407
+ #
408
+ # @return [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse]
409
+ # A result object deserialized from the server's reply
410
+ def fetch_repository_history request_pb, options = nil
411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
412
+
413
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb
414
+ query_string_params = if query_string_params.any?
415
+ query_string_params.to_h { |p| p.split "=", 2 }
416
+ else
417
+ {}
418
+ end
419
+
420
+ response = @client_stub.make_http_request(
421
+ verb,
422
+ uri: uri,
423
+ body: body || "",
424
+ params: query_string_params,
425
+ method_name: "fetch_repository_history",
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::Dataform::V1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true
430
+ catch :response do
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+ end
435
+
436
+ ##
437
+ # Baseline implementation for the compute_repository_access_token_status REST call
438
+ #
439
+ # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest]
440
+ # A request object representing the call parameters. Required.
441
+ # @param options [::Gapic::CallOptions]
442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
443
+ #
444
+ # @yield [result, operation] Access the result along with the TransportOperation object
445
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse]
446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
447
+ #
448
+ # @return [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse]
449
+ # A result object deserialized from the server's reply
450
+ def compute_repository_access_token_status request_pb, options = nil
451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
452
+
453
+ verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb
454
+ query_string_params = if query_string_params.any?
455
+ query_string_params.to_h { |p| p.split "=", 2 }
456
+ else
457
+ {}
458
+ end
459
+
460
+ response = @client_stub.make_http_request(
461
+ verb,
462
+ uri: uri,
463
+ body: body || "",
464
+ params: query_string_params,
465
+ method_name: "compute_repository_access_token_status",
466
+ options: options
467
+ )
468
+ operation = ::Gapic::Rest::TransportOperation.new response
469
+ result = ::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true
470
+ catch :response do
471
+ yield result, operation if block_given?
472
+ result
473
+ end
474
+ end
475
+
476
+ ##
477
+ # Baseline implementation for the fetch_remote_branches REST call
478
+ #
479
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest]
480
+ # A request object representing the call parameters. Required.
481
+ # @param options [::Gapic::CallOptions]
482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
483
+ #
484
+ # @yield [result, operation] Access the result along with the TransportOperation object
485
+ # @yieldparam result [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse]
486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
487
+ #
488
+ # @return [::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse]
489
+ # A result object deserialized from the server's reply
490
+ def fetch_remote_branches request_pb, options = nil
491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
492
+
493
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_remote_branches_request request_pb
494
+ query_string_params = if query_string_params.any?
495
+ query_string_params.to_h { |p| p.split "=", 2 }
496
+ else
497
+ {}
498
+ end
499
+
500
+ response = @client_stub.make_http_request(
501
+ verb,
502
+ uri: uri,
503
+ body: body || "",
504
+ params: query_string_params,
505
+ method_name: "fetch_remote_branches",
506
+ options: options
507
+ )
508
+ operation = ::Gapic::Rest::TransportOperation.new response
509
+ result = ::Google::Cloud::Dataform::V1::FetchRemoteBranchesResponse.decode_json response.body, ignore_unknown_fields: true
510
+ catch :response do
511
+ yield result, operation if block_given?
512
+ result
513
+ end
514
+ end
515
+
516
+ ##
517
+ # Baseline implementation for the list_workspaces REST call
518
+ #
519
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest]
520
+ # A request object representing the call parameters. Required.
521
+ # @param options [::Gapic::CallOptions]
522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
523
+ #
524
+ # @yield [result, operation] Access the result along with the TransportOperation object
525
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkspacesResponse]
526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
527
+ #
528
+ # @return [::Google::Cloud::Dataform::V1::ListWorkspacesResponse]
529
+ # A result object deserialized from the server's reply
530
+ def list_workspaces request_pb, options = nil
531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
532
+
533
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workspaces_request request_pb
534
+ query_string_params = if query_string_params.any?
535
+ query_string_params.to_h { |p| p.split "=", 2 }
536
+ else
537
+ {}
538
+ end
539
+
540
+ response = @client_stub.make_http_request(
541
+ verb,
542
+ uri: uri,
543
+ body: body || "",
544
+ params: query_string_params,
545
+ method_name: "list_workspaces",
546
+ options: options
547
+ )
548
+ operation = ::Gapic::Rest::TransportOperation.new response
549
+ result = ::Google::Cloud::Dataform::V1::ListWorkspacesResponse.decode_json response.body, ignore_unknown_fields: true
550
+ catch :response do
551
+ yield result, operation if block_given?
552
+ result
553
+ end
554
+ end
555
+
556
+ ##
557
+ # Baseline implementation for the get_workspace REST call
558
+ #
559
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest]
560
+ # A request object representing the call parameters. Required.
561
+ # @param options [::Gapic::CallOptions]
562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
563
+ #
564
+ # @yield [result, operation] Access the result along with the TransportOperation object
565
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace]
566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
567
+ #
568
+ # @return [::Google::Cloud::Dataform::V1::Workspace]
569
+ # A result object deserialized from the server's reply
570
+ def get_workspace request_pb, options = nil
571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
572
+
573
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_workspace_request request_pb
574
+ query_string_params = if query_string_params.any?
575
+ query_string_params.to_h { |p| p.split "=", 2 }
576
+ else
577
+ {}
578
+ end
579
+
580
+ response = @client_stub.make_http_request(
581
+ verb,
582
+ uri: uri,
583
+ body: body || "",
584
+ params: query_string_params,
585
+ method_name: "get_workspace",
586
+ options: options
587
+ )
588
+ operation = ::Gapic::Rest::TransportOperation.new response
589
+ result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true
590
+ catch :response do
591
+ yield result, operation if block_given?
592
+ result
593
+ end
594
+ end
595
+
596
+ ##
597
+ # Baseline implementation for the create_workspace REST call
598
+ #
599
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest]
600
+ # A request object representing the call parameters. Required.
601
+ # @param options [::Gapic::CallOptions]
602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
603
+ #
604
+ # @yield [result, operation] Access the result along with the TransportOperation object
605
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Workspace]
606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
607
+ #
608
+ # @return [::Google::Cloud::Dataform::V1::Workspace]
609
+ # A result object deserialized from the server's reply
610
+ def create_workspace request_pb, options = nil
611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
612
+
613
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_workspace_request request_pb
614
+ query_string_params = if query_string_params.any?
615
+ query_string_params.to_h { |p| p.split "=", 2 }
616
+ else
617
+ {}
618
+ end
619
+
620
+ response = @client_stub.make_http_request(
621
+ verb,
622
+ uri: uri,
623
+ body: body || "",
624
+ params: query_string_params,
625
+ method_name: "create_workspace",
626
+ options: options
627
+ )
628
+ operation = ::Gapic::Rest::TransportOperation.new response
629
+ result = ::Google::Cloud::Dataform::V1::Workspace.decode_json response.body, ignore_unknown_fields: true
630
+ catch :response do
631
+ yield result, operation if block_given?
632
+ result
633
+ end
634
+ end
635
+
636
+ ##
637
+ # Baseline implementation for the delete_workspace REST call
638
+ #
639
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest]
640
+ # A request object representing the call parameters. Required.
641
+ # @param options [::Gapic::CallOptions]
642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
643
+ #
644
+ # @yield [result, operation] Access the result along with the TransportOperation object
645
+ # @yieldparam result [::Google::Protobuf::Empty]
646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
647
+ #
648
+ # @return [::Google::Protobuf::Empty]
649
+ # A result object deserialized from the server's reply
650
+ def delete_workspace request_pb, options = nil
651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
652
+
653
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_workspace_request request_pb
654
+ query_string_params = if query_string_params.any?
655
+ query_string_params.to_h { |p| p.split "=", 2 }
656
+ else
657
+ {}
658
+ end
659
+
660
+ response = @client_stub.make_http_request(
661
+ verb,
662
+ uri: uri,
663
+ body: body || "",
664
+ params: query_string_params,
665
+ method_name: "delete_workspace",
666
+ options: options
667
+ )
668
+ operation = ::Gapic::Rest::TransportOperation.new response
669
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
670
+ catch :response do
671
+ yield result, operation if block_given?
672
+ result
673
+ end
674
+ end
675
+
676
+ ##
677
+ # Baseline implementation for the install_npm_packages REST call
678
+ #
679
+ # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest]
680
+ # A request object representing the call parameters. Required.
681
+ # @param options [::Gapic::CallOptions]
682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
683
+ #
684
+ # @yield [result, operation] Access the result along with the TransportOperation object
685
+ # @yieldparam result [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse]
686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
687
+ #
688
+ # @return [::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse]
689
+ # A result object deserialized from the server's reply
690
+ def install_npm_packages request_pb, options = nil
691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
692
+
693
+ verb, uri, query_string_params, body = ServiceStub.transcode_install_npm_packages_request request_pb
694
+ query_string_params = if query_string_params.any?
695
+ query_string_params.to_h { |p| p.split "=", 2 }
696
+ else
697
+ {}
698
+ end
699
+
700
+ response = @client_stub.make_http_request(
701
+ verb,
702
+ uri: uri,
703
+ body: body || "",
704
+ params: query_string_params,
705
+ method_name: "install_npm_packages",
706
+ options: options
707
+ )
708
+ operation = ::Gapic::Rest::TransportOperation.new response
709
+ result = ::Google::Cloud::Dataform::V1::InstallNpmPackagesResponse.decode_json response.body, ignore_unknown_fields: true
710
+ catch :response do
711
+ yield result, operation if block_given?
712
+ result
713
+ end
714
+ end
715
+
716
+ ##
717
+ # Baseline implementation for the pull_git_commits REST call
718
+ #
719
+ # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest]
720
+ # A request object representing the call parameters. Required.
721
+ # @param options [::Gapic::CallOptions]
722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
723
+ #
724
+ # @yield [result, operation] Access the result along with the TransportOperation object
725
+ # @yieldparam result [::Google::Cloud::Dataform::V1::PullGitCommitsResponse]
726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
727
+ #
728
+ # @return [::Google::Cloud::Dataform::V1::PullGitCommitsResponse]
729
+ # A result object deserialized from the server's reply
730
+ def pull_git_commits request_pb, options = nil
731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
732
+
733
+ verb, uri, query_string_params, body = ServiceStub.transcode_pull_git_commits_request request_pb
734
+ query_string_params = if query_string_params.any?
735
+ query_string_params.to_h { |p| p.split "=", 2 }
736
+ else
737
+ {}
738
+ end
739
+
740
+ response = @client_stub.make_http_request(
741
+ verb,
742
+ uri: uri,
743
+ body: body || "",
744
+ params: query_string_params,
745
+ method_name: "pull_git_commits",
746
+ options: options
747
+ )
748
+ operation = ::Gapic::Rest::TransportOperation.new response
749
+ result = ::Google::Cloud::Dataform::V1::PullGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true
750
+ catch :response do
751
+ yield result, operation if block_given?
752
+ result
753
+ end
754
+ end
755
+
756
+ ##
757
+ # Baseline implementation for the push_git_commits REST call
758
+ #
759
+ # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest]
760
+ # A request object representing the call parameters. Required.
761
+ # @param options [::Gapic::CallOptions]
762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
763
+ #
764
+ # @yield [result, operation] Access the result along with the TransportOperation object
765
+ # @yieldparam result [::Google::Cloud::Dataform::V1::PushGitCommitsResponse]
766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
767
+ #
768
+ # @return [::Google::Cloud::Dataform::V1::PushGitCommitsResponse]
769
+ # A result object deserialized from the server's reply
770
+ def push_git_commits request_pb, options = nil
771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
772
+
773
+ verb, uri, query_string_params, body = ServiceStub.transcode_push_git_commits_request request_pb
774
+ query_string_params = if query_string_params.any?
775
+ query_string_params.to_h { |p| p.split "=", 2 }
776
+ else
777
+ {}
778
+ end
779
+
780
+ response = @client_stub.make_http_request(
781
+ verb,
782
+ uri: uri,
783
+ body: body || "",
784
+ params: query_string_params,
785
+ method_name: "push_git_commits",
786
+ options: options
787
+ )
788
+ operation = ::Gapic::Rest::TransportOperation.new response
789
+ result = ::Google::Cloud::Dataform::V1::PushGitCommitsResponse.decode_json response.body, ignore_unknown_fields: true
790
+ catch :response do
791
+ yield result, operation if block_given?
792
+ result
793
+ end
794
+ end
795
+
796
+ ##
797
+ # Baseline implementation for the fetch_file_git_statuses REST call
798
+ #
799
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest]
800
+ # A request object representing the call parameters. Required.
801
+ # @param options [::Gapic::CallOptions]
802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
803
+ #
804
+ # @yield [result, operation] Access the result along with the TransportOperation object
805
+ # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse]
806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
807
+ #
808
+ # @return [::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse]
809
+ # A result object deserialized from the server's reply
810
+ def fetch_file_git_statuses request_pb, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
812
+
813
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_git_statuses_request request_pb
814
+ query_string_params = if query_string_params.any?
815
+ query_string_params.to_h { |p| p.split "=", 2 }
816
+ else
817
+ {}
818
+ end
819
+
820
+ response = @client_stub.make_http_request(
821
+ verb,
822
+ uri: uri,
823
+ body: body || "",
824
+ params: query_string_params,
825
+ method_name: "fetch_file_git_statuses",
826
+ options: options
827
+ )
828
+ operation = ::Gapic::Rest::TransportOperation.new response
829
+ result = ::Google::Cloud::Dataform::V1::FetchFileGitStatusesResponse.decode_json response.body, ignore_unknown_fields: true
830
+ catch :response do
831
+ yield result, operation if block_given?
832
+ result
833
+ end
834
+ end
835
+
836
+ ##
837
+ # Baseline implementation for the fetch_git_ahead_behind REST call
838
+ #
839
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest]
840
+ # A request object representing the call parameters. Required.
841
+ # @param options [::Gapic::CallOptions]
842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
843
+ #
844
+ # @yield [result, operation] Access the result along with the TransportOperation object
845
+ # @yieldparam result [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse]
846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
847
+ #
848
+ # @return [::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse]
849
+ # A result object deserialized from the server's reply
850
+ def fetch_git_ahead_behind request_pb, options = nil
851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
852
+
853
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_git_ahead_behind_request request_pb
854
+ query_string_params = if query_string_params.any?
855
+ query_string_params.to_h { |p| p.split "=", 2 }
856
+ else
857
+ {}
858
+ end
859
+
860
+ response = @client_stub.make_http_request(
861
+ verb,
862
+ uri: uri,
863
+ body: body || "",
864
+ params: query_string_params,
865
+ method_name: "fetch_git_ahead_behind",
866
+ options: options
867
+ )
868
+ operation = ::Gapic::Rest::TransportOperation.new response
869
+ result = ::Google::Cloud::Dataform::V1::FetchGitAheadBehindResponse.decode_json response.body, ignore_unknown_fields: true
870
+ catch :response do
871
+ yield result, operation if block_given?
872
+ result
873
+ end
874
+ end
875
+
876
+ ##
877
+ # Baseline implementation for the commit_workspace_changes REST call
878
+ #
879
+ # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest]
880
+ # A request object representing the call parameters. Required.
881
+ # @param options [::Gapic::CallOptions]
882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
883
+ #
884
+ # @yield [result, operation] Access the result along with the TransportOperation object
885
+ # @yieldparam result [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse]
886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
887
+ #
888
+ # @return [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse]
889
+ # A result object deserialized from the server's reply
890
+ def commit_workspace_changes request_pb, options = nil
891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
892
+
893
+ verb, uri, query_string_params, body = ServiceStub.transcode_commit_workspace_changes_request request_pb
894
+ query_string_params = if query_string_params.any?
895
+ query_string_params.to_h { |p| p.split "=", 2 }
896
+ else
897
+ {}
898
+ end
899
+
900
+ response = @client_stub.make_http_request(
901
+ verb,
902
+ uri: uri,
903
+ body: body || "",
904
+ params: query_string_params,
905
+ method_name: "commit_workspace_changes",
906
+ options: options
907
+ )
908
+ operation = ::Gapic::Rest::TransportOperation.new response
909
+ result = ::Google::Cloud::Dataform::V1::CommitWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true
910
+ catch :response do
911
+ yield result, operation if block_given?
912
+ result
913
+ end
914
+ end
915
+
916
+ ##
917
+ # Baseline implementation for the reset_workspace_changes REST call
918
+ #
919
+ # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest]
920
+ # A request object representing the call parameters. Required.
921
+ # @param options [::Gapic::CallOptions]
922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
923
+ #
924
+ # @yield [result, operation] Access the result along with the TransportOperation object
925
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse]
926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
927
+ #
928
+ # @return [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse]
929
+ # A result object deserialized from the server's reply
930
+ def reset_workspace_changes request_pb, options = nil
931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
932
+
933
+ verb, uri, query_string_params, body = ServiceStub.transcode_reset_workspace_changes_request request_pb
934
+ query_string_params = if query_string_params.any?
935
+ query_string_params.to_h { |p| p.split "=", 2 }
936
+ else
937
+ {}
938
+ end
939
+
940
+ response = @client_stub.make_http_request(
941
+ verb,
942
+ uri: uri,
943
+ body: body || "",
944
+ params: query_string_params,
945
+ method_name: "reset_workspace_changes",
946
+ options: options
947
+ )
948
+ operation = ::Gapic::Rest::TransportOperation.new response
949
+ result = ::Google::Cloud::Dataform::V1::ResetWorkspaceChangesResponse.decode_json response.body, ignore_unknown_fields: true
950
+ catch :response do
951
+ yield result, operation if block_given?
952
+ result
953
+ end
954
+ end
955
+
956
+ ##
957
+ # Baseline implementation for the fetch_file_diff REST call
958
+ #
959
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest]
960
+ # A request object representing the call parameters. Required.
961
+ # @param options [::Gapic::CallOptions]
962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
963
+ #
964
+ # @yield [result, operation] Access the result along with the TransportOperation object
965
+ # @yieldparam result [::Google::Cloud::Dataform::V1::FetchFileDiffResponse]
966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
967
+ #
968
+ # @return [::Google::Cloud::Dataform::V1::FetchFileDiffResponse]
969
+ # A result object deserialized from the server's reply
970
+ def fetch_file_diff request_pb, options = nil
971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
972
+
973
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_file_diff_request request_pb
974
+ query_string_params = if query_string_params.any?
975
+ query_string_params.to_h { |p| p.split "=", 2 }
976
+ else
977
+ {}
978
+ end
979
+
980
+ response = @client_stub.make_http_request(
981
+ verb,
982
+ uri: uri,
983
+ body: body || "",
984
+ params: query_string_params,
985
+ method_name: "fetch_file_diff",
986
+ options: options
987
+ )
988
+ operation = ::Gapic::Rest::TransportOperation.new response
989
+ result = ::Google::Cloud::Dataform::V1::FetchFileDiffResponse.decode_json response.body, ignore_unknown_fields: true
990
+ catch :response do
991
+ yield result, operation if block_given?
992
+ result
993
+ end
994
+ end
995
+
996
+ ##
997
+ # Baseline implementation for the query_directory_contents REST call
998
+ #
999
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest]
1000
+ # A request object representing the call parameters. Required.
1001
+ # @param options [::Gapic::CallOptions]
1002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1003
+ #
1004
+ # @yield [result, operation] Access the result along with the TransportOperation object
1005
+ # @yieldparam result [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse]
1006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1007
+ #
1008
+ # @return [::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse]
1009
+ # A result object deserialized from the server's reply
1010
+ def query_directory_contents request_pb, options = nil
1011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1012
+
1013
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_directory_contents_request request_pb
1014
+ query_string_params = if query_string_params.any?
1015
+ query_string_params.to_h { |p| p.split "=", 2 }
1016
+ else
1017
+ {}
1018
+ end
1019
+
1020
+ response = @client_stub.make_http_request(
1021
+ verb,
1022
+ uri: uri,
1023
+ body: body || "",
1024
+ params: query_string_params,
1025
+ method_name: "query_directory_contents",
1026
+ options: options
1027
+ )
1028
+ operation = ::Gapic::Rest::TransportOperation.new response
1029
+ result = ::Google::Cloud::Dataform::V1::QueryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true
1030
+ catch :response do
1031
+ yield result, operation if block_given?
1032
+ result
1033
+ end
1034
+ end
1035
+
1036
+ ##
1037
+ # Baseline implementation for the search_files REST call
1038
+ #
1039
+ # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest]
1040
+ # A request object representing the call parameters. Required.
1041
+ # @param options [::Gapic::CallOptions]
1042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1043
+ #
1044
+ # @yield [result, operation] Access the result along with the TransportOperation object
1045
+ # @yieldparam result [::Google::Cloud::Dataform::V1::SearchFilesResponse]
1046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1047
+ #
1048
+ # @return [::Google::Cloud::Dataform::V1::SearchFilesResponse]
1049
+ # A result object deserialized from the server's reply
1050
+ def search_files request_pb, options = nil
1051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1052
+
1053
+ verb, uri, query_string_params, body = ServiceStub.transcode_search_files_request request_pb
1054
+ query_string_params = if query_string_params.any?
1055
+ query_string_params.to_h { |p| p.split "=", 2 }
1056
+ else
1057
+ {}
1058
+ end
1059
+
1060
+ response = @client_stub.make_http_request(
1061
+ verb,
1062
+ uri: uri,
1063
+ body: body || "",
1064
+ params: query_string_params,
1065
+ method_name: "search_files",
1066
+ options: options
1067
+ )
1068
+ operation = ::Gapic::Rest::TransportOperation.new response
1069
+ result = ::Google::Cloud::Dataform::V1::SearchFilesResponse.decode_json response.body, ignore_unknown_fields: true
1070
+ catch :response do
1071
+ yield result, operation if block_given?
1072
+ result
1073
+ end
1074
+ end
1075
+
1076
+ ##
1077
+ # Baseline implementation for the make_directory REST call
1078
+ #
1079
+ # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest]
1080
+ # A request object representing the call parameters. Required.
1081
+ # @param options [::Gapic::CallOptions]
1082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1083
+ #
1084
+ # @yield [result, operation] Access the result along with the TransportOperation object
1085
+ # @yieldparam result [::Google::Cloud::Dataform::V1::MakeDirectoryResponse]
1086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1087
+ #
1088
+ # @return [::Google::Cloud::Dataform::V1::MakeDirectoryResponse]
1089
+ # A result object deserialized from the server's reply
1090
+ def make_directory request_pb, options = nil
1091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1092
+
1093
+ verb, uri, query_string_params, body = ServiceStub.transcode_make_directory_request request_pb
1094
+ query_string_params = if query_string_params.any?
1095
+ query_string_params.to_h { |p| p.split "=", 2 }
1096
+ else
1097
+ {}
1098
+ end
1099
+
1100
+ response = @client_stub.make_http_request(
1101
+ verb,
1102
+ uri: uri,
1103
+ body: body || "",
1104
+ params: query_string_params,
1105
+ method_name: "make_directory",
1106
+ options: options
1107
+ )
1108
+ operation = ::Gapic::Rest::TransportOperation.new response
1109
+ result = ::Google::Cloud::Dataform::V1::MakeDirectoryResponse.decode_json response.body, ignore_unknown_fields: true
1110
+ catch :response do
1111
+ yield result, operation if block_given?
1112
+ result
1113
+ end
1114
+ end
1115
+
1116
+ ##
1117
+ # Baseline implementation for the remove_directory REST call
1118
+ #
1119
+ # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest]
1120
+ # A request object representing the call parameters. Required.
1121
+ # @param options [::Gapic::CallOptions]
1122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1123
+ #
1124
+ # @yield [result, operation] Access the result along with the TransportOperation object
1125
+ # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse]
1126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1127
+ #
1128
+ # @return [::Google::Cloud::Dataform::V1::RemoveDirectoryResponse]
1129
+ # A result object deserialized from the server's reply
1130
+ def remove_directory request_pb, options = nil
1131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1132
+
1133
+ verb, uri, query_string_params, body = ServiceStub.transcode_remove_directory_request request_pb
1134
+ query_string_params = if query_string_params.any?
1135
+ query_string_params.to_h { |p| p.split "=", 2 }
1136
+ else
1137
+ {}
1138
+ end
1139
+
1140
+ response = @client_stub.make_http_request(
1141
+ verb,
1142
+ uri: uri,
1143
+ body: body || "",
1144
+ params: query_string_params,
1145
+ method_name: "remove_directory",
1146
+ options: options
1147
+ )
1148
+ operation = ::Gapic::Rest::TransportOperation.new response
1149
+ result = ::Google::Cloud::Dataform::V1::RemoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true
1150
+ catch :response do
1151
+ yield result, operation if block_given?
1152
+ result
1153
+ end
1154
+ end
1155
+
1156
+ ##
1157
+ # Baseline implementation for the move_directory REST call
1158
+ #
1159
+ # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest]
1160
+ # A request object representing the call parameters. Required.
1161
+ # @param options [::Gapic::CallOptions]
1162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1163
+ #
1164
+ # @yield [result, operation] Access the result along with the TransportOperation object
1165
+ # @yieldparam result [::Google::Cloud::Dataform::V1::MoveDirectoryResponse]
1166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1167
+ #
1168
+ # @return [::Google::Cloud::Dataform::V1::MoveDirectoryResponse]
1169
+ # A result object deserialized from the server's reply
1170
+ def move_directory request_pb, options = nil
1171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1172
+
1173
+ verb, uri, query_string_params, body = ServiceStub.transcode_move_directory_request request_pb
1174
+ query_string_params = if query_string_params.any?
1175
+ query_string_params.to_h { |p| p.split "=", 2 }
1176
+ else
1177
+ {}
1178
+ end
1179
+
1180
+ response = @client_stub.make_http_request(
1181
+ verb,
1182
+ uri: uri,
1183
+ body: body || "",
1184
+ params: query_string_params,
1185
+ method_name: "move_directory",
1186
+ options: options
1187
+ )
1188
+ operation = ::Gapic::Rest::TransportOperation.new response
1189
+ result = ::Google::Cloud::Dataform::V1::MoveDirectoryResponse.decode_json response.body, ignore_unknown_fields: true
1190
+ catch :response do
1191
+ yield result, operation if block_given?
1192
+ result
1193
+ end
1194
+ end
1195
+
1196
+ ##
1197
+ # Baseline implementation for the read_file REST call
1198
+ #
1199
+ # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest]
1200
+ # A request object representing the call parameters. Required.
1201
+ # @param options [::Gapic::CallOptions]
1202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1203
+ #
1204
+ # @yield [result, operation] Access the result along with the TransportOperation object
1205
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ReadFileResponse]
1206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1207
+ #
1208
+ # @return [::Google::Cloud::Dataform::V1::ReadFileResponse]
1209
+ # A result object deserialized from the server's reply
1210
+ def read_file request_pb, options = nil
1211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1212
+
1213
+ verb, uri, query_string_params, body = ServiceStub.transcode_read_file_request request_pb
1214
+ query_string_params = if query_string_params.any?
1215
+ query_string_params.to_h { |p| p.split "=", 2 }
1216
+ else
1217
+ {}
1218
+ end
1219
+
1220
+ response = @client_stub.make_http_request(
1221
+ verb,
1222
+ uri: uri,
1223
+ body: body || "",
1224
+ params: query_string_params,
1225
+ method_name: "read_file",
1226
+ options: options
1227
+ )
1228
+ operation = ::Gapic::Rest::TransportOperation.new response
1229
+ result = ::Google::Cloud::Dataform::V1::ReadFileResponse.decode_json response.body, ignore_unknown_fields: true
1230
+ catch :response do
1231
+ yield result, operation if block_given?
1232
+ result
1233
+ end
1234
+ end
1235
+
1236
+ ##
1237
+ # Baseline implementation for the remove_file REST call
1238
+ #
1239
+ # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest]
1240
+ # A request object representing the call parameters. Required.
1241
+ # @param options [::Gapic::CallOptions]
1242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1243
+ #
1244
+ # @yield [result, operation] Access the result along with the TransportOperation object
1245
+ # @yieldparam result [::Google::Cloud::Dataform::V1::RemoveFileResponse]
1246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1247
+ #
1248
+ # @return [::Google::Cloud::Dataform::V1::RemoveFileResponse]
1249
+ # A result object deserialized from the server's reply
1250
+ def remove_file request_pb, options = nil
1251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1252
+
1253
+ verb, uri, query_string_params, body = ServiceStub.transcode_remove_file_request request_pb
1254
+ query_string_params = if query_string_params.any?
1255
+ query_string_params.to_h { |p| p.split "=", 2 }
1256
+ else
1257
+ {}
1258
+ end
1259
+
1260
+ response = @client_stub.make_http_request(
1261
+ verb,
1262
+ uri: uri,
1263
+ body: body || "",
1264
+ params: query_string_params,
1265
+ method_name: "remove_file",
1266
+ options: options
1267
+ )
1268
+ operation = ::Gapic::Rest::TransportOperation.new response
1269
+ result = ::Google::Cloud::Dataform::V1::RemoveFileResponse.decode_json response.body, ignore_unknown_fields: true
1270
+ catch :response do
1271
+ yield result, operation if block_given?
1272
+ result
1273
+ end
1274
+ end
1275
+
1276
+ ##
1277
+ # Baseline implementation for the move_file REST call
1278
+ #
1279
+ # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest]
1280
+ # A request object representing the call parameters. Required.
1281
+ # @param options [::Gapic::CallOptions]
1282
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1283
+ #
1284
+ # @yield [result, operation] Access the result along with the TransportOperation object
1285
+ # @yieldparam result [::Google::Cloud::Dataform::V1::MoveFileResponse]
1286
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1287
+ #
1288
+ # @return [::Google::Cloud::Dataform::V1::MoveFileResponse]
1289
+ # A result object deserialized from the server's reply
1290
+ def move_file request_pb, options = nil
1291
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1292
+
1293
+ verb, uri, query_string_params, body = ServiceStub.transcode_move_file_request request_pb
1294
+ query_string_params = if query_string_params.any?
1295
+ query_string_params.to_h { |p| p.split "=", 2 }
1296
+ else
1297
+ {}
1298
+ end
1299
+
1300
+ response = @client_stub.make_http_request(
1301
+ verb,
1302
+ uri: uri,
1303
+ body: body || "",
1304
+ params: query_string_params,
1305
+ method_name: "move_file",
1306
+ options: options
1307
+ )
1308
+ operation = ::Gapic::Rest::TransportOperation.new response
1309
+ result = ::Google::Cloud::Dataform::V1::MoveFileResponse.decode_json response.body, ignore_unknown_fields: true
1310
+ catch :response do
1311
+ yield result, operation if block_given?
1312
+ result
1313
+ end
1314
+ end
1315
+
1316
+ ##
1317
+ # Baseline implementation for the write_file REST call
1318
+ #
1319
+ # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest]
1320
+ # A request object representing the call parameters. Required.
1321
+ # @param options [::Gapic::CallOptions]
1322
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1323
+ #
1324
+ # @yield [result, operation] Access the result along with the TransportOperation object
1325
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WriteFileResponse]
1326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
+ #
1328
+ # @return [::Google::Cloud::Dataform::V1::WriteFileResponse]
1329
+ # A result object deserialized from the server's reply
1330
+ def write_file request_pb, options = nil
1331
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1332
+
1333
+ verb, uri, query_string_params, body = ServiceStub.transcode_write_file_request request_pb
1334
+ query_string_params = if query_string_params.any?
1335
+ query_string_params.to_h { |p| p.split "=", 2 }
1336
+ else
1337
+ {}
1338
+ end
1339
+
1340
+ response = @client_stub.make_http_request(
1341
+ verb,
1342
+ uri: uri,
1343
+ body: body || "",
1344
+ params: query_string_params,
1345
+ method_name: "write_file",
1346
+ options: options
1347
+ )
1348
+ operation = ::Gapic::Rest::TransportOperation.new response
1349
+ result = ::Google::Cloud::Dataform::V1::WriteFileResponse.decode_json response.body, ignore_unknown_fields: true
1350
+ catch :response do
1351
+ yield result, operation if block_given?
1352
+ result
1353
+ end
1354
+ end
1355
+
1356
+ ##
1357
+ # Baseline implementation for the list_release_configs REST call
1358
+ #
1359
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest]
1360
+ # A request object representing the call parameters. Required.
1361
+ # @param options [::Gapic::CallOptions]
1362
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1363
+ #
1364
+ # @yield [result, operation] Access the result along with the TransportOperation object
1365
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse]
1366
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1367
+ #
1368
+ # @return [::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse]
1369
+ # A result object deserialized from the server's reply
1370
+ def list_release_configs request_pb, options = nil
1371
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1372
+
1373
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb
1374
+ query_string_params = if query_string_params.any?
1375
+ query_string_params.to_h { |p| p.split "=", 2 }
1376
+ else
1377
+ {}
1378
+ end
1379
+
1380
+ response = @client_stub.make_http_request(
1381
+ verb,
1382
+ uri: uri,
1383
+ body: body || "",
1384
+ params: query_string_params,
1385
+ method_name: "list_release_configs",
1386
+ options: options
1387
+ )
1388
+ operation = ::Gapic::Rest::TransportOperation.new response
1389
+ result = ::Google::Cloud::Dataform::V1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true
1390
+ catch :response do
1391
+ yield result, operation if block_given?
1392
+ result
1393
+ end
1394
+ end
1395
+
1396
+ ##
1397
+ # Baseline implementation for the get_release_config REST call
1398
+ #
1399
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest]
1400
+ # A request object representing the call parameters. Required.
1401
+ # @param options [::Gapic::CallOptions]
1402
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1403
+ #
1404
+ # @yield [result, operation] Access the result along with the TransportOperation object
1405
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig]
1406
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1407
+ #
1408
+ # @return [::Google::Cloud::Dataform::V1::ReleaseConfig]
1409
+ # A result object deserialized from the server's reply
1410
+ def get_release_config request_pb, options = nil
1411
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1412
+
1413
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb
1414
+ query_string_params = if query_string_params.any?
1415
+ query_string_params.to_h { |p| p.split "=", 2 }
1416
+ else
1417
+ {}
1418
+ end
1419
+
1420
+ response = @client_stub.make_http_request(
1421
+ verb,
1422
+ uri: uri,
1423
+ body: body || "",
1424
+ params: query_string_params,
1425
+ method_name: "get_release_config",
1426
+ options: options
1427
+ )
1428
+ operation = ::Gapic::Rest::TransportOperation.new response
1429
+ result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1430
+ catch :response do
1431
+ yield result, operation if block_given?
1432
+ result
1433
+ end
1434
+ end
1435
+
1436
+ ##
1437
+ # Baseline implementation for the create_release_config REST call
1438
+ #
1439
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest]
1440
+ # A request object representing the call parameters. Required.
1441
+ # @param options [::Gapic::CallOptions]
1442
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1443
+ #
1444
+ # @yield [result, operation] Access the result along with the TransportOperation object
1445
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig]
1446
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1447
+ #
1448
+ # @return [::Google::Cloud::Dataform::V1::ReleaseConfig]
1449
+ # A result object deserialized from the server's reply
1450
+ def create_release_config request_pb, options = nil
1451
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1452
+
1453
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb
1454
+ query_string_params = if query_string_params.any?
1455
+ query_string_params.to_h { |p| p.split "=", 2 }
1456
+ else
1457
+ {}
1458
+ end
1459
+
1460
+ response = @client_stub.make_http_request(
1461
+ verb,
1462
+ uri: uri,
1463
+ body: body || "",
1464
+ params: query_string_params,
1465
+ method_name: "create_release_config",
1466
+ options: options
1467
+ )
1468
+ operation = ::Gapic::Rest::TransportOperation.new response
1469
+ result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1470
+ catch :response do
1471
+ yield result, operation if block_given?
1472
+ result
1473
+ end
1474
+ end
1475
+
1476
+ ##
1477
+ # Baseline implementation for the update_release_config REST call
1478
+ #
1479
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest]
1480
+ # A request object representing the call parameters. Required.
1481
+ # @param options [::Gapic::CallOptions]
1482
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1483
+ #
1484
+ # @yield [result, operation] Access the result along with the TransportOperation object
1485
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ReleaseConfig]
1486
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1487
+ #
1488
+ # @return [::Google::Cloud::Dataform::V1::ReleaseConfig]
1489
+ # A result object deserialized from the server's reply
1490
+ def update_release_config request_pb, options = nil
1491
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1492
+
1493
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb
1494
+ query_string_params = if query_string_params.any?
1495
+ query_string_params.to_h { |p| p.split "=", 2 }
1496
+ else
1497
+ {}
1498
+ end
1499
+
1500
+ response = @client_stub.make_http_request(
1501
+ verb,
1502
+ uri: uri,
1503
+ body: body || "",
1504
+ params: query_string_params,
1505
+ method_name: "update_release_config",
1506
+ options: options
1507
+ )
1508
+ operation = ::Gapic::Rest::TransportOperation.new response
1509
+ result = ::Google::Cloud::Dataform::V1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1510
+ catch :response do
1511
+ yield result, operation if block_given?
1512
+ result
1513
+ end
1514
+ end
1515
+
1516
+ ##
1517
+ # Baseline implementation for the delete_release_config REST call
1518
+ #
1519
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest]
1520
+ # A request object representing the call parameters. Required.
1521
+ # @param options [::Gapic::CallOptions]
1522
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1523
+ #
1524
+ # @yield [result, operation] Access the result along with the TransportOperation object
1525
+ # @yieldparam result [::Google::Protobuf::Empty]
1526
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1527
+ #
1528
+ # @return [::Google::Protobuf::Empty]
1529
+ # A result object deserialized from the server's reply
1530
+ def delete_release_config request_pb, options = nil
1531
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1532
+
1533
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb
1534
+ query_string_params = if query_string_params.any?
1535
+ query_string_params.to_h { |p| p.split "=", 2 }
1536
+ else
1537
+ {}
1538
+ end
1539
+
1540
+ response = @client_stub.make_http_request(
1541
+ verb,
1542
+ uri: uri,
1543
+ body: body || "",
1544
+ params: query_string_params,
1545
+ method_name: "delete_release_config",
1546
+ options: options
1547
+ )
1548
+ operation = ::Gapic::Rest::TransportOperation.new response
1549
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1550
+ catch :response do
1551
+ yield result, operation if block_given?
1552
+ result
1553
+ end
1554
+ end
1555
+
1556
+ ##
1557
+ # Baseline implementation for the list_compilation_results REST call
1558
+ #
1559
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest]
1560
+ # A request object representing the call parameters. Required.
1561
+ # @param options [::Gapic::CallOptions]
1562
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1563
+ #
1564
+ # @yield [result, operation] Access the result along with the TransportOperation object
1565
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse]
1566
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1567
+ #
1568
+ # @return [::Google::Cloud::Dataform::V1::ListCompilationResultsResponse]
1569
+ # A result object deserialized from the server's reply
1570
+ def list_compilation_results request_pb, options = nil
1571
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1572
+
1573
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb
1574
+ query_string_params = if query_string_params.any?
1575
+ query_string_params.to_h { |p| p.split "=", 2 }
1576
+ else
1577
+ {}
1578
+ end
1579
+
1580
+ response = @client_stub.make_http_request(
1581
+ verb,
1582
+ uri: uri,
1583
+ body: body || "",
1584
+ params: query_string_params,
1585
+ method_name: "list_compilation_results",
1586
+ options: options
1587
+ )
1588
+ operation = ::Gapic::Rest::TransportOperation.new response
1589
+ result = ::Google::Cloud::Dataform::V1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true
1590
+ catch :response do
1591
+ yield result, operation if block_given?
1592
+ result
1593
+ end
1594
+ end
1595
+
1596
+ ##
1597
+ # Baseline implementation for the get_compilation_result REST call
1598
+ #
1599
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest]
1600
+ # A request object representing the call parameters. Required.
1601
+ # @param options [::Gapic::CallOptions]
1602
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1603
+ #
1604
+ # @yield [result, operation] Access the result along with the TransportOperation object
1605
+ # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult]
1606
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1607
+ #
1608
+ # @return [::Google::Cloud::Dataform::V1::CompilationResult]
1609
+ # A result object deserialized from the server's reply
1610
+ def get_compilation_result request_pb, options = nil
1611
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1612
+
1613
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb
1614
+ query_string_params = if query_string_params.any?
1615
+ query_string_params.to_h { |p| p.split "=", 2 }
1616
+ else
1617
+ {}
1618
+ end
1619
+
1620
+ response = @client_stub.make_http_request(
1621
+ verb,
1622
+ uri: uri,
1623
+ body: body || "",
1624
+ params: query_string_params,
1625
+ method_name: "get_compilation_result",
1626
+ options: options
1627
+ )
1628
+ operation = ::Gapic::Rest::TransportOperation.new response
1629
+ result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1630
+ catch :response do
1631
+ yield result, operation if block_given?
1632
+ result
1633
+ end
1634
+ end
1635
+
1636
+ ##
1637
+ # Baseline implementation for the create_compilation_result REST call
1638
+ #
1639
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest]
1640
+ # A request object representing the call parameters. Required.
1641
+ # @param options [::Gapic::CallOptions]
1642
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1643
+ #
1644
+ # @yield [result, operation] Access the result along with the TransportOperation object
1645
+ # @yieldparam result [::Google::Cloud::Dataform::V1::CompilationResult]
1646
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1647
+ #
1648
+ # @return [::Google::Cloud::Dataform::V1::CompilationResult]
1649
+ # A result object deserialized from the server's reply
1650
+ def create_compilation_result request_pb, options = nil
1651
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1652
+
1653
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb
1654
+ query_string_params = if query_string_params.any?
1655
+ query_string_params.to_h { |p| p.split "=", 2 }
1656
+ else
1657
+ {}
1658
+ end
1659
+
1660
+ response = @client_stub.make_http_request(
1661
+ verb,
1662
+ uri: uri,
1663
+ body: body || "",
1664
+ params: query_string_params,
1665
+ method_name: "create_compilation_result",
1666
+ options: options
1667
+ )
1668
+ operation = ::Gapic::Rest::TransportOperation.new response
1669
+ result = ::Google::Cloud::Dataform::V1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1670
+ catch :response do
1671
+ yield result, operation if block_given?
1672
+ result
1673
+ end
1674
+ end
1675
+
1676
+ ##
1677
+ # Baseline implementation for the query_compilation_result_actions REST call
1678
+ #
1679
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest]
1680
+ # A request object representing the call parameters. Required.
1681
+ # @param options [::Gapic::CallOptions]
1682
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1683
+ #
1684
+ # @yield [result, operation] Access the result along with the TransportOperation object
1685
+ # @yieldparam result [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse]
1686
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1687
+ #
1688
+ # @return [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse]
1689
+ # A result object deserialized from the server's reply
1690
+ def query_compilation_result_actions request_pb, options = nil
1691
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1692
+
1693
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb
1694
+ query_string_params = if query_string_params.any?
1695
+ query_string_params.to_h { |p| p.split "=", 2 }
1696
+ else
1697
+ {}
1698
+ end
1699
+
1700
+ response = @client_stub.make_http_request(
1701
+ verb,
1702
+ uri: uri,
1703
+ body: body || "",
1704
+ params: query_string_params,
1705
+ method_name: "query_compilation_result_actions",
1706
+ options: options
1707
+ )
1708
+ operation = ::Gapic::Rest::TransportOperation.new response
1709
+ result = ::Google::Cloud::Dataform::V1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true
1710
+ catch :response do
1711
+ yield result, operation if block_given?
1712
+ result
1713
+ end
1714
+ end
1715
+
1716
+ ##
1717
+ # Baseline implementation for the list_workflow_configs REST call
1718
+ #
1719
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest]
1720
+ # A request object representing the call parameters. Required.
1721
+ # @param options [::Gapic::CallOptions]
1722
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1723
+ #
1724
+ # @yield [result, operation] Access the result along with the TransportOperation object
1725
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse]
1726
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1727
+ #
1728
+ # @return [::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse]
1729
+ # A result object deserialized from the server's reply
1730
+ def list_workflow_configs request_pb, options = nil
1731
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1732
+
1733
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb
1734
+ query_string_params = if query_string_params.any?
1735
+ query_string_params.to_h { |p| p.split "=", 2 }
1736
+ else
1737
+ {}
1738
+ end
1739
+
1740
+ response = @client_stub.make_http_request(
1741
+ verb,
1742
+ uri: uri,
1743
+ body: body || "",
1744
+ params: query_string_params,
1745
+ method_name: "list_workflow_configs",
1746
+ options: options
1747
+ )
1748
+ operation = ::Gapic::Rest::TransportOperation.new response
1749
+ result = ::Google::Cloud::Dataform::V1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true
1750
+ catch :response do
1751
+ yield result, operation if block_given?
1752
+ result
1753
+ end
1754
+ end
1755
+
1756
+ ##
1757
+ # Baseline implementation for the get_workflow_config REST call
1758
+ #
1759
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest]
1760
+ # A request object representing the call parameters. Required.
1761
+ # @param options [::Gapic::CallOptions]
1762
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1763
+ #
1764
+ # @yield [result, operation] Access the result along with the TransportOperation object
1765
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig]
1766
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1767
+ #
1768
+ # @return [::Google::Cloud::Dataform::V1::WorkflowConfig]
1769
+ # A result object deserialized from the server's reply
1770
+ def get_workflow_config request_pb, options = nil
1771
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1772
+
1773
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb
1774
+ query_string_params = if query_string_params.any?
1775
+ query_string_params.to_h { |p| p.split "=", 2 }
1776
+ else
1777
+ {}
1778
+ end
1779
+
1780
+ response = @client_stub.make_http_request(
1781
+ verb,
1782
+ uri: uri,
1783
+ body: body || "",
1784
+ params: query_string_params,
1785
+ method_name: "get_workflow_config",
1786
+ options: options
1787
+ )
1788
+ operation = ::Gapic::Rest::TransportOperation.new response
1789
+ result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1790
+ catch :response do
1791
+ yield result, operation if block_given?
1792
+ result
1793
+ end
1794
+ end
1795
+
1796
+ ##
1797
+ # Baseline implementation for the create_workflow_config REST call
1798
+ #
1799
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest]
1800
+ # A request object representing the call parameters. Required.
1801
+ # @param options [::Gapic::CallOptions]
1802
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1803
+ #
1804
+ # @yield [result, operation] Access the result along with the TransportOperation object
1805
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig]
1806
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1807
+ #
1808
+ # @return [::Google::Cloud::Dataform::V1::WorkflowConfig]
1809
+ # A result object deserialized from the server's reply
1810
+ def create_workflow_config request_pb, options = nil
1811
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1812
+
1813
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb
1814
+ query_string_params = if query_string_params.any?
1815
+ query_string_params.to_h { |p| p.split "=", 2 }
1816
+ else
1817
+ {}
1818
+ end
1819
+
1820
+ response = @client_stub.make_http_request(
1821
+ verb,
1822
+ uri: uri,
1823
+ body: body || "",
1824
+ params: query_string_params,
1825
+ method_name: "create_workflow_config",
1826
+ options: options
1827
+ )
1828
+ operation = ::Gapic::Rest::TransportOperation.new response
1829
+ result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1830
+ catch :response do
1831
+ yield result, operation if block_given?
1832
+ result
1833
+ end
1834
+ end
1835
+
1836
+ ##
1837
+ # Baseline implementation for the update_workflow_config REST call
1838
+ #
1839
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest]
1840
+ # A request object representing the call parameters. Required.
1841
+ # @param options [::Gapic::CallOptions]
1842
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1843
+ #
1844
+ # @yield [result, operation] Access the result along with the TransportOperation object
1845
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowConfig]
1846
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1847
+ #
1848
+ # @return [::Google::Cloud::Dataform::V1::WorkflowConfig]
1849
+ # A result object deserialized from the server's reply
1850
+ def update_workflow_config request_pb, options = nil
1851
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1852
+
1853
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb
1854
+ query_string_params = if query_string_params.any?
1855
+ query_string_params.to_h { |p| p.split "=", 2 }
1856
+ else
1857
+ {}
1858
+ end
1859
+
1860
+ response = @client_stub.make_http_request(
1861
+ verb,
1862
+ uri: uri,
1863
+ body: body || "",
1864
+ params: query_string_params,
1865
+ method_name: "update_workflow_config",
1866
+ options: options
1867
+ )
1868
+ operation = ::Gapic::Rest::TransportOperation.new response
1869
+ result = ::Google::Cloud::Dataform::V1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1870
+ catch :response do
1871
+ yield result, operation if block_given?
1872
+ result
1873
+ end
1874
+ end
1875
+
1876
+ ##
1877
+ # Baseline implementation for the delete_workflow_config REST call
1878
+ #
1879
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest]
1880
+ # A request object representing the call parameters. Required.
1881
+ # @param options [::Gapic::CallOptions]
1882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1883
+ #
1884
+ # @yield [result, operation] Access the result along with the TransportOperation object
1885
+ # @yieldparam result [::Google::Protobuf::Empty]
1886
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1887
+ #
1888
+ # @return [::Google::Protobuf::Empty]
1889
+ # A result object deserialized from the server's reply
1890
+ def delete_workflow_config request_pb, options = nil
1891
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1892
+
1893
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb
1894
+ query_string_params = if query_string_params.any?
1895
+ query_string_params.to_h { |p| p.split "=", 2 }
1896
+ else
1897
+ {}
1898
+ end
1899
+
1900
+ response = @client_stub.make_http_request(
1901
+ verb,
1902
+ uri: uri,
1903
+ body: body || "",
1904
+ params: query_string_params,
1905
+ method_name: "delete_workflow_config",
1906
+ options: options
1907
+ )
1908
+ operation = ::Gapic::Rest::TransportOperation.new response
1909
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1910
+ catch :response do
1911
+ yield result, operation if block_given?
1912
+ result
1913
+ end
1914
+ end
1915
+
1916
+ ##
1917
+ # Baseline implementation for the list_workflow_invocations REST call
1918
+ #
1919
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest]
1920
+ # A request object representing the call parameters. Required.
1921
+ # @param options [::Gapic::CallOptions]
1922
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1923
+ #
1924
+ # @yield [result, operation] Access the result along with the TransportOperation object
1925
+ # @yieldparam result [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse]
1926
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1927
+ #
1928
+ # @return [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse]
1929
+ # A result object deserialized from the server's reply
1930
+ def list_workflow_invocations request_pb, options = nil
1931
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1932
+
1933
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb
1934
+ query_string_params = if query_string_params.any?
1935
+ query_string_params.to_h { |p| p.split "=", 2 }
1936
+ else
1937
+ {}
1938
+ end
1939
+
1940
+ response = @client_stub.make_http_request(
1941
+ verb,
1942
+ uri: uri,
1943
+ body: body || "",
1944
+ params: query_string_params,
1945
+ method_name: "list_workflow_invocations",
1946
+ options: options
1947
+ )
1948
+ operation = ::Gapic::Rest::TransportOperation.new response
1949
+ result = ::Google::Cloud::Dataform::V1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true
1950
+ catch :response do
1951
+ yield result, operation if block_given?
1952
+ result
1953
+ end
1954
+ end
1955
+
1956
+ ##
1957
+ # Baseline implementation for the get_workflow_invocation REST call
1958
+ #
1959
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest]
1960
+ # A request object representing the call parameters. Required.
1961
+ # @param options [::Gapic::CallOptions]
1962
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1963
+ #
1964
+ # @yield [result, operation] Access the result along with the TransportOperation object
1965
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation]
1966
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1967
+ #
1968
+ # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation]
1969
+ # A result object deserialized from the server's reply
1970
+ def get_workflow_invocation request_pb, options = nil
1971
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1972
+
1973
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb
1974
+ query_string_params = if query_string_params.any?
1975
+ query_string_params.to_h { |p| p.split "=", 2 }
1976
+ else
1977
+ {}
1978
+ end
1979
+
1980
+ response = @client_stub.make_http_request(
1981
+ verb,
1982
+ uri: uri,
1983
+ body: body || "",
1984
+ params: query_string_params,
1985
+ method_name: "get_workflow_invocation",
1986
+ options: options
1987
+ )
1988
+ operation = ::Gapic::Rest::TransportOperation.new response
1989
+ result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
1990
+ catch :response do
1991
+ yield result, operation if block_given?
1992
+ result
1993
+ end
1994
+ end
1995
+
1996
+ ##
1997
+ # Baseline implementation for the create_workflow_invocation REST call
1998
+ #
1999
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest]
2000
+ # A request object representing the call parameters. Required.
2001
+ # @param options [::Gapic::CallOptions]
2002
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2003
+ #
2004
+ # @yield [result, operation] Access the result along with the TransportOperation object
2005
+ # @yieldparam result [::Google::Cloud::Dataform::V1::WorkflowInvocation]
2006
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2007
+ #
2008
+ # @return [::Google::Cloud::Dataform::V1::WorkflowInvocation]
2009
+ # A result object deserialized from the server's reply
2010
+ def create_workflow_invocation request_pb, options = nil
2011
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2012
+
2013
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb
2014
+ query_string_params = if query_string_params.any?
2015
+ query_string_params.to_h { |p| p.split "=", 2 }
2016
+ else
2017
+ {}
2018
+ end
2019
+
2020
+ response = @client_stub.make_http_request(
2021
+ verb,
2022
+ uri: uri,
2023
+ body: body || "",
2024
+ params: query_string_params,
2025
+ method_name: "create_workflow_invocation",
2026
+ options: options
2027
+ )
2028
+ operation = ::Gapic::Rest::TransportOperation.new response
2029
+ result = ::Google::Cloud::Dataform::V1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
2030
+ catch :response do
2031
+ yield result, operation if block_given?
2032
+ result
2033
+ end
2034
+ end
2035
+
2036
+ ##
2037
+ # Baseline implementation for the delete_workflow_invocation REST call
2038
+ #
2039
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest]
2040
+ # A request object representing the call parameters. Required.
2041
+ # @param options [::Gapic::CallOptions]
2042
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2043
+ #
2044
+ # @yield [result, operation] Access the result along with the TransportOperation object
2045
+ # @yieldparam result [::Google::Protobuf::Empty]
2046
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2047
+ #
2048
+ # @return [::Google::Protobuf::Empty]
2049
+ # A result object deserialized from the server's reply
2050
+ def delete_workflow_invocation request_pb, options = nil
2051
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2052
+
2053
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb
2054
+ query_string_params = if query_string_params.any?
2055
+ query_string_params.to_h { |p| p.split "=", 2 }
2056
+ else
2057
+ {}
2058
+ end
2059
+
2060
+ response = @client_stub.make_http_request(
2061
+ verb,
2062
+ uri: uri,
2063
+ body: body || "",
2064
+ params: query_string_params,
2065
+ method_name: "delete_workflow_invocation",
2066
+ options: options
2067
+ )
2068
+ operation = ::Gapic::Rest::TransportOperation.new response
2069
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
2070
+ catch :response do
2071
+ yield result, operation if block_given?
2072
+ result
2073
+ end
2074
+ end
2075
+
2076
+ ##
2077
+ # Baseline implementation for the cancel_workflow_invocation REST call
2078
+ #
2079
+ # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest]
2080
+ # A request object representing the call parameters. Required.
2081
+ # @param options [::Gapic::CallOptions]
2082
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2083
+ #
2084
+ # @yield [result, operation] Access the result along with the TransportOperation object
2085
+ # @yieldparam result [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse]
2086
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2087
+ #
2088
+ # @return [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse]
2089
+ # A result object deserialized from the server's reply
2090
+ def cancel_workflow_invocation request_pb, options = nil
2091
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2092
+
2093
+ verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb
2094
+ query_string_params = if query_string_params.any?
2095
+ query_string_params.to_h { |p| p.split "=", 2 }
2096
+ else
2097
+ {}
2098
+ end
2099
+
2100
+ response = @client_stub.make_http_request(
2101
+ verb,
2102
+ uri: uri,
2103
+ body: body || "",
2104
+ params: query_string_params,
2105
+ method_name: "cancel_workflow_invocation",
2106
+ options: options
2107
+ )
2108
+ operation = ::Gapic::Rest::TransportOperation.new response
2109
+ result = ::Google::Cloud::Dataform::V1::CancelWorkflowInvocationResponse.decode_json response.body, ignore_unknown_fields: true
2110
+ catch :response do
2111
+ yield result, operation if block_given?
2112
+ result
2113
+ end
2114
+ end
2115
+
2116
+ ##
2117
+ # Baseline implementation for the query_workflow_invocation_actions REST call
2118
+ #
2119
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest]
2120
+ # A request object representing the call parameters. Required.
2121
+ # @param options [::Gapic::CallOptions]
2122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2123
+ #
2124
+ # @yield [result, operation] Access the result along with the TransportOperation object
2125
+ # @yieldparam result [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse]
2126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2127
+ #
2128
+ # @return [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse]
2129
+ # A result object deserialized from the server's reply
2130
+ def query_workflow_invocation_actions request_pb, options = nil
2131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2132
+
2133
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_workflow_invocation_actions_request request_pb
2134
+ query_string_params = if query_string_params.any?
2135
+ query_string_params.to_h { |p| p.split "=", 2 }
2136
+ else
2137
+ {}
2138
+ end
2139
+
2140
+ response = @client_stub.make_http_request(
2141
+ verb,
2142
+ uri: uri,
2143
+ body: body || "",
2144
+ params: query_string_params,
2145
+ method_name: "query_workflow_invocation_actions",
2146
+ options: options
2147
+ )
2148
+ operation = ::Gapic::Rest::TransportOperation.new response
2149
+ result = ::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsResponse.decode_json response.body, ignore_unknown_fields: true
2150
+ catch :response do
2151
+ yield result, operation if block_given?
2152
+ result
2153
+ end
2154
+ end
2155
+
2156
+ ##
2157
+ # Baseline implementation for the get_config REST call
2158
+ #
2159
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest]
2160
+ # A request object representing the call parameters. Required.
2161
+ # @param options [::Gapic::CallOptions]
2162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2163
+ #
2164
+ # @yield [result, operation] Access the result along with the TransportOperation object
2165
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Config]
2166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2167
+ #
2168
+ # @return [::Google::Cloud::Dataform::V1::Config]
2169
+ # A result object deserialized from the server's reply
2170
+ def get_config request_pb, options = nil
2171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2172
+
2173
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_config_request request_pb
2174
+ query_string_params = if query_string_params.any?
2175
+ query_string_params.to_h { |p| p.split "=", 2 }
2176
+ else
2177
+ {}
2178
+ end
2179
+
2180
+ response = @client_stub.make_http_request(
2181
+ verb,
2182
+ uri: uri,
2183
+ body: body || "",
2184
+ params: query_string_params,
2185
+ method_name: "get_config",
2186
+ options: options
2187
+ )
2188
+ operation = ::Gapic::Rest::TransportOperation.new response
2189
+ result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true
2190
+ catch :response do
2191
+ yield result, operation if block_given?
2192
+ result
2193
+ end
2194
+ end
2195
+
2196
+ ##
2197
+ # Baseline implementation for the update_config REST call
2198
+ #
2199
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest]
2200
+ # A request object representing the call parameters. Required.
2201
+ # @param options [::Gapic::CallOptions]
2202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2203
+ #
2204
+ # @yield [result, operation] Access the result along with the TransportOperation object
2205
+ # @yieldparam result [::Google::Cloud::Dataform::V1::Config]
2206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2207
+ #
2208
+ # @return [::Google::Cloud::Dataform::V1::Config]
2209
+ # A result object deserialized from the server's reply
2210
+ def update_config request_pb, options = nil
2211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
2212
+
2213
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_config_request request_pb
2214
+ query_string_params = if query_string_params.any?
2215
+ query_string_params.to_h { |p| p.split "=", 2 }
2216
+ else
2217
+ {}
2218
+ end
2219
+
2220
+ response = @client_stub.make_http_request(
2221
+ verb,
2222
+ uri: uri,
2223
+ body: body || "",
2224
+ params: query_string_params,
2225
+ method_name: "update_config",
2226
+ options: options
2227
+ )
2228
+ operation = ::Gapic::Rest::TransportOperation.new response
2229
+ result = ::Google::Cloud::Dataform::V1::Config.decode_json response.body, ignore_unknown_fields: true
2230
+ catch :response do
2231
+ yield result, operation if block_given?
2232
+ result
2233
+ end
2234
+ end
2235
+
2236
+ ##
2237
+ # @private
2238
+ #
2239
+ # GRPC transcoding helper method for the list_repositories REST call
2240
+ #
2241
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListRepositoriesRequest]
2242
+ # A request object representing the call parameters. Required.
2243
+ # @return [Array(String, [String, nil], Hash{String => String})]
2244
+ # Uri, Body, Query string parameters
2245
+ def self.transcode_list_repositories_request request_pb
2246
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2247
+ .with_bindings(
2248
+ uri_method: :get,
2249
+ uri_template: "/v1/{parent}/repositories",
2250
+ matches: [
2251
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2252
+ ]
2253
+ )
2254
+ transcoder.transcode request_pb
2255
+ end
2256
+
2257
+ ##
2258
+ # @private
2259
+ #
2260
+ # GRPC transcoding helper method for the get_repository REST call
2261
+ #
2262
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetRepositoryRequest]
2263
+ # A request object representing the call parameters. Required.
2264
+ # @return [Array(String, [String, nil], Hash{String => String})]
2265
+ # Uri, Body, Query string parameters
2266
+ def self.transcode_get_repository_request request_pb
2267
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2268
+ .with_bindings(
2269
+ uri_method: :get,
2270
+ uri_template: "/v1/{name}",
2271
+ matches: [
2272
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2273
+ ]
2274
+ )
2275
+ transcoder.transcode request_pb
2276
+ end
2277
+
2278
+ ##
2279
+ # @private
2280
+ #
2281
+ # GRPC transcoding helper method for the create_repository REST call
2282
+ #
2283
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateRepositoryRequest]
2284
+ # A request object representing the call parameters. Required.
2285
+ # @return [Array(String, [String, nil], Hash{String => String})]
2286
+ # Uri, Body, Query string parameters
2287
+ def self.transcode_create_repository_request request_pb
2288
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2289
+ .with_bindings(
2290
+ uri_method: :post,
2291
+ uri_template: "/v1/{parent}/repositories",
2292
+ body: "repository",
2293
+ matches: [
2294
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
2295
+ ]
2296
+ )
2297
+ transcoder.transcode request_pb
2298
+ end
2299
+
2300
+ ##
2301
+ # @private
2302
+ #
2303
+ # GRPC transcoding helper method for the update_repository REST call
2304
+ #
2305
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateRepositoryRequest]
2306
+ # A request object representing the call parameters. Required.
2307
+ # @return [Array(String, [String, nil], Hash{String => String})]
2308
+ # Uri, Body, Query string parameters
2309
+ def self.transcode_update_repository_request request_pb
2310
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2311
+ .with_bindings(
2312
+ uri_method: :patch,
2313
+ uri_template: "/v1/{repository.name}",
2314
+ body: "repository",
2315
+ matches: [
2316
+ ["repository.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2317
+ ]
2318
+ )
2319
+ transcoder.transcode request_pb
2320
+ end
2321
+
2322
+ ##
2323
+ # @private
2324
+ #
2325
+ # GRPC transcoding helper method for the delete_repository REST call
2326
+ #
2327
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteRepositoryRequest]
2328
+ # A request object representing the call parameters. Required.
2329
+ # @return [Array(String, [String, nil], Hash{String => String})]
2330
+ # Uri, Body, Query string parameters
2331
+ def self.transcode_delete_repository_request request_pb
2332
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2333
+ .with_bindings(
2334
+ uri_method: :delete,
2335
+ uri_template: "/v1/{name}",
2336
+ matches: [
2337
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2338
+ ]
2339
+ )
2340
+ transcoder.transcode request_pb
2341
+ end
2342
+
2343
+ ##
2344
+ # @private
2345
+ #
2346
+ # GRPC transcoding helper method for the commit_repository_changes REST call
2347
+ #
2348
+ # @param request_pb [::Google::Cloud::Dataform::V1::CommitRepositoryChangesRequest]
2349
+ # A request object representing the call parameters. Required.
2350
+ # @return [Array(String, [String, nil], Hash{String => String})]
2351
+ # Uri, Body, Query string parameters
2352
+ def self.transcode_commit_repository_changes_request request_pb
2353
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2354
+ .with_bindings(
2355
+ uri_method: :post,
2356
+ uri_template: "/v1/{name}:commit",
2357
+ body: "*",
2358
+ matches: [
2359
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2360
+ ]
2361
+ )
2362
+ transcoder.transcode request_pb
2363
+ end
2364
+
2365
+ ##
2366
+ # @private
2367
+ #
2368
+ # GRPC transcoding helper method for the read_repository_file REST call
2369
+ #
2370
+ # @param request_pb [::Google::Cloud::Dataform::V1::ReadRepositoryFileRequest]
2371
+ # A request object representing the call parameters. Required.
2372
+ # @return [Array(String, [String, nil], Hash{String => String})]
2373
+ # Uri, Body, Query string parameters
2374
+ def self.transcode_read_repository_file_request request_pb
2375
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2376
+ .with_bindings(
2377
+ uri_method: :get,
2378
+ uri_template: "/v1/{name}:readFile",
2379
+ matches: [
2380
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2381
+ ]
2382
+ )
2383
+ transcoder.transcode request_pb
2384
+ end
2385
+
2386
+ ##
2387
+ # @private
2388
+ #
2389
+ # GRPC transcoding helper method for the query_repository_directory_contents REST call
2390
+ #
2391
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryRepositoryDirectoryContentsRequest]
2392
+ # A request object representing the call parameters. Required.
2393
+ # @return [Array(String, [String, nil], Hash{String => String})]
2394
+ # Uri, Body, Query string parameters
2395
+ def self.transcode_query_repository_directory_contents_request request_pb
2396
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2397
+ .with_bindings(
2398
+ uri_method: :get,
2399
+ uri_template: "/v1/{name}:queryDirectoryContents",
2400
+ matches: [
2401
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2402
+ ]
2403
+ )
2404
+ transcoder.transcode request_pb
2405
+ end
2406
+
2407
+ ##
2408
+ # @private
2409
+ #
2410
+ # GRPC transcoding helper method for the fetch_repository_history REST call
2411
+ #
2412
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchRepositoryHistoryRequest]
2413
+ # A request object representing the call parameters. Required.
2414
+ # @return [Array(String, [String, nil], Hash{String => String})]
2415
+ # Uri, Body, Query string parameters
2416
+ def self.transcode_fetch_repository_history_request request_pb
2417
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2418
+ .with_bindings(
2419
+ uri_method: :get,
2420
+ uri_template: "/v1/{name}:fetchHistory",
2421
+ matches: [
2422
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2423
+ ]
2424
+ )
2425
+ transcoder.transcode request_pb
2426
+ end
2427
+
2428
+ ##
2429
+ # @private
2430
+ #
2431
+ # GRPC transcoding helper method for the compute_repository_access_token_status REST call
2432
+ #
2433
+ # @param request_pb [::Google::Cloud::Dataform::V1::ComputeRepositoryAccessTokenStatusRequest]
2434
+ # A request object representing the call parameters. Required.
2435
+ # @return [Array(String, [String, nil], Hash{String => String})]
2436
+ # Uri, Body, Query string parameters
2437
+ def self.transcode_compute_repository_access_token_status_request request_pb
2438
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2439
+ .with_bindings(
2440
+ uri_method: :get,
2441
+ uri_template: "/v1/{name}:computeAccessTokenStatus",
2442
+ matches: [
2443
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2444
+ ]
2445
+ )
2446
+ transcoder.transcode request_pb
2447
+ end
2448
+
2449
+ ##
2450
+ # @private
2451
+ #
2452
+ # GRPC transcoding helper method for the fetch_remote_branches REST call
2453
+ #
2454
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchRemoteBranchesRequest]
2455
+ # A request object representing the call parameters. Required.
2456
+ # @return [Array(String, [String, nil], Hash{String => String})]
2457
+ # Uri, Body, Query string parameters
2458
+ def self.transcode_fetch_remote_branches_request request_pb
2459
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2460
+ .with_bindings(
2461
+ uri_method: :get,
2462
+ uri_template: "/v1/{name}:fetchRemoteBranches",
2463
+ matches: [
2464
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2465
+ ]
2466
+ )
2467
+ transcoder.transcode request_pb
2468
+ end
2469
+
2470
+ ##
2471
+ # @private
2472
+ #
2473
+ # GRPC transcoding helper method for the list_workspaces REST call
2474
+ #
2475
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkspacesRequest]
2476
+ # A request object representing the call parameters. Required.
2477
+ # @return [Array(String, [String, nil], Hash{String => String})]
2478
+ # Uri, Body, Query string parameters
2479
+ def self.transcode_list_workspaces_request request_pb
2480
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2481
+ .with_bindings(
2482
+ uri_method: :get,
2483
+ uri_template: "/v1/{parent}/workspaces",
2484
+ matches: [
2485
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2486
+ ]
2487
+ )
2488
+ transcoder.transcode request_pb
2489
+ end
2490
+
2491
+ ##
2492
+ # @private
2493
+ #
2494
+ # GRPC transcoding helper method for the get_workspace REST call
2495
+ #
2496
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkspaceRequest]
2497
+ # A request object representing the call parameters. Required.
2498
+ # @return [Array(String, [String, nil], Hash{String => String})]
2499
+ # Uri, Body, Query string parameters
2500
+ def self.transcode_get_workspace_request request_pb
2501
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2502
+ .with_bindings(
2503
+ uri_method: :get,
2504
+ uri_template: "/v1/{name}",
2505
+ matches: [
2506
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2507
+ ]
2508
+ )
2509
+ transcoder.transcode request_pb
2510
+ end
2511
+
2512
+ ##
2513
+ # @private
2514
+ #
2515
+ # GRPC transcoding helper method for the create_workspace REST call
2516
+ #
2517
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkspaceRequest]
2518
+ # A request object representing the call parameters. Required.
2519
+ # @return [Array(String, [String, nil], Hash{String => String})]
2520
+ # Uri, Body, Query string parameters
2521
+ def self.transcode_create_workspace_request request_pb
2522
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2523
+ .with_bindings(
2524
+ uri_method: :post,
2525
+ uri_template: "/v1/{parent}/workspaces",
2526
+ body: "workspace",
2527
+ matches: [
2528
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2529
+ ]
2530
+ )
2531
+ transcoder.transcode request_pb
2532
+ end
2533
+
2534
+ ##
2535
+ # @private
2536
+ #
2537
+ # GRPC transcoding helper method for the delete_workspace REST call
2538
+ #
2539
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkspaceRequest]
2540
+ # A request object representing the call parameters. Required.
2541
+ # @return [Array(String, [String, nil], Hash{String => String})]
2542
+ # Uri, Body, Query string parameters
2543
+ def self.transcode_delete_workspace_request request_pb
2544
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2545
+ .with_bindings(
2546
+ uri_method: :delete,
2547
+ uri_template: "/v1/{name}",
2548
+ matches: [
2549
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2550
+ ]
2551
+ )
2552
+ transcoder.transcode request_pb
2553
+ end
2554
+
2555
+ ##
2556
+ # @private
2557
+ #
2558
+ # GRPC transcoding helper method for the install_npm_packages REST call
2559
+ #
2560
+ # @param request_pb [::Google::Cloud::Dataform::V1::InstallNpmPackagesRequest]
2561
+ # A request object representing the call parameters. Required.
2562
+ # @return [Array(String, [String, nil], Hash{String => String})]
2563
+ # Uri, Body, Query string parameters
2564
+ def self.transcode_install_npm_packages_request request_pb
2565
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2566
+ .with_bindings(
2567
+ uri_method: :post,
2568
+ uri_template: "/v1/{workspace}:installNpmPackages",
2569
+ body: "*",
2570
+ matches: [
2571
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2572
+ ]
2573
+ )
2574
+ transcoder.transcode request_pb
2575
+ end
2576
+
2577
+ ##
2578
+ # @private
2579
+ #
2580
+ # GRPC transcoding helper method for the pull_git_commits REST call
2581
+ #
2582
+ # @param request_pb [::Google::Cloud::Dataform::V1::PullGitCommitsRequest]
2583
+ # A request object representing the call parameters. Required.
2584
+ # @return [Array(String, [String, nil], Hash{String => String})]
2585
+ # Uri, Body, Query string parameters
2586
+ def self.transcode_pull_git_commits_request request_pb
2587
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2588
+ .with_bindings(
2589
+ uri_method: :post,
2590
+ uri_template: "/v1/{name}:pull",
2591
+ body: "*",
2592
+ matches: [
2593
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2594
+ ]
2595
+ )
2596
+ transcoder.transcode request_pb
2597
+ end
2598
+
2599
+ ##
2600
+ # @private
2601
+ #
2602
+ # GRPC transcoding helper method for the push_git_commits REST call
2603
+ #
2604
+ # @param request_pb [::Google::Cloud::Dataform::V1::PushGitCommitsRequest]
2605
+ # A request object representing the call parameters. Required.
2606
+ # @return [Array(String, [String, nil], Hash{String => String})]
2607
+ # Uri, Body, Query string parameters
2608
+ def self.transcode_push_git_commits_request request_pb
2609
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2610
+ .with_bindings(
2611
+ uri_method: :post,
2612
+ uri_template: "/v1/{name}:push",
2613
+ body: "*",
2614
+ matches: [
2615
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2616
+ ]
2617
+ )
2618
+ transcoder.transcode request_pb
2619
+ end
2620
+
2621
+ ##
2622
+ # @private
2623
+ #
2624
+ # GRPC transcoding helper method for the fetch_file_git_statuses REST call
2625
+ #
2626
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileGitStatusesRequest]
2627
+ # A request object representing the call parameters. Required.
2628
+ # @return [Array(String, [String, nil], Hash{String => String})]
2629
+ # Uri, Body, Query string parameters
2630
+ def self.transcode_fetch_file_git_statuses_request request_pb
2631
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2632
+ .with_bindings(
2633
+ uri_method: :get,
2634
+ uri_template: "/v1/{name}:fetchFileGitStatuses",
2635
+ matches: [
2636
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2637
+ ]
2638
+ )
2639
+ transcoder.transcode request_pb
2640
+ end
2641
+
2642
+ ##
2643
+ # @private
2644
+ #
2645
+ # GRPC transcoding helper method for the fetch_git_ahead_behind REST call
2646
+ #
2647
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchGitAheadBehindRequest]
2648
+ # A request object representing the call parameters. Required.
2649
+ # @return [Array(String, [String, nil], Hash{String => String})]
2650
+ # Uri, Body, Query string parameters
2651
+ def self.transcode_fetch_git_ahead_behind_request request_pb
2652
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2653
+ .with_bindings(
2654
+ uri_method: :get,
2655
+ uri_template: "/v1/{name}:fetchGitAheadBehind",
2656
+ matches: [
2657
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2658
+ ]
2659
+ )
2660
+ transcoder.transcode request_pb
2661
+ end
2662
+
2663
+ ##
2664
+ # @private
2665
+ #
2666
+ # GRPC transcoding helper method for the commit_workspace_changes REST call
2667
+ #
2668
+ # @param request_pb [::Google::Cloud::Dataform::V1::CommitWorkspaceChangesRequest]
2669
+ # A request object representing the call parameters. Required.
2670
+ # @return [Array(String, [String, nil], Hash{String => String})]
2671
+ # Uri, Body, Query string parameters
2672
+ def self.transcode_commit_workspace_changes_request request_pb
2673
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2674
+ .with_bindings(
2675
+ uri_method: :post,
2676
+ uri_template: "/v1/{name}:commit",
2677
+ body: "*",
2678
+ matches: [
2679
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2680
+ ]
2681
+ )
2682
+ transcoder.transcode request_pb
2683
+ end
2684
+
2685
+ ##
2686
+ # @private
2687
+ #
2688
+ # GRPC transcoding helper method for the reset_workspace_changes REST call
2689
+ #
2690
+ # @param request_pb [::Google::Cloud::Dataform::V1::ResetWorkspaceChangesRequest]
2691
+ # A request object representing the call parameters. Required.
2692
+ # @return [Array(String, [String, nil], Hash{String => String})]
2693
+ # Uri, Body, Query string parameters
2694
+ def self.transcode_reset_workspace_changes_request request_pb
2695
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2696
+ .with_bindings(
2697
+ uri_method: :post,
2698
+ uri_template: "/v1/{name}:reset",
2699
+ body: "*",
2700
+ matches: [
2701
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2702
+ ]
2703
+ )
2704
+ transcoder.transcode request_pb
2705
+ end
2706
+
2707
+ ##
2708
+ # @private
2709
+ #
2710
+ # GRPC transcoding helper method for the fetch_file_diff REST call
2711
+ #
2712
+ # @param request_pb [::Google::Cloud::Dataform::V1::FetchFileDiffRequest]
2713
+ # A request object representing the call parameters. Required.
2714
+ # @return [Array(String, [String, nil], Hash{String => String})]
2715
+ # Uri, Body, Query string parameters
2716
+ def self.transcode_fetch_file_diff_request request_pb
2717
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2718
+ .with_bindings(
2719
+ uri_method: :get,
2720
+ uri_template: "/v1/{workspace}:fetchFileDiff",
2721
+ matches: [
2722
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2723
+ ]
2724
+ )
2725
+ transcoder.transcode request_pb
2726
+ end
2727
+
2728
+ ##
2729
+ # @private
2730
+ #
2731
+ # GRPC transcoding helper method for the query_directory_contents REST call
2732
+ #
2733
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryDirectoryContentsRequest]
2734
+ # A request object representing the call parameters. Required.
2735
+ # @return [Array(String, [String, nil], Hash{String => String})]
2736
+ # Uri, Body, Query string parameters
2737
+ def self.transcode_query_directory_contents_request request_pb
2738
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2739
+ .with_bindings(
2740
+ uri_method: :get,
2741
+ uri_template: "/v1/{workspace}:queryDirectoryContents",
2742
+ matches: [
2743
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2744
+ ]
2745
+ )
2746
+ transcoder.transcode request_pb
2747
+ end
2748
+
2749
+ ##
2750
+ # @private
2751
+ #
2752
+ # GRPC transcoding helper method for the search_files REST call
2753
+ #
2754
+ # @param request_pb [::Google::Cloud::Dataform::V1::SearchFilesRequest]
2755
+ # A request object representing the call parameters. Required.
2756
+ # @return [Array(String, [String, nil], Hash{String => String})]
2757
+ # Uri, Body, Query string parameters
2758
+ def self.transcode_search_files_request request_pb
2759
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2760
+ .with_bindings(
2761
+ uri_method: :get,
2762
+ uri_template: "/v1/{workspace}:searchFiles",
2763
+ matches: [
2764
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2765
+ ]
2766
+ )
2767
+ transcoder.transcode request_pb
2768
+ end
2769
+
2770
+ ##
2771
+ # @private
2772
+ #
2773
+ # GRPC transcoding helper method for the make_directory REST call
2774
+ #
2775
+ # @param request_pb [::Google::Cloud::Dataform::V1::MakeDirectoryRequest]
2776
+ # A request object representing the call parameters. Required.
2777
+ # @return [Array(String, [String, nil], Hash{String => String})]
2778
+ # Uri, Body, Query string parameters
2779
+ def self.transcode_make_directory_request request_pb
2780
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2781
+ .with_bindings(
2782
+ uri_method: :post,
2783
+ uri_template: "/v1/{workspace}:makeDirectory",
2784
+ body: "*",
2785
+ matches: [
2786
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2787
+ ]
2788
+ )
2789
+ transcoder.transcode request_pb
2790
+ end
2791
+
2792
+ ##
2793
+ # @private
2794
+ #
2795
+ # GRPC transcoding helper method for the remove_directory REST call
2796
+ #
2797
+ # @param request_pb [::Google::Cloud::Dataform::V1::RemoveDirectoryRequest]
2798
+ # A request object representing the call parameters. Required.
2799
+ # @return [Array(String, [String, nil], Hash{String => String})]
2800
+ # Uri, Body, Query string parameters
2801
+ def self.transcode_remove_directory_request request_pb
2802
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2803
+ .with_bindings(
2804
+ uri_method: :post,
2805
+ uri_template: "/v1/{workspace}:removeDirectory",
2806
+ body: "*",
2807
+ matches: [
2808
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2809
+ ]
2810
+ )
2811
+ transcoder.transcode request_pb
2812
+ end
2813
+
2814
+ ##
2815
+ # @private
2816
+ #
2817
+ # GRPC transcoding helper method for the move_directory REST call
2818
+ #
2819
+ # @param request_pb [::Google::Cloud::Dataform::V1::MoveDirectoryRequest]
2820
+ # A request object representing the call parameters. Required.
2821
+ # @return [Array(String, [String, nil], Hash{String => String})]
2822
+ # Uri, Body, Query string parameters
2823
+ def self.transcode_move_directory_request request_pb
2824
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2825
+ .with_bindings(
2826
+ uri_method: :post,
2827
+ uri_template: "/v1/{workspace}:moveDirectory",
2828
+ body: "*",
2829
+ matches: [
2830
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2831
+ ]
2832
+ )
2833
+ transcoder.transcode request_pb
2834
+ end
2835
+
2836
+ ##
2837
+ # @private
2838
+ #
2839
+ # GRPC transcoding helper method for the read_file REST call
2840
+ #
2841
+ # @param request_pb [::Google::Cloud::Dataform::V1::ReadFileRequest]
2842
+ # A request object representing the call parameters. Required.
2843
+ # @return [Array(String, [String, nil], Hash{String => String})]
2844
+ # Uri, Body, Query string parameters
2845
+ def self.transcode_read_file_request request_pb
2846
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2847
+ .with_bindings(
2848
+ uri_method: :get,
2849
+ uri_template: "/v1/{workspace}:readFile",
2850
+ matches: [
2851
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2852
+ ]
2853
+ )
2854
+ transcoder.transcode request_pb
2855
+ end
2856
+
2857
+ ##
2858
+ # @private
2859
+ #
2860
+ # GRPC transcoding helper method for the remove_file REST call
2861
+ #
2862
+ # @param request_pb [::Google::Cloud::Dataform::V1::RemoveFileRequest]
2863
+ # A request object representing the call parameters. Required.
2864
+ # @return [Array(String, [String, nil], Hash{String => String})]
2865
+ # Uri, Body, Query string parameters
2866
+ def self.transcode_remove_file_request request_pb
2867
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2868
+ .with_bindings(
2869
+ uri_method: :post,
2870
+ uri_template: "/v1/{workspace}:removeFile",
2871
+ body: "*",
2872
+ matches: [
2873
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2874
+ ]
2875
+ )
2876
+ transcoder.transcode request_pb
2877
+ end
2878
+
2879
+ ##
2880
+ # @private
2881
+ #
2882
+ # GRPC transcoding helper method for the move_file REST call
2883
+ #
2884
+ # @param request_pb [::Google::Cloud::Dataform::V1::MoveFileRequest]
2885
+ # A request object representing the call parameters. Required.
2886
+ # @return [Array(String, [String, nil], Hash{String => String})]
2887
+ # Uri, Body, Query string parameters
2888
+ def self.transcode_move_file_request request_pb
2889
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2890
+ .with_bindings(
2891
+ uri_method: :post,
2892
+ uri_template: "/v1/{workspace}:moveFile",
2893
+ body: "*",
2894
+ matches: [
2895
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2896
+ ]
2897
+ )
2898
+ transcoder.transcode request_pb
2899
+ end
2900
+
2901
+ ##
2902
+ # @private
2903
+ #
2904
+ # GRPC transcoding helper method for the write_file REST call
2905
+ #
2906
+ # @param request_pb [::Google::Cloud::Dataform::V1::WriteFileRequest]
2907
+ # A request object representing the call parameters. Required.
2908
+ # @return [Array(String, [String, nil], Hash{String => String})]
2909
+ # Uri, Body, Query string parameters
2910
+ def self.transcode_write_file_request request_pb
2911
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2912
+ .with_bindings(
2913
+ uri_method: :post,
2914
+ uri_template: "/v1/{workspace}:writeFile",
2915
+ body: "*",
2916
+ matches: [
2917
+ ["workspace", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workspaces/[^/]+/?$}, false]
2918
+ ]
2919
+ )
2920
+ transcoder.transcode request_pb
2921
+ end
2922
+
2923
+ ##
2924
+ # @private
2925
+ #
2926
+ # GRPC transcoding helper method for the list_release_configs REST call
2927
+ #
2928
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListReleaseConfigsRequest]
2929
+ # A request object representing the call parameters. Required.
2930
+ # @return [Array(String, [String, nil], Hash{String => String})]
2931
+ # Uri, Body, Query string parameters
2932
+ def self.transcode_list_release_configs_request request_pb
2933
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2934
+ .with_bindings(
2935
+ uri_method: :get,
2936
+ uri_template: "/v1/{parent}/releaseConfigs",
2937
+ matches: [
2938
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2939
+ ]
2940
+ )
2941
+ transcoder.transcode request_pb
2942
+ end
2943
+
2944
+ ##
2945
+ # @private
2946
+ #
2947
+ # GRPC transcoding helper method for the get_release_config REST call
2948
+ #
2949
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetReleaseConfigRequest]
2950
+ # A request object representing the call parameters. Required.
2951
+ # @return [Array(String, [String, nil], Hash{String => String})]
2952
+ # Uri, Body, Query string parameters
2953
+ def self.transcode_get_release_config_request request_pb
2954
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2955
+ .with_bindings(
2956
+ uri_method: :get,
2957
+ uri_template: "/v1/{name}",
2958
+ matches: [
2959
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
2960
+ ]
2961
+ )
2962
+ transcoder.transcode request_pb
2963
+ end
2964
+
2965
+ ##
2966
+ # @private
2967
+ #
2968
+ # GRPC transcoding helper method for the create_release_config REST call
2969
+ #
2970
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateReleaseConfigRequest]
2971
+ # A request object representing the call parameters. Required.
2972
+ # @return [Array(String, [String, nil], Hash{String => String})]
2973
+ # Uri, Body, Query string parameters
2974
+ def self.transcode_create_release_config_request request_pb
2975
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2976
+ .with_bindings(
2977
+ uri_method: :post,
2978
+ uri_template: "/v1/{parent}/releaseConfigs",
2979
+ body: "release_config",
2980
+ matches: [
2981
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2982
+ ]
2983
+ )
2984
+ transcoder.transcode request_pb
2985
+ end
2986
+
2987
+ ##
2988
+ # @private
2989
+ #
2990
+ # GRPC transcoding helper method for the update_release_config REST call
2991
+ #
2992
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateReleaseConfigRequest]
2993
+ # A request object representing the call parameters. Required.
2994
+ # @return [Array(String, [String, nil], Hash{String => String})]
2995
+ # Uri, Body, Query string parameters
2996
+ def self.transcode_update_release_config_request request_pb
2997
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2998
+ .with_bindings(
2999
+ uri_method: :patch,
3000
+ uri_template: "/v1/{release_config.name}",
3001
+ body: "release_config",
3002
+ matches: [
3003
+ ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
3004
+ ]
3005
+ )
3006
+ transcoder.transcode request_pb
3007
+ end
3008
+
3009
+ ##
3010
+ # @private
3011
+ #
3012
+ # GRPC transcoding helper method for the delete_release_config REST call
3013
+ #
3014
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteReleaseConfigRequest]
3015
+ # A request object representing the call parameters. Required.
3016
+ # @return [Array(String, [String, nil], Hash{String => String})]
3017
+ # Uri, Body, Query string parameters
3018
+ def self.transcode_delete_release_config_request request_pb
3019
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3020
+ .with_bindings(
3021
+ uri_method: :delete,
3022
+ uri_template: "/v1/{name}",
3023
+ matches: [
3024
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
3025
+ ]
3026
+ )
3027
+ transcoder.transcode request_pb
3028
+ end
3029
+
3030
+ ##
3031
+ # @private
3032
+ #
3033
+ # GRPC transcoding helper method for the list_compilation_results REST call
3034
+ #
3035
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListCompilationResultsRequest]
3036
+ # A request object representing the call parameters. Required.
3037
+ # @return [Array(String, [String, nil], Hash{String => String})]
3038
+ # Uri, Body, Query string parameters
3039
+ def self.transcode_list_compilation_results_request request_pb
3040
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3041
+ .with_bindings(
3042
+ uri_method: :get,
3043
+ uri_template: "/v1/{parent}/compilationResults",
3044
+ matches: [
3045
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3046
+ ]
3047
+ )
3048
+ transcoder.transcode request_pb
3049
+ end
3050
+
3051
+ ##
3052
+ # @private
3053
+ #
3054
+ # GRPC transcoding helper method for the get_compilation_result REST call
3055
+ #
3056
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetCompilationResultRequest]
3057
+ # A request object representing the call parameters. Required.
3058
+ # @return [Array(String, [String, nil], Hash{String => String})]
3059
+ # Uri, Body, Query string parameters
3060
+ def self.transcode_get_compilation_result_request request_pb
3061
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3062
+ .with_bindings(
3063
+ uri_method: :get,
3064
+ uri_template: "/v1/{name}",
3065
+ matches: [
3066
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false]
3067
+ ]
3068
+ )
3069
+ transcoder.transcode request_pb
3070
+ end
3071
+
3072
+ ##
3073
+ # @private
3074
+ #
3075
+ # GRPC transcoding helper method for the create_compilation_result REST call
3076
+ #
3077
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateCompilationResultRequest]
3078
+ # A request object representing the call parameters. Required.
3079
+ # @return [Array(String, [String, nil], Hash{String => String})]
3080
+ # Uri, Body, Query string parameters
3081
+ def self.transcode_create_compilation_result_request request_pb
3082
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3083
+ .with_bindings(
3084
+ uri_method: :post,
3085
+ uri_template: "/v1/{parent}/compilationResults",
3086
+ body: "compilation_result",
3087
+ matches: [
3088
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3089
+ ]
3090
+ )
3091
+ transcoder.transcode request_pb
3092
+ end
3093
+
3094
+ ##
3095
+ # @private
3096
+ #
3097
+ # GRPC transcoding helper method for the query_compilation_result_actions REST call
3098
+ #
3099
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryCompilationResultActionsRequest]
3100
+ # A request object representing the call parameters. Required.
3101
+ # @return [Array(String, [String, nil], Hash{String => String})]
3102
+ # Uri, Body, Query string parameters
3103
+ def self.transcode_query_compilation_result_actions_request request_pb
3104
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3105
+ .with_bindings(
3106
+ uri_method: :get,
3107
+ uri_template: "/v1/{name}:query",
3108
+ matches: [
3109
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/compilationResults/[^/]+/?$}, false]
3110
+ ]
3111
+ )
3112
+ transcoder.transcode request_pb
3113
+ end
3114
+
3115
+ ##
3116
+ # @private
3117
+ #
3118
+ # GRPC transcoding helper method for the list_workflow_configs REST call
3119
+ #
3120
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowConfigsRequest]
3121
+ # A request object representing the call parameters. Required.
3122
+ # @return [Array(String, [String, nil], Hash{String => String})]
3123
+ # Uri, Body, Query string parameters
3124
+ def self.transcode_list_workflow_configs_request request_pb
3125
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3126
+ .with_bindings(
3127
+ uri_method: :get,
3128
+ uri_template: "/v1/{parent}/workflowConfigs",
3129
+ matches: [
3130
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3131
+ ]
3132
+ )
3133
+ transcoder.transcode request_pb
3134
+ end
3135
+
3136
+ ##
3137
+ # @private
3138
+ #
3139
+ # GRPC transcoding helper method for the get_workflow_config REST call
3140
+ #
3141
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowConfigRequest]
3142
+ # A request object representing the call parameters. Required.
3143
+ # @return [Array(String, [String, nil], Hash{String => String})]
3144
+ # Uri, Body, Query string parameters
3145
+ def self.transcode_get_workflow_config_request request_pb
3146
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3147
+ .with_bindings(
3148
+ uri_method: :get,
3149
+ uri_template: "/v1/{name}",
3150
+ matches: [
3151
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
3152
+ ]
3153
+ )
3154
+ transcoder.transcode request_pb
3155
+ end
3156
+
3157
+ ##
3158
+ # @private
3159
+ #
3160
+ # GRPC transcoding helper method for the create_workflow_config REST call
3161
+ #
3162
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowConfigRequest]
3163
+ # A request object representing the call parameters. Required.
3164
+ # @return [Array(String, [String, nil], Hash{String => String})]
3165
+ # Uri, Body, Query string parameters
3166
+ def self.transcode_create_workflow_config_request request_pb
3167
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3168
+ .with_bindings(
3169
+ uri_method: :post,
3170
+ uri_template: "/v1/{parent}/workflowConfigs",
3171
+ body: "workflow_config",
3172
+ matches: [
3173
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3174
+ ]
3175
+ )
3176
+ transcoder.transcode request_pb
3177
+ end
3178
+
3179
+ ##
3180
+ # @private
3181
+ #
3182
+ # GRPC transcoding helper method for the update_workflow_config REST call
3183
+ #
3184
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateWorkflowConfigRequest]
3185
+ # A request object representing the call parameters. Required.
3186
+ # @return [Array(String, [String, nil], Hash{String => String})]
3187
+ # Uri, Body, Query string parameters
3188
+ def self.transcode_update_workflow_config_request request_pb
3189
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3190
+ .with_bindings(
3191
+ uri_method: :patch,
3192
+ uri_template: "/v1/{workflow_config.name}",
3193
+ body: "workflow_config",
3194
+ matches: [
3195
+ ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
3196
+ ]
3197
+ )
3198
+ transcoder.transcode request_pb
3199
+ end
3200
+
3201
+ ##
3202
+ # @private
3203
+ #
3204
+ # GRPC transcoding helper method for the delete_workflow_config REST call
3205
+ #
3206
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowConfigRequest]
3207
+ # A request object representing the call parameters. Required.
3208
+ # @return [Array(String, [String, nil], Hash{String => String})]
3209
+ # Uri, Body, Query string parameters
3210
+ def self.transcode_delete_workflow_config_request request_pb
3211
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3212
+ .with_bindings(
3213
+ uri_method: :delete,
3214
+ uri_template: "/v1/{name}",
3215
+ matches: [
3216
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
3217
+ ]
3218
+ )
3219
+ transcoder.transcode request_pb
3220
+ end
3221
+
3222
+ ##
3223
+ # @private
3224
+ #
3225
+ # GRPC transcoding helper method for the list_workflow_invocations REST call
3226
+ #
3227
+ # @param request_pb [::Google::Cloud::Dataform::V1::ListWorkflowInvocationsRequest]
3228
+ # A request object representing the call parameters. Required.
3229
+ # @return [Array(String, [String, nil], Hash{String => String})]
3230
+ # Uri, Body, Query string parameters
3231
+ def self.transcode_list_workflow_invocations_request request_pb
3232
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3233
+ .with_bindings(
3234
+ uri_method: :get,
3235
+ uri_template: "/v1/{parent}/workflowInvocations",
3236
+ matches: [
3237
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3238
+ ]
3239
+ )
3240
+ transcoder.transcode request_pb
3241
+ end
3242
+
3243
+ ##
3244
+ # @private
3245
+ #
3246
+ # GRPC transcoding helper method for the get_workflow_invocation REST call
3247
+ #
3248
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetWorkflowInvocationRequest]
3249
+ # A request object representing the call parameters. Required.
3250
+ # @return [Array(String, [String, nil], Hash{String => String})]
3251
+ # Uri, Body, Query string parameters
3252
+ def self.transcode_get_workflow_invocation_request request_pb
3253
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3254
+ .with_bindings(
3255
+ uri_method: :get,
3256
+ uri_template: "/v1/{name}",
3257
+ matches: [
3258
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false]
3259
+ ]
3260
+ )
3261
+ transcoder.transcode request_pb
3262
+ end
3263
+
3264
+ ##
3265
+ # @private
3266
+ #
3267
+ # GRPC transcoding helper method for the create_workflow_invocation REST call
3268
+ #
3269
+ # @param request_pb [::Google::Cloud::Dataform::V1::CreateWorkflowInvocationRequest]
3270
+ # A request object representing the call parameters. Required.
3271
+ # @return [Array(String, [String, nil], Hash{String => String})]
3272
+ # Uri, Body, Query string parameters
3273
+ def self.transcode_create_workflow_invocation_request request_pb
3274
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3275
+ .with_bindings(
3276
+ uri_method: :post,
3277
+ uri_template: "/v1/{parent}/workflowInvocations",
3278
+ body: "workflow_invocation",
3279
+ matches: [
3280
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
3281
+ ]
3282
+ )
3283
+ transcoder.transcode request_pb
3284
+ end
3285
+
3286
+ ##
3287
+ # @private
3288
+ #
3289
+ # GRPC transcoding helper method for the delete_workflow_invocation REST call
3290
+ #
3291
+ # @param request_pb [::Google::Cloud::Dataform::V1::DeleteWorkflowInvocationRequest]
3292
+ # A request object representing the call parameters. Required.
3293
+ # @return [Array(String, [String, nil], Hash{String => String})]
3294
+ # Uri, Body, Query string parameters
3295
+ def self.transcode_delete_workflow_invocation_request request_pb
3296
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3297
+ .with_bindings(
3298
+ uri_method: :delete,
3299
+ uri_template: "/v1/{name}",
3300
+ matches: [
3301
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false]
3302
+ ]
3303
+ )
3304
+ transcoder.transcode request_pb
3305
+ end
3306
+
3307
+ ##
3308
+ # @private
3309
+ #
3310
+ # GRPC transcoding helper method for the cancel_workflow_invocation REST call
3311
+ #
3312
+ # @param request_pb [::Google::Cloud::Dataform::V1::CancelWorkflowInvocationRequest]
3313
+ # A request object representing the call parameters. Required.
3314
+ # @return [Array(String, [String, nil], Hash{String => String})]
3315
+ # Uri, Body, Query string parameters
3316
+ def self.transcode_cancel_workflow_invocation_request request_pb
3317
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3318
+ .with_bindings(
3319
+ uri_method: :post,
3320
+ uri_template: "/v1/{name}:cancel",
3321
+ body: "*",
3322
+ matches: [
3323
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false]
3324
+ ]
3325
+ )
3326
+ transcoder.transcode request_pb
3327
+ end
3328
+
3329
+ ##
3330
+ # @private
3331
+ #
3332
+ # GRPC transcoding helper method for the query_workflow_invocation_actions REST call
3333
+ #
3334
+ # @param request_pb [::Google::Cloud::Dataform::V1::QueryWorkflowInvocationActionsRequest]
3335
+ # A request object representing the call parameters. Required.
3336
+ # @return [Array(String, [String, nil], Hash{String => String})]
3337
+ # Uri, Body, Query string parameters
3338
+ def self.transcode_query_workflow_invocation_actions_request request_pb
3339
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3340
+ .with_bindings(
3341
+ uri_method: :get,
3342
+ uri_template: "/v1/{name}:query",
3343
+ matches: [
3344
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowInvocations/[^/]+/?$}, false]
3345
+ ]
3346
+ )
3347
+ transcoder.transcode request_pb
3348
+ end
3349
+
3350
+ ##
3351
+ # @private
3352
+ #
3353
+ # GRPC transcoding helper method for the get_config REST call
3354
+ #
3355
+ # @param request_pb [::Google::Cloud::Dataform::V1::GetConfigRequest]
3356
+ # A request object representing the call parameters. Required.
3357
+ # @return [Array(String, [String, nil], Hash{String => String})]
3358
+ # Uri, Body, Query string parameters
3359
+ def self.transcode_get_config_request request_pb
3360
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3361
+ .with_bindings(
3362
+ uri_method: :get,
3363
+ uri_template: "/v1/{name}",
3364
+ matches: [
3365
+ ["name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false]
3366
+ ]
3367
+ )
3368
+ transcoder.transcode request_pb
3369
+ end
3370
+
3371
+ ##
3372
+ # @private
3373
+ #
3374
+ # GRPC transcoding helper method for the update_config REST call
3375
+ #
3376
+ # @param request_pb [::Google::Cloud::Dataform::V1::UpdateConfigRequest]
3377
+ # A request object representing the call parameters. Required.
3378
+ # @return [Array(String, [String, nil], Hash{String => String})]
3379
+ # Uri, Body, Query string parameters
3380
+ def self.transcode_update_config_request request_pb
3381
+ transcoder = Gapic::Rest::GrpcTranscoder.new
3382
+ .with_bindings(
3383
+ uri_method: :patch,
3384
+ uri_template: "/v1/{config.name}",
3385
+ body: "config",
3386
+ matches: [
3387
+ ["config.name", %r{^projects/[^/]+/locations/[^/]+/config/?$}, false]
3388
+ ]
3389
+ )
3390
+ transcoder.transcode request_pb
3391
+ end
3392
+ end
3393
+ end
3394
+ end
3395
+ end
3396
+ end
3397
+ end
3398
+ end