google-cloud-dataform-v1beta1 0.7.0 → 0.8.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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +145 -103
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +139 -103
- data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +422 -308
- data/lib/google/cloud/dataform/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +74 -10
- data/proto_docs/google/api/resource.rb +7 -2
- metadata +5 -5
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# tables in BigQuery.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
API_VERSION = ""
|
40
|
+
|
38
41
|
# @private
|
39
42
|
DEFAULT_ENDPOINT_TEMPLATE = "dataform.$UNIVERSE_DOMAIN$"
|
40
43
|
|
@@ -150,15 +153,27 @@ module Google
|
|
150
153
|
endpoint: @config.endpoint,
|
151
154
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
152
155
|
universe_domain: @config.universe_domain,
|
153
|
-
credentials: credentials
|
156
|
+
credentials: credentials,
|
157
|
+
logger: @config.logger
|
154
158
|
)
|
155
159
|
|
160
|
+
@dataform_stub.logger(stub: true)&.info do |entry|
|
161
|
+
entry.set_system_name
|
162
|
+
entry.set_service
|
163
|
+
entry.message = "Created client for #{entry.service}"
|
164
|
+
entry.set_credentials_fields credentials
|
165
|
+
entry.set "customEndpoint", @config.endpoint if @config.endpoint
|
166
|
+
entry.set "defaultTimeout", @config.timeout if @config.timeout
|
167
|
+
entry.set "quotaProject", @quota_project_id if @quota_project_id
|
168
|
+
end
|
169
|
+
|
156
170
|
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
157
171
|
config.credentials = credentials
|
158
172
|
config.quota_project = @quota_project_id
|
159
173
|
config.endpoint = @dataform_stub.endpoint
|
160
174
|
config.universe_domain = @dataform_stub.universe_domain
|
161
175
|
config.bindings_override = @config.bindings_override
|
176
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
162
177
|
end
|
163
178
|
|
164
179
|
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
@@ -167,6 +182,7 @@ module Google
|
|
167
182
|
config.endpoint = @dataform_stub.endpoint
|
168
183
|
config.universe_domain = @dataform_stub.universe_domain
|
169
184
|
config.bindings_override = @config.bindings_override
|
185
|
+
config.logger = @dataform_stub.logger if config.respond_to? :logger=
|
170
186
|
end
|
171
187
|
end
|
172
188
|
|
@@ -184,6 +200,15 @@ module Google
|
|
184
200
|
#
|
185
201
|
attr_reader :iam_policy_client
|
186
202
|
|
203
|
+
##
|
204
|
+
# The logger used for request/response debug logging.
|
205
|
+
#
|
206
|
+
# @return [Logger]
|
207
|
+
#
|
208
|
+
def logger
|
209
|
+
@dataform_stub.logger
|
210
|
+
end
|
211
|
+
|
187
212
|
# Service calls
|
188
213
|
|
189
214
|
##
|
@@ -261,12 +286,13 @@ module Google
|
|
261
286
|
# Customize the options with defaults
|
262
287
|
call_metadata = @config.rpcs.list_repositories.metadata.to_h
|
263
288
|
|
264
|
-
# Set x-goog-api-client
|
289
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
265
290
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
266
291
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
267
292
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
268
293
|
transports_version_send: [:rest]
|
269
294
|
|
295
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
270
296
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
271
297
|
|
272
298
|
options.apply_defaults timeout: @config.rpcs.list_repositories.timeout,
|
@@ -279,7 +305,6 @@ module Google
|
|
279
305
|
|
280
306
|
@dataform_stub.list_repositories request, options do |result, operation|
|
281
307
|
yield result, operation if block_given?
|
282
|
-
return result
|
283
308
|
end
|
284
309
|
rescue ::Gapic::Rest::Error => e
|
285
310
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -339,12 +364,13 @@ module Google
|
|
339
364
|
# Customize the options with defaults
|
340
365
|
call_metadata = @config.rpcs.get_repository.metadata.to_h
|
341
366
|
|
342
|
-
# Set x-goog-api-client
|
367
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
343
368
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
344
369
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
345
370
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
346
371
|
transports_version_send: [:rest]
|
347
372
|
|
373
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
348
374
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
349
375
|
|
350
376
|
options.apply_defaults timeout: @config.rpcs.get_repository.timeout,
|
@@ -357,7 +383,6 @@ module Google
|
|
357
383
|
|
358
384
|
@dataform_stub.get_repository request, options do |result, operation|
|
359
385
|
yield result, operation if block_given?
|
360
|
-
return result
|
361
386
|
end
|
362
387
|
rescue ::Gapic::Rest::Error => e
|
363
388
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -423,12 +448,13 @@ module Google
|
|
423
448
|
# Customize the options with defaults
|
424
449
|
call_metadata = @config.rpcs.create_repository.metadata.to_h
|
425
450
|
|
426
|
-
# Set x-goog-api-client
|
451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
427
452
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
428
453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
429
454
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
430
455
|
transports_version_send: [:rest]
|
431
456
|
|
457
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
432
458
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
433
459
|
|
434
460
|
options.apply_defaults timeout: @config.rpcs.create_repository.timeout,
|
@@ -441,7 +467,6 @@ module Google
|
|
441
467
|
|
442
468
|
@dataform_stub.create_repository request, options do |result, operation|
|
443
469
|
yield result, operation if block_given?
|
444
|
-
return result
|
445
470
|
end
|
446
471
|
rescue ::Gapic::Rest::Error => e
|
447
472
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -504,12 +529,13 @@ module Google
|
|
504
529
|
# Customize the options with defaults
|
505
530
|
call_metadata = @config.rpcs.update_repository.metadata.to_h
|
506
531
|
|
507
|
-
# Set x-goog-api-client
|
532
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
508
533
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
509
534
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
510
535
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
511
536
|
transports_version_send: [:rest]
|
512
537
|
|
538
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
513
539
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
514
540
|
|
515
541
|
options.apply_defaults timeout: @config.rpcs.update_repository.timeout,
|
@@ -522,7 +548,6 @@ module Google
|
|
522
548
|
|
523
549
|
@dataform_stub.update_repository request, options do |result, operation|
|
524
550
|
yield result, operation if block_given?
|
525
|
-
return result
|
526
551
|
end
|
527
552
|
rescue ::Gapic::Rest::Error => e
|
528
553
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -586,12 +611,13 @@ module Google
|
|
586
611
|
# Customize the options with defaults
|
587
612
|
call_metadata = @config.rpcs.delete_repository.metadata.to_h
|
588
613
|
|
589
|
-
# Set x-goog-api-client
|
614
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
590
615
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
591
616
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
592
617
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
593
618
|
transports_version_send: [:rest]
|
594
619
|
|
620
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
595
621
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
596
622
|
|
597
623
|
options.apply_defaults timeout: @config.rpcs.delete_repository.timeout,
|
@@ -604,7 +630,6 @@ module Google
|
|
604
630
|
|
605
631
|
@dataform_stub.delete_repository request, options do |result, operation|
|
606
632
|
yield result, operation if block_given?
|
607
|
-
return result
|
608
633
|
end
|
609
634
|
rescue ::Gapic::Rest::Error => e
|
610
635
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -674,12 +699,13 @@ module Google
|
|
674
699
|
# Customize the options with defaults
|
675
700
|
call_metadata = @config.rpcs.commit_repository_changes.metadata.to_h
|
676
701
|
|
677
|
-
# Set x-goog-api-client
|
702
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
678
703
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
679
704
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
680
705
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
681
706
|
transports_version_send: [:rest]
|
682
707
|
|
708
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
683
709
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
684
710
|
|
685
711
|
options.apply_defaults timeout: @config.rpcs.commit_repository_changes.timeout,
|
@@ -692,7 +718,6 @@ module Google
|
|
692
718
|
|
693
719
|
@dataform_stub.commit_repository_changes request, options do |result, operation|
|
694
720
|
yield result, operation if block_given?
|
695
|
-
return result
|
696
721
|
end
|
697
722
|
rescue ::Gapic::Rest::Error => e
|
698
723
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -758,12 +783,13 @@ module Google
|
|
758
783
|
# Customize the options with defaults
|
759
784
|
call_metadata = @config.rpcs.read_repository_file.metadata.to_h
|
760
785
|
|
761
|
-
# Set x-goog-api-client
|
786
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
762
787
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
763
788
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
764
789
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
765
790
|
transports_version_send: [:rest]
|
766
791
|
|
792
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
767
793
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
768
794
|
|
769
795
|
options.apply_defaults timeout: @config.rpcs.read_repository_file.timeout,
|
@@ -776,7 +802,6 @@ module Google
|
|
776
802
|
|
777
803
|
@dataform_stub.read_repository_file request, options do |result, operation|
|
778
804
|
yield result, operation if block_given?
|
779
|
-
return result
|
780
805
|
end
|
781
806
|
rescue ::Gapic::Rest::Error => e
|
782
807
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -859,12 +884,13 @@ module Google
|
|
859
884
|
# Customize the options with defaults
|
860
885
|
call_metadata = @config.rpcs.query_repository_directory_contents.metadata.to_h
|
861
886
|
|
862
|
-
# Set x-goog-api-client
|
887
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
863
888
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
864
889
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
865
890
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
866
891
|
transports_version_send: [:rest]
|
867
892
|
|
893
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
868
894
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
869
895
|
|
870
896
|
options.apply_defaults timeout: @config.rpcs.query_repository_directory_contents.timeout,
|
@@ -878,7 +904,7 @@ module Google
|
|
878
904
|
@dataform_stub.query_repository_directory_contents request, options do |result, operation|
|
879
905
|
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_repository_directory_contents, "directory_entries", request, result, options
|
880
906
|
yield result, operation if block_given?
|
881
|
-
|
907
|
+
throw :response, result
|
882
908
|
end
|
883
909
|
rescue ::Gapic::Rest::Error => e
|
884
910
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -953,12 +979,13 @@ module Google
|
|
953
979
|
# Customize the options with defaults
|
954
980
|
call_metadata = @config.rpcs.fetch_repository_history.metadata.to_h
|
955
981
|
|
956
|
-
# Set x-goog-api-client
|
982
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
957
983
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
958
984
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
959
985
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
960
986
|
transports_version_send: [:rest]
|
961
987
|
|
988
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
962
989
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
963
990
|
|
964
991
|
options.apply_defaults timeout: @config.rpcs.fetch_repository_history.timeout,
|
@@ -972,7 +999,7 @@ module Google
|
|
972
999
|
@dataform_stub.fetch_repository_history request, options do |result, operation|
|
973
1000
|
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :fetch_repository_history, "commits", request, result, options
|
974
1001
|
yield result, operation if block_given?
|
975
|
-
|
1002
|
+
throw :response, result
|
976
1003
|
end
|
977
1004
|
rescue ::Gapic::Rest::Error => e
|
978
1005
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1032,12 +1059,13 @@ module Google
|
|
1032
1059
|
# Customize the options with defaults
|
1033
1060
|
call_metadata = @config.rpcs.compute_repository_access_token_status.metadata.to_h
|
1034
1061
|
|
1035
|
-
# Set x-goog-api-client
|
1062
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1036
1063
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1037
1064
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1038
1065
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1039
1066
|
transports_version_send: [:rest]
|
1040
1067
|
|
1068
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1041
1069
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1042
1070
|
|
1043
1071
|
options.apply_defaults timeout: @config.rpcs.compute_repository_access_token_status.timeout,
|
@@ -1050,7 +1078,6 @@ module Google
|
|
1050
1078
|
|
1051
1079
|
@dataform_stub.compute_repository_access_token_status request, options do |result, operation|
|
1052
1080
|
yield result, operation if block_given?
|
1053
|
-
return result
|
1054
1081
|
end
|
1055
1082
|
rescue ::Gapic::Rest::Error => e
|
1056
1083
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1110,12 +1137,13 @@ module Google
|
|
1110
1137
|
# Customize the options with defaults
|
1111
1138
|
call_metadata = @config.rpcs.fetch_remote_branches.metadata.to_h
|
1112
1139
|
|
1113
|
-
# Set x-goog-api-client
|
1140
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1114
1141
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1115
1142
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1116
1143
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1117
1144
|
transports_version_send: [:rest]
|
1118
1145
|
|
1146
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1119
1147
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1120
1148
|
|
1121
1149
|
options.apply_defaults timeout: @config.rpcs.fetch_remote_branches.timeout,
|
@@ -1128,7 +1156,6 @@ module Google
|
|
1128
1156
|
|
1129
1157
|
@dataform_stub.fetch_remote_branches request, options do |result, operation|
|
1130
1158
|
yield result, operation if block_given?
|
1131
|
-
return result
|
1132
1159
|
end
|
1133
1160
|
rescue ::Gapic::Rest::Error => e
|
1134
1161
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1209,12 +1236,13 @@ module Google
|
|
1209
1236
|
# Customize the options with defaults
|
1210
1237
|
call_metadata = @config.rpcs.list_workspaces.metadata.to_h
|
1211
1238
|
|
1212
|
-
# Set x-goog-api-client
|
1239
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1213
1240
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1214
1241
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1215
1242
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1216
1243
|
transports_version_send: [:rest]
|
1217
1244
|
|
1245
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1218
1246
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1219
1247
|
|
1220
1248
|
options.apply_defaults timeout: @config.rpcs.list_workspaces.timeout,
|
@@ -1227,7 +1255,6 @@ module Google
|
|
1227
1255
|
|
1228
1256
|
@dataform_stub.list_workspaces request, options do |result, operation|
|
1229
1257
|
yield result, operation if block_given?
|
1230
|
-
return result
|
1231
1258
|
end
|
1232
1259
|
rescue ::Gapic::Rest::Error => e
|
1233
1260
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1287,12 +1314,13 @@ module Google
|
|
1287
1314
|
# Customize the options with defaults
|
1288
1315
|
call_metadata = @config.rpcs.get_workspace.metadata.to_h
|
1289
1316
|
|
1290
|
-
# Set x-goog-api-client
|
1317
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1291
1318
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1292
1319
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1293
1320
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1294
1321
|
transports_version_send: [:rest]
|
1295
1322
|
|
1323
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1296
1324
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1297
1325
|
|
1298
1326
|
options.apply_defaults timeout: @config.rpcs.get_workspace.timeout,
|
@@ -1305,7 +1333,6 @@ module Google
|
|
1305
1333
|
|
1306
1334
|
@dataform_stub.get_workspace request, options do |result, operation|
|
1307
1335
|
yield result, operation if block_given?
|
1308
|
-
return result
|
1309
1336
|
end
|
1310
1337
|
rescue ::Gapic::Rest::Error => e
|
1311
1338
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1371,12 +1398,13 @@ module Google
|
|
1371
1398
|
# Customize the options with defaults
|
1372
1399
|
call_metadata = @config.rpcs.create_workspace.metadata.to_h
|
1373
1400
|
|
1374
|
-
# Set x-goog-api-client
|
1401
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1375
1402
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1376
1403
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1377
1404
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1378
1405
|
transports_version_send: [:rest]
|
1379
1406
|
|
1407
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1380
1408
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1381
1409
|
|
1382
1410
|
options.apply_defaults timeout: @config.rpcs.create_workspace.timeout,
|
@@ -1389,7 +1417,6 @@ module Google
|
|
1389
1417
|
|
1390
1418
|
@dataform_stub.create_workspace request, options do |result, operation|
|
1391
1419
|
yield result, operation if block_given?
|
1392
|
-
return result
|
1393
1420
|
end
|
1394
1421
|
rescue ::Gapic::Rest::Error => e
|
1395
1422
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1449,12 +1476,13 @@ module Google
|
|
1449
1476
|
# Customize the options with defaults
|
1450
1477
|
call_metadata = @config.rpcs.delete_workspace.metadata.to_h
|
1451
1478
|
|
1452
|
-
# Set x-goog-api-client
|
1479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1453
1480
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1454
1481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1455
1482
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1456
1483
|
transports_version_send: [:rest]
|
1457
1484
|
|
1485
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1458
1486
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1459
1487
|
|
1460
1488
|
options.apply_defaults timeout: @config.rpcs.delete_workspace.timeout,
|
@@ -1467,7 +1495,6 @@ module Google
|
|
1467
1495
|
|
1468
1496
|
@dataform_stub.delete_workspace request, options do |result, operation|
|
1469
1497
|
yield result, operation if block_given?
|
1470
|
-
return result
|
1471
1498
|
end
|
1472
1499
|
rescue ::Gapic::Rest::Error => e
|
1473
1500
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1527,12 +1554,13 @@ module Google
|
|
1527
1554
|
# Customize the options with defaults
|
1528
1555
|
call_metadata = @config.rpcs.install_npm_packages.metadata.to_h
|
1529
1556
|
|
1530
|
-
# Set x-goog-api-client
|
1557
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1531
1558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1532
1559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1533
1560
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1534
1561
|
transports_version_send: [:rest]
|
1535
1562
|
|
1563
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1536
1564
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1537
1565
|
|
1538
1566
|
options.apply_defaults timeout: @config.rpcs.install_npm_packages.timeout,
|
@@ -1545,7 +1573,6 @@ module Google
|
|
1545
1573
|
|
1546
1574
|
@dataform_stub.install_npm_packages request, options do |result, operation|
|
1547
1575
|
yield result, operation if block_given?
|
1548
|
-
return result
|
1549
1576
|
end
|
1550
1577
|
rescue ::Gapic::Rest::Error => e
|
1551
1578
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1611,12 +1638,13 @@ module Google
|
|
1611
1638
|
# Customize the options with defaults
|
1612
1639
|
call_metadata = @config.rpcs.pull_git_commits.metadata.to_h
|
1613
1640
|
|
1614
|
-
# Set x-goog-api-client
|
1641
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1615
1642
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1616
1643
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1617
1644
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1618
1645
|
transports_version_send: [:rest]
|
1619
1646
|
|
1647
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1620
1648
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1621
1649
|
|
1622
1650
|
options.apply_defaults timeout: @config.rpcs.pull_git_commits.timeout,
|
@@ -1629,7 +1657,6 @@ module Google
|
|
1629
1657
|
|
1630
1658
|
@dataform_stub.pull_git_commits request, options do |result, operation|
|
1631
1659
|
yield result, operation if block_given?
|
1632
|
-
return result
|
1633
1660
|
end
|
1634
1661
|
rescue ::Gapic::Rest::Error => e
|
1635
1662
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1693,12 +1720,13 @@ module Google
|
|
1693
1720
|
# Customize the options with defaults
|
1694
1721
|
call_metadata = @config.rpcs.push_git_commits.metadata.to_h
|
1695
1722
|
|
1696
|
-
# Set x-goog-api-client
|
1723
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1697
1724
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1698
1725
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1699
1726
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1700
1727
|
transports_version_send: [:rest]
|
1701
1728
|
|
1729
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1702
1730
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1703
1731
|
|
1704
1732
|
options.apply_defaults timeout: @config.rpcs.push_git_commits.timeout,
|
@@ -1711,7 +1739,6 @@ module Google
|
|
1711
1739
|
|
1712
1740
|
@dataform_stub.push_git_commits request, options do |result, operation|
|
1713
1741
|
yield result, operation if block_given?
|
1714
|
-
return result
|
1715
1742
|
end
|
1716
1743
|
rescue ::Gapic::Rest::Error => e
|
1717
1744
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1771,12 +1798,13 @@ module Google
|
|
1771
1798
|
# Customize the options with defaults
|
1772
1799
|
call_metadata = @config.rpcs.fetch_file_git_statuses.metadata.to_h
|
1773
1800
|
|
1774
|
-
# Set x-goog-api-client
|
1801
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1775
1802
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1776
1803
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1777
1804
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1778
1805
|
transports_version_send: [:rest]
|
1779
1806
|
|
1807
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1780
1808
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1781
1809
|
|
1782
1810
|
options.apply_defaults timeout: @config.rpcs.fetch_file_git_statuses.timeout,
|
@@ -1789,7 +1817,6 @@ module Google
|
|
1789
1817
|
|
1790
1818
|
@dataform_stub.fetch_file_git_statuses request, options do |result, operation|
|
1791
1819
|
yield result, operation if block_given?
|
1792
|
-
return result
|
1793
1820
|
end
|
1794
1821
|
rescue ::Gapic::Rest::Error => e
|
1795
1822
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1853,12 +1880,13 @@ module Google
|
|
1853
1880
|
# Customize the options with defaults
|
1854
1881
|
call_metadata = @config.rpcs.fetch_git_ahead_behind.metadata.to_h
|
1855
1882
|
|
1856
|
-
# Set x-goog-api-client
|
1883
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1857
1884
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1858
1885
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1859
1886
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1860
1887
|
transports_version_send: [:rest]
|
1861
1888
|
|
1889
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1862
1890
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1863
1891
|
|
1864
1892
|
options.apply_defaults timeout: @config.rpcs.fetch_git_ahead_behind.timeout,
|
@@ -1871,7 +1899,6 @@ module Google
|
|
1871
1899
|
|
1872
1900
|
@dataform_stub.fetch_git_ahead_behind request, options do |result, operation|
|
1873
1901
|
yield result, operation if block_given?
|
1874
|
-
return result
|
1875
1902
|
end
|
1876
1903
|
rescue ::Gapic::Rest::Error => e
|
1877
1904
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -1938,12 +1965,13 @@ module Google
|
|
1938
1965
|
# Customize the options with defaults
|
1939
1966
|
call_metadata = @config.rpcs.commit_workspace_changes.metadata.to_h
|
1940
1967
|
|
1941
|
-
# Set x-goog-api-client
|
1968
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1942
1969
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1943
1970
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1944
1971
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
1945
1972
|
transports_version_send: [:rest]
|
1946
1973
|
|
1974
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1947
1975
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1948
1976
|
|
1949
1977
|
options.apply_defaults timeout: @config.rpcs.commit_workspace_changes.timeout,
|
@@ -1956,7 +1984,6 @@ module Google
|
|
1956
1984
|
|
1957
1985
|
@dataform_stub.commit_workspace_changes request, options do |result, operation|
|
1958
1986
|
yield result, operation if block_given?
|
1959
|
-
return result
|
1960
1987
|
end
|
1961
1988
|
rescue ::Gapic::Rest::Error => e
|
1962
1989
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2021,12 +2048,13 @@ module Google
|
|
2021
2048
|
# Customize the options with defaults
|
2022
2049
|
call_metadata = @config.rpcs.reset_workspace_changes.metadata.to_h
|
2023
2050
|
|
2024
|
-
# Set x-goog-api-client
|
2051
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2025
2052
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2026
2053
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2027
2054
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2028
2055
|
transports_version_send: [:rest]
|
2029
2056
|
|
2057
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2030
2058
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2031
2059
|
|
2032
2060
|
options.apply_defaults timeout: @config.rpcs.reset_workspace_changes.timeout,
|
@@ -2039,7 +2067,6 @@ module Google
|
|
2039
2067
|
|
2040
2068
|
@dataform_stub.reset_workspace_changes request, options do |result, operation|
|
2041
2069
|
yield result, operation if block_given?
|
2042
|
-
return result
|
2043
2070
|
end
|
2044
2071
|
rescue ::Gapic::Rest::Error => e
|
2045
2072
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2102,12 +2129,13 @@ module Google
|
|
2102
2129
|
# Customize the options with defaults
|
2103
2130
|
call_metadata = @config.rpcs.fetch_file_diff.metadata.to_h
|
2104
2131
|
|
2105
|
-
# Set x-goog-api-client
|
2132
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2106
2133
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2107
2134
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2108
2135
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2109
2136
|
transports_version_send: [:rest]
|
2110
2137
|
|
2138
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2111
2139
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2112
2140
|
|
2113
2141
|
options.apply_defaults timeout: @config.rpcs.fetch_file_diff.timeout,
|
@@ -2120,7 +2148,6 @@ module Google
|
|
2120
2148
|
|
2121
2149
|
@dataform_stub.fetch_file_diff request, options do |result, operation|
|
2122
2150
|
yield result, operation if block_given?
|
2123
|
-
return result
|
2124
2151
|
end
|
2125
2152
|
rescue ::Gapic::Rest::Error => e
|
2126
2153
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2198,12 +2225,13 @@ module Google
|
|
2198
2225
|
# Customize the options with defaults
|
2199
2226
|
call_metadata = @config.rpcs.query_directory_contents.metadata.to_h
|
2200
2227
|
|
2201
|
-
# Set x-goog-api-client
|
2228
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2202
2229
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2203
2230
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2204
2231
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2205
2232
|
transports_version_send: [:rest]
|
2206
2233
|
|
2234
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2207
2235
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2208
2236
|
|
2209
2237
|
options.apply_defaults timeout: @config.rpcs.query_directory_contents.timeout,
|
@@ -2217,7 +2245,7 @@ module Google
|
|
2217
2245
|
@dataform_stub.query_directory_contents request, options do |result, operation|
|
2218
2246
|
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_directory_contents, "directory_entries", request, result, options
|
2219
2247
|
yield result, operation if block_given?
|
2220
|
-
|
2248
|
+
throw :response, result
|
2221
2249
|
end
|
2222
2250
|
rescue ::Gapic::Rest::Error => e
|
2223
2251
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2280,12 +2308,13 @@ module Google
|
|
2280
2308
|
# Customize the options with defaults
|
2281
2309
|
call_metadata = @config.rpcs.make_directory.metadata.to_h
|
2282
2310
|
|
2283
|
-
# Set x-goog-api-client
|
2311
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2284
2312
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2285
2313
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2286
2314
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2287
2315
|
transports_version_send: [:rest]
|
2288
2316
|
|
2317
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2289
2318
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2290
2319
|
|
2291
2320
|
options.apply_defaults timeout: @config.rpcs.make_directory.timeout,
|
@@ -2298,7 +2327,6 @@ module Google
|
|
2298
2327
|
|
2299
2328
|
@dataform_stub.make_directory request, options do |result, operation|
|
2300
2329
|
yield result, operation if block_given?
|
2301
|
-
return result
|
2302
2330
|
end
|
2303
2331
|
rescue ::Gapic::Rest::Error => e
|
2304
2332
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2361,12 +2389,13 @@ module Google
|
|
2361
2389
|
# Customize the options with defaults
|
2362
2390
|
call_metadata = @config.rpcs.remove_directory.metadata.to_h
|
2363
2391
|
|
2364
|
-
# Set x-goog-api-client
|
2392
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2365
2393
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2366
2394
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2367
2395
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2368
2396
|
transports_version_send: [:rest]
|
2369
2397
|
|
2398
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2370
2399
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2371
2400
|
|
2372
2401
|
options.apply_defaults timeout: @config.rpcs.remove_directory.timeout,
|
@@ -2379,7 +2408,6 @@ module Google
|
|
2379
2408
|
|
2380
2409
|
@dataform_stub.remove_directory request, options do |result, operation|
|
2381
2410
|
yield result, operation if block_given?
|
2382
|
-
return result
|
2383
2411
|
end
|
2384
2412
|
rescue ::Gapic::Rest::Error => e
|
2385
2413
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2446,12 +2474,13 @@ module Google
|
|
2446
2474
|
# Customize the options with defaults
|
2447
2475
|
call_metadata = @config.rpcs.move_directory.metadata.to_h
|
2448
2476
|
|
2449
|
-
# Set x-goog-api-client
|
2477
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2450
2478
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2451
2479
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2452
2480
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2453
2481
|
transports_version_send: [:rest]
|
2454
2482
|
|
2483
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2455
2484
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2456
2485
|
|
2457
2486
|
options.apply_defaults timeout: @config.rpcs.move_directory.timeout,
|
@@ -2464,7 +2493,6 @@ module Google
|
|
2464
2493
|
|
2465
2494
|
@dataform_stub.move_directory request, options do |result, operation|
|
2466
2495
|
yield result, operation if block_given?
|
2467
|
-
return result
|
2468
2496
|
end
|
2469
2497
|
rescue ::Gapic::Rest::Error => e
|
2470
2498
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2527,12 +2555,13 @@ module Google
|
|
2527
2555
|
# Customize the options with defaults
|
2528
2556
|
call_metadata = @config.rpcs.read_file.metadata.to_h
|
2529
2557
|
|
2530
|
-
# Set x-goog-api-client
|
2558
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2531
2559
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2532
2560
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2533
2561
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2534
2562
|
transports_version_send: [:rest]
|
2535
2563
|
|
2564
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2536
2565
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2537
2566
|
|
2538
2567
|
options.apply_defaults timeout: @config.rpcs.read_file.timeout,
|
@@ -2545,7 +2574,6 @@ module Google
|
|
2545
2574
|
|
2546
2575
|
@dataform_stub.read_file request, options do |result, operation|
|
2547
2576
|
yield result, operation if block_given?
|
2548
|
-
return result
|
2549
2577
|
end
|
2550
2578
|
rescue ::Gapic::Rest::Error => e
|
2551
2579
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2608,12 +2636,13 @@ module Google
|
|
2608
2636
|
# Customize the options with defaults
|
2609
2637
|
call_metadata = @config.rpcs.remove_file.metadata.to_h
|
2610
2638
|
|
2611
|
-
# Set x-goog-api-client
|
2639
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2612
2640
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2613
2641
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2614
2642
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2615
2643
|
transports_version_send: [:rest]
|
2616
2644
|
|
2645
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2617
2646
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2618
2647
|
|
2619
2648
|
options.apply_defaults timeout: @config.rpcs.remove_file.timeout,
|
@@ -2626,7 +2655,6 @@ module Google
|
|
2626
2655
|
|
2627
2656
|
@dataform_stub.remove_file request, options do |result, operation|
|
2628
2657
|
yield result, operation if block_given?
|
2629
|
-
return result
|
2630
2658
|
end
|
2631
2659
|
rescue ::Gapic::Rest::Error => e
|
2632
2660
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2692,12 +2720,13 @@ module Google
|
|
2692
2720
|
# Customize the options with defaults
|
2693
2721
|
call_metadata = @config.rpcs.move_file.metadata.to_h
|
2694
2722
|
|
2695
|
-
# Set x-goog-api-client
|
2723
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2696
2724
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2697
2725
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2698
2726
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2699
2727
|
transports_version_send: [:rest]
|
2700
2728
|
|
2729
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2701
2730
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2702
2731
|
|
2703
2732
|
options.apply_defaults timeout: @config.rpcs.move_file.timeout,
|
@@ -2710,7 +2739,6 @@ module Google
|
|
2710
2739
|
|
2711
2740
|
@dataform_stub.move_file request, options do |result, operation|
|
2712
2741
|
yield result, operation if block_given?
|
2713
|
-
return result
|
2714
2742
|
end
|
2715
2743
|
rescue ::Gapic::Rest::Error => e
|
2716
2744
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2774,12 +2802,13 @@ module Google
|
|
2774
2802
|
# Customize the options with defaults
|
2775
2803
|
call_metadata = @config.rpcs.write_file.metadata.to_h
|
2776
2804
|
|
2777
|
-
# Set x-goog-api-client
|
2805
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2778
2806
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2779
2807
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2780
2808
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2781
2809
|
transports_version_send: [:rest]
|
2782
2810
|
|
2811
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2783
2812
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2784
2813
|
|
2785
2814
|
options.apply_defaults timeout: @config.rpcs.write_file.timeout,
|
@@ -2792,7 +2821,6 @@ module Google
|
|
2792
2821
|
|
2793
2822
|
@dataform_stub.write_file request, options do |result, operation|
|
2794
2823
|
yield result, operation if block_given?
|
2795
|
-
return result
|
2796
2824
|
end
|
2797
2825
|
rescue ::Gapic::Rest::Error => e
|
2798
2826
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2867,12 +2895,13 @@ module Google
|
|
2867
2895
|
# Customize the options with defaults
|
2868
2896
|
call_metadata = @config.rpcs.list_release_configs.metadata.to_h
|
2869
2897
|
|
2870
|
-
# Set x-goog-api-client
|
2898
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2871
2899
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2872
2900
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2873
2901
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2874
2902
|
transports_version_send: [:rest]
|
2875
2903
|
|
2904
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2876
2905
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2877
2906
|
|
2878
2907
|
options.apply_defaults timeout: @config.rpcs.list_release_configs.timeout,
|
@@ -2885,7 +2914,6 @@ module Google
|
|
2885
2914
|
|
2886
2915
|
@dataform_stub.list_release_configs request, options do |result, operation|
|
2887
2916
|
yield result, operation if block_given?
|
2888
|
-
return result
|
2889
2917
|
end
|
2890
2918
|
rescue ::Gapic::Rest::Error => e
|
2891
2919
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -2945,12 +2973,13 @@ module Google
|
|
2945
2973
|
# Customize the options with defaults
|
2946
2974
|
call_metadata = @config.rpcs.get_release_config.metadata.to_h
|
2947
2975
|
|
2948
|
-
# Set x-goog-api-client
|
2976
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2949
2977
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2950
2978
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2951
2979
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
2952
2980
|
transports_version_send: [:rest]
|
2953
2981
|
|
2982
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2954
2983
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2955
2984
|
|
2956
2985
|
options.apply_defaults timeout: @config.rpcs.get_release_config.timeout,
|
@@ -2963,7 +2992,6 @@ module Google
|
|
2963
2992
|
|
2964
2993
|
@dataform_stub.get_release_config request, options do |result, operation|
|
2965
2994
|
yield result, operation if block_given?
|
2966
|
-
return result
|
2967
2995
|
end
|
2968
2996
|
rescue ::Gapic::Rest::Error => e
|
2969
2997
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3029,12 +3057,13 @@ module Google
|
|
3029
3057
|
# Customize the options with defaults
|
3030
3058
|
call_metadata = @config.rpcs.create_release_config.metadata.to_h
|
3031
3059
|
|
3032
|
-
# Set x-goog-api-client
|
3060
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3033
3061
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3034
3062
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3035
3063
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3036
3064
|
transports_version_send: [:rest]
|
3037
3065
|
|
3066
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3038
3067
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3039
3068
|
|
3040
3069
|
options.apply_defaults timeout: @config.rpcs.create_release_config.timeout,
|
@@ -3047,7 +3076,6 @@ module Google
|
|
3047
3076
|
|
3048
3077
|
@dataform_stub.create_release_config request, options do |result, operation|
|
3049
3078
|
yield result, operation if block_given?
|
3050
|
-
return result
|
3051
3079
|
end
|
3052
3080
|
rescue ::Gapic::Rest::Error => e
|
3053
3081
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3110,12 +3138,13 @@ module Google
|
|
3110
3138
|
# Customize the options with defaults
|
3111
3139
|
call_metadata = @config.rpcs.update_release_config.metadata.to_h
|
3112
3140
|
|
3113
|
-
# Set x-goog-api-client
|
3141
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3114
3142
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3115
3143
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3116
3144
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3117
3145
|
transports_version_send: [:rest]
|
3118
3146
|
|
3147
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3119
3148
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3120
3149
|
|
3121
3150
|
options.apply_defaults timeout: @config.rpcs.update_release_config.timeout,
|
@@ -3128,7 +3157,6 @@ module Google
|
|
3128
3157
|
|
3129
3158
|
@dataform_stub.update_release_config request, options do |result, operation|
|
3130
3159
|
yield result, operation if block_given?
|
3131
|
-
return result
|
3132
3160
|
end
|
3133
3161
|
rescue ::Gapic::Rest::Error => e
|
3134
3162
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3188,12 +3216,13 @@ module Google
|
|
3188
3216
|
# Customize the options with defaults
|
3189
3217
|
call_metadata = @config.rpcs.delete_release_config.metadata.to_h
|
3190
3218
|
|
3191
|
-
# Set x-goog-api-client
|
3219
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3192
3220
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3193
3221
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3194
3222
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3195
3223
|
transports_version_send: [:rest]
|
3196
3224
|
|
3225
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3197
3226
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3198
3227
|
|
3199
3228
|
options.apply_defaults timeout: @config.rpcs.delete_release_config.timeout,
|
@@ -3206,7 +3235,6 @@ module Google
|
|
3206
3235
|
|
3207
3236
|
@dataform_stub.delete_release_config request, options do |result, operation|
|
3208
3237
|
yield result, operation if block_given?
|
3209
|
-
return result
|
3210
3238
|
end
|
3211
3239
|
rescue ::Gapic::Rest::Error => e
|
3212
3240
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3281,12 +3309,13 @@ module Google
|
|
3281
3309
|
# Customize the options with defaults
|
3282
3310
|
call_metadata = @config.rpcs.list_compilation_results.metadata.to_h
|
3283
3311
|
|
3284
|
-
# Set x-goog-api-client
|
3312
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3285
3313
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3286
3314
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3287
3315
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3288
3316
|
transports_version_send: [:rest]
|
3289
3317
|
|
3318
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3290
3319
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3291
3320
|
|
3292
3321
|
options.apply_defaults timeout: @config.rpcs.list_compilation_results.timeout,
|
@@ -3299,7 +3328,6 @@ module Google
|
|
3299
3328
|
|
3300
3329
|
@dataform_stub.list_compilation_results request, options do |result, operation|
|
3301
3330
|
yield result, operation if block_given?
|
3302
|
-
return result
|
3303
3331
|
end
|
3304
3332
|
rescue ::Gapic::Rest::Error => e
|
3305
3333
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3359,12 +3387,13 @@ module Google
|
|
3359
3387
|
# Customize the options with defaults
|
3360
3388
|
call_metadata = @config.rpcs.get_compilation_result.metadata.to_h
|
3361
3389
|
|
3362
|
-
# Set x-goog-api-client
|
3390
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3363
3391
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3364
3392
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3365
3393
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3366
3394
|
transports_version_send: [:rest]
|
3367
3395
|
|
3396
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3368
3397
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3369
3398
|
|
3370
3399
|
options.apply_defaults timeout: @config.rpcs.get_compilation_result.timeout,
|
@@ -3377,7 +3406,6 @@ module Google
|
|
3377
3406
|
|
3378
3407
|
@dataform_stub.get_compilation_result request, options do |result, operation|
|
3379
3408
|
yield result, operation if block_given?
|
3380
|
-
return result
|
3381
3409
|
end
|
3382
3410
|
rescue ::Gapic::Rest::Error => e
|
3383
3411
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3440,12 +3468,13 @@ module Google
|
|
3440
3468
|
# Customize the options with defaults
|
3441
3469
|
call_metadata = @config.rpcs.create_compilation_result.metadata.to_h
|
3442
3470
|
|
3443
|
-
# Set x-goog-api-client
|
3471
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3444
3472
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3445
3473
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3446
3474
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3447
3475
|
transports_version_send: [:rest]
|
3448
3476
|
|
3477
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3449
3478
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3450
3479
|
|
3451
3480
|
options.apply_defaults timeout: @config.rpcs.create_compilation_result.timeout,
|
@@ -3458,7 +3487,6 @@ module Google
|
|
3458
3487
|
|
3459
3488
|
@dataform_stub.create_compilation_result request, options do |result, operation|
|
3460
3489
|
yield result, operation if block_given?
|
3461
|
-
return result
|
3462
3490
|
end
|
3463
3491
|
rescue ::Gapic::Rest::Error => e
|
3464
3492
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3537,12 +3565,13 @@ module Google
|
|
3537
3565
|
# Customize the options with defaults
|
3538
3566
|
call_metadata = @config.rpcs.query_compilation_result_actions.metadata.to_h
|
3539
3567
|
|
3540
|
-
# Set x-goog-api-client
|
3568
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3541
3569
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3542
3570
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3543
3571
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3544
3572
|
transports_version_send: [:rest]
|
3545
3573
|
|
3574
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3546
3575
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3547
3576
|
|
3548
3577
|
options.apply_defaults timeout: @config.rpcs.query_compilation_result_actions.timeout,
|
@@ -3556,7 +3585,7 @@ module Google
|
|
3556
3585
|
@dataform_stub.query_compilation_result_actions request, options do |result, operation|
|
3557
3586
|
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_compilation_result_actions, "compilation_result_actions", request, result, options
|
3558
3587
|
yield result, operation if block_given?
|
3559
|
-
|
3588
|
+
throw :response, result
|
3560
3589
|
end
|
3561
3590
|
rescue ::Gapic::Rest::Error => e
|
3562
3591
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3631,12 +3660,13 @@ module Google
|
|
3631
3660
|
# Customize the options with defaults
|
3632
3661
|
call_metadata = @config.rpcs.list_workflow_configs.metadata.to_h
|
3633
3662
|
|
3634
|
-
# Set x-goog-api-client
|
3663
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3635
3664
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3636
3665
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3637
3666
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3638
3667
|
transports_version_send: [:rest]
|
3639
3668
|
|
3669
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3640
3670
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3641
3671
|
|
3642
3672
|
options.apply_defaults timeout: @config.rpcs.list_workflow_configs.timeout,
|
@@ -3649,7 +3679,6 @@ module Google
|
|
3649
3679
|
|
3650
3680
|
@dataform_stub.list_workflow_configs request, options do |result, operation|
|
3651
3681
|
yield result, operation if block_given?
|
3652
|
-
return result
|
3653
3682
|
end
|
3654
3683
|
rescue ::Gapic::Rest::Error => e
|
3655
3684
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3709,12 +3738,13 @@ module Google
|
|
3709
3738
|
# Customize the options with defaults
|
3710
3739
|
call_metadata = @config.rpcs.get_workflow_config.metadata.to_h
|
3711
3740
|
|
3712
|
-
# Set x-goog-api-client
|
3741
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3713
3742
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3714
3743
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3715
3744
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3716
3745
|
transports_version_send: [:rest]
|
3717
3746
|
|
3747
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3718
3748
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3719
3749
|
|
3720
3750
|
options.apply_defaults timeout: @config.rpcs.get_workflow_config.timeout,
|
@@ -3727,7 +3757,6 @@ module Google
|
|
3727
3757
|
|
3728
3758
|
@dataform_stub.get_workflow_config request, options do |result, operation|
|
3729
3759
|
yield result, operation if block_given?
|
3730
|
-
return result
|
3731
3760
|
end
|
3732
3761
|
rescue ::Gapic::Rest::Error => e
|
3733
3762
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3793,12 +3822,13 @@ module Google
|
|
3793
3822
|
# Customize the options with defaults
|
3794
3823
|
call_metadata = @config.rpcs.create_workflow_config.metadata.to_h
|
3795
3824
|
|
3796
|
-
# Set x-goog-api-client
|
3825
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3797
3826
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3798
3827
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3799
3828
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3800
3829
|
transports_version_send: [:rest]
|
3801
3830
|
|
3831
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3802
3832
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3803
3833
|
|
3804
3834
|
options.apply_defaults timeout: @config.rpcs.create_workflow_config.timeout,
|
@@ -3811,7 +3841,6 @@ module Google
|
|
3811
3841
|
|
3812
3842
|
@dataform_stub.create_workflow_config request, options do |result, operation|
|
3813
3843
|
yield result, operation if block_given?
|
3814
|
-
return result
|
3815
3844
|
end
|
3816
3845
|
rescue ::Gapic::Rest::Error => e
|
3817
3846
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3874,12 +3903,13 @@ module Google
|
|
3874
3903
|
# Customize the options with defaults
|
3875
3904
|
call_metadata = @config.rpcs.update_workflow_config.metadata.to_h
|
3876
3905
|
|
3877
|
-
# Set x-goog-api-client
|
3906
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3878
3907
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3879
3908
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3880
3909
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3881
3910
|
transports_version_send: [:rest]
|
3882
3911
|
|
3912
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3883
3913
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3884
3914
|
|
3885
3915
|
options.apply_defaults timeout: @config.rpcs.update_workflow_config.timeout,
|
@@ -3892,7 +3922,6 @@ module Google
|
|
3892
3922
|
|
3893
3923
|
@dataform_stub.update_workflow_config request, options do |result, operation|
|
3894
3924
|
yield result, operation if block_given?
|
3895
|
-
return result
|
3896
3925
|
end
|
3897
3926
|
rescue ::Gapic::Rest::Error => e
|
3898
3927
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -3952,12 +3981,13 @@ module Google
|
|
3952
3981
|
# Customize the options with defaults
|
3953
3982
|
call_metadata = @config.rpcs.delete_workflow_config.metadata.to_h
|
3954
3983
|
|
3955
|
-
# Set x-goog-api-client
|
3984
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3956
3985
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3957
3986
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3958
3987
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
3959
3988
|
transports_version_send: [:rest]
|
3960
3989
|
|
3990
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3961
3991
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3962
3992
|
|
3963
3993
|
options.apply_defaults timeout: @config.rpcs.delete_workflow_config.timeout,
|
@@ -3970,7 +4000,6 @@ module Google
|
|
3970
4000
|
|
3971
4001
|
@dataform_stub.delete_workflow_config request, options do |result, operation|
|
3972
4002
|
yield result, operation if block_given?
|
3973
|
-
return result
|
3974
4003
|
end
|
3975
4004
|
rescue ::Gapic::Rest::Error => e
|
3976
4005
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4051,12 +4080,13 @@ module Google
|
|
4051
4080
|
# Customize the options with defaults
|
4052
4081
|
call_metadata = @config.rpcs.list_workflow_invocations.metadata.to_h
|
4053
4082
|
|
4054
|
-
# Set x-goog-api-client
|
4083
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4055
4084
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4056
4085
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4057
4086
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4058
4087
|
transports_version_send: [:rest]
|
4059
4088
|
|
4089
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4060
4090
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4061
4091
|
|
4062
4092
|
options.apply_defaults timeout: @config.rpcs.list_workflow_invocations.timeout,
|
@@ -4069,7 +4099,6 @@ module Google
|
|
4069
4099
|
|
4070
4100
|
@dataform_stub.list_workflow_invocations request, options do |result, operation|
|
4071
4101
|
yield result, operation if block_given?
|
4072
|
-
return result
|
4073
4102
|
end
|
4074
4103
|
rescue ::Gapic::Rest::Error => e
|
4075
4104
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4129,12 +4158,13 @@ module Google
|
|
4129
4158
|
# Customize the options with defaults
|
4130
4159
|
call_metadata = @config.rpcs.get_workflow_invocation.metadata.to_h
|
4131
4160
|
|
4132
|
-
# Set x-goog-api-client
|
4161
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4133
4162
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4134
4163
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4135
4164
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4136
4165
|
transports_version_send: [:rest]
|
4137
4166
|
|
4167
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4138
4168
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4139
4169
|
|
4140
4170
|
options.apply_defaults timeout: @config.rpcs.get_workflow_invocation.timeout,
|
@@ -4147,7 +4177,6 @@ module Google
|
|
4147
4177
|
|
4148
4178
|
@dataform_stub.get_workflow_invocation request, options do |result, operation|
|
4149
4179
|
yield result, operation if block_given?
|
4150
|
-
return result
|
4151
4180
|
end
|
4152
4181
|
rescue ::Gapic::Rest::Error => e
|
4153
4182
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4210,12 +4239,13 @@ module Google
|
|
4210
4239
|
# Customize the options with defaults
|
4211
4240
|
call_metadata = @config.rpcs.create_workflow_invocation.metadata.to_h
|
4212
4241
|
|
4213
|
-
# Set x-goog-api-client
|
4242
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4214
4243
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4215
4244
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4216
4245
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4217
4246
|
transports_version_send: [:rest]
|
4218
4247
|
|
4248
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4219
4249
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4220
4250
|
|
4221
4251
|
options.apply_defaults timeout: @config.rpcs.create_workflow_invocation.timeout,
|
@@ -4228,7 +4258,6 @@ module Google
|
|
4228
4258
|
|
4229
4259
|
@dataform_stub.create_workflow_invocation request, options do |result, operation|
|
4230
4260
|
yield result, operation if block_given?
|
4231
|
-
return result
|
4232
4261
|
end
|
4233
4262
|
rescue ::Gapic::Rest::Error => e
|
4234
4263
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4288,12 +4317,13 @@ module Google
|
|
4288
4317
|
# Customize the options with defaults
|
4289
4318
|
call_metadata = @config.rpcs.delete_workflow_invocation.metadata.to_h
|
4290
4319
|
|
4291
|
-
# Set x-goog-api-client
|
4320
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4292
4321
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4293
4322
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4294
4323
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4295
4324
|
transports_version_send: [:rest]
|
4296
4325
|
|
4326
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4297
4327
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4298
4328
|
|
4299
4329
|
options.apply_defaults timeout: @config.rpcs.delete_workflow_invocation.timeout,
|
@@ -4306,7 +4336,6 @@ module Google
|
|
4306
4336
|
|
4307
4337
|
@dataform_stub.delete_workflow_invocation request, options do |result, operation|
|
4308
4338
|
yield result, operation if block_given?
|
4309
|
-
return result
|
4310
4339
|
end
|
4311
4340
|
rescue ::Gapic::Rest::Error => e
|
4312
4341
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4366,12 +4395,13 @@ module Google
|
|
4366
4395
|
# Customize the options with defaults
|
4367
4396
|
call_metadata = @config.rpcs.cancel_workflow_invocation.metadata.to_h
|
4368
4397
|
|
4369
|
-
# Set x-goog-api-client
|
4398
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4370
4399
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4371
4400
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4372
4401
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4373
4402
|
transports_version_send: [:rest]
|
4374
4403
|
|
4404
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4375
4405
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4376
4406
|
|
4377
4407
|
options.apply_defaults timeout: @config.rpcs.cancel_workflow_invocation.timeout,
|
@@ -4384,7 +4414,6 @@ module Google
|
|
4384
4414
|
|
4385
4415
|
@dataform_stub.cancel_workflow_invocation request, options do |result, operation|
|
4386
4416
|
yield result, operation if block_given?
|
4387
|
-
return result
|
4388
4417
|
end
|
4389
4418
|
rescue ::Gapic::Rest::Error => e
|
4390
4419
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4460,12 +4489,13 @@ module Google
|
|
4460
4489
|
# Customize the options with defaults
|
4461
4490
|
call_metadata = @config.rpcs.query_workflow_invocation_actions.metadata.to_h
|
4462
4491
|
|
4463
|
-
# Set x-goog-api-client
|
4492
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
4464
4493
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
4465
4494
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
4466
4495
|
gapic_version: ::Google::Cloud::Dataform::V1beta1::VERSION,
|
4467
4496
|
transports_version_send: [:rest]
|
4468
4497
|
|
4498
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
4469
4499
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
4470
4500
|
|
4471
4501
|
options.apply_defaults timeout: @config.rpcs.query_workflow_invocation_actions.timeout,
|
@@ -4479,7 +4509,7 @@ module Google
|
|
4479
4509
|
@dataform_stub.query_workflow_invocation_actions request, options do |result, operation|
|
4480
4510
|
result = ::Gapic::Rest::PagedEnumerable.new @dataform_stub, :query_workflow_invocation_actions, "workflow_invocation_actions", request, result, options
|
4481
4511
|
yield result, operation if block_given?
|
4482
|
-
|
4512
|
+
throw :response, result
|
4483
4513
|
end
|
4484
4514
|
rescue ::Gapic::Rest::Error => e
|
4485
4515
|
raise ::Google::Cloud::Error.from_error(e)
|
@@ -4559,6 +4589,11 @@ module Google
|
|
4559
4589
|
# default endpoint URL. The default value of nil uses the environment
|
4560
4590
|
# universe (usually the default "googleapis.com" universe).
|
4561
4591
|
# @return [::String,nil]
|
4592
|
+
# @!attribute [rw] logger
|
4593
|
+
# A custom logger to use for request/response debug logging, or the value
|
4594
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
4595
|
+
# explicitly disable logging.
|
4596
|
+
# @return [::Logger,:default,nil]
|
4562
4597
|
#
|
4563
4598
|
class Configuration
|
4564
4599
|
extend ::Gapic::Config
|
@@ -4587,6 +4622,7 @@ module Google
|
|
4587
4622
|
# by the host service.
|
4588
4623
|
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
4589
4624
|
config_attr :bindings_override, {}, ::Hash, nil
|
4625
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
4590
4626
|
|
4591
4627
|
# @private
|
4592
4628
|
def initialize parent_config = nil
|