google-cloud-dataform-v1beta1 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,16 +30,28 @@ module Google
30
30
  # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
- def initialize endpoint:, credentials:
33
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
34
34
  # These require statements are intentionally placed here to initialize
35
35
  # the REST modules only when it's required.
36
36
  require "gapic/rest"
37
37
 
38
- @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials,
38
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
39
+ endpoint_template: endpoint_template,
40
+ universe_domain: universe_domain,
41
+ credentials: credentials,
39
42
  numeric_enums: true,
40
43
  raise_faraday_errors: false
41
44
  end
42
45
 
46
+ ##
47
+ # The effective universe domain
48
+ #
49
+ # @return [String]
50
+ #
51
+ def universe_domain
52
+ @client_stub.universe_domain
53
+ end
54
+
43
55
  ##
44
56
  # Baseline implementation for the list_repositories REST call
45
57
  #
@@ -230,6 +242,196 @@ module Google
230
242
  result
231
243
  end
232
244
 
245
+ ##
246
+ # Baseline implementation for the commit_repository_changes REST call
247
+ #
248
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest]
249
+ # A request object representing the call parameters. Required.
250
+ # @param options [::Gapic::CallOptions]
251
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
252
+ #
253
+ # @yield [result, operation] Access the result along with the TransportOperation object
254
+ # @yieldparam result [::Google::Protobuf::Empty]
255
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
256
+ #
257
+ # @return [::Google::Protobuf::Empty]
258
+ # A result object deserialized from the server's reply
259
+ def commit_repository_changes request_pb, options = nil
260
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
261
+
262
+ verb, uri, query_string_params, body = ServiceStub.transcode_commit_repository_changes_request request_pb
263
+ query_string_params = if query_string_params.any?
264
+ query_string_params.to_h { |p| p.split "=", 2 }
265
+ else
266
+ {}
267
+ end
268
+
269
+ response = @client_stub.make_http_request(
270
+ verb,
271
+ uri: uri,
272
+ body: body || "",
273
+ params: query_string_params,
274
+ options: options
275
+ )
276
+ operation = ::Gapic::Rest::TransportOperation.new response
277
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
278
+
279
+ yield result, operation if block_given?
280
+ result
281
+ end
282
+
283
+ ##
284
+ # Baseline implementation for the read_repository_file REST call
285
+ #
286
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest]
287
+ # A request object representing the call parameters. Required.
288
+ # @param options [::Gapic::CallOptions]
289
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
290
+ #
291
+ # @yield [result, operation] Access the result along with the TransportOperation object
292
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
293
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
294
+ #
295
+ # @return [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse]
296
+ # A result object deserialized from the server's reply
297
+ def read_repository_file request_pb, options = nil
298
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
299
+
300
+ verb, uri, query_string_params, body = ServiceStub.transcode_read_repository_file_request request_pb
301
+ query_string_params = if query_string_params.any?
302
+ query_string_params.to_h { |p| p.split "=", 2 }
303
+ else
304
+ {}
305
+ end
306
+
307
+ response = @client_stub.make_http_request(
308
+ verb,
309
+ uri: uri,
310
+ body: body || "",
311
+ params: query_string_params,
312
+ options: options
313
+ )
314
+ operation = ::Gapic::Rest::TransportOperation.new response
315
+ result = ::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileResponse.decode_json response.body, ignore_unknown_fields: true
316
+
317
+ yield result, operation if block_given?
318
+ result
319
+ end
320
+
321
+ ##
322
+ # Baseline implementation for the query_repository_directory_contents REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @param options [::Gapic::CallOptions]
327
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
328
+ #
329
+ # @yield [result, operation] Access the result along with the TransportOperation object
330
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsResponse]
331
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
332
+ #
333
+ # @return [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsResponse]
334
+ # A result object deserialized from the server's reply
335
+ def query_repository_directory_contents request_pb, options = nil
336
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
337
+
338
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_repository_directory_contents_request request_pb
339
+ query_string_params = if query_string_params.any?
340
+ query_string_params.to_h { |p| p.split "=", 2 }
341
+ else
342
+ {}
343
+ end
344
+
345
+ response = @client_stub.make_http_request(
346
+ verb,
347
+ uri: uri,
348
+ body: body || "",
349
+ params: query_string_params,
350
+ options: options
351
+ )
352
+ operation = ::Gapic::Rest::TransportOperation.new response
353
+ result = ::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsResponse.decode_json response.body, ignore_unknown_fields: true
354
+
355
+ yield result, operation if block_given?
356
+ result
357
+ end
358
+
359
+ ##
360
+ # Baseline implementation for the fetch_repository_history REST call
361
+ #
362
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest]
363
+ # A request object representing the call parameters. Required.
364
+ # @param options [::Gapic::CallOptions]
365
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
366
+ #
367
+ # @yield [result, operation] Access the result along with the TransportOperation object
368
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryResponse]
369
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
370
+ #
371
+ # @return [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryResponse]
372
+ # A result object deserialized from the server's reply
373
+ def fetch_repository_history request_pb, options = nil
374
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
375
+
376
+ verb, uri, query_string_params, body = ServiceStub.transcode_fetch_repository_history_request request_pb
377
+ query_string_params = if query_string_params.any?
378
+ query_string_params.to_h { |p| p.split "=", 2 }
379
+ else
380
+ {}
381
+ end
382
+
383
+ response = @client_stub.make_http_request(
384
+ verb,
385
+ uri: uri,
386
+ body: body || "",
387
+ params: query_string_params,
388
+ options: options
389
+ )
390
+ operation = ::Gapic::Rest::TransportOperation.new response
391
+ result = ::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryResponse.decode_json response.body, ignore_unknown_fields: true
392
+
393
+ yield result, operation if block_given?
394
+ result
395
+ end
396
+
397
+ ##
398
+ # Baseline implementation for the compute_repository_access_token_status REST call
399
+ #
400
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest]
401
+ # A request object representing the call parameters. Required.
402
+ # @param options [::Gapic::CallOptions]
403
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
404
+ #
405
+ # @yield [result, operation] Access the result along with the TransportOperation object
406
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
407
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
408
+ #
409
+ # @return [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse]
410
+ # A result object deserialized from the server's reply
411
+ def compute_repository_access_token_status request_pb, options = nil
412
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
413
+
414
+ verb, uri, query_string_params, body = ServiceStub.transcode_compute_repository_access_token_status_request request_pb
415
+ query_string_params = if query_string_params.any?
416
+ query_string_params.to_h { |p| p.split "=", 2 }
417
+ else
418
+ {}
419
+ end
420
+
421
+ response = @client_stub.make_http_request(
422
+ verb,
423
+ uri: uri,
424
+ body: body || "",
425
+ params: query_string_params,
426
+ options: options
427
+ )
428
+ operation = ::Gapic::Rest::TransportOperation.new response
429
+ result = ::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusResponse.decode_json response.body, ignore_unknown_fields: true
430
+
431
+ yield result, operation if block_given?
432
+ result
433
+ end
434
+
233
435
  ##
234
436
  # Baseline implementation for the fetch_remote_branches REST call
235
437
  #
@@ -1029,23 +1231,23 @@ module Google
1029
1231
  end
1030
1232
 
1031
1233
  ##
1032
- # Baseline implementation for the list_compilation_results REST call
1234
+ # Baseline implementation for the list_release_configs REST call
1033
1235
  #
1034
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest]
1236
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest]
1035
1237
  # A request object representing the call parameters. Required.
1036
1238
  # @param options [::Gapic::CallOptions]
1037
1239
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1038
1240
  #
1039
1241
  # @yield [result, operation] Access the result along with the TransportOperation object
1040
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1242
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
1041
1243
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1042
1244
  #
1043
- # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1245
+ # @return [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse]
1044
1246
  # A result object deserialized from the server's reply
1045
- def list_compilation_results request_pb, options = nil
1247
+ def list_release_configs request_pb, options = nil
1046
1248
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1047
1249
 
1048
- verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb
1250
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_release_configs_request request_pb
1049
1251
  query_string_params = if query_string_params.any?
1050
1252
  query_string_params.to_h { |p| p.split "=", 2 }
1051
1253
  else
@@ -1060,30 +1262,30 @@ module Google
1060
1262
  options: options
1061
1263
  )
1062
1264
  operation = ::Gapic::Rest::TransportOperation.new response
1063
- result = ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true
1265
+ result = ::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsResponse.decode_json response.body, ignore_unknown_fields: true
1064
1266
 
1065
1267
  yield result, operation if block_given?
1066
1268
  result
1067
1269
  end
1068
1270
 
1069
1271
  ##
1070
- # Baseline implementation for the get_compilation_result REST call
1272
+ # Baseline implementation for the get_release_config REST call
1071
1273
  #
1072
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest]
1274
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest]
1073
1275
  # A request object representing the call parameters. Required.
1074
1276
  # @param options [::Gapic::CallOptions]
1075
1277
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1076
1278
  #
1077
1279
  # @yield [result, operation] Access the result along with the TransportOperation object
1078
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1280
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1079
1281
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1080
1282
  #
1081
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1283
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1082
1284
  # A result object deserialized from the server's reply
1083
- def get_compilation_result request_pb, options = nil
1285
+ def get_release_config request_pb, options = nil
1084
1286
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1085
1287
 
1086
- verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb
1288
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_release_config_request request_pb
1087
1289
  query_string_params = if query_string_params.any?
1088
1290
  query_string_params.to_h { |p| p.split "=", 2 }
1089
1291
  else
@@ -1098,30 +1300,30 @@ module Google
1098
1300
  options: options
1099
1301
  )
1100
1302
  operation = ::Gapic::Rest::TransportOperation.new response
1101
- result = ::Google::Cloud::Dataform::V1beta1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1303
+ result = ::Google::Cloud::Dataform::V1beta1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1102
1304
 
1103
1305
  yield result, operation if block_given?
1104
1306
  result
1105
1307
  end
1106
1308
 
1107
1309
  ##
1108
- # Baseline implementation for the create_compilation_result REST call
1310
+ # Baseline implementation for the create_release_config REST call
1109
1311
  #
1110
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
1312
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest]
1111
1313
  # A request object representing the call parameters. Required.
1112
1314
  # @param options [::Gapic::CallOptions]
1113
1315
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1114
1316
  #
1115
1317
  # @yield [result, operation] Access the result along with the TransportOperation object
1116
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1318
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1117
1319
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1118
1320
  #
1119
- # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1321
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1120
1322
  # A result object deserialized from the server's reply
1121
- def create_compilation_result request_pb, options = nil
1323
+ def create_release_config request_pb, options = nil
1122
1324
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1123
1325
 
1124
- verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb
1326
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_release_config_request request_pb
1125
1327
  query_string_params = if query_string_params.any?
1126
1328
  query_string_params.to_h { |p| p.split "=", 2 }
1127
1329
  else
@@ -1136,30 +1338,30 @@ module Google
1136
1338
  options: options
1137
1339
  )
1138
1340
  operation = ::Gapic::Rest::TransportOperation.new response
1139
- result = ::Google::Cloud::Dataform::V1beta1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1341
+ result = ::Google::Cloud::Dataform::V1beta1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1140
1342
 
1141
1343
  yield result, operation if block_given?
1142
1344
  result
1143
1345
  end
1144
1346
 
1145
1347
  ##
1146
- # Baseline implementation for the query_compilation_result_actions REST call
1348
+ # Baseline implementation for the update_release_config REST call
1147
1349
  #
1148
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest]
1350
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest]
1149
1351
  # A request object representing the call parameters. Required.
1150
1352
  # @param options [::Gapic::CallOptions]
1151
1353
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1152
1354
  #
1153
1355
  # @yield [result, operation] Access the result along with the TransportOperation object
1154
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse]
1356
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1155
1357
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1156
1358
  #
1157
- # @return [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse]
1359
+ # @return [::Google::Cloud::Dataform::V1beta1::ReleaseConfig]
1158
1360
  # A result object deserialized from the server's reply
1159
- def query_compilation_result_actions request_pb, options = nil
1361
+ def update_release_config request_pb, options = nil
1160
1362
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1161
1363
 
1162
- verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb
1364
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_release_config_request request_pb
1163
1365
  query_string_params = if query_string_params.any?
1164
1366
  query_string_params.to_h { |p| p.split "=", 2 }
1165
1367
  else
@@ -1174,30 +1376,30 @@ module Google
1174
1376
  options: options
1175
1377
  )
1176
1378
  operation = ::Gapic::Rest::TransportOperation.new response
1177
- result = ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true
1379
+ result = ::Google::Cloud::Dataform::V1beta1::ReleaseConfig.decode_json response.body, ignore_unknown_fields: true
1178
1380
 
1179
1381
  yield result, operation if block_given?
1180
1382
  result
1181
1383
  end
1182
1384
 
1183
1385
  ##
1184
- # Baseline implementation for the list_workflow_invocations REST call
1386
+ # Baseline implementation for the delete_release_config REST call
1185
1387
  #
1186
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest]
1388
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest]
1187
1389
  # A request object representing the call parameters. Required.
1188
1390
  # @param options [::Gapic::CallOptions]
1189
1391
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1190
1392
  #
1191
1393
  # @yield [result, operation] Access the result along with the TransportOperation object
1192
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
1394
+ # @yieldparam result [::Google::Protobuf::Empty]
1193
1395
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1194
1396
  #
1195
- # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
1397
+ # @return [::Google::Protobuf::Empty]
1196
1398
  # A result object deserialized from the server's reply
1197
- def list_workflow_invocations request_pb, options = nil
1399
+ def delete_release_config request_pb, options = nil
1198
1400
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1199
1401
 
1200
- verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb
1402
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_release_config_request request_pb
1201
1403
  query_string_params = if query_string_params.any?
1202
1404
  query_string_params.to_h { |p| p.split "=", 2 }
1203
1405
  else
@@ -1212,30 +1414,30 @@ module Google
1212
1414
  options: options
1213
1415
  )
1214
1416
  operation = ::Gapic::Rest::TransportOperation.new response
1215
- result = ::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true
1417
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1216
1418
 
1217
1419
  yield result, operation if block_given?
1218
1420
  result
1219
1421
  end
1220
1422
 
1221
1423
  ##
1222
- # Baseline implementation for the get_workflow_invocation REST call
1424
+ # Baseline implementation for the list_compilation_results REST call
1223
1425
  #
1224
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest]
1426
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsRequest]
1225
1427
  # A request object representing the call parameters. Required.
1226
1428
  # @param options [::Gapic::CallOptions]
1227
1429
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1228
1430
  #
1229
1431
  # @yield [result, operation] Access the result along with the TransportOperation object
1230
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1432
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1231
1433
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1232
1434
  #
1233
- # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1435
+ # @return [::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse]
1234
1436
  # A result object deserialized from the server's reply
1235
- def get_workflow_invocation request_pb, options = nil
1437
+ def list_compilation_results request_pb, options = nil
1236
1438
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1237
1439
 
1238
- verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb
1440
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_compilation_results_request request_pb
1239
1441
  query_string_params = if query_string_params.any?
1240
1442
  query_string_params.to_h { |p| p.split "=", 2 }
1241
1443
  else
@@ -1250,30 +1452,30 @@ module Google
1250
1452
  options: options
1251
1453
  )
1252
1454
  operation = ::Gapic::Rest::TransportOperation.new response
1253
- result = ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
1455
+ result = ::Google::Cloud::Dataform::V1beta1::ListCompilationResultsResponse.decode_json response.body, ignore_unknown_fields: true
1254
1456
 
1255
1457
  yield result, operation if block_given?
1256
1458
  result
1257
1459
  end
1258
1460
 
1259
1461
  ##
1260
- # Baseline implementation for the create_workflow_invocation REST call
1462
+ # Baseline implementation for the get_compilation_result REST call
1261
1463
  #
1262
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest]
1464
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetCompilationResultRequest]
1263
1465
  # A request object representing the call parameters. Required.
1264
1466
  # @param options [::Gapic::CallOptions]
1265
1467
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1266
1468
  #
1267
1469
  # @yield [result, operation] Access the result along with the TransportOperation object
1268
- # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1470
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1269
1471
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1270
1472
  #
1271
- # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1473
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1272
1474
  # A result object deserialized from the server's reply
1273
- def create_workflow_invocation request_pb, options = nil
1475
+ def get_compilation_result request_pb, options = nil
1274
1476
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1275
1477
 
1276
- verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb
1478
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_compilation_result_request request_pb
1277
1479
  query_string_params = if query_string_params.any?
1278
1480
  query_string_params.to_h { |p| p.split "=", 2 }
1279
1481
  else
@@ -1288,30 +1490,30 @@ module Google
1288
1490
  options: options
1289
1491
  )
1290
1492
  operation = ::Gapic::Rest::TransportOperation.new response
1291
- result = ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
1493
+ result = ::Google::Cloud::Dataform::V1beta1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1292
1494
 
1293
1495
  yield result, operation if block_given?
1294
1496
  result
1295
1497
  end
1296
1498
 
1297
1499
  ##
1298
- # Baseline implementation for the delete_workflow_invocation REST call
1500
+ # Baseline implementation for the create_compilation_result REST call
1299
1501
  #
1300
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest]
1502
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateCompilationResultRequest]
1301
1503
  # A request object representing the call parameters. Required.
1302
1504
  # @param options [::Gapic::CallOptions]
1303
1505
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1304
1506
  #
1305
1507
  # @yield [result, operation] Access the result along with the TransportOperation object
1306
- # @yieldparam result [::Google::Protobuf::Empty]
1508
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1307
1509
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1308
1510
  #
1309
- # @return [::Google::Protobuf::Empty]
1511
+ # @return [::Google::Cloud::Dataform::V1beta1::CompilationResult]
1310
1512
  # A result object deserialized from the server's reply
1311
- def delete_workflow_invocation request_pb, options = nil
1513
+ def create_compilation_result request_pb, options = nil
1312
1514
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1313
1515
 
1314
- verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb
1516
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_compilation_result_request request_pb
1315
1517
  query_string_params = if query_string_params.any?
1316
1518
  query_string_params.to_h { |p| p.split "=", 2 }
1317
1519
  else
@@ -1326,30 +1528,30 @@ module Google
1326
1528
  options: options
1327
1529
  )
1328
1530
  operation = ::Gapic::Rest::TransportOperation.new response
1329
- result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1531
+ result = ::Google::Cloud::Dataform::V1beta1::CompilationResult.decode_json response.body, ignore_unknown_fields: true
1330
1532
 
1331
1533
  yield result, operation if block_given?
1332
1534
  result
1333
1535
  end
1334
1536
 
1335
1537
  ##
1336
- # Baseline implementation for the cancel_workflow_invocation REST call
1538
+ # Baseline implementation for the query_compilation_result_actions REST call
1337
1539
  #
1338
- # @param request_pb [::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest]
1540
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsRequest]
1339
1541
  # A request object representing the call parameters. Required.
1340
1542
  # @param options [::Gapic::CallOptions]
1341
1543
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1342
1544
  #
1343
1545
  # @yield [result, operation] Access the result along with the TransportOperation object
1344
- # @yieldparam result [::Google::Protobuf::Empty]
1546
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse]
1345
1547
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
1346
1548
  #
1347
- # @return [::Google::Protobuf::Empty]
1549
+ # @return [::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse]
1348
1550
  # A result object deserialized from the server's reply
1349
- def cancel_workflow_invocation request_pb, options = nil
1551
+ def query_compilation_result_actions request_pb, options = nil
1350
1552
  raise ::ArgumentError, "request must be provided" if request_pb.nil?
1351
1553
 
1352
- verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb
1554
+ verb, uri, query_string_params, body = ServiceStub.transcode_query_compilation_result_actions_request request_pb
1353
1555
  query_string_params = if query_string_params.any?
1354
1556
  query_string_params.to_h { |p| p.split "=", 2 }
1355
1557
  else
@@ -1364,7 +1566,387 @@ module Google
1364
1566
  options: options
1365
1567
  )
1366
1568
  operation = ::Gapic::Rest::TransportOperation.new response
1367
- result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1569
+ result = ::Google::Cloud::Dataform::V1beta1::QueryCompilationResultActionsResponse.decode_json response.body, ignore_unknown_fields: true
1570
+
1571
+ yield result, operation if block_given?
1572
+ result
1573
+ end
1574
+
1575
+ ##
1576
+ # Baseline implementation for the list_workflow_configs REST call
1577
+ #
1578
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest]
1579
+ # A request object representing the call parameters. Required.
1580
+ # @param options [::Gapic::CallOptions]
1581
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1582
+ #
1583
+ # @yield [result, operation] Access the result along with the TransportOperation object
1584
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
1585
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1586
+ #
1587
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse]
1588
+ # A result object deserialized from the server's reply
1589
+ def list_workflow_configs request_pb, options = nil
1590
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1591
+
1592
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_configs_request request_pb
1593
+ query_string_params = if query_string_params.any?
1594
+ query_string_params.to_h { |p| p.split "=", 2 }
1595
+ else
1596
+ {}
1597
+ end
1598
+
1599
+ response = @client_stub.make_http_request(
1600
+ verb,
1601
+ uri: uri,
1602
+ body: body || "",
1603
+ params: query_string_params,
1604
+ options: options
1605
+ )
1606
+ operation = ::Gapic::Rest::TransportOperation.new response
1607
+ result = ::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsResponse.decode_json response.body, ignore_unknown_fields: true
1608
+
1609
+ yield result, operation if block_given?
1610
+ result
1611
+ end
1612
+
1613
+ ##
1614
+ # Baseline implementation for the get_workflow_config REST call
1615
+ #
1616
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest]
1617
+ # A request object representing the call parameters. Required.
1618
+ # @param options [::Gapic::CallOptions]
1619
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1620
+ #
1621
+ # @yield [result, operation] Access the result along with the TransportOperation object
1622
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1623
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1624
+ #
1625
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1626
+ # A result object deserialized from the server's reply
1627
+ def get_workflow_config request_pb, options = nil
1628
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1629
+
1630
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_config_request request_pb
1631
+ query_string_params = if query_string_params.any?
1632
+ query_string_params.to_h { |p| p.split "=", 2 }
1633
+ else
1634
+ {}
1635
+ end
1636
+
1637
+ response = @client_stub.make_http_request(
1638
+ verb,
1639
+ uri: uri,
1640
+ body: body || "",
1641
+ params: query_string_params,
1642
+ options: options
1643
+ )
1644
+ operation = ::Gapic::Rest::TransportOperation.new response
1645
+ result = ::Google::Cloud::Dataform::V1beta1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1646
+
1647
+ yield result, operation if block_given?
1648
+ result
1649
+ end
1650
+
1651
+ ##
1652
+ # Baseline implementation for the create_workflow_config REST call
1653
+ #
1654
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest]
1655
+ # A request object representing the call parameters. Required.
1656
+ # @param options [::Gapic::CallOptions]
1657
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1658
+ #
1659
+ # @yield [result, operation] Access the result along with the TransportOperation object
1660
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1661
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1662
+ #
1663
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1664
+ # A result object deserialized from the server's reply
1665
+ def create_workflow_config request_pb, options = nil
1666
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1667
+
1668
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_config_request request_pb
1669
+ query_string_params = if query_string_params.any?
1670
+ query_string_params.to_h { |p| p.split "=", 2 }
1671
+ else
1672
+ {}
1673
+ end
1674
+
1675
+ response = @client_stub.make_http_request(
1676
+ verb,
1677
+ uri: uri,
1678
+ body: body || "",
1679
+ params: query_string_params,
1680
+ options: options
1681
+ )
1682
+ operation = ::Gapic::Rest::TransportOperation.new response
1683
+ result = ::Google::Cloud::Dataform::V1beta1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1684
+
1685
+ yield result, operation if block_given?
1686
+ result
1687
+ end
1688
+
1689
+ ##
1690
+ # Baseline implementation for the update_workflow_config REST call
1691
+ #
1692
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest]
1693
+ # A request object representing the call parameters. Required.
1694
+ # @param options [::Gapic::CallOptions]
1695
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1696
+ #
1697
+ # @yield [result, operation] Access the result along with the TransportOperation object
1698
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1699
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1700
+ #
1701
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowConfig]
1702
+ # A result object deserialized from the server's reply
1703
+ def update_workflow_config request_pb, options = nil
1704
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1705
+
1706
+ verb, uri, query_string_params, body = ServiceStub.transcode_update_workflow_config_request request_pb
1707
+ query_string_params = if query_string_params.any?
1708
+ query_string_params.to_h { |p| p.split "=", 2 }
1709
+ else
1710
+ {}
1711
+ end
1712
+
1713
+ response = @client_stub.make_http_request(
1714
+ verb,
1715
+ uri: uri,
1716
+ body: body || "",
1717
+ params: query_string_params,
1718
+ options: options
1719
+ )
1720
+ operation = ::Gapic::Rest::TransportOperation.new response
1721
+ result = ::Google::Cloud::Dataform::V1beta1::WorkflowConfig.decode_json response.body, ignore_unknown_fields: true
1722
+
1723
+ yield result, operation if block_given?
1724
+ result
1725
+ end
1726
+
1727
+ ##
1728
+ # Baseline implementation for the delete_workflow_config REST call
1729
+ #
1730
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest]
1731
+ # A request object representing the call parameters. Required.
1732
+ # @param options [::Gapic::CallOptions]
1733
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1734
+ #
1735
+ # @yield [result, operation] Access the result along with the TransportOperation object
1736
+ # @yieldparam result [::Google::Protobuf::Empty]
1737
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1738
+ #
1739
+ # @return [::Google::Protobuf::Empty]
1740
+ # A result object deserialized from the server's reply
1741
+ def delete_workflow_config request_pb, options = nil
1742
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1743
+
1744
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_config_request request_pb
1745
+ query_string_params = if query_string_params.any?
1746
+ query_string_params.to_h { |p| p.split "=", 2 }
1747
+ else
1748
+ {}
1749
+ end
1750
+
1751
+ response = @client_stub.make_http_request(
1752
+ verb,
1753
+ uri: uri,
1754
+ body: body || "",
1755
+ params: query_string_params,
1756
+ options: options
1757
+ )
1758
+ operation = ::Gapic::Rest::TransportOperation.new response
1759
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1760
+
1761
+ yield result, operation if block_given?
1762
+ result
1763
+ end
1764
+
1765
+ ##
1766
+ # Baseline implementation for the list_workflow_invocations REST call
1767
+ #
1768
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsRequest]
1769
+ # A request object representing the call parameters. Required.
1770
+ # @param options [::Gapic::CallOptions]
1771
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1772
+ #
1773
+ # @yield [result, operation] Access the result along with the TransportOperation object
1774
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
1775
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1776
+ #
1777
+ # @return [::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse]
1778
+ # A result object deserialized from the server's reply
1779
+ def list_workflow_invocations request_pb, options = nil
1780
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1781
+
1782
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_workflow_invocations_request request_pb
1783
+ query_string_params = if query_string_params.any?
1784
+ query_string_params.to_h { |p| p.split "=", 2 }
1785
+ else
1786
+ {}
1787
+ end
1788
+
1789
+ response = @client_stub.make_http_request(
1790
+ verb,
1791
+ uri: uri,
1792
+ body: body || "",
1793
+ params: query_string_params,
1794
+ options: options
1795
+ )
1796
+ operation = ::Gapic::Rest::TransportOperation.new response
1797
+ result = ::Google::Cloud::Dataform::V1beta1::ListWorkflowInvocationsResponse.decode_json response.body, ignore_unknown_fields: true
1798
+
1799
+ yield result, operation if block_given?
1800
+ result
1801
+ end
1802
+
1803
+ ##
1804
+ # Baseline implementation for the get_workflow_invocation REST call
1805
+ #
1806
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetWorkflowInvocationRequest]
1807
+ # A request object representing the call parameters. Required.
1808
+ # @param options [::Gapic::CallOptions]
1809
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1810
+ #
1811
+ # @yield [result, operation] Access the result along with the TransportOperation object
1812
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1813
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1814
+ #
1815
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1816
+ # A result object deserialized from the server's reply
1817
+ def get_workflow_invocation request_pb, options = nil
1818
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1819
+
1820
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_workflow_invocation_request request_pb
1821
+ query_string_params = if query_string_params.any?
1822
+ query_string_params.to_h { |p| p.split "=", 2 }
1823
+ else
1824
+ {}
1825
+ end
1826
+
1827
+ response = @client_stub.make_http_request(
1828
+ verb,
1829
+ uri: uri,
1830
+ body: body || "",
1831
+ params: query_string_params,
1832
+ options: options
1833
+ )
1834
+ operation = ::Gapic::Rest::TransportOperation.new response
1835
+ result = ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
1836
+
1837
+ yield result, operation if block_given?
1838
+ result
1839
+ end
1840
+
1841
+ ##
1842
+ # Baseline implementation for the create_workflow_invocation REST call
1843
+ #
1844
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkflowInvocationRequest]
1845
+ # A request object representing the call parameters. Required.
1846
+ # @param options [::Gapic::CallOptions]
1847
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1848
+ #
1849
+ # @yield [result, operation] Access the result along with the TransportOperation object
1850
+ # @yieldparam result [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1851
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1852
+ #
1853
+ # @return [::Google::Cloud::Dataform::V1beta1::WorkflowInvocation]
1854
+ # A result object deserialized from the server's reply
1855
+ def create_workflow_invocation request_pb, options = nil
1856
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1857
+
1858
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_workflow_invocation_request request_pb
1859
+ query_string_params = if query_string_params.any?
1860
+ query_string_params.to_h { |p| p.split "=", 2 }
1861
+ else
1862
+ {}
1863
+ end
1864
+
1865
+ response = @client_stub.make_http_request(
1866
+ verb,
1867
+ uri: uri,
1868
+ body: body || "",
1869
+ params: query_string_params,
1870
+ options: options
1871
+ )
1872
+ operation = ::Gapic::Rest::TransportOperation.new response
1873
+ result = ::Google::Cloud::Dataform::V1beta1::WorkflowInvocation.decode_json response.body, ignore_unknown_fields: true
1874
+
1875
+ yield result, operation if block_given?
1876
+ result
1877
+ end
1878
+
1879
+ ##
1880
+ # Baseline implementation for the delete_workflow_invocation REST call
1881
+ #
1882
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowInvocationRequest]
1883
+ # A request object representing the call parameters. Required.
1884
+ # @param options [::Gapic::CallOptions]
1885
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1886
+ #
1887
+ # @yield [result, operation] Access the result along with the TransportOperation object
1888
+ # @yieldparam result [::Google::Protobuf::Empty]
1889
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1890
+ #
1891
+ # @return [::Google::Protobuf::Empty]
1892
+ # A result object deserialized from the server's reply
1893
+ def delete_workflow_invocation request_pb, options = nil
1894
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1895
+
1896
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_workflow_invocation_request request_pb
1897
+ query_string_params = if query_string_params.any?
1898
+ query_string_params.to_h { |p| p.split "=", 2 }
1899
+ else
1900
+ {}
1901
+ end
1902
+
1903
+ response = @client_stub.make_http_request(
1904
+ verb,
1905
+ uri: uri,
1906
+ body: body || "",
1907
+ params: query_string_params,
1908
+ options: options
1909
+ )
1910
+ operation = ::Gapic::Rest::TransportOperation.new response
1911
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1912
+
1913
+ yield result, operation if block_given?
1914
+ result
1915
+ end
1916
+
1917
+ ##
1918
+ # Baseline implementation for the cancel_workflow_invocation REST call
1919
+ #
1920
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CancelWorkflowInvocationRequest]
1921
+ # A request object representing the call parameters. Required.
1922
+ # @param options [::Gapic::CallOptions]
1923
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1924
+ #
1925
+ # @yield [result, operation] Access the result along with the TransportOperation object
1926
+ # @yieldparam result [::Google::Protobuf::Empty]
1927
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1928
+ #
1929
+ # @return [::Google::Protobuf::Empty]
1930
+ # A result object deserialized from the server's reply
1931
+ def cancel_workflow_invocation request_pb, options = nil
1932
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
1933
+
1934
+ verb, uri, query_string_params, body = ServiceStub.transcode_cancel_workflow_invocation_request request_pb
1935
+ query_string_params = if query_string_params.any?
1936
+ query_string_params.to_h { |p| p.split "=", 2 }
1937
+ else
1938
+ {}
1939
+ end
1940
+
1941
+ response = @client_stub.make_http_request(
1942
+ verb,
1943
+ uri: uri,
1944
+ body: body || "",
1945
+ params: query_string_params,
1946
+ options: options
1947
+ )
1948
+ operation = ::Gapic::Rest::TransportOperation.new response
1949
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
1368
1950
 
1369
1951
  yield result, operation if block_given?
1370
1952
  result
@@ -1515,6 +2097,112 @@ module Google
1515
2097
  transcoder.transcode request_pb
1516
2098
  end
1517
2099
 
2100
+ ##
2101
+ # @private
2102
+ #
2103
+ # GRPC transcoding helper method for the commit_repository_changes REST call
2104
+ #
2105
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CommitRepositoryChangesRequest]
2106
+ # A request object representing the call parameters. Required.
2107
+ # @return [Array(String, [String, nil], Hash{String => String})]
2108
+ # Uri, Body, Query string parameters
2109
+ def self.transcode_commit_repository_changes_request request_pb
2110
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2111
+ .with_bindings(
2112
+ uri_method: :post,
2113
+ uri_template: "/v1beta1/{name}:commit",
2114
+ body: "*",
2115
+ matches: [
2116
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2117
+ ]
2118
+ )
2119
+ transcoder.transcode request_pb
2120
+ end
2121
+
2122
+ ##
2123
+ # @private
2124
+ #
2125
+ # GRPC transcoding helper method for the read_repository_file REST call
2126
+ #
2127
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ReadRepositoryFileRequest]
2128
+ # A request object representing the call parameters. Required.
2129
+ # @return [Array(String, [String, nil], Hash{String => String})]
2130
+ # Uri, Body, Query string parameters
2131
+ def self.transcode_read_repository_file_request request_pb
2132
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2133
+ .with_bindings(
2134
+ uri_method: :get,
2135
+ uri_template: "/v1beta1/{name}:readFile",
2136
+ matches: [
2137
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2138
+ ]
2139
+ )
2140
+ transcoder.transcode request_pb
2141
+ end
2142
+
2143
+ ##
2144
+ # @private
2145
+ #
2146
+ # GRPC transcoding helper method for the query_repository_directory_contents REST call
2147
+ #
2148
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::QueryRepositoryDirectoryContentsRequest]
2149
+ # A request object representing the call parameters. Required.
2150
+ # @return [Array(String, [String, nil], Hash{String => String})]
2151
+ # Uri, Body, Query string parameters
2152
+ def self.transcode_query_repository_directory_contents_request request_pb
2153
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2154
+ .with_bindings(
2155
+ uri_method: :get,
2156
+ uri_template: "/v1beta1/{name}:queryDirectoryContents",
2157
+ matches: [
2158
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2159
+ ]
2160
+ )
2161
+ transcoder.transcode request_pb
2162
+ end
2163
+
2164
+ ##
2165
+ # @private
2166
+ #
2167
+ # GRPC transcoding helper method for the fetch_repository_history REST call
2168
+ #
2169
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::FetchRepositoryHistoryRequest]
2170
+ # A request object representing the call parameters. Required.
2171
+ # @return [Array(String, [String, nil], Hash{String => String})]
2172
+ # Uri, Body, Query string parameters
2173
+ def self.transcode_fetch_repository_history_request request_pb
2174
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2175
+ .with_bindings(
2176
+ uri_method: :get,
2177
+ uri_template: "/v1beta1/{name}:fetchHistory",
2178
+ matches: [
2179
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2180
+ ]
2181
+ )
2182
+ transcoder.transcode request_pb
2183
+ end
2184
+
2185
+ ##
2186
+ # @private
2187
+ #
2188
+ # GRPC transcoding helper method for the compute_repository_access_token_status REST call
2189
+ #
2190
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ComputeRepositoryAccessTokenStatusRequest]
2191
+ # A request object representing the call parameters. Required.
2192
+ # @return [Array(String, [String, nil], Hash{String => String})]
2193
+ # Uri, Body, Query string parameters
2194
+ def self.transcode_compute_repository_access_token_status_request request_pb
2195
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2196
+ .with_bindings(
2197
+ uri_method: :get,
2198
+ uri_template: "/v1beta1/{name}:computeAccessTokenStatus",
2199
+ matches: [
2200
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2201
+ ]
2202
+ )
2203
+ transcoder.transcode request_pb
2204
+ end
2205
+
1518
2206
  ##
1519
2207
  # @private
1520
2208
  #
@@ -1968,6 +2656,113 @@ module Google
1968
2656
  transcoder.transcode request_pb
1969
2657
  end
1970
2658
 
2659
+ ##
2660
+ # @private
2661
+ #
2662
+ # GRPC transcoding helper method for the list_release_configs REST call
2663
+ #
2664
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListReleaseConfigsRequest]
2665
+ # A request object representing the call parameters. Required.
2666
+ # @return [Array(String, [String, nil], Hash{String => String})]
2667
+ # Uri, Body, Query string parameters
2668
+ def self.transcode_list_release_configs_request request_pb
2669
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2670
+ .with_bindings(
2671
+ uri_method: :get,
2672
+ uri_template: "/v1beta1/{parent}/releaseConfigs",
2673
+ matches: [
2674
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2675
+ ]
2676
+ )
2677
+ transcoder.transcode request_pb
2678
+ end
2679
+
2680
+ ##
2681
+ # @private
2682
+ #
2683
+ # GRPC transcoding helper method for the get_release_config REST call
2684
+ #
2685
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetReleaseConfigRequest]
2686
+ # A request object representing the call parameters. Required.
2687
+ # @return [Array(String, [String, nil], Hash{String => String})]
2688
+ # Uri, Body, Query string parameters
2689
+ def self.transcode_get_release_config_request request_pb
2690
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2691
+ .with_bindings(
2692
+ uri_method: :get,
2693
+ uri_template: "/v1beta1/{name}",
2694
+ matches: [
2695
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
2696
+ ]
2697
+ )
2698
+ transcoder.transcode request_pb
2699
+ end
2700
+
2701
+ ##
2702
+ # @private
2703
+ #
2704
+ # GRPC transcoding helper method for the create_release_config REST call
2705
+ #
2706
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateReleaseConfigRequest]
2707
+ # A request object representing the call parameters. Required.
2708
+ # @return [Array(String, [String, nil], Hash{String => String})]
2709
+ # Uri, Body, Query string parameters
2710
+ def self.transcode_create_release_config_request request_pb
2711
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2712
+ .with_bindings(
2713
+ uri_method: :post,
2714
+ uri_template: "/v1beta1/{parent}/releaseConfigs",
2715
+ body: "release_config",
2716
+ matches: [
2717
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2718
+ ]
2719
+ )
2720
+ transcoder.transcode request_pb
2721
+ end
2722
+
2723
+ ##
2724
+ # @private
2725
+ #
2726
+ # GRPC transcoding helper method for the update_release_config REST call
2727
+ #
2728
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::UpdateReleaseConfigRequest]
2729
+ # A request object representing the call parameters. Required.
2730
+ # @return [Array(String, [String, nil], Hash{String => String})]
2731
+ # Uri, Body, Query string parameters
2732
+ def self.transcode_update_release_config_request request_pb
2733
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2734
+ .with_bindings(
2735
+ uri_method: :patch,
2736
+ uri_template: "/v1beta1/{release_config.name}",
2737
+ body: "release_config",
2738
+ matches: [
2739
+ ["release_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
2740
+ ]
2741
+ )
2742
+ transcoder.transcode request_pb
2743
+ end
2744
+
2745
+ ##
2746
+ # @private
2747
+ #
2748
+ # GRPC transcoding helper method for the delete_release_config REST call
2749
+ #
2750
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteReleaseConfigRequest]
2751
+ # A request object representing the call parameters. Required.
2752
+ # @return [Array(String, [String, nil], Hash{String => String})]
2753
+ # Uri, Body, Query string parameters
2754
+ def self.transcode_delete_release_config_request request_pb
2755
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2756
+ .with_bindings(
2757
+ uri_method: :delete,
2758
+ uri_template: "/v1beta1/{name}",
2759
+ matches: [
2760
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/releaseConfigs/[^/]+/?$}, false]
2761
+ ]
2762
+ )
2763
+ transcoder.transcode request_pb
2764
+ end
2765
+
1971
2766
  ##
1972
2767
  # @private
1973
2768
  #
@@ -2053,6 +2848,113 @@ module Google
2053
2848
  transcoder.transcode request_pb
2054
2849
  end
2055
2850
 
2851
+ ##
2852
+ # @private
2853
+ #
2854
+ # GRPC transcoding helper method for the list_workflow_configs REST call
2855
+ #
2856
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::ListWorkflowConfigsRequest]
2857
+ # A request object representing the call parameters. Required.
2858
+ # @return [Array(String, [String, nil], Hash{String => String})]
2859
+ # Uri, Body, Query string parameters
2860
+ def self.transcode_list_workflow_configs_request request_pb
2861
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2862
+ .with_bindings(
2863
+ uri_method: :get,
2864
+ uri_template: "/v1beta1/{parent}/workflowConfigs",
2865
+ matches: [
2866
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2867
+ ]
2868
+ )
2869
+ transcoder.transcode request_pb
2870
+ end
2871
+
2872
+ ##
2873
+ # @private
2874
+ #
2875
+ # GRPC transcoding helper method for the get_workflow_config REST call
2876
+ #
2877
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::GetWorkflowConfigRequest]
2878
+ # A request object representing the call parameters. Required.
2879
+ # @return [Array(String, [String, nil], Hash{String => String})]
2880
+ # Uri, Body, Query string parameters
2881
+ def self.transcode_get_workflow_config_request request_pb
2882
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2883
+ .with_bindings(
2884
+ uri_method: :get,
2885
+ uri_template: "/v1beta1/{name}",
2886
+ matches: [
2887
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
2888
+ ]
2889
+ )
2890
+ transcoder.transcode request_pb
2891
+ end
2892
+
2893
+ ##
2894
+ # @private
2895
+ #
2896
+ # GRPC transcoding helper method for the create_workflow_config REST call
2897
+ #
2898
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::CreateWorkflowConfigRequest]
2899
+ # A request object representing the call parameters. Required.
2900
+ # @return [Array(String, [String, nil], Hash{String => String})]
2901
+ # Uri, Body, Query string parameters
2902
+ def self.transcode_create_workflow_config_request request_pb
2903
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2904
+ .with_bindings(
2905
+ uri_method: :post,
2906
+ uri_template: "/v1beta1/{parent}/workflowConfigs",
2907
+ body: "workflow_config",
2908
+ matches: [
2909
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/?$}, false]
2910
+ ]
2911
+ )
2912
+ transcoder.transcode request_pb
2913
+ end
2914
+
2915
+ ##
2916
+ # @private
2917
+ #
2918
+ # GRPC transcoding helper method for the update_workflow_config REST call
2919
+ #
2920
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::UpdateWorkflowConfigRequest]
2921
+ # A request object representing the call parameters. Required.
2922
+ # @return [Array(String, [String, nil], Hash{String => String})]
2923
+ # Uri, Body, Query string parameters
2924
+ def self.transcode_update_workflow_config_request request_pb
2925
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2926
+ .with_bindings(
2927
+ uri_method: :patch,
2928
+ uri_template: "/v1beta1/{workflow_config.name}",
2929
+ body: "workflow_config",
2930
+ matches: [
2931
+ ["workflow_config.name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
2932
+ ]
2933
+ )
2934
+ transcoder.transcode request_pb
2935
+ end
2936
+
2937
+ ##
2938
+ # @private
2939
+ #
2940
+ # GRPC transcoding helper method for the delete_workflow_config REST call
2941
+ #
2942
+ # @param request_pb [::Google::Cloud::Dataform::V1beta1::DeleteWorkflowConfigRequest]
2943
+ # A request object representing the call parameters. Required.
2944
+ # @return [Array(String, [String, nil], Hash{String => String})]
2945
+ # Uri, Body, Query string parameters
2946
+ def self.transcode_delete_workflow_config_request request_pb
2947
+ transcoder = Gapic::Rest::GrpcTranscoder.new
2948
+ .with_bindings(
2949
+ uri_method: :delete,
2950
+ uri_template: "/v1beta1/{name}",
2951
+ matches: [
2952
+ ["name", %r{^projects/[^/]+/locations/[^/]+/repositories/[^/]+/workflowConfigs/[^/]+/?$}, false]
2953
+ ]
2954
+ )
2955
+ transcoder.transcode request_pb
2956
+ end
2957
+
2056
2958
  ##
2057
2959
  # @private
2058
2960
  #